Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1923664

Summary: compiler-rt: FTBFS in Fedora rawhide/f34
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: compiler-rtAssignee: Tom Stellard <tstellar>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: airlied, jakub, law, nathan, sguelton, siddharth.kde, tstellar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1868278, 1922673    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2021-02-01 17:23:56 UTC
compiler-rt failed to build from source in Fedora rawhide/f34

https://koji.fedoraproject.org/koji/taskinfo?taskID=60913671


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Please fix compiler-rt at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
compiler-rt will be orphaned. Before branching of Fedora 35,
compiler-rt will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2021-02-01 17:23:59 UTC
Created attachment 1753927 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2021-02-01 17:24:00 UTC
Created attachment 1753928 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2021-02-01 17:24:01 UTC
Created attachment 1753929 [details]
state.log

Comment 4 Tom Stellard 2021-02-04 04:27:05 UTC
Builds with gcc-11.0.0-0.16.fc34  but fails with gcc-11.0.0-0.17.fc34.

It looks like compiler-rt's feature checks are getting confused and it thinks the compiler supports these flags: /wd4146 /wd4291 /wd4391 /wd4722 /wd4800  But gcc complains about this.

Comment 5 Tom Stellard 2021-02-04 04:53:40 UTC
Here is a small reproducer that demonstrates the change in behavior:

gcc-10.2.1-9.fc33:

echo 'int main() { return 0; }' | gcc /wd48000 -x c -c -
gcc: error: /wd48000: No such file or directory

gcc-11.0.0-0.18.fc34:

echo 'int main() { return 0; }' | g++ /wd48000 -x c -c -
g++: warning: /wd48000: linker input file unused because linking not done


compiler-rt uses the standard cmake function: check_cxx_compiler_flag[1] to check for supported compiler flags, so it's likely that other packages that use cmake and check for this kind of flag could also hit the same problem.

[1] https://cmake.org/cmake/help/latest/module/CheckCXXCompilerFlag.html

Comment 6 Nathan Sidwell 2021-02-05 19:27:17 UTC
sorry about that,  this patch is now on trunk:

6606b852bfa 2021-02-04 | driver: error for nonexistent linker inputs [PR 98943]

Comment 7 Ben Cotton 2021-02-09 15:59:29 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.