3 cxx tests fail on i386-pc-solaris2.8 ABI=32

Torbjorn Granlund tg at gmplib.org
Thu Jul 16 11:22:16 CEST 2009

Dennis Clarke <dclarke at blastwave.org> writes:

  All tests pass except for a few in the C++ section :
  FAIL: t-assign
  PASS: t-binary
  PASS: t-cast
  FAIL: t-constr
  PASS: t-headers
  PASS: t-istream
  PASS: t-locale
  PASS: t-misc
  PASS: t-ops
  PASS: t-ostream
  PASS: t-prec
  FAIL: t-rand
  PASS: t-ternary
  PASS: t-unary
  3 of 14 tests failed
  Please report to gmp-bugs at gmplib.org
I am afraid I cannot say for sure what the problem might be.

This type of isolated, platform/tools specific failures are very rarely
GMP's fault.  In few instances, GMP can reasonably work around these
type of problems.  I can just give some general advice:

1. Make sure you're using the same version of gcc and g++ (and in
   particular not gcc and a vendor C++ compiler, or vice versa.

2. Try another compiler version.  (I have no particular prejudices
   against gcc 4.3.3, which you say you're using, but I know gcc 4.3.2
   was not able to correctly compile GMP 4.3.)

3. Isolate the problem.  Start by running the test stand-alone and see
   what error message you get.  Then try to recompile things at the
   lowest optimisation lever where the bug still happens, but add -g to
   CFLAGS (i.e., do configure ABI=blahblah CFLAGS="-g -On ...").  First
   and foremost avoid -fomit-frame-pointer, as it makes life hard for

   Then, once you have a build with low optimisation and -g, fire up gdb
   and follow the error backwards.  Good luck!


More information about the gmp-bugs mailing list