Bug 2188014

Summary: gcc-toolset-13-gcc: Revert <iostream> initialization changes for hybrid linkage
Product: Red Hat Enterprise Linux 8 Reporter: Florian Weimer <fweimer>
Component: gcc-toolset-12-gccAssignee: Marek Polacek <mpolacek>
Status: CLOSED ERRATA QA Contact: Václav Kadlčík <vkadlcik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.9CC: fweimer, markobri, mpolacek, qe-baseos-tools-bugs, vkadlcik
Target Milestone: rcKeywords: Bugfix, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gcc-toolset-13-gcc-13.1.1-4.1.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 2188013 Environment:
Last Closed: 2023-11-14 15:35:08 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:
Bug Depends On: 2188013    
Bug Blocks:    

Description Florian Weimer 2023-04-19 13:28:51 UTC
+++ This bug was initially created as a clone of Bug #2188013 +++

We cannot assume that libstdc++.so.6 performs std::cout etc. initialization, so the GTS header files need to keep using the old initialization model. Otherwise, things will build and link just fine, but the initialization might not happen as expected.

Note: Needs to be transitioned to the gcc-toolset-13-gcc component once that exists.

Comment 1 Florian Weimer 2023-04-19 13:32:33 UTC
Jakub suggests that we could pull in an ELF constructor in libstdc++_nonshared.a instead (with an appropriate early priority).

Comment 6 errata-xmlrpc 2023-11-14 15:35:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (gcc-toolset-13-gcc bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:7014