Bug 1889044

Summary: MinGW Threading Support
Product: [Fedora] Fedora Reporter: Seth <hellator>
Component: mingw-w64-toolsAssignee: Kalev Lember <klember>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 33CC: erik-fedora, klember, ktietz, manisandro
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-17 09:08:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Seth 2020-10-17 06:53:42 UTC
Description of problem:

MinGW cannot compile with threading support.


How reproducible:

Try to compile DXVK. https://github.com/doitsujin/dxvk/issues/1795


Additional info:

For non debian based distros, make sure that your mingw-w64-gcc cross compiler 
does have `--enable-threads=posix` enabled during configure. If your distro does
ship its mingw-w64-gcc binary with `--enable-threads=win32` you might have to
recompile locally or open a bug at your distro's bugtracker to ask for it.

Comment 1 Sandro Mani 2020-10-17 09:08:39 UTC
You just need to install mingw64-winpthreads

Comment 2 Seth 2020-10-17 09:29:14 UTC
Last metadata expiration check: 0:40:33 ago on Sat 17 Oct 2020 04:48:21 AM EDT.
Package mingw64-winpthreads-7.0.0-2.fc33.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Comment 3 Sandro Mani 2020-10-17 09:32:09 UTC
Looks like you are linking statically, also install mingw64-winpthreads-static in that case.

Comment 4 Seth 2020-10-17 09:44:00 UTC
Thanks that worked.