Build problem of GMP 4.2.1 with Sun Studio 11

Matthias Koeppe mkoeppe at mail.math.uni-magdeburg.de
Thu Jul 13 12:44:21 CEST 2006


Hi,

I am trying to build GMP 4.2.1 with --enable-cxx using the Sun Studio
11 compilers on Solaris 9/SPARC (uname -a gives: SunOS epsilon 5.9
Generic_118558-26 sun4u sparc SUNW,Sun-Fire-V440).  The exact versions
of the compilers are:

CC: Sun C++ 5.8 Patch 121017-02 2006/04/19
cc: Sun C 5.8 Patch 121015-02 2006/03/29

(These are the most current versions available from Sun.)

The build fails for cxx/ismpf.cc and cxx/osmpf.cc as follows:

/bin/bash ./libtool --mode=compile /solapplic/sun-studio-11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I. -D__GMP_WITHIN_GMP    -xO4 -xarch=v8plus -xchip=ultra3 -c -o dummy.lo `test -f 'cxx/dummy.cc' || echo './'`cxx/dummy.cc
 /solapplic/sun-studio-11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I. -D__GMP_WITHIN_GMP -xO4 -xarch=v8plus -xchip=ultra3 -c cxx/dummy.cc  -KPIC -DPIC -o .libs/dummy.o
 /solapplic/sun-studio-11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I. -D__GMP_WITHIN_GMP -xO4 -xarch=v8plus -xchip=ultra3 -c cxx/dummy.cc -o dummy.o >/dev/null 2>&1
/bin/bash ./libtool --mode=compile /solapplic/sun-studio-11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I. -D__GMP_WITHIN_GMP    -xO4 -xarch=v8plus -xchip=ultra3 -c -o cxx/ismpf.lo cxx/ismpf.cc
 /solapplic/sun-studio-11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I. -D__GMP_WITHIN_GMP -xO4 -xarch=v8plus -xchip=ultra3 -c cxx/ismpf.cc  -KPIC -DPIC -o cxx/.libs/ismpf.o
"cxx/ismpf.cc", line 55: Error: Could not find a match for std::use_facet<std::Facet>(const std::locale) needed in operator>>(std::istream &, __mpf_struct*).
"cxx/ismpf.cc", line 55: Error: Could not find a match for std::use_facet<std::Facet>(const std::locale) needed in operator>>(std::istream &, __mpf_struct*).
"cxx/ismpf.cc", line 67: Error: Could not find a match for std::use_facet<std::Facet>(const std::locale) needed in operator>>(std::istream &, __mpf_struct*).
3 Error(s) detected.
gmake[2]: *** [cxx/ismpf.lo] Error 1
/bin/bash ./libtool --mode=compile /solapplic/sun-studio-11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I. -D__GMP_WITHIN_GMP    -xO4 -xarch=v8plus -xchip=ultra3 -c -o cxx/ismpz.lo cxx/ismpz.cc
 /solapplic/sun-studio-11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I. -D__GMP_WITHIN_GMP -xO4 -xarch=v8plus -xchip=ultra3 -c cxx/ismpz.cc  -KPIC -DPIC -o cxx/.libs/ismpz.o
"cxx/ismpz.cc", line 43: Error: Could not find a match for std::use_facet<std::Facet>(std::locale) needed in operator>>(std::istream &, __mpz_struct*).
1 Error(s) detected.
gmake[2]: *** [cxx/ismpz.lo] Error 1
/bin/bash ./libtool --mode=compile /solapplic/sun-studio-11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I. -D__GMP_WITHIN_GMP    -xO4 -xarch=v8plus -xchip=ultra3 -c -o cxx/osmpf.lo cxx/osmpf.cc
 /solapplic/sun-studio-11/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I. -D__GMP_WITHIN_GMP -xO4 -xarch=v8plus -xchip=ultra3 -c cxx/osmpf.cc  -KPIC -DPIC -o cxx/.libs/osmpf.o
"cxx/osmpf.cc", line 49: Error: Could not find a match for std::use_facet<std::Facet>(std::locale) needed in operator<<(std::ostream &, const __mpf_struct*).
"cxx/osmpf.cc", line 49: Error: Could not find a match for std::use_facet<std::Facet>(std::locale) needed in operator<<(std::ostream &, const __mpf_struct*).
2 Error(s) detected.

Any help will be appreciated.

Thanks,
-- 
Matthias Koeppe -- http://www.math.uni-magdeburg.de/~mkoeppe


More information about the gmp-bugs mailing list