FW: Configuring fails on missing mpc.h on Mac OS 10.5.8
Tobias Schlüter
Tobias.Schlueter@physik.uni-muenchen.de
Thu Dec 17 15:51:00 GMT 2009
Hi Damian,
Rouson, Damian wrote:
> I have now downloaded mpc 0.8.1 and installed it. Now make, make install,
> and make check all go through fine and configure finds mpc.h, but I think
> it¹s failing to find the mpc executable:
>
> checking for correct version of gmp.h... yes
> checking for correct version of mpfr.h... yes
> checking for the correct version of mpc.h... yes
> checking for the correct version of the gmp/mpfr/mpc libraries... no
> configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.2+ 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.
>
> I have gmp 4.3.1 and mpfr 2.4.1. Thoughts?
I've seen similar confusing errors when the configure process picked up
old versions of the libraries that were installed in some unexpected
places. As, say, mpfr requires gmp, both (using a hopefully obvious
notation) $WITH_GMP_DIR/include and $WITH_MPFR_DIR/include will be
passed to the compiler as parts of the include search path (i.e. -I).
So if you have an old version of mpfr in $WITH_GMP_DIR, this will be
picked up instead of the newer version of $WITH_MPFR_DIR (or vice versa,
depending of the ordering of the command line). So I guess you should
try uninstalling any old versions of these libraries that are lying
around, or try installing all new versions in one place, and then simply
using --with-gmp to point to them once and for all.
Hope this helps,
- Tobi
>
> Cheers,
> Damian
>
>
>
> On 12/17/09 6:37 AM, "Janus Weil" <janus@gcc.gnu.org> wrote:
>
>> Hi Damian,
>>
>>> I just did an svn update and also tried a fresh checkout, but both fail to
>>> configure because configure can't find mpc.h. Is this a new requirement? I
>>> never needed it before.
>> Yes, it is new, see http://gcc.gnu.org/ml/gcc/2009-11/msg00823.html.
>>
>>
>>> I'm on Mac OS 10.5.8. My configure line and the
>>> tail of the output are below. I installed mpc via macports, but it didn't
>>> seem to install mpc.h.
>> I think the 'mpc' that you find in macports is a different thing than
>> what GCC requires (namely some kind of audio tool). Try 'port info
>> mpc'. I have not been able to find mpc (the multi-precision library
>> for complex numbers) in the macports repo.
>>
>> You should consider building mpc from source (available from
>> http://www.multiprecision.org/).
>>
>> Cheers,
>> Janus
>>
>>
>
> ------ End of Forwarded Message
>
>
--
Tobias Schlüter
Am Coulombwall 1, Zi. 326
85748 Garching b. München
Tel.: +49/89/289-14139
More information about the Fortran
mailing list