Problem compiling 4.2.4 on Solaris 10 with Sun Studio 12

John Center john.center at villanova.edu
Wed Feb 18 19:04:09 CET 2009


Thanks, Marc.  I wasn't aware of the libCstd vs. libstlport issue.  I'll 
back out of the patch, recompile & test.  -John

Marc Glisse wrote:
> On Tue, 17 Feb 2009, John Center wrote:
> 
>> I was unable to compile GMP 4.2.4 on Solaris 10 with Sun Studio 12.  The 
>> errors were:
>>
>> "ismpf.cc", line 53: Error: Could not find a match for 
>> std::use_facet<std::Facet
>>> (const std::locale) needed in operator>>(std::istream &, __mpf_struct*).
>> I found a patch on gmp-bugs for GMP 4.2.1 for Sun Studio 11 from July 2006 by 
>> Matthias Koeppe 
>> (http://gmplib.org/list-archives/gmp-bugs/2006-July/000519.html) that worked 
>> for me.
> 
> Good that you found it.
> 
>> Could this, or one similar to it, be added to the patch list on the 
>> home page & incorporated in the next release?
> 
> A FAQ about typical problems with solaris+gmp would help.
> 
> But do you really still need to use the old broken version of the standard 
> library? If you have a choice, you should really use -library=stlport4, or 
> some other self-compiled standard library like Apache stdcxx (used by 
> default in opensolaris and soon shipped with the compiler). Both should 
> work fine with gmp without any patch.
> 
> I somehow doubt TG will be happy to include such a workaround, but I may 
> be wrong. Note that such a workaround should test that 
> _RWSTD_NO_TEMPLATE_ON_RETURN_TYPE is defined (hello MPIR...).
> 


More information about the gmp-bugs mailing list