Bug 2239498
Summary: | Internal compiler error | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michal Schorm <mschorm> |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 40 | CC: | dmalcolm, fweimer, jakub, jlaw, jwakely, mcermak, mpolacek, msebor, nickc, sipoyare |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
URL: | https://koji.fedoraproject.org/koji/getfile?taskID=106290589&volume=DEFAULT&name=build.log&offset=-40000 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2025-04-08 16:12:00 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
Michal Schorm
2023-09-18 17:14:35 UTC
In a private fork in this branch: https://src.fedoraproject.org/fork/mschorm/rpms/mariadb/commits/internal-compiler-error I've put the prepared rebase to mariadb 10.5.22 and on top of it several debug commits aims mostly minimize the reproducer. The last debug commit enables the debug build, and it is the only mode, in which the compilation succeeded. (build failed in %install phase , which if file) You can do a test builds from that branch with: fedpkg --release=rawhide build --scratch --srpm --arches=i686 That is how I produced the scratch builds https://koji.fedoraproject.org/koji/taskinfo?taskID=106357029 https://koji.fedoraproject.org/koji/taskinfo?taskID=106357363 https://koji.fedoraproject.org/koji/taskinfo?taskID=106358180 (this one is the debug build) If you want quick workaround, I think %ifarch i686 %global _lto_cflags %{nil} %endif early in the spec file should do the trick, as it (unfortunately for me) isn't reproducible without LTO. Will try to reduce it now. Thank you for the workaround! It seems to be working well so far. %ifarch i686 %global _lto_cflags %{nil} %endif I'll use it for the production builds, and potentially revert it later, once the issue is resolved, either on my, your or the upstream side. From initial investigation, it looks like some LRA bug on debug instructions where it leaves a pseudo-register in one of them for some reason. So, another workaround might be to build i686 sql/item.cc with -g0 rather than -g, or perhaps just -fno-var-tracking-assignments. Now reduced and filed upstream as https://gcc.gnu.org/PR111497 Thank you Jakub. I haven't expected such a quick help and fast resolution. Well done, much appreciated 👍 This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle. Changing version to 40. Upstream ticket closed as RESOLVED. I haven't encountered this issue recently. Closing Thank you for the fix ! |