Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cross mingw/gcc 4.7.2 64 installed successfully + some probs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
f.kater
Guru
Guru


Joined: 23 May 2002
Posts: 330
Location: Berlin

PostPosted: Mon Oct 01, 2012 7:38 pm    Post subject: cross mingw/gcc 4.7.2 64 installed successfully + some probs Reply with quote

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:
Code:
EXTRA_ECONF="--disable-multilib"
.

(I am not using emerge but paludis/cave so I don't know if this is an issue in gentoo's crossdev package, too.)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum