gmp 4.1.4 build on 32 bit sparc8 misconfigures build as 64 bit for sparc9
minfrin at sharp.fm
Thu Aug 4 14:29:28 CEST 2005
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
Cut from .configure output:
checking compiler gcc -g -O2 -m64 -mptr64 -Wa,-xarch=v9 -mcpu=v9... yes
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.
More information about the gmp-bugs