From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DBAE63857C64; Sat, 29 Aug 2020 17:40:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DBAE63857C64 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598722804; bh=XshrPVNxzAGeJD3eI5Ze14op8HeriB5K9dKeMTLw/Nw=; h=From:To:Subject:Date:From; b=pAWHAx8tldlUSG02gkYnng9Iee+VvKn3ja+7zAqKc5GDIn3CvyKxLvnpSNE2RpMK/ Zc1cBfp40PKP1dERGPnSaOUTOkAM2tTUfmlQMJw39FQZSgVAZ5EORWN33BLcr7A/dR Yr4/xsJoMJBkpCbDMEWaLj12QyhuuJDrDL3x0NGo= From: "bero at lindev dot ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/96845] New: undefined reference to `__aarch64_ldadd4_acq_rel' Date: Sat, 29 Aug 2020 17:40:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Version: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bero at lindev dot ch 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Aug 2020 17:40:05 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96845 Bug ID: 96845 Summary: undefined reference to `__aarch64_ldadd4_acq_rel' Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: bero at lindev dot ch Target Milestone: --- When compiling some packages on aarch64 (e.g. polkit-qt-1 0.113.0) on aarch= 64, the build errors out with /usr/lib64/gcc/aarch64-openmandriva-linux-gnu/10.2.0/../../../../aarch64-op= enmandriva-linux-gnu/bin/ld: core/CMakeFiles/polkit-qt5-core-1.dir/polkitqt1-authority.cpp.o: in function `std::__atomic_base::operator++()': /usr/include/c++/10.2.0/bits/atomic_base.h:326: undefined reference to `__aarch64_ldadd4_acq_rel' This seems to be caused by __aarch64_ldadd4_acq_rel being defined in libgcc, but not libgcc_s, while only libgcc_s is pulled in automatically. Some Linux distributions have a workaround for this in their gcc packaging - they replace libgcc_s.so with an ld script that pulls in libgcc if needed (= see e.g. https://src.fedoraproject.org/rpms/gcc/blob/master/f/gcc.spec#_1303 )=