cross-compiling glibc 2.11.2 for arm failed

Toan Pham tpham3783@gmail.com
Wed Feb 23 19:59:00 GMT 2011


Hi all, i was cross compiling for arm cortex-a8 and it failed at the
following error.  Please advise.

my binutil version is 2.20.51.0.5
gcc version is 4.5.0


-thanks

toan




arm-t2-linux-uclibcgnueabi-gcc
/media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/objdir/misc/stub-syscalls.c
-c -std=gnu99 -fgnu89-inline -DNDEBUG=1 -Wall -Winline -Wwrite-strings
-fmerge-all-constants -fno-unwind-tables -g -Wstrict-prototypes
-I../include -I/media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/objdir/misc
-I/media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/objdir
-I../ports/sysdeps/arm/elf -I../ports/sysdeps/unix/sysv/linux/arm/nptl
-I../ports/sysdeps/unix/sysv/linux/arm
-I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread
-I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv
-I../sysdeps/unix/sysv -I../ports/sysdeps/unix/arm
-I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix
-I../sysdeps/posix -I../ports/sysdeps/arm/nptl -I../ports/sysdeps/arm
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I../ports
-I.. -I../libio -I. -nostdinc -isystem
/media/sata/root/repos/os/t2-8.0/build/ngss-8.0-ngss-arm-gnueabi-cortex-a8-cross-linux/TOOLCHAIN/tools.cross/crosscc/../lib/gcc/arm-t2-linux-uclibcgnueabi/4.5.0/include
-isystem /media/sata/root/repos/os/t2-8.0/build/ngss-8.0-ngss-arm-gnueabi-cortex-a8-cross-linux/usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o
/media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/objdir/misc/stub-syscalls.o
-MD -MP -MF /media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/objdir/misc/stub-syscalls.o.dt
-MT /media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/objdir/misc/stub-syscalls.o
/media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/objdir/misc/stub-syscalls.c:2:18:
warning: ISO C99 requires whitespace after the macro name
/media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/objdir/misc/stub-syscalls.c:8:17:
warning: extra tokens at end of #undef directive
/media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/objdir/misc/stub-syscalls.c:18:1:
error: stray '@' in program
/media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/objdir/misc/stub-syscalls.c:18:1:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'GLIBC_2'
/media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/objdir/misc/stub-syscalls.c:19:1:
error: stray '@' in program
/media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/objdir/misc/stub-syscalls.c:19:1:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'GLIBC_2'
/media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/objdir/misc/stub-syscalls.c:20:1:
error: stray '@' in program
/media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/objdir/misc/stub-syscalls.c:20:1:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'GLIBC_2'
make[2]: *** [/media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/objdir/misc/stub-syscalls.o]
Error 1
make[2]: Leaving directory
`/media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory
`/media/sata/root/repos/os/t2-8.0/src.glibc.ngss.20110223.094238.7406.localhost/glibc-2.11.2'



More information about the Libc-help mailing list