I am using LFS 7.3.   following the instructions given on pages 37-8 for
first time GCC compilation.
I get the following error:

checking for objdir... .libs
checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC
0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.


The error message isn't a huge surprise because I don't see GMP mentioned
in the instructions.
That is, I have unpacked GMP, MPFR, and MPC but the command line given on
page 38 of the book is this:

../gcc-4.7.2/configure\
--target=$LFS_TGT\
--prefix=/tools\
--with-sysroot=$LFS
\--with-newlib
\--without-headers
\--with-local-prefix=/tools \
--with-native-system-header-dir=/tools/include \
--disable-nls
\--disable-shared
\--disable-multilib
\--disable-decimal-float
\--disable-threads
\--disable-libmudflap
\--disable-libssp
\--disable-libgomp
\--disable-libquadmath
\--enable-languages=c
\--with-mpfr-include=$(pwd)/../gcc-4.7.2/mpfr/src \
--with-mpfr-lib=$(pwd)/mpfr/src/.libs


THere is no mention of GMP or MPC on the command line.  Is this a mistake
in the text?  What am I doing wrong?
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to