Bug 2356219
| Summary: | LTO-related i686 build failures on gcc 15 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Panu Matilainen <pmatilai> |
| Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dmalcolm, fweimer, jakub, jlaw, josmyers, jwakely, mcermak, mpolacek, msebor, nickc, nixuser, sipoyare |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | gcc-15.1.1-1.fc42 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-04-28 01:32:07 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Panu Matilainen
2025-03-31 13:51:27 UTC
FWIW, I've applied the following workaround to disable LTO on i686 so we're not blocked by this: https://src.fedoraproject.org/rpms/rpm/pull-request/65 I can reproduce in f43 mock with just
echo 'void foo (void) {}' > a.c; gcc -O2 -flto=auto -ffat-lto-objects -fhardened -o a.o -c a.c; gcc -O2 -flto=auto -r -o a.lo a.o
lto1: fatal error: open failed: No such file or directory
...
The -fhardened option seems to be essential, without that it doesn't fail, and the problem is that somehow a.lo.lto.o-args.0 doesn't contain
just the expected a.o, but
""
a.o
and the "" file (literally length zero name) can't be opened.
I can't reproduce it with latest trunk and older binutils though.
Somehow
gcc -O2 -flto=auto -ffat-lto-objects -fhardened -o a.s -S a.c
writes
.section .gnu.lto_.opts,"e",@progbits
.string "'-fno-openmp' '-fno-openacc' '-fPIC' '' '-mtune=generic' '-march=i686' '-O2' '-flto=auto' '-ffat-lto-objects'"
(note the '' in there).
FEDORA-2025-9bcdcfb5cd (gcc-15.1.1-1.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-9bcdcfb5cd FEDORA-2025-9bcdcfb5cd has been pushed to the Fedora 42 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-9bcdcfb5cd` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-9bcdcfb5cd See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2025-9bcdcfb5cd (gcc-15.1.1-1.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report. Thanks for the fix! Just rebuilt rpm on rawhide with the workaround dropped, worked fine. |