glibc-2.3.4-20040701: error with libc_pic.a

Jeremy Utley jeremy at jutley.org
Thu Dec 30 02:54:03 PST 2004


Andrei A. Voropaev wrote:

>On Wed, Dec 29, 2004 at 09:31:49PM +0300, 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
>>    
>>
>
>Downgrade binutils. I had exactly the same problem. Finally, I gave up
>and used binutils-2.15 and immidiately everything started to work.
>
>
>--  
>Minds, like parachutes, function best when open
>  
>
DO NOT downgrade binutils!  Binutils versions prior to 2.15.94.0.2 are 
what causes this in the first place!  Try building your initial binutils 
and gcc's dynamic instead of static and see what happens.

-J-



More information about the lfs-support mailing list