Thanks very much for your help. What I don't understand, about the absence of gmp.h is: where *should* it be, and why is it absent. Here's what I have done: Downloaded built and installed the never version of gmake (3.8.2) rather than 3.8.1. This seems fine. If I do this step: ./contrib/download_prerequisites, it does indeed create a subdirectory called gmp-4.3.2, and a symbolic link of gmp to that subdirectory. However, searching inside the directory, there is no file called gmp.h. And this of course is the error message I get when I attempt to gmake 4.7.1. Is there something else I need to do? Note, I had earlier (a few weeks ago) installed gmp, mpc and mpfr libraries, but if I understand correctly, the build should ignore those and use the ones I download via download_prerequisites. Is that right? Any help is, once again, appreciated. PB -----Original Message----- From: Georg-Johann Lay [mailto:gjl@xxxxxxxxxxx] Sent: July 27, 2012 01:11 To: Philip Boulton Cc: gcc-help@xxxxxxxxxxx Subject: Re: Failing to build gcc 4.7.1 Philip Boulton schrieb: > Working on FreeBSD8.1, in a jailed environment. I have an ancient > (gcc3.4.6) version of gcc that works as my C compiler. gmake version 3.8.1 One I hit a problem with that make version and I had to upgrade to 3.8.2. Dunno remember the exact problem. > I do the following, as root: >> tar zxf gcc-4.7.1.tar.gz >> cd gcc-4.7.1 >> ls -atlG contrib/downl* >> ./contrib/download_prerequisites <-- seems to work This should generate soft links gmp, mpc, mpfr to the respective, just downloaded source packages. >> ./contrib/download_ecj <-- seems to work >> cd .. >> mkdir obj_gcc471 >> cd obj_gcc471 >> ../gcc-4.7.1/configure <-- runs successfully. Read what gmp, mpfr, mpc is uses in its output or config.log. >> gmake > > During the make process, I get the following error: > > checking for math/rint... yes > checking for long double... yes > checking format of `long double' floating point... IEEE extended, little > endian > checking for gmp.h... no > configure: error: gmp.h can't be found, or is unusable. > gmake[2]: *** [configure-stage1-mpfr] Error 1 > gmake[2]: Leaving directory `/usr/src/local/obj_gcc471' > gmake[1]: *** [stage1-bubble] Error 2 > gmake[1]: Leaving directory `/usr/src/local/obj_gcc471' > > N.B., gmp.h is *not* present anywhere in gcc-4.7.1 after the > download_prerequisites. Should it be? Yes, follow the gmp soft link in GCC's top level sources as mentioned above. Johann > Any help is appreciated, > > Thanks. > > PB