5.1.2 assembler error on Solaris 10 with CC='cc -xtarget=opteron -xarch=amd64'

Torbjorn Granlund tg at gmplib.org
Tue Oct 8 12:53:52 CEST 2013


"Daniel Richard G." <skunk at iSKUNK.ORG> writes:

  * Configured with --disable-dependency-tracking
    --disable-maintainer-mode --disable-shared --with-pic
    --without-readline CC='cc -xtarget=opteron -xarch=amd64'
  
This allows many interpretations.  Please show the actual configure
command.

  * Configure summary:
  
    Version:           GNU MP 5.1.2
    Host type:         x86_64-pc-solaris2.10
    ABI:               64
    Install prefix:    /tg/freeport/arch/sunos_x86_64
    Compiler:          cc -xtarget=opteron -xarch=amd64 -D_STDC_C99=
    Static libraries:  yes
    Shared libraries:  no
  
This is very clearly inconsistent with the options you claim to have
"configured with".

  * Compiler info:
  
    $ which cc
    /opt/SUNWspro/bin/cc
    $ cc -V
    cc: Sun C 5.7 Patch 117837-08 2006/04/19
    usage: cc [ options] files.  Use 'cc -flags' for details
  
  * uname info:
  
    $ uname -a
    SunOS darkstar 5.10 Generic_147441-01 i86pc i386 i86pc
  
Unfortunately, uname on Slowaris is useless; 32-bit and 64-bit x86 are
not differentiated.

  If I drop xtarget/xarch, the build triplet is detected as coreisbr-pc-
  solaris2.10 (I want x86_64 for the CPU) and the configure script
  errors out with
  
      configure: error: Oops, mp_limb_t is 32 bits, but the assembler code
      in this configuration expects 64 bits.
  
  If I use -xarch=native64, I get the same assembler error as before.
  
I wish all users of GMP would try a plain

  configure && make && make check

when passing countless homebred options fail.  Almost invariably, the
options are inconsistent and cause the trouble.

Users that really desire some long string of options, can then work from
there.  When an inconsistent set of options is encountered, back away,
try some other nice long string of options.

-- 
Torbjörn


More information about the gmp-bugs mailing list