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 - compiler-rt: FTBFS in Fedora rawhide/f34
Summary: compiler-rt: FTBFS in Fedora rawhide/f34
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: compiler-rt
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom Stellard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F34FTBFS 1922673
TreeView+ depends on / blocked
 
Reported: 2021-02-01 17:23 UTC by Fedora Release Engineering
Modified: 2021-02-09 15:59 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (32.00 KB, text/plain)
2021-02-01 17:23 UTC, Fedora Release Engineering
no flags Details
root.log (32.00 KB, text/plain)
2021-02-01 17:24 UTC, Fedora Release Engineering
no flags Details
state.log (1.00 KB, text/plain)
2021-02-01 17:24 UTC, Fedora Release Engineering
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 98943 0 P1 RESOLVED [11 Regression] gcc driver does not fail on unknown files: tricks configure scripts to recognize /W4 and -diag-disable 1... 2021-02-17 16:33:40 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.