Bug 1926932
Summary: | Koji and rawhide machine build fails differently | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Milan Crha <mcrha> | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 35 | CC: | aoliva, dmalcolm, fweimer, jakub, jwakely, law, mpolacek, msebor, nickc, sipoyare | ||||
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: | 2022-12-13 15:17:37 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: | |||||||
Attachments: |
|
Description
Milan Crha
2021-02-09 17:26:40 UTC
The assembler messages you are citing are totally uninteresting, that is just because you are using -pipe and when the compiler crashes or is killed, the assembler sees incompletely assembly. So, what is really interesting is see what messages the compiler emitted. Created attachment 1755997 [details]
zipped build log
It looked like the only interesting thing in the log. I attached the full build log, if it'll be helpful.
Okay, running `make -j1` gives the error about the duplicated symbol definition. I compared the sources (the old and the new version) and the main change was to use std::shared_ptr instead of boost::shared_ptr, aka a move from boost to std classes/templates where applicable. I do not see any other significant change, but I admit I'm not that good in C++ to be sure what is a significant change and what is not. Do you have any advice on this error, please? So, seems this has nothing to do with LTO, and is related to the extern template class std::basic_string<char>; extern template class std::vector<std::string>; extern template class std::list<std::string>; lines in src/syncevo/util.h , removing them makes the problem go away. cvise reduced testcase that reproduces the problem is: namespace std { inline namespace __cxx11 {} template <typename> class allocator; template <class> struct char_traits; inline namespace __cxx11 { template <typename a, typename = char_traits<a>, typename = allocator<a>> struct basic_string { static const unsigned long npos = 1; }; } template <typename a, typename b, typename c> const unsigned long basic_string<a, b, c>::npos; template <typename, typename d> struct e { template <bool> d f() const; }; template <typename a, typename d> template <bool> d e<a, d>::f() const { basic_string<char>::npos; } } extern template class std::basic_string<char>; - put this into header, include in two different TUs and link together, one gets a link error. Thank you for finding the cause. I'll pass it to the upstream developer. Do you think it's a code issue to declare such things in the header or it's a compiler issue? I just checked and these lines (apart of may other) had been added in the src/syncevo/util.h in the 1.99.2 pre-release. This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle. Changing version to 35. This message is a reminder that Fedora Linux 35 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13. 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 'version' of '35'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 35 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 Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed. Fedora Linux 35 entered end-of-life (EOL) status on 2022-12-13. Fedora Linux 35 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 Linux please feel free to reopen this bug against that version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see the version field. If you are unable to reopen this bug, please file a new report against an active release. Thank you for reporting this bug and we are sorry it could not be fixed. |