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

David Fang fang at csl.cornell.edu
Fri Jan 15 09:13:24 CET 2010


> On Tue, Jan 12, 2010 at 11:02:50PM +0100, Torbjorn Granlund wrote:
>> Jack Howarth <howarth at bromo.med.uc.edu> writes:
>>
>>     The build of gmp 5.0.0 on x86_64-apple-darwin10 fails with
>>   the linkage...
>>
>>   ld: in mpn/.libs/gcd_1.o, in section __TEXT,__text reloc 0: not extern and X86_64_RELOC_GOT_LOAD not supported
>>   collect2: ld returned 1 exit status
>>
>> We've gotten several reports about this problem.  We're working on a solution.
>>
>> --
>> Torbjörn
>
> Torbjörn,
>    The attached patch, which redefines the LEA macro in mpn/x86_64/darwin.m4, eliminates
> the build problems for ABI=64 on darwin10 and allows all of the gmp testsuite to pass.
>                  Jack

Jack,
 	I have also confirmed that this patch lets (ABI=64, 
x86_64-apple-darwin10) to pass all tests.  Thanks!

Are these patches (ABI=32, 64) 'blessed'?  Will they be accepted upstream?

Fang

David Fang
http://www.csl.cornell.edu/~fang/
http://www.achronix.com/


More information about the gmp-bugs mailing list