From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4DB24385277E; Wed, 12 Oct 2022 09:34:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4DB24385277E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665567293; bh=oXK2vsk0HIc8iFSEwi0xClKB6rYIhjqkyF7K3Do/MKo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CKbP94Qrd+BsHFgivp7Ir2FIOrD7yEU/gqnYotRfretHk1FU+HBOPuouV+jR+zSxI 3h43FFCrSvgi8WgRFzvo5c9/NftpXKvEunzbF2IShLA6D81KHO++49WdnPAiY3h3QB pvhzXsyFPLhAvj3/77VrRac6SnTkASGC4gaONEuA= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106820] [modules] internal compiler error: in function_and_variable_visibility [for std::shared_ptr{b,??} use via header unit]: mishandling of "weak" usage generated via __gthrw(pthread_mutex_unlock) use Date: Wed, 12 Oct 2022 09:34:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords 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=3D106820 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code --- Comment #6 from Jonathan Wakely --- (In reply to Mark Millard from comment #1) > I've now tried this on fedora 36 with copies of the source code > and got no failure in the fedora context. That will be because we no longer use weak symbols for pthreads when linkin= g to glibc 2.34 or later (as found in recent Fedora releases). I think I should be able to reproduce this on linux with an older glibc, or with libstdc++ modified to use weak symbols again. Trying that now ...=