From nobody Tue Sep 13 23:58:40 2022 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MS0mJ5gkmz4cnr0 for ; Tue, 13 Sep 2022 23:58:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MS0mJ3FpYz3s8W for ; Tue, 13 Sep 2022 23:58:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MS0mJ2HyKzVgq for ; Tue, 13 Sep 2022 23:58:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 28DNweMn037211 for ; Tue, 13 Sep 2022 23:58:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 28DNweD0037210 for toolchain@FreeBSD.org; Tue, 13 Sep 2022 23:58:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 266402] clang crashes on math/lean on aarch64 on 13.1-RELEASE and 14-CURRENT Date: Tue, 13 Sep 2022 23:58:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663113520; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=95MiHSE940fxsDkrclV2xSJkKeVkxXX1eOchbkZVkvc=; b=YBY/yLWkLWZPBknYDHCYfVF8AsrGlHpLNVG08ows1GPqasZiNzKjAXU6exBxSSGMwbHFUC 0wktpMuvTjrx1B5a1DXkwmM3zfF57VcgVRBkfjdXb+dWXuquhCmMgUJNJYPs74SnRTfrsc Mvw+7XPwUV4L7x79tdyiVQ6AFkxqZQybjAIAKSHrcTwaZBKXY/TFITaTaB13nt3n0c7bV/ g70VhIpt1Tm4YJJVPszllkV5JULjrqt6THBsJg/WTpPLkUs1BM3fgSNKKxhUwwmv2Z7m0V IDmOxBS5G2CwFbmX4F0KfL7FYgVxHNsqhxTqqpIGRLr6bIWEsFV4UlNmoaYCjw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663113520; a=rsa-sha256; cv=none; b=uTFhmzASPJUTef1Why5X9AKDVA26uzhwkHbZKhdjjKkXK+eNTZZPzrQ3bbCz+yaBqp1Ymx ga758WmX+7e/voAfP27qDH0GNAELvS5LvMmqSv8ntjsO6yTp9+jQyK/ASFka2bPtW1K8UK BjiYS5z1CBnEcWw2Ixq6uHCP2vYj1oNbTjfiyZdIJ8wv/MRD6/Sa0KRL9Y1T/9BfYxmr3K yJs/wStZZPfc100lOeBPF9fJ3FaAScYmAQk4vgJ0qaclqwq662yia52dtJlhRiTgMq0Sja cPAOYh3E2+i32kezrYY7aJUUN4TTrG6Ugo5vFTmEDd+cxW+gtsBB6H2+9GkJPQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266402 Mark Millard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marklmi26-fbsd@yahoo.com --- Comment #1 from Mark Millard --- The: QUOTE [100% 340/340] : && /usr/bin/c++ -Wall -Wextra -std=3Dc++11 -D LEAN_JSON -D LEAN_MULTI_THREAD -D LEAN_AUTO_THREAD_FINALIZATION -DLEAN_BUILD_TYPE=3D"Rel= ease" -D__CLANG__ -D HAS_TCMALLOC -O3 -DNDEBUG -fstack-protector-strong -pthread shell/CMakeFiles/shell_js.dir/lean_js.cpp.o shell/CMakeFiles/shell_js.dir/server.cpp.o tests/shell/CMakeFiles/shell_test.dir/shell.cpp.o -o tests/shell/shell_test= =20 -Wl,-rpath,/usr/local/lib libleanstatic.a /usr/local/lib/libgmp.so=20 /usr/local/lib/libtcmalloc.so -lprocstat && : END QUOTE does not look coherent for FreeBSD, especially for aarch64: the lang/gcc*'s libstdc++ requires the lang/gcc*'s libgcc_s.so.1 for aarch 64 (because FreeBSD does not provide a compatible /lib/libgcc_s.so.1 : e.g., "version GCC_4.5.0 required by /usr/local/lib/gcc12/libstdc++.so.6 not found"). For reference (just what I happen to have in place, not necessarily matching the lang/gcc* from the build that you reference): # find /usr/local/ -name "libgcc_s.so*" -print | more /usr/local/lib/gcc12/libgcc_s.so.1 /usr/local/lib/gcc12/libgcc_s.so # find /usr/local/ -name "libstdc++*" -print | more /usr/local/lib/gcc12/libstdc++.so.6.0.30 /usr/local/lib/gcc12/libstdc++.so.6 /usr/local/lib/gcc12/libstdc++.a /usr/local/lib/gcc12/libstdc++.so /usr/local/lib/gcc12/libstdc++fs.a /usr/local/lib/gcc12/libstdc++.so.6.0.30-gdb.py So, with only -Wl,-rpath,/usr/local/lib it is not referencing where to find the likes of /usr/local/lib/gcc12/libgcc_s.so.1 would be found and instead ends up with: /lib/libgcc_s.so.1 in use ( or no binding for libgcc_s.so.1 ). The resulting binding, if any, would end up with issues like: ld-elf.so.1: /lib/libgcc_s.so.1: version GCC_4.5.0 required by /usr/local/lib/gcc12/libstdc++.so.6 not found Unless FreeBSD implements the GCC_4.5.0 related symbols involved in /lib/libgcc_s.so.1 for aarch64, such is a port's problem to solve by making the likes of (example) /usr/local/lib/gcc12/libgcc_s.so.1 being used instead. --=20 You are receiving this mail because: You are the assignee for the bug.=