Bug 15726 - eSDK install: gcc-source-14.2.0.do_fetch attempted to execute unexpectedly
Summary: eSDK install: gcc-source-14.2.0.do_fetch attempted to execute unexpectedly
Status: RESOLVED DUPLICATE of bug 15853
Alias: None
Product: eSDK
Classification: Yocto Project Subprojects
Component: eSDK (show other bugs)
Version: 5.1.1
Hardware: x86 x86_64
: Medium+ normal
Target Milestone: 5.3 M2
Assignee: Sermsity Sunil Kumar Dora
QA Contact: Francisco Pedraza
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2025-01-24 15:51 UTC by Tony Battersby
Modified: 2025-08-14 13:50 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Battersby 2025-01-24 15:51:23 UTC
After upgrading from Yocto 5.0.4 (Scarthgap) to 5.1.1 (Styhead), we get the following error while trying to install the eSDK in our custom distro:

ERROR: Task gcc-source-14.2.0.do_fetch attempted to execute unexpectedly

I am able to reproduce the problem with vanilla poky with these steps:

git clone -b styhead https://git.yoctoproject.org/poky
cd poky

. ./oe-init-build-env

edit conf/local.conf and set the following:
MACHINE = "genericx86-64"

edit ../meta/recipes-core/images/core-image-base.bb and add the following line above "inherit core-image"
IMAGE_FSTYPES = "tar"

bitbake -c populate_sdk_ext core-image-base

./tmp/deploy/sdk/poky-glibc-x86_64-core-image-base-core2-64-genericx86-64-toolchain-ext-5.1.1.sh

ERROR: Task gcc-source-14.2.0.do_fetch attempted to execute unexpectedly
Task esdk/layers/poky/meta/recipes-devtools/gcc/gcc-cross_14.2.bb:do_gcc_stash_builddir, unihash df0a133fb706576ac6f94a2176c0653a471e64367fedf6cd947da2238f8235c2, taskhash df0a133fb706576ac6f94a2176c0653a471e64367fedf6cd947da2238f8235c2
Task esdk/layers/poky/meta/recipes-devtools/gcc/libgcc-initial_14.2.bb:do_deploy_source_date_epoch, unihash 02a33860385974a503a53328b33c6d25b9df9a352978bbb570bd5c9acc358ae1, taskhash 02a33860385974a503a53328b33c6d25b9df9a352978bbb570bd5c9acc358ae1
Task esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_create_image_spdx, unihash 0b1f2ab78625fad786164259eaed8283080b777abbe06f3805d5e1791eb20915, taskhash 0b1f2ab78625fad786164259eaed8283080b777abbe06f3805d5e1791eb20915
Task esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_image_complete, unihash 15af46b91ce695e89ff727c62823924f11fdf041fedd6ab49d9916a16563de8c, taskhash 15af46b91ce695e89ff727c62823924f11fdf041fedd6ab49d9916a16563de8c
Task esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_create_package_spdx, unihash dd32901581313d172b02dd7c78f383b6ca5746ad96832639d84de6e5e3986e37, taskhash dd32901581313d172b02dd7c78f383b6ca5746ad96832639d84de6e5e3986e37
Task esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_create_rootfs_spdx, unihash b61eeffaf57ffea51c0ac8cb58e0ed83e9f34fc33f613595266571915ad2b3e1, taskhash b61eeffaf57ffea51c0ac8cb58e0ed83e9f34fc33f613595266571915ad2b3e1
Task esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_deploy_source_date_epoch, unihash 0dc567a401e5ae8baf67d957c6b4d785d85a102cace83a6033dc9fbcc12b812a, taskhash 0dc567a401e5ae8baf67d957c6b4d785d85a102cace83a6033dc9fbcc12b812a
Task esdk/layers/poky/meta/recipes-devtools/gcc/gcc-source_14.2.bb:do_deploy_source_date_epoch, unihash 9f761aa7f0b8f74015f16ef021d97e0493a4bd2590cccf65da5757f605629bfe, taskhash 9f761aa7f0b8f74015f16ef021d97e0493a4bd2590cccf65da5757f605629bfe
Task esdk/layers/poky/meta/recipes-devtools/gcc/libgcc-initial_14.2.bb:do_create_spdx, unihash ae456806fb2232977af2aba1940bff91b01083cd56b01ddbaed43ed5fdd3fbdb, taskhash ae456806fb2232977af2aba1940bff91b01083cd56b01ddbaed43ed5fdd3fbdb
Task esdk/layers/poky/meta/recipes-devtools/gcc/gcc-cross_14.2.bb:do_deploy_source_date_epoch, unihash 1d091747c5f05970868e58ee4fc2af9ce905e3cd8c8870a25e1cabda317de7bf, taskhash 1d091747c5f05970868e58ee4fc2af9ce905e3cd8c8870a25e1cabda317de7bf
Task esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_create_image_sbom_spdx, unihash d18e28971ba2d54928c136618c0784926b8be4cb38b8a23f8d375f21a2023262, taskhash d18e28971ba2d54928c136618c0784926b8be4cb38b8a23f8d375f21a2023262
Task esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_image_qa, unihash 3a51428cae8352e4aa6da23e54eab30ca8cd7253e75236b17698c1d5416e0df6, taskhash 3a51428cae8352e4aa6da23e54eab30ca8cd7253e75236b17698c1d5416e0df6
Task esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_recipe_qa, unihash 86dcae1458a85c2d9b8f6bb662fae77f2277fd9711a6e9faaa95aaea27098d3c, taskhash 86dcae1458a85c2d9b8f6bb662fae77f2277fd9711a6e9faaa95aaea27098d3c
Task esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_create_spdx, unihash 2381682c6b6506f6dee30f841195f6e6f20654f9213b135615edd079f8046cfa, taskhash 2381682c6b6506f6dee30f841195f6e6f20654f9213b135615edd079f8046cfa
Task esdk/layers/poky/meta/recipes-devtools/gcc/libgcc-initial_14.2.bb:do_populate_sysroot, unihash 1e47dec2920dd7852be7637cd61f43d8c432bd7bb9571e519db3aeaac24b7940, taskhash 1e47dec2920dd7852be7637cd61f43d8c432bd7bb9571e519db3aeaac24b7940
This is usually due to missing setscene tasks. Those missing in this build were: {'esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_create_image_sbom_spdx',
 'esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_create_image_spdx',
 'esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_create_package_spdx',
 'esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_create_rootfs_spdx',
 'esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_create_spdx',
 'esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_deploy_source_date_epoch',
 'esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_image_complete',
 'esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_image_qa',
 'esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_recipe_qa',
 'esdk/layers/poky/meta/recipes-devtools/gcc/gcc-cross_14.2.bb:do_deploy_source_date_epoch',
 'esdk/layers/poky/meta/recipes-devtools/gcc/gcc-cross_14.2.bb:do_gcc_stash_builddir',
 'esdk/layers/poky/meta/recipes-devtools/gcc/gcc-source_14.2.bb:do_deploy_source_date_epoch',
 'esdk/layers/poky/meta/recipes-devtools/gcc/libgcc-initial_14.2.bb:do_create_spdx',
 'esdk/layers/poky/meta/recipes-devtools/gcc/libgcc-initial_14.2.bb:do_deploy_source_date_epoch',
 'esdk/layers/poky/meta/recipes-devtools/gcc/libgcc-initial_14.2.bb:do_populate_sysroot'}
ERROR: Task (esdk/layers/poky/meta/recipes-devtools/gcc/gcc-source_14.2.bb:do_fetch) failed with exit code 'setscene ignore_tasks'


But I do have a workaround (probably not the correct solution):

edit ../meta/recipes-core/images/core-image-base.bb and append the following line:
do_image_complete[vardeps] += "BBLAYERS"

bitbake -c populate_sdk_ext core-image-base

./tmp/deploy/sdk/poky-glibc-x86_64-core-image-base-core2-64-genericx86-64-toolchain-ext-5.1.1.sh

And now it installs successfully.  This workaround also works for our custom distro.

Our custom distro uses a custom image class to create our firmware in a special format.  When I noticed that vanilla poky core-image-base worked with the default "wic" image type but not with the "tar" image type, I narrowed down the differences between the two until I came up with the workaround.  This comes from image_types_wic.bbclass::WICVARS containing BBLAYERS and do_rootfs_wicenv[vardeps] += "${WICVARS}".  I don't know why that makes it work.
Comment 1 Randy MacLeod 2025-07-03 16:11:55 UTC
Sunil, Have you been able to reproduce this defect?
Comment 2 Sermsity Sunil Kumar Dora 2025-07-07 04:59:11 UTC
Hi Randy,

Yes, I was able to reproduce the defect with the following steps:

In meta/recipes-core/images/core-image-base.bb, I added:
-- IMAGE_FSTYPES = "tar"  
In conf/local.conf, I set:
-- MACHINE = "genericx86-64"  
Ran:
-- bitbake -c populate_sdk_ext core-image-base  
Then attempted to install the generated eSDK:
-- ./tmp/deploy/sdk/poky-glibc-x86_64-core-image-base-core2-64-genericx86-64-toolchain-ext-5.1.1.sh  
=================
Outcome:

The issue is reproducible on both the Poky master and Walnaskar branches.
However, I do not observe this issue on Scarthgap.

BitBake expects to reuse prebuilt artifacts but can't find them. I am comparing these components between Scarthgap and master branches.
Comment 3 Randy MacLeod 2025-08-07 13:38:43 UTC
Joshua,
This gcc-source-14.2.0.bb:do_fetch failure is related to missing setscene tasks and it arose after switching from SPDX 2.2 to 3.0  
https://git.openembedded.org/openembedded-core/commit/meta/classes/create-spdx.bbclass?id=beef4c1a3e9fd8fa9cdbbb61e1bc3931012735b3

One can work-around the problem with:
echo 'BB_SETSCENE_ENFORCE = "0"' >> conf/local.conf

should Sunil (or Jayasura who will take over the issue soon),
try to override this in the gcc-source code or is there a better approach?
Comment 4 Randy MacLeod 2025-08-07 18:12:35 UTC
15853 shows that this is a problem with a scope wider than gcc-source so mark this one as a duplicate.

*** This bug has been marked as a duplicate of bug 15853 ***