./configure --enable-cxx still a disaster on Solaris

Torbjorn Granlund tg at swox.com
Mon Mar 23 09:59:53 CET 2009


Dennis Clarke <dclarke at blastwave.org> writes:

  While I am sure there are patches, and I have looked at them[2], there is
  no easy way for GMP to build cleanly within the production Solaris world
  with Studio 11 or Studio 12.
  
  I have gone over this at length, carefully, and the endless stream of code
  errors, syntax errors and just plain mess that one needs to deal with
  makes it unreasonable to trust the result one *may* eventually get with
  the simple addition of --enable-cxx on the configure line. I do have a
  Sparc v8 result ( lib/sparcv8/libgmpxx.so.4.0.4 ) but gave up on the i386
  architecture entirely.
  
  Until there is a release of gmp that does build cleanly and pass tests in
  the Solaris world with C++ there is no reason to release a Solaris package
  for GMP.  At least not one with libgmpxx.so in it.  Not sure what else to
  report here, perhaps there will be a gmp 4.2.5 which will build cleanly
  and pass all tests on Solaris.

I don't think this is a problem with Solaris, but with Sun's C++
compiler.  Or do you have problems also when compiling with the C++
compiler from the GNU Compiler Collection?

I am not an expert on C++, but C++ experts have determined in the past
that Sun's compiler is just too old and too buggy to compile GMP.  They
gave up trying to find some syntax for gmpxx.h that would be tolerated
by Sun's compiler.

There are apparently some patch sets for Sun's compiler each year,
perhaps some patch level actually works with GMP?  I know that several
past patch sets changed the errors one got from trying to compile GMP,
but none actually worked.

If we can come up with a reasonable workaround, I'd like to support
Sun's C++ compiler.  By "reasonable" I mean that it should not make
gmpxx.h much more complex, and not cause performance degradation.

-- 
Torbjörn


More information about the gmp-discuss mailing list