Bug 2127185

Summary: mingw dlltool fails in (Wine) parallel build
Product: [Fedora] Fedora Reporter: eric.pouech
Component: mingw-binutilsAssignee: Kalev Lember <klember>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: elima, erik-fedora, klember, ktietz, manisandro, marcandre.lureau, rjones
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mingw-binutils-2.38-4.fc37 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-20 00:16:45 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 eric.pouech 2022-09-15 15:12:03 UTC
Description of problem:
just upgraded from fed36 to fed37 beta and parallel compilation of Wine broke

Version-Release number of selected component (if applicable):


How reproducible:
make -j in Wine fails

Steps to Reproduce:
1. get a wine source tree
2. ./configure
3. make -j

Actual results:
lots of errors steming out of *.cross.a files (generated by mingw-dlltool)

Expected results:
successful compilation

Additional info:
This has been analyzed (in Wine's BZ) and is actually fixed upstream in binutils (2.38 and 2.39)
Package in Fed37Beta still suffers from the issue.
In details:
- Wine compilation can call in // dlltool on the same DLL in the same directory (for example building import library and delay load library).
Regression was introduced in binutils by diversifying temp files based on input (== DLL name)

Requirement: backport binutils commit 99852365513266afdd793289813e8e565186c9e6 in fedora packaged.

Comment 1 Fedora Update System 2022-09-15 17:30:33 UTC
FEDORA-2022-c23d9530a2 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-c23d9530a2

Comment 2 Fedora Update System 2022-09-16 02:01:07 UTC
FEDORA-2022-c23d9530a2 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-c23d9530a2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-c23d9530a2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 eric.pouech 2022-09-16 14:42:44 UTC
I can confirm that after upgrading to mingw-binutils-2.38-4.fc37 (with command from #2), the parallel compilation now works again as expected

thanks for your quick response

Comment 4 Fedora Update System 2022-09-20 00:16:45 UTC
FEDORA-2022-c23d9530a2 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.