LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 15
make glibc error (LFS)


Hey
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/librtld.map.o '-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/librtld.map] 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 = 2.15.94.0.1...
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:
http://sources.redhat.com/ml/libc-al.../msg00016.html
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
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,109

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
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
gatblast45
Member
 
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-2.15.94.0.1/configure --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 (2.15.91.0.2)?
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
Yerp
Member
 
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
 
  


Reply


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


All times are GMT -5. The time now is 01:03 AM.

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