From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B90F38582B3; Mon, 8 Aug 2022 08:09:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B90F38582B3 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/29455] New: [gdb/build, clang-13] undefined reference to `__atomic_load' Date: Mon, 08 Aug 2022 08:09:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2022 08:09:49 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29455 Bug ID: 29455 Summary: [gdb/build, clang-13] undefined reference to `__atomic_load' Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- I tried to build gdb with clang-13: ... $ clang-13 -v=20 clang version 13.0.0 Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/bin Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-suse-linux/10 Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-suse-linux/11 Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-suse-linux/12 Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-suse-linux/4= .8 Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-suse-linux/6 Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-suse-linux/7 Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-suse-linux/8 Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-suse-linux/9 Selected GCC installation: /usr/bin/../lib64/gcc/x86_64-suse-linux/12 Candidate multilib: .;@m64 Selected multilib: .;@m64 ... and ran into: ... /usr/bin/ld: unittests/packed-selftests.o: in function `std::atomic >::load(std::memory_order) const': /usr/bin/../lib64/gcc/x86_64-suse-linux/12/../../../../include/c++/12/atomi= c:285: undefined reference to `__atomic_load' /usr/bin/ld: unittests/packed-selftests.o: in function `std::atomic >::store(packed, std::memory_order)': /usr/bin/../lib64/gcc/x86_64-suse-linux/12/../../../../include/c++/12/atomi= c:271: undefined reference to `__atomic_store' clang-13.0: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [gdb] Error 1 make[1]: Target `all' not remade because of errors. make[1]: Leaving directory `/home/vries/gdb_versions/devel/build/gdb' make: *** [all-gdb] Error 2 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=