Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-18-2004, 12:41 PM   #1
Registered: Aug 2003
Location: United States
Distribution: Mandriva 2006
Posts: 59

Rep: Reputation: 15
make glibc error (LFS)

I am working on Linux From Scratch 6.0
I tried compiling glibc 2.3.4-20040701 (the version used in the book), and version 2.3.3 but both return the following error after typing 'make' :

a - login/updwtmpx.os
a - login/getutmpx.os
a - login/getutmp.os
a - elf/dl-open.os
a - elf/dl-close.os
a - elf/dl-iteratephdr.os
a - elf/dl-addr.os
a - elf/dl-profstub.os
a - elf/dl-libc.os
a - elf/dl-sym.os
a - elf/dl-tsd.os
a - elf/unwind-dw2-fde-glibc.os
a - elf/framestate.os
: /LFS/sources/glibc-build/libc_pic.a
gcc -B/tools/bin/ -nostdlib -nostartfiles -r -o /LFS/sources/glibc-build/elf/ '-Wl,-(' /LFS/sources/glibc-build/elf/dl-allobjs.os /LFS/sources/glibc-build/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/LFS/sources/glibc-build/elf/librtld.mapT
/tools/bin/ld: errno: TLS definition in /LFS/sources/glibc-build/libc_pic.a(errno.os) section .tbss mismatches non-TLS reference in /LFS/sources/glibc-build/elf/dl-allobjs.os
/LFS/sources/glibc-build/libc_pic.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [/LFS/sources/glibc-build/elf/] Error 1
make[2]: Leaving directory `/LFS/sources/glibc-2.3.3/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/LFS/sources/glibc-2.3.3'
make: *** [all] Error 2
[root@localhost glibc-build]#

LFS is mounted at '/LFS' ,
glibc is being built in 'glibc-build',
LFS binutils compiled =
Host operating system = mandrake 10.0 (2.6.3-7mdk)

I looked around on their FAQ's and used their search engine but couldn't find anything. I then tried google and found the following page:
It says the patch should fix it but i'm not sure how to use it. My best guess to how to fix this would be a patch. There are also a few glibc and binutils patches on the LFS site but i'm not sure which ones i should use.

Any help would be greatly appreciated!!!
Old 12-18-2004, 12:53 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Did you follow the binutils build directions exactly as specified in the book (same options and everything)? It looks like ld is not handling your libraries correctly. my experience with LFS (4.1 I think it was) are that subtle changes in the build process to other than what the book suggests can cause breakage down the road. I had this problem, and usually re-building the package depnded on fixed it.

Edited to add: You might get better responses if you ask a mod to move this to the Linux From Scratch forum.

Last edited by btmiller; 12-18-2004 at 12:54 PM.
Old 12-18-2004, 01:02 PM   #3
Registered: Aug 2003
Location: United States
Distribution: Mandriva 2006
Posts: 59

Original Poster
Rep: Reputation: 15
Here is the list of commands i used when compiling binutils:

mkdir ../binutils-build
cd ../binutils-build
../binutils- --prefix=/tools --disable-nls
make configure-host
make LDFLAGS="-all-static"
make install
make -C ld clean
make -C ld LDFLAGS="-all-static" LIB_PATH=/tools/lib

i did not get any errors or warning. do you suggest i download the exact version of binutils as used in the book (
i will try recompiling everything again as i did above.

-i didnt even know there was as LFS section on this but next time i'll post there instead..
Old 12-21-2004, 11:30 AM   #4
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Rep: Reputation: 15
I've had strange problems when building LFS5.1.1 specification while "attempting" to use binutils-2.15.*, Try using binutils-2.14 and see what happens.

Also, make sure to have set +h in your lfs users .bashrc file.
Without that, the system won't use the /tools version of binutils..which could cause this problem


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS 6, chapter 6.11; Glibc 'make check' error Zamochit Linux From Scratch 5 05-31-2005 12:54 PM
Error in Glibc Chapter-6 LFS ver-6..Help pls?? chakkaradeepcc Linux From Scratch 10 05-23-2005 12:33 PM
glibc-2.3.3-lfs-5.1 error Zamochit Linux From Scratch 8 01-13-2005 06:00 AM
Glibc make error jarin scott Linux - Software 3 08-16-2003 10:36 AM
LFS 3.3 - chapter 6 - glibc error fend88 Linux From Scratch 5 04-28-2002 11:06 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration