Bug in GMP5.0.0/4.3.2?
James Wanless
james at grok.ltd.uk
Sat Jan 9 11:42:18 CET 2010
Thanks for your email. pls see below for response(s)...
J
On 9 Jan 2010, at 09:42, Marc Glisse wrote:
> On Fri, 8 Jan 2010, James Wanless wrote:
>
>> [NB this is so far only tested on Intel Mac OSX Leopard gcc 4.0.1 --
>> disable-shared]
>
> Do you have a particular reason to stick to that old buggy version
> of the compiler? I believe it works fine with more recent versions.
This version of Xcode, 3.1.2, is only 6-months old! :) Also, the
latest version, 3.2.1, _requires_ Snow Leopard, which I don't (yet?)
have.
>
>> ld: duplicate symbol ___gmpz_abs in ./.libs/libtests.a(misc.o) and
>> t-bswap.o
>
> IIRC:
> this is related to the C99 meaning of extern inline, where apple has
> a different behavior than FSF gcc, and gmp doesn't specifically test
> for it. The problem should only appear when there is -std=c99 (or
> gnu99) without -fgnu89-inline.
>
Is there any chance of a workaround to fix this for me (and people
like me - there must be some! :)? I tried the CFLAGS="-fgnu89-inline"
option, but my compiler doesn't recognise it.
>
> --
> Marc Glisse
More information about the gmp-bugs
mailing list