5.1.1: Test fail in t-aors_1 on Solaris x86 64bit w/ Sun Studio 12.3 compiler

Torbjorn Granlund tg at gmplib.org
Thu Jan 9 09:42:41 UTC 2014


You override a whole lot of logics for the configuration.  Do you do
that for some specific reason?  It's a difficult task to analyse your
many parameters for consistency.

The error is as far as I can tell completely related to plain C code.
I'd point finger to either parameter inconsistency or bugs with this
compiler (or perhaps assembler, linker).

  configure: summary of build options:

    Version:           GNU MP 5.1.1
    Host type:         x86_64-pc-solaris2.11
    ABI:               64
    Install prefix:    /gmp
    Compiler:          cc -m64
    Static libraries:  yes
    Shared libraries:  yes

Curious Install prefix.

  build11i64:/var/tmp/gmp-5.1.1/tests/mpn root# file *.o
  logic.o:        ELF 64-bit LSB relocatable AMD64 Version 1 [SSE2 CMOV]
  t-aors_1.o:     ELF 64-bit LSB relocatable AMD64 Version 1 [SSE2 SSE CMOV]
  t-asmtype.o:    ELF 64-bit LSB relocatable AMD64 Version 1
  t-bdiv.o:       ELF 64-bit LSB relocatable AMD64 Version 1 [SSE2 SSE CMOV]
  
  The simple cause is the -DDBUG_OFF on CFLAGS, I haven't dug through the
  code to find the root cause, it's just being reported here as an issue,
  possibly hiding a bug deeper in the code. I used the -DDBUG_OFF previously
  for the SPARC compiling, it causes problems for x86.
  
I'm afraid I cannot follow your reasoning here.
  
  As an aside, the compiler attribute check for "mode" doesn't work so well,
  I need to give gmp_cv_c_attribute_mode=no to configure.
  
  configure:25360: checking whether gcc __attribute__ ((mode (XX))) works
  configure:25376: cc -m64 -c -xO3 -m64 -DNO_ASM -I/usr/local/include
  conftest.c >&5
  "conftest.c", line 60: warning:  attribute "mode" is unknown, ignored
  configure:25376: $? = 0
  configure:25384: result: yes
  
Yep, the compiler gives a warning instead of an error for syntax it
doesn't handle.  Autoconf then concludes it is safe to use.  (And
perhaps it is safe to use, just triggering annoying verbiage?)



Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list