From patchwork Mon Dec 5 12:54:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nosthoff X-Patchwork-Id: 1712280 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NQk5x0rd3z23p1 for ; Mon, 5 Dec 2022 23:54:45 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 4152D415FB; Mon, 5 Dec 2022 12:54:43 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 4152D415FB X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fiR-XbV_xWXH; Mon, 5 Dec 2022 12:54:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 3AD86415FE; Mon, 5 Dec 2022 12:54:41 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 3AD86415FE X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 785361BF4E2 for ; Mon, 5 Dec 2022 12:54:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5EABB818C0 for ; Mon, 5 Dec 2022 12:54:35 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 5EABB818C0 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dR7nkEjeoYoO for ; Mon, 5 Dec 2022 12:54:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org E145381D2D Received: from mail.heine.tech (mail.heine.tech [195.201.24.99]) by smtp1.osuosl.org (Postfix) with ESMTPS id E145381D2D for ; Mon, 5 Dec 2022 12:54:33 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 0FF451814B9; Mon, 5 Dec 2022 13:54:30 +0100 (CET) To: buildroot@buildroot.org Date: Mon, 5 Dec 2022 13:54:22 +0100 Message-Id: <20221205125423.13983-1-buildroot@heine.tech> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heine.tech; s=dkim; t=1670244871; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=d8aOo/vQ1jw2kD0TyCyVctcAOgEji5Cf+tireDxitz0=; b=O5s71O3Cj//tRfGNy+Pjg9dxqJaE0i4wqFevgzqT8Z4JzgXVTyMtzvkOFYjp7g2RYWwl3K Iw7WU+JSo7IAq83X6lni6gSJ1rvftQt3CGTKBgGP85OMa7odPxqc6SIuID6EsEsj9C4SI6 IH8qmY/kZhPWZDhYWoQYakT7EKpGJv4= X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key) header.d=heine.tech header.i=@heine.tech header.a=rsa-sha256 header.s=dkim header.b=O5s71O3C Subject: [Buildroot] [PATCH] [RFC] package/boost: Boost.Atomic needs atomic intrinsics X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Michael Nosthoff via buildroot From: Michael Nosthoff Reply-To: Michael Nosthoff Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" From: Michael similar to previous problems with nios2 and not-available atomic ints the build for Boost.Atomics also fails for ARC Targets which don't have the ATOMICS_EXT flag set. according to [0] "Boost.Atomic has a hard requirement of the native atomic operations on bytes". The same tests mentioned there fail for ARC. so introduce a dependency on BR2_ARC_ATOMIC_EXT for BR2_arc. Fixes: http://autobuild.buildroot.net/results/4ca54a85672d7b9328b1909b457e548c6032a493 [0] https://github.com/boostorg/atomic/issues/42#issuecomment-734130348 Signed-off-by: Michael Nosthoff --- I'm not 100% sure if BR2_ARC_ATOMIC_EXT is the correct flag to use. I'm open to suggestions for better ways and what to propagate to dependent packages. --- package/boost/Config.in | 1 + 1 file changed, 1 insertion(+) diff --git a/package/boost/Config.in b/package/boost/Config.in index b99b01f22e..e012f5050f 100644 --- a/package/boost/Config.in +++ b/package/boost/Config.in @@ -19,6 +19,7 @@ if BR2_PACKAGE_BOOST config BR2_PACKAGE_BOOST_ATOMIC bool "boost-atomic" depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS + depends on !(BR2_arc && !BR2_ARC_ATOMIC_EXT) help C++11-style atomic<>.