Bug 1475237
Summary: | Bad compilation of small program if LTO is used | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Frediano Ziglio <fziglio> |
Component: | mingw-binutils | Assignee: | Kalev Lember <klember> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 31 | CC: | erik-fedora, fidencio, fziglio, klember, ktietz, manisandro, marcandre.lureau, rjones |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | mingw-binutils-2.32-6.fc31 mingw-binutils-2.30-7.fc30 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-11-28 01:10:57 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
Frediano Ziglio
2017-07-26 09:17:25 UTC
Removing -static and/or -flto make the program works correctly. Sorry, I don't think we have anyone with compiler internals knowledge looking at mingw bugs. Can you file this upstream where it is likely to get more attention, please? I'm happy to backport fixes once it's resolved upstream. (In reply to Kalev Lember from comment #2) > Sorry, I don't think we have anyone with compiler internals knowledge > looking at mingw bugs. Can you file this upstream where it is likely to get > more attention, please? I'm happy to backport fixes once it's resolved > upstream. I opened a bug to MinGW time ago but they closed the bug saying to open to the specific distro. Where should I open this bug then? Upstream gcc maybe? Not sure where the issue exactly is. Do you have a link to the upstream MinGW bug that was closed? The original MinGW bug was at https://sourceforge.net/p/mingw/bugs/2346/. Could be either gcc or binutils but being -static and -flto gcc options I would suspect gcc. I'll open a bug to them, thanks Kai, any known regression with lto? Somebody suggested that -flto and -fwhole-program do not play well together, but the issue happens also removing the -fwhole-program, that is even the command x86_64-w64-mingw32-g++ -flto -O2 -g -pipe -Wall -static -Wl,--subsystem,console -o test.exe test.cpp cause the issue. I don't know how easy would be to try to "git blame" (or something similar) this issue. The Epel 7 mock (older than Fedora 25) does not have this issue. Opened a bug to gcc, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81879. This message is a reminder that Fedora 26 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '26'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 26 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. Happens also in Fedora 28 This message is a reminder that Fedora 28 is nearing its end of life. On 2019-May-28 Fedora will stop maintaining and issuing updates for Fedora 28. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '28'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 28 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Turns out this was a bug in binutils. Fixed in 2.32. Turns out to be a bug in binutils, fixed in 2.32. Still present in Fedora 30 The upstream patch [1] also applies to binutils-2.32, so I don't think it is fixed there? Anyway, I'll backport it. [1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=patch;h=2219ae0b0ebe14373850b000c2abaa31dab1d741 FEDORA-2019-3d381baace has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-3d381baace FEDORA-2019-df955aca3d has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-df955aca3d mingw-binutils-2.32-6.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-3d381baace mingw-binutils-2.30-7.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-df955aca3d *** Bug 1455137 has been marked as a duplicate of this bug. *** mingw-binutils-2.30-7.fc30 package (Fedora 30) fixed this issue. Note that you can use wine to test the program, no need to have a Windows machine. mingw-binutils-2.32-6.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report. mingw-binutils-2.30-7.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report. |