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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE313CCA472 for ; Tue, 7 Oct 2025 12:38:23 +0000 (UTC) Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.web11.17699.1759840699105193108 for ; Tue, 07 Oct 2025 05:38:20 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=SXD93bQH; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: mathieu.dubois-briand@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 13CFD4E40DF4 for ; Tue, 7 Oct 2025 12:38:17 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id C8B91606C8; Tue, 7 Oct 2025 12:38:16 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id BBCB3102F2146; Tue, 7 Oct 2025 14:38:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1759840695; h=from:subject:date:message-id:to:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=Nq11ftpmtfHiOjxJoZQQIphjU4SRRtdfgQmAmREPfdM=; b=SXD93bQHiosrb/2aFpemyAs8Pz9sk8uffNnfIXPSWkxR0BQQZNn0ZZTydGTiX7B021+A0Y 48dAkVO0dnTE/8WPZQNChO9VnIIX9h+XpUfQ0LY10YTliGiDcZ5HtNXAOdBfYtfgn/AbDg Vx5gUwWAV0PbgfRn2tJsxwhO8MKB9FOMpfQQPCPKsWjPdmtp9o9vqwKgwKnQj29vCIIEUH vx8GINBNZpowU6/sfWNSE+Goqcx2NZOk3j9DFcY+yxdoCyFUaNk3ot++T62eJ47dnhxkAT N0/9aEQvZTTawUcan1zZMNOHemzxRrne/1YXrtIwYUXpP87uZm3+uqi6TbzcUg== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 07 Oct 2025 14:38:08 +0200 Message-Id: From: "Mathieu Dubois-Briand" To: , Subject: Re: [OE-core] [PATCH] toolchain-scripts.bbclass: fix bitbake-setup compatibility X-Mailer: aerc 0.19.0-0-gadd9e15e475d References: <20251006191055.729066-1-adrian.freihofer@siemens.com> In-Reply-To: <20251006191055.729066-1-adrian.freihofer@siemens.com> X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 07 Oct 2025 12:38:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/224527 On Mon Oct 6, 2025 at 9:10 PM CEST, Adrian Freihofer via lists.openembedded= .org wrote: > From: Adrian Freihofer > > Pass the BITBAKEDIR parameter to oe-init-build-env when called from the > environment-setup script. This fixes compatibility with bitbake-setup, > which places bitbake in a different directory structure than the > standard poky repository layout where bitbake is located alongside > oe-init-build-env. > > The issue was discovered when running the oe-selftest test > DevtoolIdeSdkTests.test_devtool_ide_sdk_shared_sysroots, which failed > because the environment-setup script was not able to find bitbake. > > File ".../openembedded-core/meta/lib/oeqa/selftest/cases/devtool.py", > line 2955, in test_devtool_ide_sdk_shared_sysroots > self.assertExists(cmake_native) > ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ > File ".../openembedded-core/meta/lib/oeqa/selftest/case.py", line 251, > in assertExists > raise self.failureException(msg) > AssertionError: 'Error: The bitbake directory (/tmp/devtoolqah9ndff2x/bit= bake) > does not exist! Please ensure a copy of bitbake exists at this locatio= n or > specify an alternative path on the command line\n > .../build-st/tmp/sysroots/x86_64/usr/bin/cmake' does not exist > > Signed-off-by: Adrian Freihofer > --- Hi Adrian, Thanks for the new version. It looks like it is braking some tc tests: 2025-10-07 06:03:00,760 - oe-selftest - INFO - 9: 2/4 4/18 (0.31s) (0 faile= d) (meta_ide.MetaIDE.test_meta_ide_can_compile_c_program) 2025-10-07 06:03:00,760 - oe-selftest - INFO - testtools.testresult.real._S= tringException: Traceback (most recent call last): File "/srv/pokybuild/yocto-worker/qemuarm64-tc/build/meta/lib/oeqa/selfte= st/cases/meta_ide.py", line 40, in test_meta_ide_can_compile_c_program runCmd("cd %s; . %s; $CC test.c -lm" % (self.tmpdir_metaideQA, self.env= ironment_script_path)) ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^= ^^^^^^^^^^^^^^^^^^^^^^ File "/srv/pokybuild/yocto-worker/qemuarm64-tc/build/meta/lib/oeqa/utils/= commands.py", line 214, in runCmd raise AssertionError("Command '%s' returned non-zero exit status %d:\n%= s" % (command, result.status, exc_output)) AssertionError: Command 'cd /tmp/metaid ... cc1: fatal error: test.c: No such file or directory Can you have look at this failure please? Thanks, Mathieu --=20 Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com