How to Build with MinGW64 on Windows 7

Thomas D. Dean tomdean at speakeasy.org
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
conftest

works.

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.

tomdean


-------------- 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: <http://gmplib.org/list-archives/gmp-discuss/attachments/20111207/4e809ac8/attachment.bin>


More information about the gmp-discuss mailing list