I know there's a topic along very similar lines here at the moment, but this is kind of a new question.
I'm having a go at building the GCC Cross-Compiler at the moment with Binutils 2.18 and GCC 4.3.0, but have stumbled upon the GMP and MPFR error which is becoming infamous!
I re-ran Cygwin's setup with GMP, LibGMP, MPFR and LibMPFR, but still no good. So, I have cross-compiled GMP and MPFR, which seems to be OK (they are installed, no build errors in /usr/cross/lib with headers in /usr/cross/include. By default, I still got the common error message:
Code: Select all
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
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 ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html 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.
Code: Select all
Adam J@ADAMJ /usr/src/build-gcc
$ ../gcc-4.3.0/configure --target=$TARGET --prefix=$PREFIX \
--disable-nls --enable-languages=c,c++ --with-newlib \
--without-headers --with-gmp=$PREFIX --with-mpfr=$PREFIX
Any ideas what I should be doing differently? I seem to have working library paths which I am pointing GCC to in exactly the way stated on the GNU site.
Cheers,
Adam