Bug in gmpbench-0.2 when building under Windows with msys/MinGW(32 or 64)
Lance W. Patterson
lwjudd at windstream.net
Thu Dec 27 16:48:28 CET 2012
>>The check of which header files to include for the cputime() function does not properly
>>check for MinGW on Windows, so it will include the headers from "#else". This is in every source benchmark file.
>>The following modification will address that problem.
>>"__WIN32__" and "__MINGW32__" are defined for both "MinGW/msys" and "MinGW64/msys".
>>This is not an issue with Cygwin nor should the update affect it.
>Without that change, what exactly happens?
Without that change the conditional compilation expression will evaluate to false, so the latter will be compiled. This compile will fail due to a missing header and function.
"sys/resource.h" is not included nor is the function "getrusage" with the standard distribution of MinGW64/msys. Someone wrote an experimental version of this, but I have not tried to use it.
More information about the gmp-bugs