LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 11-29-2010, 11:14 AM   #1
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Rep: Reputation: 16
binutils question


I'm trying to build LFS on a fedora 14 virtual machine.
I'm trying to install binutils so I run

Code:
./configure --target=$LFS_TGT --prefix=/tools --disable-nls --disable-werror
And I get:
Code:
checking build system type... ./config.guess: unable to guess system type

This script, last modified 2009-06-10, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2009-06-10

uname -m = i686
uname -r = 2.6.35.6-45.fc14.i686
uname -s = Linux
uname -v = #1 SMP Mon Oct 18 23:56:17 UTC 2010

/usr/bin/uname -p = 
/bin/uname -X     = 

hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = i686
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 

UNAME_MACHINE = i686
UNAME_RELEASE = 2.6.35.6-45.fc14.i686
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 SMP Mon Oct 18 23:56:17 UTC 2010
configure: error: cannot guess build type; you must specify one
Note that my LFS_TGT is:
Code:
echo $LFS_TGT
i686-lfs-linux-gnu


I then read somewhere that I should change the --target to --build, so then I do:
Code:
 ./configure --build=$LFS_TGT --prefix=/tools --disable-nls --disable-werror
And get:

Code:
checking build system type... ./config.guess: unable to guess system type

This script, last modified 2009-06-10, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2009-06-10

uname -m = i686
uname -r = 2.6.35.6-45.fc14.i686
uname -s = Linux
uname -v = #1 SMP Mon Oct 18 23:56:17 UTC 2010

/usr/bin/uname -p = 
/bin/uname -X     = 

hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = i686
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 

UNAME_MACHINE = i686
UNAME_RELEASE = 2.6.35.6-45.fc14.i686
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 SMP Mon Oct 18 23:56:17 UTC 2010
configure: error: cannot guess build type; you must specify one
root:/mnt/lfs/sources/binutils-2.20.1# 
root:/mnt/lfs/sources/binutils-2.20.1# ./configure --build=$LFS_TGT --prefix=/tools --disable-nls --disable-werror
checking build system type... i686-lfs-linux-gnu
checking host system type... i686-lfs-linux-gnu
checking target system type... i686-lfs-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 a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/mnt/lfs/sources/binutils-2.20.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.


Question 1:
How do I specify my target type?

Question 2:
The last output tells me:
Code:
no acceptable C compiler found in $PATH
so I do
Code:
which gcc
/usr/bin/which: no gcc in (/tools/bin:/bin:/usr/bin)
Should my Fedora 14 not come with a default gcc compiler???

Thanks
 
Old 11-29-2010, 11:43 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Answer to question 1: Your target type is already set (4.4. Setting Up the Environment - .bashrc).

If you follow the book you see that compiling binutils is not started with the command you posted, but with this:
Code:
../binutils-2.20.1/configure --target=$LFS_TGT --prefix=/tools --disable-nls --disable-werror
That's done after you unpack binutils, enter the created directory and create a working directory. It also takes care of the target type.

Answer to question number 2: Out of the box Fedora is not compliant to be a host for LFS. Re-do this part of the book: vii. Host System Requirements. You probably need to install some packages to be fully compliant.

Hope this helps.
 
Old 12-01-2010, 07:04 PM   #3
jepD
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
Smile install gcc-c++

You may install gcc-c++ that will resolved your concern

you may command yum install gcc-c++

I just setup clam today and i experienced that concern too and installed gcc-c++

im not sure with fedora i think you will use sudo yum install command, im just new to linux

Cheers^___^
 
  


Reply



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
nvidia display drivers installation error with binutils, binutils allready installed mandrakeBren Linux - Newbie 9 01-06-2009 12:52 PM
question about installing binutils-2.17 curt22 Linux From Scratch 4 06-12-2008 04:51 PM
binutils EAD Linux - Software 3 03-06-2006 10:39 AM
Installation of binutils....can't mkdir...../binutils-build hmonster Linux From Scratch 6 08-22-2004 04:07 AM
binutils, ld, and path question TT120 Linux - Newbie 1 05-30-2004 08:40 AM

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

All times are GMT -5. The time now is 04:41 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
Open Source Consulting | Domain Registration