gmp with enable-cxx

Janardhan Molumuri mjanardhan at gmail.com
Thu Jan 15 17:24:39 CET 2009


Hi,

I am trying out gmp v4.2.4 with C++ support after applying the patches for
v4.2.4 (http://gmplib.org/) but the compilation fails. I am using the
studio-12 cc compiler.

Are there any known issues when c++ is enabled with gmp? (P.S. I am trying
out gmp for the gcc build). Any suggestions before look into the code?

thanks,
- JNR

<>
/bin/bash ../libtool --mode=compile CC -DHAVE_CONFIG_H  -I. -I. -I..
-D__GMP_WITHIN_GMPXX -I..  -I/usr/local/pkgs/gmp-4.2.4/include   -xO5
-xarch=sse3 -g -c -o isfuns.lo isfuns.cc
CC -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMPXX -I..
-I/usr/local/pkgs/gmp-4.2.4/include -xO5 -xarch=sse3 -g -c isfuns.cc  -KPIC
-DPIC -o .libs/isfuns.o
"../gmp-impl.h", line 320: Warning: attribute malloc is unsupported and will
be skipped..
"../gmp-impl.h", line 851: Warning: Attribute name expected instead of
const..
"../gmp-impl.h", line 851: Warning: attribute  is unsupported and will be
skipped..
"../gmp-impl.h", line 851: Error: ")" expected instead of "const".
"../gmp-impl.h", line 851: Error: The function "__gmpn_jacobi_base(unsigned
long, unsigned long, int) const" cannot be declared const.
"../gmp-impl.h", line 851: Error: "{" expected instead of ")".
"../gmp-impl.h", line 851: Error: Unexpected ")" -- Check for matching
parenthesis.
"../gmp-impl.h", line 851: Error: Operand expected instead of ")".
"../gmp-impl.h", line 1018: Error: Badly formed expression.
"../gmp-impl.h", line 1018: Warning: Attribute name expected instead of
const..
"../gmp-impl.h", line 1018: Warning: attribute  is unsupported and will be
skipped..
"../gmp-impl.h", line 1018: Error: ")" expected instead of "const".
"../gmp-impl.h", line 1018: Error: Identifier expected instead of ")".
"../gmp-impl.h", line 1032: Warning: Attribute name expected instead of
const..
"../gmp-impl.h", line 1032: Warning: attribute  is unsupported and will be
skipped..
"../gmp-impl.h", line 1032: Error: ")" expected instead of "const".
"../gmp-impl.h", line 1032: Error: The function "__gmpn_fft_next_size(long,
int) const" cannot be declared const.
"../gmp-impl.h", line 1032: Error: "," expected instead of ")".
"../gmp-impl.h", line 1556: Warning: attribute noreturn is unsupported and
will be skipped..
"../gmp-impl.h", line 2157: Warning: Attribute name expected instead of
const..
"../gmp-impl.h", line 2157: Warning: attribute  is unsupported and will be
skipped..
"../gmp-impl.h", line 2157: Error: ")" expected instead of "const".
"../gmp-impl.h", line 2157: Error: The function "__gmpn_invert_limb(unsigned
long) const" cannot be declared const.
"../gmp-impl.h", line 2157: Error: "," expected instead of ")".
"../gmp-impl.h", line 2810: Warning: attribute mode is unsupported and will
be skipped..
"../gmp-impl.h", line 2811: Warning: attribute mode is unsupported and will
be skipped..
"../gmp-impl.h", line 2812: Warning: attribute mode is unsupported and will
be skipped..
"../gmp-impl.h", line 2813: Warning: attribute mode is unsupported and will
be skipped..
"../gmp-impl.h", line 2814: Warning: attribute mode is unsupported and will
be skipped..
"../gmp-impl.h", line 2971: Warning: attribute noreturn is unsupported and
will be skipped..
"../gmp-impl.h", line 2972: Warning: attribute noreturn is unsupported and
will be skipped..
"../gmp-impl.h", line 2973: Warning: attribute noreturn is unsupported and
will be skipped..
"../gmp-impl.h", line 2974: Warning: attribute noreturn is unsupported and
will be skipped..
"../gmp-impl.h", line 3641: Error: "__gmpn_jacobi_base(unsigned long,
unsigned long, int)" is expected to return a value.
"isfuns.cc", line 105: Error: "}" expected instead of "end of file".
16 Error(s) and 19 Warning(s) detected.
</>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-discuss/attachments/20090115/5a9d264b/attachment.html 


More information about the gmp-discuss mailing list