Joined: 23 May 2002
|Posted: Mon Oct 01, 2012 7:38 pm Post subject: cross mingw/gcc 4.7.2 64 installed successfully + some probs
|I thought I share my little experience here:
I managed to install cross mingw/gcc compilers for 32 and 64 bit, version 4.7.2 each (cross-i686-pc-mingw32 resp. cross-x86_64-w64-mingw32).
However, the 64 version seems to require some extra tweaks: On (my) system where multilib is enabled by some gentoo defaults, the mingw/gcc 64 bit version tries to install both -m32 and -m64 variants by default, too. This, however, always fails -- because the 32 run finally tries to link against 64 bit mingw64-runtime libs (like libkernel32, libuser32 etc), although mingw64-runtime installs both 32 and 64 runtime libs.
While it seems some more effort to direct mingw/gcc 64 bit into the right direction when linking m32 resp m64 libs, I worked around this by disabling multilib and having an overlay for i686 and x86_64 separately. Disabling multilib works like this:
(I am not using emerge but paludis/cave so I don't know if this is an issue in gentoo's crossdev package, too.)