From owner-freebsd-toolchain@freebsd.org Tue Mar 31 16:01:06 2020 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7F7B1261A05 for ; Tue, 31 Mar 2020 16:01:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48sDZm0ljFz49Xg for ; Tue, 31 Mar 2020 16:01:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 0ADE0261A01; Tue, 31 Mar 2020 16:01:01 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 064272619FE for ; Tue, 31 Mar 2020 16:01:01 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48sDZf5vV8z49Tw for ; Tue, 31 Mar 2020 16:00:58 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9D635C67E for ; Tue, 31 Mar 2020 15:54:06 +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 02VFs6JB018599 for ; Tue, 31 Mar 2020 15:54:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 02VFs6Gc018598 for toolchain@FreeBSD.org; Tue, 31 Mar 2020 15:54:06 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 230888] Missing 64 bit atomic functions for i386 (libatomic) Date: Tue, 31 Mar 2020 15:54:06 +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: CURRENT X-Bugzilla-Keywords: feature, needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mi@FreeBSD.org X-Bugzilla-Status: Open 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 MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Mar 2020 16:01:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230888 Mikhail Teterin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mi@FreeBSD.org --- Comment #21 from Mikhail Teterin --- (In reply to David Chisnall from comment #3) > Is there a reason, given that LLVM's atomic.c is in contrib, > that we don't just connect it to the libgcc_s build? Based on David's suggestion, I did this: --- lib/libcompiler_rt/Makefile.inc (revision 359474) +++ lib/libcompiler_rt/Makefile.inc (working copy) @@ -18,6 +18,7 @@ SRCF+=3D ashlti3 SRCF+=3D ashrdi3 SRCF+=3D ashrti3 +SRCF+=3D atomic SRCF+=3D clear_cache SRCF+=3D clzdi2 SRCF+=3D clzsi2 rebuilt the world, and was then able to build lang/spidermonkey60 using the base cc -- instead of dragging-in the gcc-suit: --- Makefile (revision 529979) +++ Makefile (working copy) @@ -53,11 +53,6 @@ CONFIGURE_TARGET=3Dx86_64-portbld-freebsd${OSREL} .endif -.if ${ARCH} =3D=3D i386 -# ld: error: undefined symbol: __atomic_load -USE_GCC=3D 9+ -.endif - post-install: ${RM} ${STAGEDIR}${PREFIX}/lib/libjs_static.ajs ${LN} -fs libmozjs-${SP_VER}.so ${STAGEDIR}${PREFIX}/lib/libmozjs-${SP_VER}.so.1 Maybe, this should be done until an alternative is found? The ticket is 1.5 years old and the "just build using gcc" is not a good solution -- especially for those older (and slower) i386-systems we're concerned about. --=20 You are receiving this mail because: You are the assignee for the bug.=