From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BD494C02192 for ; Wed, 5 Feb 2025 12:01:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 769A6407D5; Wed, 5 Feb 2025 12:01:13 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id xxfoEmP_X_MM; Wed, 5 Feb 2025 12:01:12 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 555154097D Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 555154097D; Wed, 5 Feb 2025 12:01:12 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists1.osuosl.org (Postfix) with ESMTP id 4A5C7CD for ; Wed, 5 Feb 2025 12:01:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 38F5C4123D for ; Wed, 5 Feb 2025 12:01:11 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id MfqAy7ryvxyq for ; Wed, 5 Feb 2025 12:01:09 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=217.70.183.201; helo=relay8-d.mail.gandi.net; envelope-from=peko@korsgaard.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org DD71F407C9 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org DD71F407C9 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by smtp4.osuosl.org (Postfix) with ESMTPS id DD71F407C9 for ; Wed, 5 Feb 2025 12:01:08 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id E4B524438F; Wed, 5 Feb 2025 12:01:06 +0000 (UTC) Received: from peko by dell.be.48ers.dk with local (Exim 4.96) (envelope-from ) id 1tfe5a-0009Ru-0k; Wed, 05 Feb 2025 13:01:06 +0100 From: Peter Korsgaard To: buildroot@buildroot.org Date: Wed, 5 Feb 2025 13:00:58 +0100 Message-Id: <20250205120058.36299-1-peter@korsgaard.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-GND-State: clean X-GND-Score: 0 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvfeegtdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefrvghtvghrucfmohhrshhgrggrrhguuceophgvthgvrheskhhorhhsghgrrghrugdrtghomheqnecuggftrfgrthhtvghrnhepjedvudefudfhledtkedvffehffeuheeitddutedtgefhhefhgfffgfetuefhudejnecuffhomhgrihhnpegsuhhilhgurhhoohhtrdhnvghtnecukfhppedutdelrdekledrvdefvddrheehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddtledrkeelrddvfedvrdehhedphhgvlhhopeguvghllhdrsggvrdegkegvrhhsrdgukhdpmhgrihhlfhhrohhmpehpvghkoheskhhorhhsghgrrghrugdrtghomhdpnhgspghrtghpthhtohepfedprhgtphhtthhopegsuhhilhgurhhoohhtsegsuhhilhgurhhoohhtrdhorhhgpdhrtghpthhtohepphgvthgvrheskhhorhhsghgrrghrugdrtghomhdprhgtphhtthhopehjuhdrohesfhhrvggvrdhfrh X-GND-Sasl: peter@korsgaard.com X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=none (p=none dis=none) header.from=korsgaard.com Subject: [Buildroot] [PATCH v2] package/swipl: fix build without C++ compiler X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Julien Olivain Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Fixes http://autobuild.buildroot.net/results/b24a96b999676990995a466686fe1eacf6cddfef Some of the optional packages in swipl are written in C++, so CMake thinks a C++ compiler is needed even though we build with -DSWIPL_PACKAGES=OFF since the bump to 9.2.6 in commit 33d45b9c672df0 ("package/swipl: bump version to 9.2.6"). Add -DCMAKE_CXX_COMPILER=true to satisfy this check even in setups without C++: -- Check for working CXX compiler: /usr/bin/true -- Check for working CXX compiler: /usr/bin/true - works Signed-off-by: Peter Korsgaard --- Changes since v1: - Add info about since when the issue occurs. package/swipl/swipl.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/swipl/swipl.mk b/package/swipl/swipl.mk index ef9aedcd2d..e29b8d8f46 100644 --- a/package/swipl/swipl.mk +++ b/package/swipl/swipl.mk @@ -36,7 +36,8 @@ SWIPL_CONF_OPTS = \ -DQSORT_R_GNU=1 \ -DSWIPL_NATIVE_FRIEND=$(HOST_SWIPL_SRCDIR) \ -DSWIPL_PACKAGES=OFF \ - -DUSE_TCMALLOC=OFF + -DUSE_TCMALLOC=OFF \ + -DCMAKE_CXX_COMPILER=true ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) SWIPL_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic -- 2.39.5 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot