gmp-4.3.2 and 5.0.1 on i386-apple-darwin10 link-fails cxx tests

David Fang fang at csl.cornell.edu
Thu Mar 10 10:02:31 CET 2011


Hi Marc,
 	Yes, setting host/build to i686 explicitly did the trick, i.e. 
works on my core2-apple-darwin10 machine.  I'll ask the original reporters 
of this problem to try that on their pre-core2 machines.  I suspect it 
will work because we're using the exact same compiler/tools.
 	Thanks for the response!

Fang

> Hello David,
>
>> 	For gmp-4.3.2 and gmp-5.0.1, I've received reports of the following 
>> cxx-test link failure on Intel Macs where gmp's config.guess reports: 
>> i386-apple-darwin10.*
>
> Hmm, no better than i386? I'd say that's your issue right there.
>
>> -march=i386
>
> :-(
>
>> Undefined symbols:
>>  "___sync_fetch_and_add_4", referenced from:
>>      check_mpq()    in t-assign.o
>
> Indeed ___sync_fetch_and_add_4 requires a higher -march setting (I can't 
> remember exactly if the minimum is 486 or 586, but the default of 686 should 
> be fine).
>
> And the libstdc++ test for this feature wasn't so good in gcc-4.2 apparently.
>
>

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



More information about the gmp-bugs mailing list