Problem with running benchmarks from gmpbench 0.2
Lance W. Patterson
lwjudd at windstream.net
Sun Dec 23 18:09:02 CET 2012
GMP Version - 5.1.0(pre-packaged)
Test Program - gmpbench, specifically "multiply, divide, and pi"
Problem - GMP 5.1 built without issues and "make check" did not report any
errors. However, when I run the benchmarks, I receive the following error
when attempting to compile "multiply, divide, and pi". "gcd" and "rsa"
build and run okay.
reference to `__gmp_binvert_limb_table at GOTPCREL'
This was mentioned in an archive message from 2009, but I did not find a
solution. The macro definition for this is in "gmp-impl.h" as.
#define binvert_limb_table __gmp_binvert_limb_table
__GMP_DECLSPEC extern const unsigned char binvert_limb_table;
The table definition is in "mp_minv_tab.c".
Also, the benchmarks have a bug that does not correctly identify the
msys/mingw64(or 32) environment to choose the correct header files for the
function "cputime()". The end of every benchmark source file has a
compilation directive to determine which header(s) to use. msys/ming(32/64)
would use <time.h>.
Configuration Options for building GMP - I just ran "./configure" and let
the script decide.
path= x86_64/k10 x86_64/k8 x86_64 generic
Compiler Version(using "gcc -v")
Using built-in specs.
Configured with: ../../../build/gcc/src/configure
Thread model: win32
gcc version 4.7.0 20111220 (experimental) (GCC)
Uname output("uname -a")
MINGW32_NT-6.1 DREAMTHEATER 1.0.17(0.48/3/2) 2011-04-24 23:39 i686 Msys
More information about the gmp-bugs