4.3.1 test failures on alphaev56-dec-osf4.0g (Tru64)

Daniel Richard G. skunk at iSKUNK.ORG
Tue Aug 4 05:44:40 CEST 2009

Hello Torbjorn,

There is a detail I neglected to mention: The quoted failures occurred
after configuring GMP using --with-pic --disable-shared. (I build with
these options so that a later GCC build can produce a static libgcc that
can be linked into shared libraries.)

I have since tried building and testing GMP with various combinations of
options. Here are the results:

(Note: Unless stated otherwise, the below-described configurations omit
--with-pic and --disable-shared, and use cc(1) with the default CFLAGS
of "-fast -arch ev56 -tune ev56")

* Configured with nothing (all default): Everything builds, all
  tests pass.

* Configured with --host=none: I got a link error building t-bswap:

/usr/home/cport/tmp/bash ../libtool --mode=link cc -std1  -O   -o
t-bswap  t-bswap.o libtests.la ../libgmp.la 
cc -std1 -O -o t-bswap t-bswap.o  ./.libs/libtests.a
/usr/home/cport/tmp/gmp-noasm/.libs/libgmp.a ../.libs/libgmp.a  
gmake[4]: *** [t-bswap] Error 1
gmake[4]: Leaving directory `/usr/home/cport/tmp/gmp-noasm/tests'
gmake[3]: *** [check-am] Error 2
gmake[3]: Leaving directory `/usr/home/cport/tmp/gmp-noasm/tests'
gmake[2]: *** [check-recursive] Error 1
gmake[2]: Leaving directory `/usr/home/cport/tmp/gmp-noasm/tests'
gmake[1]: *** [check-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/cport/tmp/gmp-noasm'
gmake: *** [check] Error 2

* Configured with --with-pic: Everything builds, all tests pass.

* Configured with --disable-shared: Everything builds, tests fail.

* Configured with CFLAGS="-O0 -g2" and any combination of options:
  Everything builds, all tests pass.

The only way I could nail down a failure with debugging symbols in the
mix was to enable both optimization and debugging with CFLAGS="-fast
-arch ev56 -tune ev56 -g3" (plus --disable-shared to make things
Here is the dbx session:

% dbx t-tdiv
dbx version 3.11.10
Type 'help' for help.

main:  45  tests_start ();

warning: Files compiled -g3: parameter values probably wrong
(dbx) run
signal Segmentation fault at   [__gmpn_invert_limb:73 ,0x12001d3ac]     
Source not available
(dbx) where
>  0 __gmpn_invert_limb() ["tmp-invert_limb.s":73, 0x12001d3ac]
   1 __gmpn_divrem_2() ["tmp-divrem_2.s":115, 0x12001c6d4]

Thinking this could be a compiler error, I tried building GMP with GCC
4.4.0 + CFLAGS="-O0 -g3 -pedantic -Wa,-arch,ev56 -mcpu=ev56" (the
default flags, except for the first two). Exactly the same results as
with cc(1).

What else I should try?


NAME = Daniel Richard G.     _\|/_    Remember, skunks
MAIL = skunk at iSKUNK.ORG     (/o|o\) _- don't smell bad---
MAIL+= skunk at alum.MIT.EDU   < (^),>     it's the people who
WWW  = (not there yet!)      /   \      annoy us that do!

More information about the gmp-bugs mailing list