Hello. This is my first time doing an LFS build. The page to which I am referring to in the book is:
http://www.nl.linuxfromscratch.org/l...gcc-pass1.html
I have tried to stay as true to the directions as possible. I untarred gmp, mpc, and mpfr into the gcc-4.5.1 directory. I followed the directions as best I could, but no matter what I do, and I can't get gcc to compile properly.
As an additional note, I compiled binutils properly (as far as I know).
After doing the configure, and make, I get the following errors:
checking format of `long double' floating point... IEEE extended, little endian
checking for gmp.h... no
configure: error: gmp.h can't be found, or is unusable.
make[1]: *** [configure-mpfr] Error 1
make[1]: Leaving directory `/mnt/lfs/gcc-build/gcc-4.5.1'
make: *** [all] Error 2
The configure always seems to go correctly. I get the error above after I do 'make'. I assume that the main problem is that it can't find gmp.h. I initially assumed that it could have been that I downloaded a corrupted gmp-5.0.1.tar.bz2 because I couldn't find a gmp.h in it. After downloading it again, I still couldn't find it. After several more tries I reformatted the lfs drives a few times, restarting the project, but still always get the same error. Below a person had nearly an identical problem:
http://www.linuxquestions.org/questi...-5-1-a-837108/
But, the solution of the above url does not work for me. I followed the directions almost exactly, but the user in the url above deviated slightly which was the error.
Any and all help is appreciated.
Thanks