Tests fail using Apple's LLVM

Hans Aberg haberg-1 at telia.com
Wed Dec 21 14:36:31 CET 2011

On 21 Dec 2011, at 12:45, Corin Lawson wrote:

> Thanks for your good work on GMP, I'll try and include all the info I can
> in this bug report. Maybe it has something to do with Apple's LLVM
> compiler...
> UPDATE: Having compiled all the info below I thought to try `CC=gcc-4.2
> ./configure` and all the tests pass now. Maybe you can add a quick fix to
> the configure script. Thanks.

Are you using Xcode 4 installed on top of Xcode 3 on OS X 10.7? Then use clang for gmp-5.0.2 (/use/bon/gcc is actually llvm-gcc-4.2). The gcc-4.2 comes from Xcode 3, and is not present in a clean install. (If somebody wants to try, gcc 4.6.2 compiles.)


More information about the gmp-bugs mailing list