LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trouble compiling Binutils in LFS step. (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-compiling-binutils-in-lfs-step-657038/)

rosster 07-20-2008 04:04 PM

Trouble compiling Binutils in LFS step.
 
I get an error that says no cc (I'm guessing C compiler) is found on my system, when trying to compile binutils. I'm following through the linux from scratch guide, and have a fresh installation of openSUSE 11.

binutils is located on another partitions (seperate from my host system.)

I'm using the command:

CC="gcc -B/usr/bin" ../binutils-2.17/configure \ --prefix=/tools --disable-nls --disable-werror

and the errors i get are:

checking for gcc... gcc -B/usr/bin/
checking whether the C compiler (gcc -B/usr/bin/ ) works... no
configure: error: installation or configuration problem: C compiler cannot create executable.

Also it has problems with the prefix=/tools part, saying:

checking host system type... config.sub: invalid option --prefix=/tools
Try 'config.sub --help' for more information.

As far as I know, I haven't deviated at all from the book. I'm sure there has to be a compiler in openSUSE, it probably just can't find it...but I'm not sure how to fix it.

weibullguy 07-20-2008 04:21 PM

Did you execute the version-check.sh script found on this page of LFS --> http://www.linuxfromscratch.org/lfs/.../hostreqs.html


All times are GMT -5. The time now is 02:59 AM.