[lfs-support] gcc compile phase 2 error

Ashkan Rahmani ashkan82r at gmail.com
Wed Sep 5 22:14:02 PDT 2012

hi every body

I have some problem in gcc compile phase 2.

as mentioned in book i try to configure gcc by this command:

CC=$LFS_TGT-gcc \
--with-local-prefix=/tools \
--with-native-system-header-dir=/tools/include \
--with-mpfr-include=$(pwd)/../gcc-4.7.1/mpfr/src \

but i got this error (this is complete output):

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-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 libitm support... yes
checking for gcc... x86_64-lfs-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.

beside it I have other problems:
1- Some times it seems something cause $FSL variable became empty. and I
have to set it again.
2- checking build system type... x86_64-unknown-linux-gnu: why unknown

Host info: Ubuntu 12.4 x86_64

Best Regards,
Ashkan R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20120906/70005382/attachment.html>

More information about the lfs-support mailing list