gmp-6.0.0a builds correctly with gcc (Gentoo 4.2.1_p5666-r1, Apple Inc. build 5666), but with clang (3.5.0) the following error is generated: libtool: compile: /opt/gentoo/usr/bin/clang -DHAVE_CONFIG_H -I. -I/Volumes/Scratch/tmp/portage/dev-libs/gmp-6.0.0a/work/gmp-6.0.0/mpn -I.. -D__GMP_WITHIN_GMP -I/Volumes/Scratch/tmp/portage/dev-libs/gmp-6.0.0a/work/gmp-6.0.0 -DOPERATION_powm -arch x86_64 -march=core-avx-i -mmacosx-version-min=10.9 -fcolor-diagnostics -ftrapv -O3 -pipe -c powm.c -fno-common -DPIC -o .libs/powm.o tmp-redc_1.s:139:17: error: invalid reassignment of non-absolute variable 'L0m4_tmp' .set L0m4_tmp, L0m4-Ltab ^ Makefile:682: recipe for target 'redc_1.lo' failed make[2]: *** [redc_1.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/Volumes/Scratch/tmp/portage/dev-libs/gmp-6.0.0a/work/gmp-6.0.0-.amd64/mpn' Makefile:849: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/Volumes/Scratch/tmp/portage/dev-libs/gmp-6.0.0a/work/gmp-6.0.0-.amd64' Makefile:672: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: dev-libs/gmp-6.0.0a::gentoo_prefix failed (compile phase): * emake failed ... additionally, building with GCC, the following QA error is generated: * QA Notice: command not found: * * /Volumes/Scratch/tmp/portage/dev-libs/gmp-6.0.0a/temp/environment: line 2903: --disable-static: command not found $ emerge --info gmp Portage 2.2.10.1-prefix (python 2.7.6-final-0, prefix/darwin/macos/10.9/x64, gcc-4.2.1, unavailable, 14.0.0 x86_64) ================================================================= System Settings ================================================================= System uname: Darwin-14.0.0-x86_64-i386-64bit Timestamp of tree: Tue, 21 Oct 2014 19:53:32 +0000 app-shells/bash: 4.2_p53 dev-lang/perl: 5.20.1-r1 dev-lang/python: 2.7.6-r1 dev-util/cmake: 3.0.2 dev-util/pkgconfig: 0.28-r2 sys-devel/autoconf: 2.69 sys-devel/automake: 1.14.1 sys-devel/gcc-config: 1.8-r00.1 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.1 ================================================================= Package Settings ================================================================= dev-libs/gmp-6.0.0a was built with the following: USE="cxx (prefix) -doc -pgo -static-libs" CFLAGS="-march=core2 -msse4.2 -mssse3 -mfpmath=sse -msseregparm -O2 -pipe" CXXFLAGS="-march=core2 -msse4.2 -mssse3 -mfpmath=sse -msseregparm -O2 -pipe"
Update - Also reported here: https://gmplib.org/list-archives/gmp-bugs/2014-April/003411.html ... with patch fixing the issue here: https://gmplib.org/repo/gmp/raw-rev/1fab0adc5ff7
the fix is included in gmp-6.1.0 which is in the tree