LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 07-11-2006, 02:21 PM   #1
ramlnx
LQ Newbie
 
Registered: Jul 2006
Location: Bangalore
Posts: 1

Rep: Reputation: 0
LFS binutils-build error : Pass 1


Am following instructions given in LFS v6.1.1 PDF and getting this error while compiling binutils-build.

/tools/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../libc.so: file format not recognized; treating as linker script
/tools/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../libc.so:5: syntax error
collect2: ld returned 1 exit status
make[2]: *** [ld-new] Error 1

Did not have any problems in running, "configure, make, make install, make -C ld clean".
But this error is noticed while running, "make -C ld LIB_PATH=/tools/lib".

Searching (Googling) the net for such error revealed these answers but am not sure what the solution :

"libc.so.5 is too old. You'll need to install a distro which uses libc.so.6 if you want to install LFS"

"libc.so:5 : syntax error means that the script /usr/lib/libc.so is wrong at line 5.
Just log in as root and temporarily change the line 5 from
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld-linux.so.2 )
to GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )"

Could someone pls. help me ?
--
Ram
 
Old 07-12-2006, 07:06 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Your base/host system is probably not up to specs.

Try using the LFS liveCD as base/host.

BTW: Found this, which generally says the same thing (answer 4 and 5):

LFS libc.so.5/6 LQ Thread
 
  


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-5.0 GCC problem with binutils-2.14 pass 1 NCappaZoo Linux From Scratch 6 06-14-2009 03:47 AM
5.14. Binutils-2.15.91.0.2 - Pass 2 error! Flash_G Linux From Scratch 5 08-20-2006 06:02 AM
building Binutils-2.14 pass 1 (LFS 5.1.1) alihamza Linux From Scratch 1 10-10-2005 07:37 AM
binutils first pass make install failure in LFS-6.0 dibyadeep Linux From Scratch 3 01-05-2005 03:34 PM
LFS 5.1.1: another problem after binutils pass 2 7.e.Q Linux From Scratch 1 07-12-2004 04:37 AM


All times are GMT -5. The time now is 09:46 PM.

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