gmp-5.0.1 t-perfpow fails (all other pass) on Win-64bit - mingw-w64 compiler

Torbjorn Granlund tg at
Tue Mar 23 11:33:56 CET 2010

kmx <kmx at> writes:

  I have experienced tests/mpz/t-perfpow to fail when:
  1/ building gmp-5.0.1 on 64bit MS Windows (Win7 if it does matter)
  2/ using native 64bit gcc4 toolchain from (no
  3/ the same results with gcc 4.4.4pre and gcc 4.4.3
  4/ build from MSYS environment
  5/ using configure options: --build=x86_64-w64-mingw32
  --host=x86_64-w64-mingw32 --enable-static=yes --enable-shared=no
  6/ t-perfpow is the only test that fails all other pass
  7/ the same gmp-5.0.1 with the 32bit version of the same compilers (gcc
  4.4.4pre and gcc 4.4.3) builds fine (all tests pass)
  The failure details:
  n = 973276029958642838685 .............
  n was destroyed, but perfpow_p still believes n is a perfect power
  Please contact the application's support team for more information.
  FAIL: t-perfpow.exe
Please try this patch:


More information about the gmp-bugs mailing list