Thanks for the reply. I definitely set them last night, and I just
tried again this morning, checking them before configuring:
lfs@voxbox-dev:/mnt/lfs/sources/binutils-build$ CC=$LFS_TGT-gcc
lfs@voxbox-dev:/mnt/lfs/sources/binutils-build$ AR=$LFS_TGT-ar
lfs@voxbox-dev:/mnt/lfs/sources/binutils-build$ RANLIB=$LFS_TGT-ranlib
lfs@voxbox-dev:/mnt/lfs/sources/binutils-build$ echo $CC $AR $RANLIB
x86_64-lfs-linux-gnu-gcc x86_64-lfs-linux-gnu-ar
x86_64-lfs-linux-gnu-ranlib
..same error on configure.
The LFS_TGT is set directly from the .bashrc, which I copy/pasted
straight out of the book. Something interesting:
lfs@voxbox-dev:/mnt/lfs/tools$ ls
bin include lib64 sbin var x86_64-unknown-linux-gnu
etc lib libexec share x86_64-lfs-linux-gnu
That unknown-linux stuff might however be left over from when I tried
to make (and I guess make install) binutils after missing that error
the first time. I've got to stop trying this stuff so late in the
evening.
But anyway, tools/bin seems to have the necessary stuff:
lfs@voxbox-dev:/mnt/lfs/tools/bin$ ls x86_64-lfs-linux-gnu-gcc*
x86_64-lfs-linux-gnu-gcc x86_64-lfs-linux-gnu-gcc-ar
x86_64-lfs-linux-gnu-gcc-ranlib
x86_64-lfs-linux-gnu-gcc-4.7.2 x86_64-lfs-linux-gnu-gcc-nm
lfs@voxbox-dev:/mnt/lfs/tools/bin$ echo $PATH
/tools/bin:/bin:/usr/bin
Maybe I screwed up one of the previous stages, and something bad got
hard coded? I'm trying this all without a clear head, so maybe I should
start over when I feel more up to it.
On Thu, 4 Apr, 2013 at 10:29 PM, Pierre Labastie
<pierre.labas...@neuf.fr> wrote:
Le 04/04/2013 23:05, Alex Stefan Kaye a écrit :
Hi all,
I've just started my LFS journey, and I've hit upon a problem when
running configure during binutils pass 2. I've not deviated from
the
book at all (discounting any mistakes I've not noticed - it's late
here, but I've been careful).
The error:
checking for C compiler default output file name...
configure: error: in `/mnt/lfs/sources/binutils-build':
configure: error: C compiler cannot create executables
From your config.log:
configure:3767: checking for gcc
configure:3783: found /usr/bin/gcc
configure should find x86_64-lfs-linux-gnu-gcc!
Have you typed the three lines:
CC=$LFS_TGT-gcc \
AR=$LFS_TGT-ar \
RANLIB=$LFS_TGT-ranlib \
before configure?
Or Maybe $LFS_TGT is not set correctly.
Pierre
--
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