LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   errors while compiling binutils 2.16.1 (https://www.linuxquestions.org/questions/linux-from-scratch-13/errors-while-compiling-binutils-2-16-1-a-549502/)

sharathg786 04-27-2007 10:58 AM

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

druuna 04-27-2007 11:16 AM

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.

sharathg786 04-27-2007 09:10 PM

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?

druuna 04-28-2007 05:04 AM

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.

biniou 05-14-2007 04:32 AM

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)


All times are GMT -5. The time now is 04:18 AM.