This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

newlib-1.12.0 won't compile host=target=i686-pc-linux-gnu


I'm trying to compile newlib-1.12.0 host = target = i686-pc-linux-gnu so hopefully I can use Dave Hanson and Chris Fraser's LCC-4.2 compiler instead of GCC. glibc is hopelessly non-compliant with the C standard, and LCC will just not work with it. (Have you heard of anyone using LCC with newlib?) I made a separate build directory outside of the source tree, cd'd into there, and ran:

../newlib-1.12.0/newlib/configure --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --srcdir=/home/jamesb/lcc-newlib/newlib-1.12.0/newlib

and this is what happened, starting from a while (maybe 2-3 mins or so) into the compile (the problem seems to be in sigaction.c):

Making all in i386
make[6]: Entering directory `/home/jamesb/lcc-newlib/i686-pc-linux-gnu/libc/sys/linux/machine/i386'
/bin/sh ./libtool --mode=compile gcc -I/home/jamesb/lcc-newlib/i686-pc-linux-gnu/targ-include -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.12.0\" -I. -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386 -O2 -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DWANT_IO_POS_ARGS -DWANT_IO_LONG_DBL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/../.. -g -O2 -c /home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/get_clockfreq.c
mkdir .libs
gcc -I/home/jamesb/lcc-newlib/i686-pc-linux-gnu/targ-include -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.12.0\" -I. -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386 -O2 -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DWANT_IO_POS_ARGS -DWANT_IO_LONG_DBL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/../.. -g -O2 -c /home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/get_clockfreq.c -fPIC -DPIC -o .libs/get_clockfreq.o
gcc -I/home/jamesb/lcc-newlib/i686-pc-linux-gnu/targ-include -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.12.0\" -I. -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386 -O2 -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DWANT_IO_POS_ARGS -DWANT_IO_LONG_DBL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/../.. -g -O2 -c /home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/get_clockfreq.c -o get_clockfreq.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -I/home/jamesb/lcc-newlib/i686-pc-linux-gnu/targ-include -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.12.0\" -I. -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386 -O2 -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DWANT_IO_POS_ARGS -DWANT_IO_LONG_DBL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/../.. -g -O2 -c /home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/getpagesize.cgcc -I/home/jamesb/lcc-newlib/i686-pc-linux-gnu/targ-include -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.12.0\" -I. -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386 -O2 -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DWANT_IO_POS_ARGS -DWANT_IO_LONG_DBL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/../.. -g -O2 -c /home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/getpagesize.c -fPIC -DPIC -o .libs/getpagesize.o
gcc -I/home/jamesb/lcc-newlib/i686-pc-linux-gnu/targ-include -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.12.0\" -I. -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386 -O2 -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DWANT_IO_POS_ARGS -DWANT_IO_LONG_DBL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/../.. -g -O2 -c /home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/getpagesize.c -o getpagesize.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -I/home/jamesb/lcc-newlib/i686-pc-linux-gnu/targ-include -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.12.0\" -I. -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386 -O2 -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DWANT_IO_POS_ARGS -DWANT_IO_LONG_DBL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/../.. -g -O2 -c /home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/hp-timing.c
gcc -I/home/jamesb/lcc-newlib/i686-pc-linux-gnu/targ-include -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.12.0\" -I. -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386 -O2 -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DWANT_IO_POS_ARGS -DWANT_IO_LONG_DBL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/../.. -g -O2 -c /home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/hp-timing.c -fPIC -DPIC -o .libs/hp-timing.o
gcc -I/home/jamesb/lcc-newlib/i686-pc-linux-gnu/targ-include -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.12.0\" -I. -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386 -O2 -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DWANT_IO_POS_ARGS -DWANT_IO_LONG_DBL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/../.. -g -O2 -c /home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/hp-timing.c -o hp-timing.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -I/home/jamesb/lcc-newlib/i686-pc-linux-gnu/targ-include -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.12.0\" -I. -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386 -O2 -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DWANT_IO_POS_ARGS -DWANT_IO_LONG_DBL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/../.. -g -O2 -c /home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/setjmp.S
gcc -I/home/jamesb/lcc-newlib/i686-pc-linux-gnu/targ-include -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.12.0\" -I. -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386 -O2 -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DWANT_IO_POS_ARGS -DWANT_IO_LONG_DBL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/../.. -g -O2 -c /home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/setjmp.S -fPIC -DPIC -o .libs/setjmp.o
gcc -I/home/jamesb/lcc-newlib/i686-pc-linux-gnu/targ-include -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.12.0\" -I. -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386 -O2 -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DWANT_IO_POS_ARGS -DWANT_IO_LONG_DBL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/../.. -g -O2 -c /home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/setjmp.S -o setjmp.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile gcc -I/home/jamesb/lcc-newlib/i686-pc-linux-gnu/targ-include -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.12.0\" -I. -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386 -O2 -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DWANT_IO_POS_ARGS -DWANT_IO_LONG_DBL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/../.. -g -O2 -c /home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/sigaction.c
gcc -I/home/jamesb/lcc-newlib/i686-pc-linux-gnu/targ-include -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.12.0\" -I. -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386 -O2 -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -DHAVE_FCNTL -DWANT_IO_POS_ARGS -DWANT_IO_LONG_DBL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES -fno-builtin -I/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/../.. -g -O2 -c /home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/sigaction.c -fPIC -DPIC -o .libs/sigaction.o
/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/sigaction.c: In function `__libc___rt_sigaction':
/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/sigaction.c:37: warning: implicit declaration of function `__syscall_return'
/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/sigaction.c:37: error: syntax error before "int"
/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/sigaction.c: At top level:
/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/sigaction.c:40: warning: `restore_rt' declared `static' but never defined
/home/jamesb/lcc-newlib/newlib-1.12.0/newlib/libc/sys/linux/machine/i386/sigaction.c:41: warning: `restore' declared `static' but never defined
make[6]: *** [sigaction.lo] Error 1
make[6]: Leaving directory `/home/jamesb/lcc-newlib/i686-pc-linux-gnu/libc/sys/linux/machine/i386'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/jamesb/lcc-newlib/i686-pc-linux-gnu/libc/sys/linux/machine'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/jamesb/lcc-newlib/i686-pc-linux-gnu/libc/sys/linux'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jamesb/lcc-newlib/i686-pc-linux-gnu/libc/sys'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jamesb/lcc-newlib/i686-pc-linux-gnu/libc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jamesb/lcc-newlib/i686-pc-linux-gnu'
make: *** [all-recursive-am] Error 2
[jamesb@linux i686-pc-linux-gnu]$


Can you tell me what is going on? I can't find anything on Google.

Thanks,
James Buchanan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]