gmp refuses to build c++ headers

John Perry John.Perry at
Wed Aug 5 21:57:01 UTC 2020


Thank you for pointing out that oversight. The compiler version reports:

Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/

If it matters, I can also indicate:

$make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

This program built for i386-apple-darwin11.3.0

However, deleting the directory, then re-extracting, seems to have fixed the problem. I’ve tried to reproduce it several times since, to no avail.

john perry

> On Aug 5, 2020, at 3:28 AM, Hans Åberg <haberg-1 at> wrote:
>> On 5 Aug 2020, at 09:41, Emmanuel Thomé <emmanuel.thome at> wrote:
>> My gmp-6.2.0, on MacOS 10.15, compiles fine with the configure command
>> line you provided.
>> Exactly as you said: I downloaded the file from GMP’s website,
>> unpacked it, changed to the directory, then:
>>  ./configure CC=clang CXX=clang++ --enable-cxx
>>  make
> There is an ambiguity here, as we do not get to know which clang: In the original installation, it and gcc both point to the Apple inhouse version of clang.
> The report should also have given the result of 'clang --version'.

More information about the gmp-discuss mailing list