glibc-2.3.4-20040701: error with libc_pic.a

Chris Lingard chris at stockwith.co.uk
Thu Dec 30 04:03:00 PST 2004


Vladimir Rusinov aka B. wrote:

> Hello!
> 
> I am trying to compile glibc (LFS 6.0, in chapter 5)
> 
> glibc-2.3.4-20040701
> 
> lfs at linux:/tools/glibc-build> ../src/glibc-2.3.4-20040701/configure
> --prefix=/tools --with-__thread --enable-kernel=2.6.0
> --with-binutils=/tools/bin --without-gd --without-cvs
> --with-headers=/tools/glibc-kernheaders
> --disable-profile --enable-add-ons=nptl --with-tls
> 
> .... (no errors)
> 
> lfs at linux:/tools/glibc-build> make
> 
> ....
> a - elf/framestate.os
> a - elf/unwind-pe.os
> : /tools/glibc-build/libc_pic.a
> gcc -B/tools/bin/   -nostdlib -nostartfiles -r -o
> /tools/glibc-build/elf/librtld.map.o '-Wl,-('
> /tools/glibc-build/elf/dl-allobjs.os /tools/glibc-build/libc_pic.a -lgcc
> '-Wl,-)' -Wl,-Map,/tools/glibc-build/elf/librtld.mapT/tools/bin/ld:
> errno: TLS definition in /tools/glibc-build/libc_pic.a(errno.os) section
> .tbss mismatches non-TLS reference in
> /tools/glibc-build/elf/dl-allobjs.os/tools/glibc-build/libc_pic.a: could
> not read symbols: Bad value collect2: ld returned 1 exit status
> make[2]: *** [/tools/glibc-build/elf/librtld.map] Error 1
> make[2]: Leaving directory `/lfs/tools/src/glibc-2.3.4-20040701/elf'
> make[1]: *** [elf/subdir_lib] Error 2
> make[1]: Leaving directory `/lfs/tools/src/glibc-2.3.4-20040701'
> make: *** [all] Error 2
> 
> How to fix it?
> 
> Bunutils version 2.15.94.0.2
> gcc-3.4.3

The unofficial way to escape this mess is to build binutils and gcc
dynamic.  Repeat your builds of binutils and gcc; but leave off all the
static flags.  This just might work

Chris

 
> PPS: sorry for my english

Do not worry, my English is fine



More information about the lfs-support mailing list