GMP 4.2.2

Michael Abshoff Michael.Abshoff at fsmath.mathematik.uni-dortmund.de
Fri Aug 31 00:57:35 CEST 2007


Torbjorn Granlund wrote:
> GMP 4.2.2 RC1 is now available from:
>
>         http://gmplib.org/gmp-4.2.2-rc1.tar.bz2
>
> The gmplib.org site is not very well-connected; if things gets slow,
> here is an alternative site:
>
>         http://sics.se/~tf/gmp-4.2.2-rc1.tar.bz2
>
> Please help testing GMP 4.2.2!  Please send reports to me, not to any
> GMP mailing list.
>
> Checksums:
>   SHA1 (gmp-4.2.2-rc1.tar.bz2) = 075467816115ed7ba49c7489df083c847b14f8e3
>   MD5 (gmp-4.2.2-rc1.tar.bz2) = c35673b687110d43e6d699cdc6b248a4
>
> --
> Torbjörn

Hello Torbjörn,

I got a slight build problem with --enable-cxx:

/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..
-D__GMP_WITHIN_GMPXX -I..    -O2 -m64 -mtune=k8 -c -o isfuns.lo isfuns.cc
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMPXX -I.. -O2 -m64
-mtune=k8 -c isfuns.cc  -fPIC -DPIC -o .libs/isfuns.o
isfuns.cc:1:1: error: unterminated comment
make[2]: *** [isfuns.lo] Error 1
make[2]: Leaving directory `/tmp/Work2/gmp-4.2.2/cxx'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/Work2/gmp-4.2.2'
make: *** [all] Error 2

The fix is obvious: Add */ at the end of line 18 in cxx/isfuns.cc

The same happens in

cxx/ismpf.cc
cxx/ismpq.cc
cxx/ismpz.cc
cxx/ismpznw.cc
cxx/osdoprnti.cc
cxx/osfuns.cc
cxx/osmpf.cc
cxx/osmpq.cc
cxx/osmpz.cc


The error message for the last 5 or so is quite entertaining because the
missing "*/" is picked up in a comment after the first couple includes :)

The same problem happens with the  cxx tests:

tests/cxx/t-assign.cc
tests/cxx/t-binary.cc
tests/cxx/t-cast.cc
tests/cxx/t-constr.cc
tests/cxx/t-headers.cc
tests/cxx/t-istream.cc
tests/cxx/t-locale.cc
tests/cxx/t-ops.cc
tests/cxx/t-ostream.cc
tests/cxx/t-prec.cc
tests/cxx/t-rand.cc
tests/cxx/t-ternary.cc
tests/cxx/t-unary

With those trivial fixes "make check" passes on a Centos 5 x86-64 box.

One more thing: Any chace that the issue with std::FILE with gcc 4.3 can
be resolved in this release?

See http://gmplib.org/list-archives/gmp-bugs/2007-August/000818.html for
details. gcc 4.3 will ship with many distributions in the next 6 months,
so unless you plan to do another 4.2.x soon I would really like to get it
in now.

Thanks for the great work on gmp.

Cheers,

Michael



More information about the gmp-bugs mailing list