From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE74A3858D39; Tue, 28 Feb 2023 13:28:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE74A3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677590888; bh=Hcr69ICxk8GJiE9yVuBqrSg3Jl2KDQnrMyFsyNNuSNk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FL0qsV9FhrKWM5SfNdyVAQi2rrVxZ2FHrIcPEfbh8rU/ed78cgKk/y38VKfpJiddN y91u5PWW90Tz/P7pezM/pxYniG9FfB8NDP32ujSymJSTnXkrbaDa9yM/oTq1Hf2OEU cUpWj/FoP0c797QhppBkaGr/G+SIvqPSAg/ca+aI= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108969] [13 Regression] Initializing iostreams in the library needs a GLIBCXX_3.4.31 versioned symbol Date: Tue, 28 Feb 2023 13:28:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ABI X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108969 --- Comment #4 from Jonathan Wakely --- The patch above means that a program using cout (or any of the standard streams) gets: 0000000000404040 B _ZSt4cout@GLIBCXX_3.4.31 instead of: 0000000000404040 B _ZSt4cout@GLIBCXX_3.4 And then it fails to run with the older libstdc++.so: ./a.out: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.31' not found (require= d by ./a.out) But I agree that it's not a complete solution for all targets, just a quick= fix for linux distros where this is most likely to cause problems today.=