Subject: bug#28296: 26.0.50; compiling emacs 23.4 on arch armhf

From: [email-masked] (Andrés Ramírez)
Date: Wed, 30 Aug 2017 08:58:24 -0600

Let me know If You guys have any idea about the issue.

My configuration line:
--8<---------------cut here---------------start------------->8---
CFLAGS="-g3 -O0 -fPIC" ../configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=lucid --mandir=/usr/share/man/emacs23  --with-sound --without-gconf --with-xft --without-gif --with-jpeg=no --without-dbus --without-libotf --without-m17n-flt --without-gpm --program-suffix=emacs23 --infodir=${prefix}/share/info/emacs23 --with-crt-dir=/usr/lib/gcc/arm-linux-gnueabihf/6/../../../arm-linux-gnueabihf/
--8<---------------cut here---------------end--------------->8---

I am getting this error:
--8<---------------cut here---------------start------------->8---
gcc -c -D_BSD_SOURCE    -D_BSD_SOURCE -I/usr/include/freetype2   -g3 -O0 -fPIC -DHAVE_CONFIG_H -Demacs -I. -I../src -I/home/soni/abs/emacs-23.4/lwlib -I/home/soni/abs/emacs-23.4/lwlib/../src /home/soni/abs/emacs-23.4/lwlib/lwlib.c
echo "#define BUILDOBJ \"dispnew.o frame.o scroll.o xdisp.o menu.o xmenu.o window.o charset.o coding.o category.o ccl.o character.o chartab.o cm.o term.o terminal.o xfaces.o xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o   emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o filemode.o cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o doc.o editfns.o callint.o eval.o floatfns.o fns.o font.o print.o lread.o syntax.o unexelf.o bytecode.o process.o callproc.o region-cache.o sound.o atimer.o doprnt.o strftime.o intervals.o textprop.o composite.o md5.o    xfont.o ftfont.o xftfont.o ftxfont.o terminfo.o lastfile.o   vm-limit.o widget.o  " "\"" > buildobj.h
gcc -Demacs -DHAVE_CONFIG_H  -I. -I/home/soni/abs/emacs-23.4/src -D_BSD_SOURCE -I/usr/include/freetype2  -pthread -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16   -g3 -O0 -fPIC -I/usr/include/freetype2 -I/usr/include/freetype2 -MMD -MF deps/.d -Wl,-znocombreloc   prefix-args.o -o prefix-args
gcc: error: prefix-args.o: No such file or directory
Makefile:138: recipe for target 'prefix-args' failed
make[1]: *** [prefix-args] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from /usr/include/stdio.h:27:0,
                 from /home/soni/abs/emacs-23.4/lwlib/../src/s/gnu-linux.h:152,
                 from ../src/config.h:1074,
                 from /home/soni/abs/emacs-23.4/lwlib/lwlib.c:24:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
In file included from ../src/config.h:1075:0,
                 from /home/soni/abs/emacs-23.4/lwlib/lwlib.c:24:
/home/soni/abs/emacs-23.4/lwlib/../src/m/arm.h:42:0: warning: "LIB_GCC" redefined
 #define LIB_GCC -lgcc_s
 
In file included from ../src/config.h:1074:0,
                 from /home/soni/abs/emacs-23.4/lwlib/lwlib.c:24:
/home/soni/abs/emacs-23.4/lwlib/../src/s/gnu-linux.h:200:0: note: this is the location of the previous definition
 #define LIB_GCC
 
rm -f liblw.a
ar cq liblw.a lwlib.o lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o lwlib-utils.o
ar: lwlib-Xlw.o: No such file or directory
Makefile:65: recipe for target 'liblw.a' failed
make[2]: *** [liblw.a] Error 1
make[2]: Leaving directory '/home/soni/abs/emacs-23.4/build/lwlib'
Makefile:149: recipe for target 'really-lwlib' failed
make[1]: *** [really-lwlib] Error 2
make[1]: Leaving directory '/home/soni/abs/emacs-23.4/build/src'
Makefile:339: recipe for target 'src' failed
make: *** [src] Error 2
--8<---------------cut here---------------end--------------->8---