Setting up a Cross Compiler
Posted: Sat May 24, 2008 3:10 pm
I was following the cross compiler tutorial verbatim and ran into a roadblock when configuring gcc:
cygwin doesn't install libgmp and libmpfr by default so I had to hunt them down. I don't know if this would qualify as something wikiworthy, but while gcc-core, bison, flex, etc are listed under the DEVEL category in cygwin, libgmp and libmpfr are under the LIBS category.
edit: you might think to yourself, "well duh, libgmp is under LIBS because it's a lib, and gcc is under devel because it's a dev-tool, dummy" While that is true, it becomes confusing because there are also libs under devel and devel tools under libs.
Code: Select all
checking for correct version of gmp.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.
edit: you might think to yourself, "well duh, libgmp is under LIBS because it's a lib, and gcc is under devel because it's a dev-tool, dummy" While that is true, it becomes confusing because there are also libs under devel and devel tools under libs.