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