Build failure for 5.1.0-RC2 on Mac OS 10.8

Hans Aberg haberg-1 at
Tue Dec 11 13:07:08 CET 2012

On 11 Dec 2012, at 10:29, Marcin Gozdalik wrote:

> Thanks for heads up. I do have latest Xcode and command line tools installed - how do I switch the default to new compiler?

One can give configure an option (see this file), or before running it (in bash):
 export CC=/usr/bin/cc CXX=/usr/bin/c++
CXX is only needed if you do the C++ stuff.

Another tip is to build without the source directory, which is required when building GCC:
 tar -xf <package-distribution>
 mkdir build
 cd build
 export CC=/usr/bin/cc CXX=/usr/bin/c++

This one is useful when doing several different builds, like trying different compilers, as the package source isn't touched.


More information about the gmp-bugs mailing list