Why GMP doesn't support MinGW anymore?

Andrey Khalyavin halyavin at google.com
Tue Jun 19 17:45:48 CEST 2012

2012/6/19 Torbjorn Granlund <tg at gmplib.org>

> I would expect it to work.  GMP is programmed to exclude assembly for
> this platform.
If it is programmed to exclude assembly for this platform then problem may
be related with configure.

Command lines I execute from MSYS shell are

mkdir build-gmp
cd build-gmp
export PATH=$PATH:/mingw/x86_64-w64-mingw32/lib #otherwise MinGW dll's are
not found.
../gmp-5.0.5/configure CPPFLAGS="-fexceptions" CC="x86_64-w64-mingw32-gcc"
CXX="x86_64-w64-mingw32-g++" --enable-cxx --enable-fat --disable-shared
ABI="64" --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32
make #-j16
make install

echo $PATH:
.:/usr/local/bin:/mingw/bin:/bin:/c/Program Files
Files (x86)/Microsoft SQL Server/100/To
ols/Binn/:/c/Program Files/Microsoft SQL Server/100/Tools/Binn/:/c/Program
Files/Microsoft SQL Server/100/DTS/Binn/:/c/Program Files/Microsoft Windows
Performance Toolkit/:/c/src/depot_tools:.:/mingw/x86_64-w64-mingw32/lib

Resulting library contains __gmpn_cpuid that can't be implemented without

MinGW version is mingw-w64-bin_i686-mingw_20111220.
MSYS version is MSYS-20111123.

Andrey Khalyavin

> (Expect no further replies from me unless you're willing to file a
> proper bug report.  I am a terrible guesser, and a conversation about
> the possible reasons for a certain behaviour, without the facts, is a
> waste of your time and the time of the subscribers.)
> --
> Torbjörn

More information about the gmp-bugs mailing list