make check failed on sparc solaris 9

Marc Glisse marc.glisse at
Fri Feb 13 22:07:38 CET 2009

On Fri, 13 Feb 2009, Peter Wood wrote:

> make  check-TESTS
> t-bswap: fatal: /usr/local/lib/ wrong ELF class:
> FAIL: t-bswap

As mentionned in the FAQ, this is not a gmp bug but a gcc bug.
If you want a 32 bit gmp, use ABI=32.
If you want a 64 bit gmp, use LDFLAGS='-R/usr/local/lib/sparcv9'.
  Besides, if you are installing a 64 bit gmp in /usr/local, you want:
  ./configure --libdir=/usr/local/lib/sparcv9
  (32 bit libs go to /usr/local/lib and 64 bit libs to

Marc Glisse

More information about the gmp-bugs mailing list