gmp-5.0.0 fails to build on x86_64-apple-darwin10

Jack Howarth howarth at
Tue Jan 12 01:51:42 CET 2010

   It was suggested on the darwin-dev mailing list...

that the linkage failure on x86_64-apple-darwin10 could be worked around
by changing...

	mov     Ltable at GOTPCREL(%rip), %r9

in the generated tmp-gcd_1.s to...

	lea    Ltable(%rip), %r9

This change allows the linkage of libgmp.3.dylib to succeed and
the resulting gmp 5.0 build passes all of make check. I'm not sure
how achieve this change via mpn/gcd_1.asm though. In anycase, this
appears to be a potential workaround.

More information about the gmp-bugs mailing list