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

Torbjorn Granlund tege at swox.com
Thu Aug 4 15:06:36 CEST 2005


"Graham Leggett" <minfrin at sharp.fm> writes:

  While trying to compile gmp on a 32 bit solaris8 machine with "./configure
  --prefix=<prefix>", the code is built as 64 bit code, and no other
  software can link to resultant library.
  
  bash-2.03$ uname -a
  SunOS fodev01 5.8 Generic_117350-10 sun4u sparc SUNW,Sun-Fire-480R
  bash-2.03$ ./config.guess
  ultrasparc3-sun-solaris2.8
  
Clearly, that is not a "32 bit solaris8 machine", but more a "64
bit solaris8 machine".  GMP is right to default to a 64-bit
build.

  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.

No bug, user error.

--
Torbjörn


More information about the gmp-bugs mailing list