LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2008, 05:04 PM   #1
rosster
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
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.
 
Old 07-20-2008, 05:21 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

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


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
binutils in lfs saritha Linux From Scratch 4 02-02-2008 04:24 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 01:31 AM
LFS 6.1 step 5.7: "ld: no input file" when compiling dummy.c zonk Linux From Scratch 6 09-05-2005 02:51 AM
Trouble compiling kernel, mkinitrd step shrndegruv Linux - Software 3 01-23-2005 01:57 AM
Does anyone have a good step by step on compiling a Kernel? Kramer Linux - Hardware 5 10-06-2003 06:51 PM


All times are GMT -5. The time now is 10:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration