Compiling GMP on OS X 10.6 (snow leopard)

Torbjorn Granlund tg at
Sat Oct 10 20:00:44 CEST 2009

Katie Scott <katie at> writes:

  That is fails at t-bswap is another indication that this could be a 32
  to 64 bit issue.
  It turns out that a friend of mine put is distribution on my machine
  and it compiles and checks cleanly.  It is a funny thing that the
  sizes of the distributions are the same.  I got mine from your sight  He doesn't seem to remember where he got his.  Perhaps
  using Darwin Ports or fink.
By "distribution", you mean sources

  I was going to include his distribution here but since I use Goggle
  Apps - they won't let me send it for 'security reasons'.  (They
  complain about executables in the distribution)  I've written to
  Google complaining that since I have paid email service I should be
  able to send these files.  (!!)
  For now I seem to have a gmp library installed - but I don't trust the
  source.  I'd rather use your distribution directly.
  Thanks for all your help.
  On Sat, Oct 10, 2009 at 9:37 AM, Mark Rodenkirch <mgrogue at> wrote:
  > On Oct 10, 2009, at 11:29 AM, Torbjorn Granlund wrote:
  >> Perhaps what you are saying that the new compiler under 10.6 defaults to
  >> generating 64-bit code, and that one needs to pass an option to make it
  >> generate 32-bit code?
  > I can attest to the truthfulness of that statement.  gcc 4.2.1 on 10.6
  > defaults to 64-bit compiles, thus requiring -m32 for 32-bit compiles.
  > --Mark
  > _______________________________________________
  > gmp-bugs mailing list
  > gmp-bugs at
  gmp-bugs mailing list
  gmp-bugs at


More information about the gmp-bugs mailing list