cross-glibc doesn't build with gcc-4.5

Paweł Sikora pluto@agmk.net
Thu May 13 11:43:00 GMT 2010


hi,

currently i'm trying to update my cross toolchain from  
gcc-4.4/glibc-2.11.1 to gcc-4.5/glibc-2.12
but the recent sources don't build :(

(...)
x86_64-gnu-linux-gcc -Wl,--hash-style=both  -nostdlib -nostartfiles -r -o  
/home/pawels/toolchain/trunk/glibc-2.12/BUILDDIR/elf/librtld.map.o  
'-Wl,-('  
/home/pawels/toolchain/trunk/glibc-2.12/BUILDDIR/elf/dl-allobjs.os  
/home/pawels/toolchain/trunk/glibc-2.12/BUILDDIR/libc_pic.a -lgcc '-Wl,-)'  
-Wl,-Map,/home/pawels/toolchain/trunk/glibc-2.12/BUILDDIR/elf/librtld.mapT
/home/pawels/toolchain/trunk/glibc-2.12/BUILDDIR/libc_pic.a(dl-addr.os):  
In function `_dl_addr_inside_object':
dl-addr.c:(.text+0x0): multiple definition of `_dl_addr_inside_object'
/home/pawels/toolchain/trunk/glibc-2.12/BUILDDIR/elf/dl-allobjs.os:(.text+0x110d0):  
first defined here
/home/pawels/toolchain/trunk/glibc-2.12/BUILDDIR/libc_pic.a(init-first.os):(.data+0x0):  
multiple definition of `__libc_multiple_libcs'
/home/pawels/toolchain/trunk/glibc-2.12/BUILDDIR/elf/dl-allobjs.os:(.bss+0xfc):  
first defined here
collect2: ld returned 1 exit status
make[2]: ***  
[/home/pawels/toolchain/trunk/glibc-2.12/BUILDDIR/elf/librtld.map] Error 1
make[2]: Leaving directory `/home/pawels/toolchain/trunk/glibc-2.12/elf'
make[1]: **

$ readelf -sW BUILDDIR/libc_pic.a|grep _dl_addr_inside_object
     13: 0000000000000000     0 NOTYPE  GLOBAL HIDDEN   UND  
_dl_addr_inside_object
      8: 0000000000000000    83 FUNC    GLOBAL HIDDEN     1  
_dl_addr_inside_object
     15: 0000000000000000     0 NOTYPE  GLOBAL HIDDEN   UND  
_dl_addr_inside_object

$ readelf -sW BUILDDIR/elf/dl-allobjs.os|grep _dl_addr_inside_object
    616: 00000000000110d0    83 FUNC    GLOBAL HIDDEN     1  
_dl_addr_inside_object

$ /local/devel/toolchain45/x86_64-gnu-linux/bin/x86_64-gnu-linux-gcc -v
Using built-in specs.
COLLECT_GCC=/local/devel/toolchain45/x86_64-gnu-linux/bin/x86_64-gnu-linux-gcc
COLLECT_LTO_WRAPPER=/local/devel/toolchain45/x86_64-gnu-linux.host64/lib64/gcc/x86_64-gnu-linux/4.5.1/lto-wrapper
Target: x86_64-gnu-linux
Configured with: ../configure --target=x86_64-gnu-linux --with-arch=core2  
--prefix=/local/devel/toolchain45/x86_64-gnu-linux.host64  
--with-sysroot=/local/devel/toolchain45/x86_64-gnu-linux.host64  
--libdir=/local/devel/toolchain45/x86_64-gnu-linux.host64/lib64  
--libexecdir=/local/devel/toolchain45/x86_64-gnu-linux.host64/lib64  
--with-slibdir=/local/devel/toolchain45/x86_64-gnu-linux.host64/lib64  
--with-gmp-include=/home/pawels/toolchain/trunk/gcc-math-runtime/include  
--with-gmp-lib=/home/pawels/toolchain/trunk/gcc-math-runtime/lib  
--with-mpfr-include=/home/pawels/toolchain/trunk/gcc-math-runtime/include  
--with-mpfr-lib=/home/pawels/toolchain/trunk/gcc-math-runtime/lib  
--with-mpc-include=/home/pawels/toolchain/trunk/gcc-math-runtime/include  
--with-mpc-lib=/home/pawels/toolchain/trunk/gcc-math-runtime/lib  
--disable-multilib --disable-nls --disable-libgomp --disable-libmudflap  
--disable-tls --disable-libssp --disable-shared --disable-lto  
--disable-plugin --enable-c99 --enable-long-long --enable-linux-futex  
--enable-threads=posix --enable-__cxa_atexit --enable-languages=c  
--enable-checking=release --disable-symvers --with-long-double-128  
--disable-cld --disable-bootstrap
Thread model: posix
gcc version 4.5.1 20100512 (prerelease) (GCC)

$ /local/devel/toolchain45/x86_64-gnu-linux/bin/x86_64-gnu-linux-ld -v
GNU ld (Linux/GNU Binutils) 2.20.51.0.8.20100412


have you any ideas how to fix it?
thanks in advance for any hints.

BR,
Pawel.



More information about the Libc-help mailing list