From nobody Sun Nov 05 19:53:17 2023 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 4SNlXG2Jgqz50Bfh for ; Sun, 5 Nov 2023 19:53:18 +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 4SNlXF5Mg4z4Frp for ; Sun, 5 Nov 2023 19:53:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699213997; 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=hyObhM2sIplR/J9P+lnP8ZeJfw5/Riejnxeni53Qo3s=; b=bnhzkR0X21iBinnriyqpAg5DxfwijoTBr06sZu5XVbuKOpZ9O/8xDWzYI1ntMajdVBKZM6 GSmvcWs09T8ZqtZz0CoO4bPyl81TCXUrBcxPz9dh2FCmXmO2EDx+/DFCG2/LYF2+eioho5 yyqr7wMaAxZsuvrTkue4xeLFWEWkNR/vEMkGwE3aq9l3/clwERjC3oo8L98ItSJAe2ynz7 VFQs4alYf1HYdi7dK87M9QR6o2+hGSbFWvwGHCY7LF6UI65bEhTPzj2WqrhUWQ4fXri342 vvmOCUfUt4ITiWhGTcdOBDrr/xEY9LBaRF3Xq79IGJdvTpsxt7sKE4G6VN2lQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699213997; a=rsa-sha256; cv=none; b=Cfy/umGKqEXujAZlpK9y8XARiF0fUTNdk8faPilk86ELsoIQDfgvKiqHWmDCokmDSPY/ju KsLvv1ZNcbjD1OOlU/SprA34wZyJm9akv8+YSWfivjIAQS5pVI2/rnqErTMQ5Vd7jwhl3O krbYbd6M+eTEIyuWYFIWf+3MHLo6U6PT031Mw0Uve3uVFNK7PZUtb9mTRJq6HKwxjtSy5w mcRtXh3EWth+Eux8ObNwM5kJ2RgMpHNF+ozCjjCQqxZU7F8maPWmZvOzLq64ebPHweLrYw 6PF0U/fjmJNq1lUtyDan3fHUhtPIf2qp61Bd3osznTARkURWbOCVSL9oeXo69A== 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 4SNlXF4Qsszdht for ; Sun, 5 Nov 2023 19:53:17 +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 3A5JrHfq009129 for ; Sun, 5 Nov 2023 19:53:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3A5JrHVH009128 for toolchain@FreeBSD.org; Sun, 5 Nov 2023 19:53:17 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 274927] Toolchain fails on the __sync_val_compare_and_swap function without -march=native (port biology/seqwish) Date: Sun, 05 Nov 2023 19:53:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-STABLE 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274927 Mark Millard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marklmi26-fbsd@yahoo.com --- Comment #1 from Mark Millard --- (In reply to Yuri Victorovich from comment #0) Hmm. Which toolchain does it use? Also, which platform(s) have the issue? When I went looking around, I ran into: https://llvm.org/doxygen/Atomic_8cpp_source.html that showed: . . . #if defined(__GNUC__) || (defined(__IBMCPP__) && __IBMCPP__ >=3D 1210) #define GNU_ATOMICS #endif . . . #if LLVM_HAS_ATOMICS =3D=3D 0 sys::cas_flag result =3D *ptr; if (result =3D=3D old_value) *ptr =3D new_value; return result; #elif defined(GNU_ATOMICS) return __sync_val_compare_and_swap(ptr, old_value, new_value); #elif defined(_MSC_VER) return InterlockedCompareExchange(ptr, new_value, old_value); #else # error No compare-and-swap implementation for your platform! #endif . . . FreeBSD tends to not have complete coverage of what comes from libraries in gcc/g++'s code generation on some platforms, such as aarch64. --=20 You are receiving this mail because: You are the assignee for the bug.=