Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419627 - dev-util/mingw-runtime-3.18: patch to work with gcc-4.6
Summary: dev-util/mingw-runtime-3.18: patch to work with gcc-4.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://sourceforge.net/tracker/?func=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-04 15:50 UTC by Maciej S. Szmigiero
Modified: 2012-09-28 10:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej S. Szmigiero 2012-06-04 15:50:29 UTC
mingw-runtime-3.18 needs to apply a patch from http://sourceforge.net/tracker/?func=detail&aid=3446009&group_id=2435&atid=302435 .

Otherwise, when using gcc-4.6 the compiled programs crash on TLS init in mingw runtime code due to more aggressive optimization introduced in GCC 4.6.
Comment 1 Alon Bar-Lev 2012-06-07 12:28:57 UTC
Is there any reason why you want to use mingw and not mingw-w64?
mingw-w64 is much better maintained.
Comment 2 Maciej S. Szmigiero 2012-06-07 12:49:45 UTC
I thought it's only for Win64, but now I see that it's not. Thanks for pointing this out.
However, it still would be good to have this patch applied for mingw legacy users.
Comment 3 Alon Bar-Lev 2012-06-07 14:10:28 UTC
I think the legacy should be removed as upstream is not active nor responsive.
Even cygwin switched.
Comment 4 Maciej S. Szmigiero 2012-06-07 14:38:52 UTC
If mingw-w64 is better in every inch then thats the right thing to do,
but I don't think decision to remove mingw will be made right now, right?
Comment 5 Alon Bar-Lev 2012-06-07 14:56:49 UTC
(In reply to comment #4)
> If mingw-w64 is better in every inch then thats the right thing to do,
> but I don't think decision to remove mingw will be made right now, right?

I am not the decision making guy...
But, spread the word, nobody should use legacy mingw anymore.
Comment 6 SpanKY gentoo-dev 2012-08-12 04:50:29 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add fix for building with gcc-4.6
http://sources.gentoo.org/dev-util/mingw-runtime/files/mingw-runtime-3.18-gcc-4.6.patch?rev=1.1
http://sources.gentoo.org/dev-util/mingw-runtime/mingw-runtime-3.18.ebuild?r1=1.2&r2=1.3
Comment 7 Maciej S. Szmigiero 2012-08-14 20:35:17 UTC
Thanks, tested and works fine.
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2012-09-28 10:55:39 UTC
(In reply to comment #0)
> mingw-runtime-3.18 needs to apply a patch from
> http://sourceforge.net/tracker/
> ?func=detail&aid=3446009&group_id=2435&atid=302435 .
> 
> Otherwise, when using gcc-4.6 the compiled programs crash on TLS init in
> mingw runtime code due to more aggressive optimization introduced in GCC 4.6.

I guess the original code is just buggy.
Looks like gcc is not the guy to blame: bug #436482