Chris Staub chris at
Fri Jan 8 20:09:44 PST 2010

On 01/08/2010 08:28 PM, Hamish West wrote:
> configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
> Try the --with-gmp and/or --with-mpfr options to specify their locations.
> Copies of these libraries' source code can be found at their respective
> hosting sites as well as at
> See also for additional info.
> If you obtained GMP and/or MPFR 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.
> My host is Ubuntu 9.10
> Thanks in advance,
> Hamish
The solution is exactly the same as for the Binutils problem (though you 
didn't say how you fixed the Binutils issue, and if you are having 
problems with GCC now, you apparently didn't do what you were supposed 
to with Binutils either). Read page 5.3 *very* carefully. One thing it 
says is that for each package, you are to unpack the source tarball, cd 
into the source dir, then follow the instructions on the page. 
Therefore, you should be in the GCC source dir when you are unpacking 
GMP and MPFR. The exact same principle applies to every other package in 
the rest of the book.

More information about the lfs-support mailing list