LinuxQuestions.org
Help answer threads with 0 replies.
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-13-2007, 07:50 PM   #1
LinuxNoob75
Member
 
Registered: Jan 2007
Posts: 90

Rep: Reputation: 15
Binutils Build problem


Hello.
When I run the binutils configure file, I get the following error:
Code:
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
What could be wrong? It seems that GCC isn't working
 
Old 07-13-2007, 08:09 PM   #2
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Which pass.

Which chapter of the book are you in, is this the first install, what command are you using?
 
Old 07-13-2007, 08:47 PM   #3
LinuxNoob75
Member
 
Registered: Jan 2007
Posts: 90

Original Poster
Rep: Reputation: 15
Yes, the first install chapter.
I'm using binutils/configure
 
Old 07-14-2007, 06:54 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
Hi,

A few more questions:

- What are you using as a base system?
- Does it meet the LFS Host System Requirements?
- Are you using binutils/configure or ../binutils-2.16.1/configure --prefix=/tools --disable-nls (from a separate build directory)?
- Are you building LFS 6.2 or one of the other LFS flavors?

As you probably understood, we need more detailed info. Without it we have to assume things.
 
Old 07-14-2007, 08:50 AM   #5
help_a_newbie
Member
 
Registered: May 2007
Posts: 87

Rep: Reputation: 15
Hi,
of course you have to unzip the binutils pack from the sources folder. Have you done this?
When this task is completed you will have to get into the extracted folder and then build another folder for the binutils to be built (as the book says). Then you will have to enter the binutils-build folder and then run the command ../binutils-2.16.1/configure --prefix=/tools --disable-nls. Did I miss something?

This is ONLY for the first pass of binutils. I need more information (me and everybody) to solve this problem. Plz, elaborate what have you done till now
 
Old 07-14-2007, 10:59 AM   #6
LinuxNoob75
Member
 
Registered: Jan 2007
Posts: 90

Original Poster
Rep: Reputation: 15
Thanks for your replies.Yes, I have un-zipped the binutils file, and am installing it in /binutils-build/.
My host is Ubuntu 7
I'm using LFS 6.2
help a newbie-
Yes, thats what I did.
 
Old 07-14-2007, 11:23 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
Hi,

So you did _not_ check to see if Ubuntu 7 meets the LFS Host Requirements. You should, because 'out of the box' Ubuntu does not meet these requirements.

A while back I installed (B)LFS on a MacPro using Ubuntu 6.06 as base. I did have to add some packages to Ubuntu (gawk, bison and build-essential). I'm not sure if that is still the case, you need to check that yourself (use the link I gave in post #4 . BTW: Bison and 'build-essential' are not in the list, but are both needed).

Please follow the LFS book or you will run into trouble sooner or later.

Hope this helps.
 
  


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 binutils-build error : Pass 1 ramlnx Linux From Scratch 1 07-12-2006 08:06 AM
mkdir ../binutils-build gives me "Permission Denied"!!! matthewa Linux From Scratch 16 06-29-2005 08:00 AM
oops-deleted binutils-build Barnette Linux From Scratch 2 01-14-2005 06:23 PM
Installation of binutils....can't mkdir...../binutils-build hmonster Linux From Scratch 6 08-22-2004 05:07 AM
mkdir ../binutils-build permission denied TheBman Linux From Scratch 11 02-16-2004 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:29 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