Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631460 - sys-devel/gcc: when installed for mingw-w64 there is no official way to set 'Thread model: posix'
Summary: sys-devel/gcc: when installed for mingw-w64 there is no official way to set '...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 669856 760018 766821 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-09-20 04:17 UTC by hanetzer
Modified: 2021-01-24 09:53 UTC (History)
5 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 hanetzer 2017-09-20 04:17:10 UTC
When installing a mingw-w64 toolchain (for example, via
`crossdev i686-w64-mingw32` or the like) one will end up with:

i686-w64-mingw32-gcc -v
Using built-in specs.
COLLECT_GCC=i686-w64-mingw32-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-w64-mingw32/6.4.0/lto-wrapper
Target: i686-w64-mingw32
Configured with: .....
Thread model: win32
gcc version 6.4.0 (Gentoo 6.4.0 p1.0)

One can manually use `EXTRA_ECONF="--enable-threads=posix" emerge -1 cross-i686-w64-mingw32/gcc` after rebuilding cross-i686-w64-mingw32/mingw64-runtime with USE=libraries (to get the pthread dlls) in order to obtain 'Thread model: posix'

It would be of use to either provide a USE flag for sys-devel/gcc to enable posix threads for mingw-w64 or just explicitly set the configure flag after the initial bootstrap.
Comment 1 Sergei Trofimovich gentoo-dev 2021-01-03 12:50:05 UTC
*** Bug 760018 has been marked as a duplicate of this bug. ***
Comment 2 Sergei Trofimovich gentoo-dev 2021-01-03 12:51:53 UTC
*** Bug 669856 has been marked as a duplicate of this bug. ***
Comment 3 Ionen Wolkens 2021-01-24 09:53:51 UTC
*** Bug 766821 has been marked as a duplicate of this bug. ***