Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 631460

Summary: sys-devel/gcc: when installed for mingw-w64 there is no official way to set 'Thread model: posix'
Product: Gentoo Linux Reporter: hanetzer
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: UNCONFIRMED ---    
Severity: normal CC:, carlphilippreh, nik_cro, nrndda, rkitover,
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---

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.
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 (RETIRED) gentoo-dev 2021-01-03 12:50:05 UTC
*** Bug 760018 has been marked as a duplicate of this bug. ***
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2021-01-03 12:51:53 UTC
*** Bug 669856 has been marked as a duplicate of this bug. ***
Comment 3 Ionen Wolkens gentoo-dev 2021-01-24 09:53:51 UTC
*** Bug 766821 has been marked as a duplicate of this bug. ***
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2023-08-23 17:35:44 UTC
Is this still relevant?
Comment 5 tt_1 2023-10-18 07:23:16 UTC
(In reply to Andreas K. Hüttel from comment #4)
> Is this still relevant?

Yes it is, for instance if you want to build a mingw-toolchain to build dxvk libs. There is mingw64-toolchain as well, but if you were to use an old non-x86 server as a build-bot, you've still got to intervene manually. 

Maybe a masked useflag for gcc can be helpfull?