mpn/gcd_1.asm fails to build on Solaris 10 SPARC 64bit with Studio 12.3 cc - SOLVED

Mark Ashley mark at ibiblio.org
Wed May 8 15:51:36 CEST 2013


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.

I'll take a look tomorrow at work to see what the documented way is
supposed to be, I've simply adhered to the GNU standard and run 'configure'
with my default $CC, thus wandering into all this fun of debugging the
result.

Thanks for your help.
Mark.

* p.s. if the documented way is to compile with gcc then that's an issue as
I never ever use it.



On Wed, May 8, 2013 at 8:00 PM, Torbjorn Granlund <tg at gmplib.org> wrote:

> Mark Ashley <mark at ibiblio.org> writes:
>
>   Posting this for the archives
>
>   Summary: Edit mpn/Makefile and remove "-xcode=pic32" for the
> mpn/gcd_1.asm
>   compile to complete.
>
> GMP does not pass that option.
>
>   Maybe Torbjorn or others can figure out why
> gmp-5.1.1/mpn/sparc64/gcd_1.asm
>   won't compile with that flag on.
>
> Our free support does not include debugging users' overriding of GMP's
> build system.  Sorry.
>
> From your messages, I cannot determine if there is indeed a problem with
> GMP.  I will assume there isn't.
>
> If you want to compile GMP in the documented way, and if it doesn't then
> work, please file a bug report.
>
> --
> Torbjörn
>


More information about the gmp-bugs mailing list