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 E4161EB64DC for ; Thu, 22 Jun 2023 09:34:35 +0000 (UTC) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by mx.groups.io with SMTP id smtpd.web11.7398.1687426472032792914 for ; Thu, 22 Jun 2023 02:34:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eDh+u5VX; spf=pass (domain: bootlin.com, ip: 217.70.183.193, mailfrom: luca.ceresoli@bootlin.com) X-GND-Sasl: luca.ceresoli@bootlin.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1687426470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HNpK6JunYKiRcbAsqnPGe2erLHyi8ifsvVlmKbrchLo=; b=eDh+u5VX5H2+A5enRmDtaBYTXRobtfX+9HGNF0Ykm/Pdh8iSnE7RAEVV0hFhOU3aPv8m0L A/pAiA4vvyUDFyREf3xfDiHPgYy2gTnFX2WbzvrN8oONIeUs3m18vDpPtpsVjLZ5AaoDhr bA6McAVpOoNEwN5GkLsnmkD5tXxpFmGqzDqr4CZ/dMBJyga3QvAUdI2evSG9p1B7rYRqlA pSs9yqbLK+aHzjEuk0588eqT/s+5bcjtAiIFxnlbKoZd8F6eapO0jJEg6Vz8uw9dktykuV sdZFeuhS8K12on9nvg/Kv1AAnkCo5clgxwiBJyqwC/Ibqb0U8B6up5+tvtQ9Ig== X-GND-Sasl: luca.ceresoli@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 9D451240010; Thu, 22 Jun 2023 09:34:29 +0000 (UTC) Date: Thu, 22 Jun 2023 11:34:28 +0200 From: Luca Ceresoli To: Maxime =?UTF-8?Q?Roussin-B=C3=A9langer?= Cc: openembedded-core@lists.openembedded.org Subject: Re: [OE-core] [PATCH] package: fix src packaging path for nativesdk Message-ID: <20230622113428.5551d875@booty> In-Reply-To: <20230620213640.2050758-1-maxime.roussinbelanger@gmail.com> References: <20230620213640.2050758-1-maxime.roussinbelanger@gmail.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 ; Thu, 22 Jun 2023 09:34:35 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/183233 Hello Maxime, On Tue, 20 Jun 2023 17:36:40 -0400 Maxime Roussin-B=C3=A9langer wrote: > From: Maxime Roussin-Belanger >=20 > Directory tree doesn't contain the correct structure when packaging > for source files for the sdk. Since the structure is incorrect, > they won't be part of the installed sdk. >=20 > Having source files in nativesdk is necessary when using it as a > development sysroot for debugging. Otherwise, when debugging in an > emulation mode it's impossible to step in 3rd party library code. >=20 > Signed-off-by: Maxime Roussin-Belanger These errors appeared when testing on the autobuilders with your patch applied. I'm not totally sure this patch is the cause for all of them, but it looks like the most likely cause. Some errors appear as: ERROR: nativesdk-libgcc-13.1.1-r0 do_package: Error executing a ... python function in exec_func_python() autogenerated: Exception: Exception= : KeyError: 'getpwuid(): uid not found: 6000' Path ./package/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-li= nux/usr/src/debug/nativesdk-libgcc/13.1.1-r0/gcc/gcov-io.cc is owned by uid= 6000, gid 6000, which doesn't match any user/group on target. This may be = due to host contamination. NOTE: recipe nativesdk-libgcc-13.1.1-r0: task do_package: Failed Here are some logs: https://autobuilder.yoctoproject.org/typhoon/#/builders/20/builds/7737/step= s/12/logs/stdio https://autobuilder.yoctoproject.org/typhoon/#/builders/20/builds/7737/step= s/15/logs/stdio https://autobuilder.yoctoproject.org/typhoon/#/builders/37/builds/7356/step= s/12/logs/stdio Others come in this form: ERROR: buildtools-tarball-1.0-r0 do_testsdk: The toolchain /home/pokybuil= d/yocto-worker/buildtools/build/build/tmp/deploy/sdk/x86_64-buildtools-nati= vesdk-standalone-4.2.sh is not built. Build it before running the tests: 'b= itbake -c populate_sdk' . Some logs for this are: https://autobuilder.yoctoproject.org/typhoon/#/builders/20/builds/7737/step= s/13/logs/stdio https://autobuilder.yoctoproject.org/typhoon/#/builders/37/builds/7356/step= s/13/logs/stdio Luca --=20 Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com