Bug 2152220

Summary: Backport changes from main to fix compatibility with UCRT64 toolchain
Product: [Fedora] Fedora Reporter: godvino <godvinouseph2006>
Component: clangAssignee: Nikita Popov <npopov>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: airlied, jchecahi, kkleine, npopov, sbergman, sergesanspaille, siddharth.kde, tstellar, tuliom
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: clang-15.0.6-2.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-29 01:10:01 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 godvino 2022-12-09 19:54:06 UTC
Description of problem:
F37 started shipping a UCRT64 toolchain [1]. However clang fails to cross compile code using this toolchain [2]. This has been reported and fixed upstream already [3]. These changes should be backported to F37 in order to fix compiling with the UCRT64 toolchain.

[1]: https://fedoraproject.org/wiki/Changes/F37MingwUCRT
[2]: https://github.com/llvm/llvm-project/issues/59001
[3]: https://github.com/llvm/llvm-project/commit/02b25bd904b51184b579b7f0bac816bdd11eb757 and https://github.com/llvm/llvm-project/commit/98454e388500de2f264c06b555d6009614f8f56e

Comment 2 Nikita Popov 2022-12-21 10:49:42 UTC
Test: https://src.fedoraproject.org/tests/clang/pull-request/17

Comment 3 Fedora Update System 2022-12-21 13:54:54 UTC
FEDORA-2022-0cd67032dc has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-0cd67032dc

Comment 4 Fedora Update System 2022-12-22 01:41:10 UTC
FEDORA-2022-0cd67032dc 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-0cd67032dc`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-0cd67032dc

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

Comment 5 Fedora Update System 2022-12-29 01:10:01 UTC
FEDORA-2022-0cd67032dc has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.