GMP-5.0.0 problems with gcd_1.asm on Apple with fixes
pbmcl at dakotacom.net
Sat Jan 16 06:14:43 CET 2010
On Jan 15, 2010, at 7:25 AM, Jack Howarth wrote:
> Could you try the patch I proposed at...
> on top of stock gmp 5.0.0? This is sufficient to eliminate all of the
> build and testsuite failures for ABI=64 on darwin10 without resorting
> to any other changes.
I added your mpn/x86_64/darwin.m4 patch to a stock copy of GMP-5.0.0 and ./configure, make completes
However, during 'make check' the segmentation fault in t-fat still occurs on my system. Fix #2 is still needed.
>>>> Fix #2: the fix for this error was suggested in the file "redc_1.asm", where the stack pointer
>> needs to be aligned for a secondary call. Adding the instruction
>> sub $8, %rsp C maintain ABI required rsp alignment
>> just before the instruction
>> CALL( mpn_modexact_1_odd)
>> which is then followed by
>> add $8, %rsp
>> fixes the fault and "make check" runs without errors.
More information about the gmp-bugs