mpn/gcd_1.asm fails to build on Solaris 10 SPARC 64bit with Studio 12.3 cc - SOLVED
tg at gmplib.org
Wed May 8 18:37:40 CEST 2013
Mark Ashley <mark at ibiblio.org> writes:
I use setenv CC "cc -xtarget=ultra -m64 -xcode=pic32" as my compiler for all of
my Solaris packages on SPARC 64bit. It's a very widely used default for the
Solaris Studio compiler. My Solaris Package Archive ( http://www.ibiblio.org/
pub/packages/solaris/sparc/index.html ) has used that for thousands of
packages. It's why I was surprised to see issues compiling GMP, though as the
blurb says, it does tend to exercise compilers in ways most programs don't, due
to the assembler code I suspect.
For good and for bad, GMP's configure wants to be tld what to do (use
this and that ABI, build static lib or shared lib or both, etc), it does
not like to be given options and then try to figure out what the user
might have in mind.
Forcing pic options onto a plain GMP build is just plain and simply
wrong; they will then be used for both static and shared lib.
* p.s. if the documented way is to compile with gcc then that's an issue as I
never ever use it.
That's recommended, but we do support any reasonable command-line
More information about the gmp-bugs