Hm, I'm also running MacOS 10.3, with the same version of gcc, and I get the exact same error.

If it is in fact a gcc upgrade that's necessary, that version of gcc (3.3 20030304) seems to be the latest one that's available from http://developer.apple.com for 10.3. There are some more recent downloads (Xcode Tools 2.1 and 2.2) for MacOS 10.4, but I don't know if you want to shell out more money for 10.4.

I suppose you could email the maintainer of Math::GMP about it. Then again, I figure he must have already seen the bug report on rt.cpan.org ....

Update: I poked around on the tests for Math::GMP, and found at least this one instance of gcc (3.3.3 FreeBSD 20031106) that's about the same age as the one on the Mac, and it passed. Interestingly enough, there's this case that passed, but using gcc 3.0.3. Although it's Solaris, my feeling is that it's not the version of gcc that's the problem ...

Update 2: I also think it couldn't be miscompiling libgmp, as I did a make check (as emphasized on the download site), and I still got the same thing. However, looking at the website, I see something else. This is from the GNU MP Bignum library (libgmp) site:

GMP is very often miscompiled! We are seeing ever increasing problems with mis-compilations of the GMP code. Please never use your newly compiled libgmp.a or libgmp.so without first running make check. If it doesn't complete without errors, don't trust the library, and please report this as a bug to the gmp-bugs@swox.com list, so that we can investigate it and make sure the bug is indeed in the compiler. (The compilers that cause problems are HP's unbundled compilers and GCC, in particular Apple's GCC releases. It has come to the point where a compiler should be assumed to miscompile GMP.)

I think that last note about 'Apple's gcc releases may be the answer... it seems that make check may find no problems, when there actually really are. I dunno, maybe post something on their forum, asking when it might be fixed..

-- Burvil


In reply to Re: Math::GMP won't install on Darwin by bowei_99
in thread Math::GMP won't install on Darwin by jkeenan1

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.