No-go, Again, Here is the binutils build:

l...@hamish-laptop:/mnt/lfs/sources/binutils-build$ CC="$LFS_TGT-gcc 
-B/tools/lib/" \
>    AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \
>    ../binutils-2.20.1/configure --prefix=/tools \
>    --disable-nls --with-lib-path=/tools/lib
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target 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 a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... i686-lfs-linux-gnu-gcc -B/tools/lib/
checking for C compiler default output file name... 
configure: error: in `/mnt/lfs/sources/binutils-build':
configure: error: C compiler cannot create executables
See `config.log' for more details.
l...@hamish-laptop:/mnt/lfs/sources/binutils-build$ echo $LFS_TGT
i686-lfs-linux-gnu




________________________________
From: William Immendorf <[email protected]>
To: LFS Support List <[email protected]>
Sent: Sun, 22 August, 2010 12:07:41 PM
Subject: Re: Binutils (Pass 2)

On Sat, Aug 21, 2010 at 8:51 PM, Hamish West <[email protected]> wrote:
> configure:2523: checking for gawk
> configure:2553: result: no
> configure:2523: checking for mawk
> configure:2539: found /usr/bin/mawk
> configure:2550: result: mawk
Well, you have mawk instead of gawk, yet (presumablly) glibc compiled.
I guess that gawk dependence was fixed, but moving on to the real
problem:
> configure:3764: checking for gcc
> configure:3791: result: -gcc -B/tools/lib/
> configure:4020: checking for C compiler version
> configure:4029: -gcc -B/tools/lib/ --version >&5
> ../binutils-2.20.1/configure: line 4031: -gcc: command not found
> configure:4040: $? = 127
> configure:4029: -gcc -B/tools/lib/ -v >&5
> ../binutils-2.20.1/configure: line 4031: -gcc: command not found
> configure:4040: $? = 127
> configure:4029: -gcc -B/tools/lib/ -V >&5
> ../binutils-2.20.1/configure: line 4031: -gcc: command not found
> configure:4040: $? = 127
> configure:4029: -gcc -B/tools/lib/ -qversion >&5
> ../binutils-2.20.1/configure: line 4031: -gcc: command not found
> configure:4040: $? = 127
> configure:4060: checking for C compiler default output file name
> configure:4082: -gcc -B/tools/lib/    conftest.c  >&5
> ../binutils-2.20.1/configure: line 4084: -gcc: command not found
Is $LFS_TGT set? Check with this command:

echo $LFS_TGT

If it just returns a blank response, then you need to source your .bashrc again:

source ~/.bashrc

Then try building Binutils again. If it errors out, then you should
examine your .bashrc.


-- 
William Immendorf
The ultimate in free computing.
Messages in plain text, please, no HTML.
GPG key ID: 1697BE98
If it's not signed, it's not from me.

--------------

"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page



      
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to