This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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]

glibc build error with gcc-4.0 for target arm


I'm trying to cross-compile glibc (development source tree, cvs
checkout of today)
for the arm-linux target from ix86-linux with the following combination:

GNU Binutils-2.16.90.0.2, configured and built with:
../binutils-2.16.90.0.2/configure --prefix=/arm/cdk --disable-nls \
--build=i686-pc-linux-gnu --host=i686-pc-linux-gnu
--target=arm-iwmmxt-linux-gnu \
--nfp
 
bash-2.05b$ arm-iwmmxt-linux-gnu-ld -V
GNU ld version 2.16.90.0.2 20050429
  Supported emulations:
   armelf_linux
   armelf

A bootstrap GCC-4.0.0, configured and built with:
../gcc-4.0.0/configure --prefix=/arm/cdk --build=i686-pc-linux-gnu \
--host=i686-pc-linux-gnu --target=arm-iwmmxt-linux-gnu --disable-shared \
--disable-threads --disable-nls --enable-languages="c" --with-float=soft \
--with-arch=iwmmxt --with-abi=iwmmxt --disable-libmudflap

bash-2.05b$ arm-iwmmxt-linux-gnu-gcc -v
Using built-in specs.
Target: arm-iwmmxt-linux-gnu
Configured with: ../gcc-4.0.0/configure --prefix=/arm/cdk
--build=i686-pc-linux-gnu --host=i686-pc-linux-gnu
--target=arm-iwmmxt-linux-gnu --disable-shared --disable-threads
--disable-nls --enable-languages=c --with-float=soft
--with-arch=iwmmxt --with-abi=iwmmxt --disable-libmudflap
Thread model: single
gcc version 4.0.0


and then
CFLAGS="-march=iwmmxt -O2 -fomit-frame-pointer -pipe"
../libc/configure \ --build=i686-pc-linux-gnu \
--host=arm-iwmmxt-linux-gnu --prefix= \
--with-headers=/arm/linux-2.6.11.8/include \
--disable-profile --enable-shared --enable-add-ons=linuxthreads --without-fp \
--with-tls --without-__thread

trying to build with "make all" ends up with

[...]
arm-iwmmxt-linux-gnu-gcc dl-lookup.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -march=iwmmxt -pipe 
-fomit-frame-pointer -fexceptions -fasynchronous-unwind-tables  
-I../include -I. -I/home/lior/build/elf -I.. -I../libio 
-I/home/lior/build -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 -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
/arm/cdk/lib/gcc/arm-iwmmxt-linux-gnu/4.0.0/include -isystem
/arm/linux-2.6.11.8/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h       -o /home/lior/build/elf/dl-lookup.o
-MD -MP -MF /home/lior/build/elf/dl-lookup.o.dt -MT
/home/lior/build/elf/dl-lookup.o
arm-iwmmxt-linux-gnu-gcc dl-object.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -march=iwmmxt -pipe 
-fomit-frame-pointer    -I../include -I. -I/home/lior/build/elf -I..
-I../libio  -I/home/lior/build -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 -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
/arm/cdk/lib/gcc/arm-iwmmxt-linux-gnu/4.0.0/include -isystem
/arm/linux-2.6.11.8/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h       -o /home/lior/build/elf/dl-object.o
-MD -MP -MF /home/lior/build/elf/dl-object.o.dt -MT
/home/lior/build/elf/dl-object.o
arm-iwmmxt-linux-gnu-gcc dl-reloc.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -march=iwmmxt -pipe 
-fomit-frame-pointer    -I../include -I. -I/home/lior/build/elf -I..
-I../libio  -I/home/lior/build -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 -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
/arm/cdk/lib/gcc/arm-iwmmxt-linux-gnu/4.0.0/include -isystem
/arm/linux-2.6.11.8/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h       -o /home/lior/build/elf/dl-reloc.o -MD
-MP -MF /home/lior/build/elf/dl-reloc.o.dt -MT
/home/lior/build/elf/dl-reloc.o
dl-reloc.c: In function '_dl_relocate_object':
dynamic-link.h:55: error: nested function 'elf_machine_lazy_rel'
declared but never defined
dynamic-link.h:50: error: nested function 'elf_machine_rela_relative'
declared but never defined
dynamic-link.h:47: error: nested function 'elf_machine_rela' declared
but never defined
dynamic-link.h:41: error: nested function 'elf_machine_rel_relative'
declared but never defined
dynamic-link.h:38: error: nested function 'elf_machine_rel' declared
but never defined
dl-reloc.c:221: warning: unused variable 'strtab'
make[2]: *** [/home/lior/build/elf/dl-reloc.o] Error 1
make[2]: Leaving directory `/home/lior/libc/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/home/lior/libc'
make: *** [all] Error 2

omitting "--with-tls --without-__thread", I got the same errors.

Roland McGrath wrote
"[...]If you especially want to compile
glibc using GCC development snapshots, then you should be working with the
current development version of glibc (see http://www.gnu.org/software/libc/).
That code is not yet ready for release, but already builds well with
GCC 4,[...]"

Was anybody yet able to successfully build this particular configuration 
or is this known to be not working?


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