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 CVS doesn't compile on ARM


Hi, 

[Please Cc: answers to me, as I'm not subscribed to the libc-alpha list.
Thanks.]

I have recently tried CVS-glibc with an 2.95.3 ARM toolchain (see
http://www.pengutronix.de/software/dnp/build-toolchain-ptx1 for details
about how such a toolchain can be built), and it breaks. Background was
that glibc-2.2.5 can currently also not be built for ARM, so I wanted to
test the latest stuff. 

Here's the bug report: 

----------8<---------
robert@ganymed:~/embedded/cvs/libc> CFLAGS="-O2 -Wall -pipe" CC=arm-linux-gcc ./configure --host=arm-linux --prefix=/ --with-headers=/home/robert/embedded/ptxdist-0.1.3/build/linux-2.4.18/include --disable-sanity-checks --enable-add-ons
creating cache ./config.cache
checking host system type... arm-unknown-linux-gnu
checking sysdep dirs... sysdeps/arm/elf linuxthreads/sysdeps/unix/sysv/linux linuxthreads/sysdeps/pthread sysdeps/pthread linuxthreads/sysdeps/unix/sysv linuxthreads/sysdeps/unix linuxthreads/sysdeps/arm sysdeps/unix/sysv/linux/arm sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/arm sysdeps/unix sysdeps/posix sysdeps/arm/fpu sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for pwd... /bin/pwd
checking build system type... arm-unknown-linux-gnu
checking for gcc... arm-linux-gcc
checking version of arm-linux-gcc... 2.95.3, ok
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 3.79.1, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.10.37, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.0, ok
checking for sed... sed
checking version of sed... 3.02, ok
checking whether the C compiler (arm-linux-gcc -O2 -Wall -pipe ) works... no
checking whether the C compiler (arm-linux-gcc -O2 -Wall -pipe ) is a cross-compiler... (cached) yes
checking whether we are using GNU C... yes
checking build system type... arm-unknown-linux-gnu
checking how to run the C preprocessor... /lib/cpp
checking whether /usr/arm-linux/arm-linux/bin/as is GNU as... yes
checking whether /usr/arm-linux/arm-linux/bin/ld is GNU ld... yes
checking for mig... mig
checking whether ranlib is necessary... no
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... 
checking for bash... /bin/sh
checking for mawk... no
checking for gawk... gawk
checking for perl... /usr/bin/perl
checking for install-info... /usr/bin/install-info
checking for old Debian install-info... no
checking for bison... /usr/bin/bison
checking for signed size_t type... no
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for .set assembler directive... no
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... no
checking for broken __attribute__((alias()))... yes
checking for .preinit_array/.init_array/.fini_array support... no
checking for -z nodelete option... yes
checking for -z nodlopen option... yes
checking for -z initfirst option... yes
checking for -Bgroup option... yes
checking for -z combreloc... no
checking whether cc puts quotes around section names... no
checking for assembler .weak directive... yes
checking for ld --no-whole-archive... yes
checking for gcc -fexceptions... yes
checking for DWARF2 unwind info support... no
checking for __builtin_expect... no
checking for __builtin_memset... no
checking for local label subtraction... no
checking for __thread... no
checking for libgd... no
checking size of long double... 0
running configure fragment for ./linuxthreads/sysdeps/unix/sysv/linux
running configure fragment for ./sysdeps/unix/sysv/linux
checking installed Linux kernel header files... 2.0.10 or later
checking for symlinks in //include... ok
running configure fragment for ./sysdeps/unix/common
running configure fragment for ./sysdeps/unix
running configure fragment for ./sysdeps/generic
checking for old glibc 2.0.x headers... no
checking whether -fPIC is default... no
updating cache ./config.cache
creating ./config.status
creating config.make
creating glibcbug
creating config.h
config.h is unchanged
configuring in linuxthreads
running /bin/sh ./configure  --host=arm-linux --prefix=/ --with-headers=/home/robert/embedded/ptxdist-0.1.3/build/linux-2.4.18/include --disable-sanity-checks --enable-add-ons --cache-file=.././config.cache --srcdir=.

robert@ganymed:~/embedded/cvs/libc> make
[...]
/bin/sh ../scripts/rellns-sh ../libc.so ../libc.so.6.new
mv -f ../libc.so.6.new ../libc.so.6
arm-linux-gcc -nostdlib -nostartfiles -o iconvconfig
-Wl,-dynamic-linker=//lib/ld-linux.so.2    ../csu/crt1.o ../csu/crti.o
`arm-linux-gcc --print-file-name=crtbegin.o` iconvconfig.o strtab.o
xmalloc.o
-Wl,-rpath-link=..:../math:../elf:../dlfcn:../nss:../nis:../rt:../resolv:../crypt:../linuxthreads
../libc.so.6 ../libc_nonshared.a -lgcc `arm-linux-gcc
--print-file-name=crtend.o` ../csu/crtn.o
../libc.so.6: undefined reference to `__divdi3_internal'
collect2: ld returned 1 exit status
make[1]: *** [iconvconfig] Error 1
make[1]: Leaving directory `/home/robert/embedded/cvs/libc/iconv'
make: *** [iconv/others] Error 2
robert@ganymed:~/embedded/cvs/libc>
---------->8----------

Please tell me if more information about my setup is needed. 

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Braunschweiger Str. 79,  31134 Hildesheim, Germany
    Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4


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