Fwd: [Info] LFS Temp System - GCC 4.5.0 with MPFR > 2.4.2
kingmilo at gmail.com
Wed Sep 22 07:39:47 PDT 2010
I came across this post and thought it should be noted, (somewhat
attempted by yourself Thibaud F.), along with what seems like many other
people out there struggling with the building of GCC-4.x.x in chapter
6.1.6 of Linux from Scratch.
If you run into the problem noted on this mailing list;
checking for gmp internal files... configure: error: header files
gmp-impl.h and longlong.h not found
As well as another common problem on the lists where you GCC build fails
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make: *** [configure-target-libgcc] Error 1
make: Leaving directory `/gcc-build'
make: *** [all] Error 2
Then it is most likely because you have failed to remove your GCC-4.x.x
source directory after your initial build of GCC in Chapter 5.5.
This is noted in the LFS Documentation but somewhat ignored because
following the documentation step by step does not reiterate removing the
source folder for every package installed, and it shouldn’t have to.
To resolve the above make fails you must;
1.) Remove the gcc-4.x.x folder in /mnt/$LFS/sources/
2.) Remove the gcc-build folder in /mnt/$LFS/sources/
3.) Extract the gcc-4.x.x archive in /mnt/$LFS/sources/
4.) Continue to follow the steps outlined in Chapter 6.1.6 of the LFS
More information about the lfs-dev