Solaris 10, Sun Studio 12, gmp-4.2.4 feedback

Georg Sauthoff gsauthof at TechFak.Uni-Bielefeld.DE
Thu Mar 12 22:20:13 CET 2009


Hi,

I compiled gmp-4.2.4 under Solaris with Sun Studio 12 Compilers as 64
bit library and I hit 2 problems:

- use of gcc attribute const works for C, but not for C++ with the Sun CC [1]
- cstdarg does not contain va_list, but stdarg.h does [2]

A 'make check' ran completely successfull.

The compilers version is:
$ CC -V
CC: Sun C++ 5.9 SunOS_i386 Patch 124864-08 2008/10/16
$ uname -a
SunOS foo 5.10 Generic_137112-01 i86pc i386

I used this configure line:
./configure --prefix=/my/prefix --enable-cxx CC=cc CXX=CC \
CXXFLAGS="-library=stlport4 -features=tmplife -m64 -xO5" LDFLAGS="-m64" \
CFLAGS="-m64 -xO5"

Best regards
Georg Sauthoff

[1]
http://forums.sun.com/thread.jspa?messageID=10619266#10619266
http://www.nabble.com/gmp-with-enable-cxx-td21484090.html

[2]
http://gmplib.org/list-archives/gmp-bugs/2009-February/001276.html


More information about the gmp-bugs mailing list