Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654964 - sys-devel/crossdev: compile i686-w64-mingw32 gcc with dwarf2 exceptions for msys2 compatibility
Summary: sys-devel/crossdev: compile i686-w64-mingw32 gcc with dwarf2 exceptions for m...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo Crossdev team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-05 12:04 UTC by Jernej Simončič
Modified: 2021-10-27 09:12 UTC (History)
2 users (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 Jernej Simončič 2018-05-05 12:04:19 UTC
i686-w64-mingw32 is currently built with sjlj exception handling, which causes problems when using pre-built packages from the msys2 project. It would be nice if there was an option to build cross-i686-w64-mingw32/gcc with dwarf2:

https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-gcc/PKGBUILD#L146
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2018-05-05 15:59:49 UTC
Can you elaborate what kind of problems it is? Do you try to mix C++ libraries built with different toolchains?

You can also try set
    EXTRA_ECONF="--disable-sjlj-exceptions --with-dwarf2"
via package.env mechanism for cross-i686-w64-mingw32/gcc package.

I'm trying to find where gcc encodes that i686 needs to use sjlj and x86_64 does not need it.
Comment 2 Jernej Simončič 2018-05-08 21:31:02 UTC
> Do you try to mix C++ libraries built with different toolchains?

That's the exact problem (specifically, libstdc++6.dll). I'm looking into package.env for EXTRA_ECONF