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

Marc Glisse marc.glisse at inria.fr
Thu Mar 10 07:44:07 CET 2011


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.

-- 
Marc Glisse


More information about the gmp-bugs mailing list