Working my way thru the book (ver 7) with openSUSE 12.1 as my host and things have gone very well up until now. The test at the end of 5.8 worked exactly as written and the Installation of Binutils in 5.9.1 went without errors.
But 5.10.1 (Installation of GCC) is not going well. Everything goes well until I run 'make'. After lots of encouraging-looking grinding, make stops on this:
checking for MPFR... no
configure: error: libmpfr not found or uses a different ABI.
make[1]: *** [configure-mpc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
lfs:/mnt/lfs/sources/gcc-build$
As instructed, mpfr-3.1.0 has been unzipped into /mnt/lfs/sources/gcc-4.6.2/mpfr (as has gmp and mpc)
Here is the CC line I am using right before the 'make':
CC="$LFS_TGT-gcc -B/tools/lib/" AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib ../gcc-4.6.2/configure --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp --without-ppl --without-cloog --with-mpfr-include=$(pwd)/../gcc-4.6.2/mpfr/src --with-mpfr-lib=$(pwd)/../gcc-4.6.2/mpfr/src/.libs
It does differ from the book in a few ways; 1) it uses gcc-4.6.2 instead of gcc-4.6.1 in the paths and 2) the --with-mpfr-lib directive uses a different path than in the book because the one in the book points to a non-existent location.
Why does 'make' not find libmpfr?
Thank you for your time,
Dave