This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
glibc-2.3.2 arm-linux cross compile error
- From: "Hu, Boris" <boris dot hu at intel dot com>
- To: "Libc-Alpha (E-mail)" <libc-alpha at sources dot redhat dot com>, "Linux-Arm (E-mail)" <linux-arm at lists dot arm dot linux dot org dot uk>
- Date: Fri, 21 Mar 2003 14:19:41 +0800
- Subject: glibc-2.3.2 arm-linux cross compile error
# arm-linux-gcc -v
Reading specs from /usr/local/arm-linux/lib/gcc-lib/arm-linux/3.2.1/specs
Configured with: ./configure --target=arm-linux --prefix=/usr/local/arm-linux --enable-shared --with-cpu=xscale
Thread model: posix
gcc version 3.2.1
# arm-linux-ld -v
GNU ld version 2.13.90.0.16 20021126
# pwd
/usr/src/redhat/BUILD/glibc-2.3.2/sea
# ../configure arm-linux --prefix=/tmp/install --enable-add-ons=linuxthreads
--without-tls --without-__thread --build=i686-pc-linux-gnu
--with-headers=/tftpboot/rootfs.net-winder/test/arm-linux-2.4.19/include/
# make
......
(echo '#include <sysdep-cancel.h>'; \
echo 'PSEUDO (__libc_pause, pause, 0)'; \
echo ' ret'; \
echo 'PSEUDO_END(__libc_pause)'; \
echo 'libc_hidden_def (__libc_pause)'; \
echo 'weak_alias (__libc_pause, pause)'; \
echo 'libc_hidden_weak (pause)'; \
) | arm-linux-gcc -c -I../include -I. -I/usr/src/redhat/BUILD/glibc-2.3.2/sea/posix -I.. -I../libio -I/usr/src/redhat/BUILD/glibc-2.3.2/sea -I../sysdeps/arm/elf -I../linuxthreads/sysdeps/unix/sysv/linux/arm -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/arm -I../sysdeps/unix/sysv/linux/arm -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/arm -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/arm/fpu -I../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 -nostdinc -isystem /usr/local/arm-linux/lib/gcc-lib/arm-linux/3.2.1/include -isystem /tftpboot/rootfs.net-winder/test/arm-linux-2.4.19/include/ -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPROF -DASSEMBLER -x assembler-with-cpp -o /usr/src/redhat/BUILD/glibc-2.3.2/sea/posix/pause.op -
<stdin>: Assembler messages:
<stdin>:2: Error: garbage following instruction -- `ldr lr,[sp],#4 ldr ip,=__libc_multiple_threads'
make[2]: *** [/usr/src/redhat/BUILD/glibc-2.3.2/sea/posix/pause.op] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/glibc-2.3.2/posix'
make[1]: *** [posix/subdir_lib] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/glibc-2.3.2'
make: *** [all] Error 2
Do I miss sth or any tips? thanks a lot.
boris