2010/6/14 Andreas Fabri <[email protected]>

>
> Hello,
>
> I try to install mingw-64, msys, and gmp 5.0.1
>
> I follow the explanation gven by Ruben Van Boxem <vanboxem.ru...@gm..
> in the mailing list  (I removed the prefix of the .exe files though)
>
>
> https://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTilI0Pv5dbWeckloeDyjbOwSUJBEGYwpCwQbpIRq%40mail.gmail.com&forum_name=mingw-w64-public
>
> and I get stuck with an error message.  Any help is welcome.
>
> Best regards,
>
> Andreas Fabri
>
>
> $ ./configure --enable-shared --disable-static --enable-alloca=no
> --host=x86_64
>
> -w64-mingw32
> configure: WARNING: If you wanted to set the --build type, don't use
> --host.
>     If a cross compiler is detected then cross compile mode will be used.
> checking build system type... core2-pc-mingw32
>

First, to get people reading this list to use our wiki page:
http://sourceforge.net/apps/trac/mingw-w64/wiki/MSYS
It mentions the solution I describe below for your problem.

Some oddities:
----------------------
 - build system type should always be reported as i686-pc-mingw32, but I'm
assuming this is a typo.
 - It might be necessary to keep a copy of the prefixed toolchain (the
x86_64-w64-mingw32-gcc.exe and so forth), especially when using MSYS because
you are *essentially* crosscompiling. If you hate renaming everything and
don't *need* GCC 4.5, use sezero's toolchains, they are "MSYS-ready" so to
speak (contain both prefixed and unprefixed copies).
 - I tried configuring GMP and am also having trouble. It seems configure is
not pleased with ld or gcc/g++ as a linker (should be reported imho,
link.exe is a coreutils app, not part of any toolchain).

A solution:
----------------
I just built GMP successfully:
configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32
--enable-shared --disable-static --enable-alloca=no
make
make check
make install

The "target" is not necessary for most other builds, but apparantly GMP
requires it.

FYI: I have uploaded my compile of GMP 5.0.1 for x64 Windows. Just unzip the
x86_64-w64-mingw32 folder to your mingw64 folder (so that the lib, bin and
include folders match up of course). This failed the one test that has been
patched upstream, but the bug was in the test itself, the build and library
itself is fine (see this
thread<https://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTilYfIjBVRPLt645F14gLERcp9-2hVCMF-azj0Qr%40mail.gmail.com&forum_name=mingw-w64-public>for
an explanation).
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to