How to Build with MinGW64 on Windows 7

Thomas D. Dean tomdean at
Wed Dec 7 19:24:24 CET 2011

On Wed, 2011-12-07 at 18:50 +0100, Torbjorn Granlund wrote:

>   configure:8657: gcc -o conftest.exe -m32 -O2 -pedantic -fomit-frame-pointer -march=pentiumpro   conftest.c
>   ./configure: /c/MinGW64/bin/gcc: Invalid argument
> I am sure you can reproduce this with manual commands.
> You say this is a 64-bit system, but this seems to be a 32-bit system.

echo int main(){return 0;} > conftest.c
gcc -m64 -march=core2 conftest.c -o conftest


I used configure CC=gcc CFLAGS="-m64 -march=core2" --enable-cxx

and it failed.  I created the failing conftest.c, compiled two ways
gcc -m64 -march=core2 conftest.c
/c/MinGW64/bin/gcc -m64 -march=core2 conftest.c
and executed a.exe.
I saw no errors.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.tar.gz
Type: application/x-compressed-tar
Size: 4164 bytes
Desc: not available
URL: <>

More information about the gmp-discuss mailing list