From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-a8-smtp.messagingengine.com (fhigh-a8-smtp.messagingengine.com [103.168.172.159]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.8673.1796392537258404307 for ; Fri, 04 Dec 2026 05:55:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@pbarker.dev header.s=fm2 header.b=nibpIygD; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=VDxiBTTG; spf=pass (domain: pbarker.dev, ip: 103.168.172.159, mailfrom: paul@pbarker.dev) Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 67F6B1400169 for ; Fri, 4 Dec 2026 08:55:36 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Fri, 04 Dec 2026 08:55:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pbarker.dev; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1796392536; x=1796478936; bh=tHR7CofRMVmk5hcyUi1iA6+VAlQnJLkDdvUPVZJTXzo=; b= nibpIygDhwD4hYIT0ttpXLJkNAgqNadO4pEbCVG20mmrP9c2M7WwLwYZgN6oEPOM OO/0YU6DcLMtPa1BWn4F0+CYtyUyYhm1zH+pNnY263b2JujAk2ToEeafQbUaIa0h T7eSShcUn49VXWaYyFDkBILfODGZpuPZckqdj6Y7Hm8hwVGejB+p86IUK5SnLObK OwqrRASxh05G+kWxdt4R+FITMYds0tpi8G+edzFmQlbnrppLZoHnpk0xzLZDFqVB ThsBd0pesm/FEeGZqfzc3zeQNW9b0LNXmu5xJboBKVh7JUXWSIOWvSTidooI9M9e o+wM16+NZF/di6Jbs0N4sw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1796392536; x= 1796478936; bh=tHR7CofRMVmk5hcyUi1iA6+VAlQnJLkDdvUPVZJTXzo=; b=V DxiBTTGHgFDsQAtymdC2DRZffyfZ7ZL8xb66jQaoWFf0XFmu7wQRC9e1hnBQMvIQ 0T8b+x9++5R8nyhqnM/eUNv8+WFuL2n/cPp6JCgORcJ+aKYUOAaWiyKGZYrdjMhq cgxkN6dYPVCXWJQqUdFrieYWcTEFonJRf+7eTYMi1NskmshmGk7TGqdWZQ6ieTmi jDmzI+nsW0nsVt9VbYxSr046f6hONl+yZkuEPIGxH/aupI/unnYbjDRoQ2G7JgVL FD/ZNGePm6PVER0Q+aPkovy5SqY39Jbt8ooVhB0Jlfr+8+HkuZX6SYNAkIGPbOWv 1j1HO2vDgwkbz49hKXwrQ== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=pbarker.dev a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1796392536; d=pbarker.dev; mf=PHBhdWxAcGJhcmtlci5kZXY+; rt=PG9wZW5lbWJlZGRlZC1jb3JlQGxpc3RzLm9wZW5lbWJlZGRlZC5vcmc+; s=fm2:rsa-sha256:TXuFyphPNiBacy5FS43mZgvKwdeSpD75a+lWbd8FNZEPKSJ iGE/nOdAr5R5U7d1W7BXtvv8ER+y5lyG8e36qn3yiLe2OyQSAw8QaTTRCc90IUNa t3xzGYspZhcmLfxReQmp7jFjIW5Ry8tptpc03+n1BH9QdbEfJScIRMj8PxlkpumB EHRLO/3idCFBxCtRWZBiPRo57rwD8JIU28O1HcClSN5Xr4EDRHNwgoziPAR0d1X0 9sLXsW1GN7t4PQQ8JFNyjqEM/7JxZ2Olr4ESCXO4JNHT5GLmTXaVp0r5eZv+bgB2 Gt4mV9sl83VyR3JHrZ4Yg/7R7YD+HAm/7jJ9XFg==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=12; hn=cc,content-transfer-encoding,content-type,date,feedback-id, from,in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:zUzCvBCYVZcRARTL9v6pqFR/zu4HQ38BlUgzozBxD3Y=:TOoZaQwoRs7WvmMaW9mTYY9JioEg7vQ9V6Sqj2ozK6s=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFn07L67Ica+4YfEPGNb1wPy4MD8gY+ZTKBTA6K6I5L/tU005z6jmXmz1HejbMSpC W7g25Idb4r98oXyycyJYtRdwIeP2h/toYEjwdDc9ueCsxHPWGwMSvDtpd2tuR6sxssXNI3 5T7Izp3LNPIzZ/rvSVwG/IfgeqhbCmaI+0y1bbaI3DMJuhrOxjgJmL7nBLAm/B7Cxcxb3j 79H8mYv6JIzgTkYSWyiR0alvhS4KrfhWAM2aPGz1v4H7x6V4bBuQmrWyKrIbCe5RF5IqMi 9OEkSEJIWpCXnnNOhnZ2eUIwBaYFvA2P7LpQEr8aYTIL+NyOReeOQuG34I6tLgJwIMIrOf PVYHLlJF1yAx15eNAK61TaXgFb/swsQqE3Bu+Qg+F9CxZoyu+gL7oCu1CTp+KHGqdcyK3W YjTX3lQAkrZivpuJpEhDQjIiKsby2UtlFH6aJXsGKs8TASey9RT9LIehSQeWzwF+Ubqac7 A8vd85A/DW99BOvW8oXdpLCQssOKpdjUeOTLgh4qP8hyMoF2a93h88tbGZ1DUVdaYH0zk1 vYmAA+TXYPpBO/fWwhewyhdbcb9x9YRVAaPzEHxWq1JDZQwPvPU7g9/Xr5IFniwt5FSeVY tutulmtZHS/yTQHblaMQURc9X0+PZ4jg47UBp/gEzub9kfhi0XT12ok9UxtQ X-ME-Proxy: Feedback-ID: i51494658:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 4 Dec 2026 08:55:35 -0500 (EST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 04 Dec 2026 13:55:34 +0000 Message-Id: To: "Khem Raj" , Cc: "Khem Raj" Subject: Re: [PATCH v2 1/2] compiler-rt: Add option to provide libatomic instead of gcc-runtime From: "Paul Barker" X-Mailer: aerc 0.22.0 References: <20261126165819.1624670-1-khem.raj@oss.qualcomm.com> In-Reply-To: List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 13:55:43 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251989 On Thu Dec 3, 2026 at 5:18 PM GMT, Khem Raj wrote: > ping. Any concerns with this patch ?, it helps to select libatomic choice > cleanly. The question is, do we want to provide this option? Why would someone choose a different libatomic provider? What benefit does it provide? Apologies for the slow response as well, we're limited on review bandwidth and Richard has been focused on the layer changes recently. Best regards, > > On Thu, Nov 26, 2026 at 8:58=E2=80=AFAM Khem Raj wro= te: > >> Add LIBATOMIC_PROVIDER to select the recipe providing libatomic for the >> target. It defaults to "gcc-runtime", which keeps the current behaviour. >> >> With LIBATOMIC_PROVIDER =3D "compiler-rt" >> >> - compiler-rt builds its standalone shared libatomic from atomic.c and >> installs it with the same layout as gcc-runtime: libatomic.so.1.2.0 >> with soname libatomic.so.1, the libatomic.so.1 and libatomic.so >> symlinks, a libatomic.a archive, and the libatomic_asneeded.a and >> libatomic_asneeded.so files gcc 16 links by default. They go in the >> libatomic, libatomic-dev and libatomic-staticdev packages, so package >> names and runtime dependencies stay the same. >> - gcc-runtime no longer builds or packages libatomic for the target. >> - Recipes built with gcc also depend on compiler-rt, since gcc links >> -latomic_asneeded into every link. >> >> The upstream standalone libatomic does not link as is, LLVM links >> shared libraries with -z defs and compiler-rt uses -nodefaultlibs, but >> the generic __atomic_* functions call memcpy/memcmp, so link with libc. >> atomic.c has no constructors, so link it with -nostartfiles. >> >> The shared library keeps one lock table per process for atomics that >> are not lock free, e.g. 64-bit atomics on riscv32, as libatomic does. >> The atomic builtins in the static libclang_rt.builtins archive would >> instead give each executable and shared library its own hidden lock >> table, which loses updates when they access the same object. >> >> Signed-off-by: Khem Raj --=20 Paul Barker