Installing GMP on Sierra with Xcode 9

Lucas.Pettey at Lucas.Pettey at
Thu Oct 5 13:20:29 UTC 2017

I am trying to install gcc7 and gmp is a dependency.

The following message is received when trying to build gmp on Sierra with Xcode 9.0:

---> Configuring gmp Error: Failed to configure gmp, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.1.2/config.log

I will attach the whole log for reference, but the last lines of the log file indicate an issue with clang++:

:info:configure checking whether we are using the GNU C++ compiler... yes

:info:configure checking whether /usr/bin/clang++ -stdlib=libc++ accepts -g... yes

:info:configure checking C++ compiler /usr/bin/clang++ -stdlib=libc++ -I/opt/local/include -O2 -pedantic -fomit-frame-pointer -m64 -mtune=sandybridge -march=sandybridge... no, std iostream

:info:configure checking C++ compiler /usr/bin/clang++ -stdlib=libc++ -I/opt/local/include -g -O2... no, std iostream :info:configure configure: error: C++ compiler not available, see config.log for details :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.1.2" && ./configure --prefix=/opt/local --enable-cxx :info:configure Exit code: 1

I have created a ticket, but thought I might check with this list as well.

Lucas Pettey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.log
Type: application/octet-stream
Size: 10977 bytes
Desc: main.log
URL: <>

More information about the macports-users mailing list