LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Error GCC - pass 2 [Chapter 5.10] (https://www.linuxquestions.org/questions/linux-from-scratch-13/error-gcc-pass-2-%5Bchapter-5-10%5D-753014/)

manya 09-05-2009 11:45 PM

Error GCC - pass 2 [Chapter 5.10]
 
1 Attachment(s)
Can some one help me here to rectify the GCC error.

Configuring in i686-pc-linux-gnu/libstdc++-v3
configure: creating cache ./config.cache
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 build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... //mnt/lfs/sources/GCC/./gcc/xgcc -B//mnt/lfs/sources/GCC/./gcc/ -B/tools/i686-pc-linux-gnu/bin/ -B/tools/i686-pc-linux-gnu/lib/ -isystem /tools/i686-pc-linux-gnu/include -isystem /tools/i686-pc-linux-gnu/sys-include
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/GCC'
make: *** [all] Error 2

I have attached config.log file herewith.

Please let me know if you find anything.

EricTRA 09-06-2009 01:42 AM

Hello,

In chapter 5.5 compiling GCC for the first pass, the book mentions
Code:

tar -jxf ../mpfr-2.4.1.tar.bz2
mv -v mpfr-2.4.1 mpfr
tar -jxf ../gmp-4.3.1.tar.bz2
mv -v gmp-4.3.1 gmp

Did you perform those commands and check that you had a subdirectory mpfr and gmp in $LFS/sources/GCC-4.4.1/ directory? From your log file it looks like gmp.h is missing what makes me assume something went wrong in that step in chapter 5.5.

Mind you, I might be terribly mistaking since I started with LFS a week ago and am not experienced at all with LFS, but in a week I learned some things already.

Kind regards,

Eric


All times are GMT -5. The time now is 09:26 PM.