error compiling gmp-6.2.0 on sparc-sun-solaris2.11 - v9os

Niels Möller nisse at lysator.liu.se
Mon Feb 17 09:05:24 UTC 2020


"Klaus Ziegler - owner of sunfreeware.de" <klausz at haus-gisela.de>
writes:

> But now to my real problem, if I try to compile gmp-6.2.0 on v9os
> using Sun C 5.11,
> I'll get the following very long lines:
> gmp-6.2.0/gmpxx.h", line 3375: Error: static
> __gmp_expr<__mpz_struct[1], __mpz_struct[1]>::factorial(signed char),
> returning __gmp_expr<__mpz_struct[1], __gmp_unary_expr<long,
> __gmp_fac_function>>, was previously declared returning
> __gmp_expr<__mpz_struct[1], __gmp_unary_expr<long,
> __gmp_fac_function>>.

I'm afraid I've not familiar enough with C++ to undersnd the error, but
Sun C 5.11 must be a pretty old C++ compiler, right? Maybe it simply
doesn't understand current C++?

Do you really need the C++ glue to boostrap gmp and gcc? If not, try
configuring gmp with --disable-cxx.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.


More information about the gmp-bugs mailing list