LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-27-2007, 11:58 AM   #1
sharathg786
Member
 
Registered: Sep 2005
Location: India
Distribution: Slackware, Back|track, Fedora, ubuntu
Posts: 167

Rep: Reputation: 30
errors while compiling binutils 2.16.1


Hi, I am trying to build my own linux for the 1st time, but am stuck in the early stage itself...
I use Fedora core 6 as my host system, I am referring to the LFS book ver. 6.2 and am currently in
chapter 5.3


I get these errors when I do 'make -C ld LIB_PATH=/tools/lib' i.e., after make & make install....
This is what i get in the ending part of the output: -
Code:
/tools/bin/ld: unrecognized option '--hash-style=gnu'
/tools/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make[2]: *** [ld-new] Error 1
make[2]: Leaving directory `/LFS/sources/binutils-build/ld'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/LFS/sources/binutils-build/ld'
make: *** [all-recursive-am] Error 2
make: Leaving directory `/LFS/sources/binutils-build/ld'
What could be the problem? please help, hope I've given enough details

Last edited by sharathg786; 04-27-2007 at 11:59 AM.
 
Old 04-27-2007, 12:16 PM   #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,

Although I've never tried it myself, I've read that fedora is not a good choice as a base system.
Did you do the base system check (especially binutils, which holds the ld executable)?

Hope this helps.
 
Old 04-27-2007, 10:10 PM   #3
sharathg786
Member
 
Registered: Sep 2005
Location: India
Distribution: Slackware, Back|track, Fedora, ubuntu
Posts: 167

Original Poster
Rep: Reputation: 30
I had checked the host sys requirements.... but there it said:
"Binutils-2.12 (Versions greater than 2.16.1 are not recommended as they have not been tested)"

But im having binutils-2.17.5 I knew this before but thought of trying, now what should i do, is there a way to down-grade my binutils package?
 
Old 04-28-2007, 06:04 AM   #4
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,

The best way to 'continue' (actually: start over) is to download and burn the LFS liveCD and use that as a base system (it's made for that purpose). You are in the early stages of setting up LFS, so starting over again shouldn't be that big an issue.
 
Old 05-14-2007, 05:32 AM   #5
biniou
Member
 
Registered: Feb 2007
Location: Belgium
Distribution: Ubuntu (7.04), (B)LFS (6.2), ...
Posts: 105

Rep: Reputation: 15
Hello !

In fact it's not difficult (and documented in the LFS stable errata) ...

You have to prefix the command given in the book for the "configure" part with CC="gcc -B/usr/bin" ... You'll have to do that with gcc-pass1 also ...

That's it ...

(the cause is that your host has binutils higher than 2.16.1 and it uses some parameters which are unknown to 2.16.1)
 
  


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
Compiling Binutils on FC6, with bison en flex installed DeJoos Linux From Scratch 2 02-05-2007 11:44 AM
BINUTILS 2.9.1 - Compilation errors BlueSpirit Slackware 7 08-14-2006 10:36 AM
Issue compiling binutils for the 2nd time crookt Linux From Scratch 2 03-26-2006 01:30 PM
almost finishied compiling binutils peok Linux From Scratch 2 10-14-2004 09:55 AM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 06:03 AM


All times are GMT -5. The time now is 07:27 PM.

Main Menu
Advertisement
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