[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 \
AR=$LFS_TGT-ar\
RANLIB=$LFS_TGT-ranlib\
../gcc-4.7.1/configure\
--prefix=/tools\
--with-local-prefix=/tools \
--with-native-system-header-dir=/tools/include \
--enable-clocale=gnu\
--enable-shared\
--enable-threads=posix\
--enable-__cxa_atexit\
--enable-languages=c,c++\
--disable-libstdcxx-pch\
--disable-multilib\
--disable-bootstrap\
--disable-libgomp\
--with-mpfr-include=$(pwd)/../gcc-4.7.1/mpfr/src \
--with-mpfr-lib=$(pwd)/mpfr/src/.libs

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
`/mnt/lfs/sources/gcc-build':
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
linux?!

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