gmp 4.1.4 build on 32 bit sparc8 misconfigures build as 64 bit for sparc9

Torbjorn Granlund tege at
Thu Aug 4 23:41:17 CEST 2005

"Graham Leggett" <minfrin at> writes:

  If this was the case, then why would mpfr (and virtually all other
  binaries on this system) default to 32 bit and complain that it is unable
  to link to libgmp as the libgmp library is a 64 bit library? This seems
  rather strange.
GMP defaults to the best usable ABI, but it is easy enough to
override (as you've also noticed).

  >   using ABI="64"
  >         CC="gcc"
  >         CFLAGS="-g -O2 -m64 -mptr64 -Wa,-xarch=v9 -mcpu=v9"
  >         MPN_PATH=" sparc64 generic"
  >   Setting the ABI environment variable to "32" works round the problem,
  > but
  >   this is not documented within the known issues anywhere, and is not
  >   mentioned in the install docs.
  > This is certainly mentioned in the manual, under ISA and ABI.
  But not in the install docs.
Yes, in the install docs.
  Documentation error.
  Documentation that is misindexed (as here, where knowledge used in the
  install is documented in some other random and unrelated location) may as
  well not exist at all.
You might want to actually check the documentation before you
criticize it; the ISA and ABI section is in the manual chapter
"Installing GMP'.

  None of the install docs mention that the ABI is important, or even what
  an ABI is or what it might be used for.
Again, you might want to actually read the manual before
criticizing it.  The first sentence of the ISA and ABI section
explains what it is.


More information about the gmp-bugs mailing list