[Patch] Another fix for GMP 4.2.1 with Sun Studio 11
Albert Chin
gmp-bugs at mlists.thewrittenword.com
Sat Aug 12 01:59:22 CEST 2006
On Fri, Jul 21, 2006 at 05:38:18PM +0200, Matthias Koeppe wrote:
> I am sending another patch for GMP 4.2.1 with --enable-cxx, using the
> Sun Studio 11 compilers. Make check failed like this:
>
> /solapplic/sun-studio-11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../tests -xO4 -xarch=v8plus -xchip=ultra3 -c -o t-assign.o t-assign.cc
> "../../gmpxx.h", line 1389: Error: Formal argument 3 of type extern "C" void(*)(void*,unsigned)* in call to __gmp_get_memory_functions(extern "C" void*(*)(unsigned)*, extern "C" void*(*)(void*,unsigned,unsigned)*, extern "C" void(*)(void*,unsigned)*) is being passed void(*)(void*,unsigned)*.
> "../../gmpxx.h", line 1390: Warning: The variable freefunc has not yet been assigned a value.
> 1 Error(s) and 1 Warning(s) detected.
Do you have a fix for the following error:
CC -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../tests -xO2 -xtarget=ultra2 -xarch=v8plusa -c -o t-binary.o t-binary.cc
"../../gmpxx.h", line 3573: Error: Ambiguous partial specialization for __gmp_expr<__mpz_struct[1], __gmp_binary_expr<__gmp_expr<__mpz_struct[1], __mpz_struct[1]>, __gmp_expr<__mpz_struct[1], __mpz_struct[1]>, __gmp_binary_plus>>, __gmp_expr and __gmp_expr.
"../../gmpxx.h", line 3573: Error: Too many arguments in cast to __gmp_expr<__mpz_struct[1], __gmp_binary_expr<__gmp_expr<__mpz_struct[1], __mpz_struct[1]>, __gmp_expr<__mpz_struct[1], __mpz_struct[1]>, __gmp_binary_plus>>.
2 Error(s) detected.
gmake[4]: *** [t-binary.o] Error 2
gmake[4]: Leaving directory `/opt/build/china/gmp-4.2.1/tests/cxx'
--
albert chin (china at thewrittenword.com)
More information about the gmp-bugs
mailing list