not really a bug .. just Sun Studio 12

Marc Glisse marc.glisse at inria.fr
Tue Aug 10 12:59:46 CEST 2010


On Sun, 25 Jul 2010, Dennis Clarke wrote:

> Strictly out of morbid curiosity I tried to use Studio 12 again.
> I was surprised haw far things went before it failed :
>
> Making all in cxx
> make[2]: Entering directory `/export/home/dclarke/build/GCC/gmp-5.0.1/cxx'
> /bin/bash ../libtool --tag=CXX   --mode=compile /opt/SUNWspro/bin/CC
> -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMPXX -I..  -I/opt/bw/include
> -erroff -xarch=386 -norunpath
> -R/opt/bw/lib/SALIST:/opt/bw/gcc4/lib/SALIST:/opt/bw/lib/i386:/opt/bw/gcc4/lib
> -L/opt/bw/lib/SALIST:/opt/bw/gcc4/lib/SALIST:/opt/bw/lib/i386:/opt/bw/gcc4/lib
> -xO3 -mc -D_TS_ERRNO -c -o isfuns.lo isfuns.cc
> libtool: compile:  /opt/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I..
> -D__GMP_WITHIN_GMPXX -I.. -I/opt/bw/include -erroff -xarch=386 -norunpath
> -R/opt/bw/lib/SALIST:/opt/bw/gcc4/lib/SALIST:/opt/bw/lib/i386:/opt/bw/gcc4/lib
> -L/opt/bw/lib/SALIST:/opt/bw/gcc4/lib/SALIST:/opt/bw/lib/i386:/opt/bw/gcc4/lib
> -xO3 -mc -D_TS_ERRNO -c isfuns.cc  -KPIC -DPIC -o .libs/isfuns.o
> "../gmp-impl.h", line 877: Error: ")" expected instead of "const".

That's the usual bug that gmp configure uses the results of the C compiler 
feature test for the C++ compiler, which can be worked around in this case
(CXXFLAGS=-D__GMP_NO_ATTRIBUTE_CONST_PURE maybe? check the archives).

-- 
Marc Glisse


More information about the gmp-bugs mailing list