4 tests failed on gmp 5.0.3 using mingw64 gcc 4.7

Rene Sugar rene.sugar at gmail.com
Tue Feb 7 23:00:21 CET 2012


I got the following 4 errors on gmp 5.0.3 when running "make check" on a 
mingw64 build on Windows 7 64-bit.

./configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 
--target=x86_64-w64-mingw32 --prefix=/mingw
make
make check

My CPU is an AMD Phenom II X4 940 processor. The configure script picked 
"k8" instead of "amdfam10".


mpz_mul_si wrong
   x=1
   y=-2147483648 (0x80000000)
   got =-2147483648
   want=-18446744071562067968

This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
FAIL: t-mul_i.exe


mpz_set_si wrong on data[5]

This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
FAIL: t-set_si.exe


mpz_fits_slong_p (INT_MIN) got 0 want 1
  z size -1
  z dec -18446744071562067968
  z hex -ffffffff80000000
mpz_fits_sint_p (INT_MIN) got 0 want 1
  z size -1
  z dec -18446744071562067968
  z hex -ffffffff80000000
mpz_fits_slong_p (LONG_MIN) got 0 want 1
  z size -1
  z dec -18446744071562067968
  z hex -ffffffff80000000

This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
FAIL: t-fits.exe


mpz_cmp_si wrong on data[12]
   a=-2147483648
   b=-2147483648
   got=1
   want=0

This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
FAIL: t-cmp_si.exe


Here is the build of gcc I used:

(mingw64 project also lets you cross-compile mingw32 and mingw64 builds 
on Linux)

mingw64 toolchain sources with build scripts to create cross-compilers:

http://sourceforge.net/projects/mingw-w64/files/Toolchain%20sources/Personal%20Builds/rubenvb/

mingw64 toolchain binaries:

http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/4.7.0-1/ 



This wiki page has a good explanation of how to set up mingw64 on Windows:

https://github.com/shadinger/opalang/wiki/Compiling-ocaml-MinGW64-w64
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmp-5.0.3-config.tar.gz
Type: application/x-gzip
Size: 95244 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20120207/4a6f11ff/attachment-0001.bin>


More information about the gmp-bugs mailing list