<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15726</bug_id>
          
          <creation_ts>2025-01-24 15:51:23 +0000</creation_ts>
          <short_desc>eSDK install: gcc-source-14.2.0.do_fetch attempted to execute unexpectedly</short_desc>
          <delta_ts>2025-08-14 13:50:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>eSDK</product>
          <component>eSDK</component>
          <version>5.1.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>15853</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tony Battersby">tonyb</reporter>
          <assigned_to name="Sermsity Sunil Kumar Dora">SunilKumar.Dora</assigned_to>
          <cc>JPEWhacker</cc>
    
    <cc>maganuru.jayasurya</cc>
    
    <cc>Maganuru.Jayasurya</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sundeep.kokkonda</cc>
          
          <qa_contact name="Francisco Pedraza">francisco.j.pedraza.gonzalez</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100741</commentid>
    <comment_count>0</comment_count>
    <who name="Tony Battersby">tonyb</who>
    <bug_when>2025-01-24 15:51:23 +0000</bug_when>
    <thetext>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 = &quot;genericx86-64&quot;

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

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: {&apos;esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_create_image_sbom_spdx&apos;,
 &apos;esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_create_image_spdx&apos;,
 &apos;esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_create_package_spdx&apos;,
 &apos;esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_create_rootfs_spdx&apos;,
 &apos;esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_create_spdx&apos;,
 &apos;esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_deploy_source_date_epoch&apos;,
 &apos;esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_image_complete&apos;,
 &apos;esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_image_qa&apos;,
 &apos;esdk/layers/poky/meta/recipes-core/images/core-image-base.bb:do_recipe_qa&apos;,
 &apos;esdk/layers/poky/meta/recipes-devtools/gcc/gcc-cross_14.2.bb:do_deploy_source_date_epoch&apos;,
 &apos;esdk/layers/poky/meta/recipes-devtools/gcc/gcc-cross_14.2.bb:do_gcc_stash_builddir&apos;,
 &apos;esdk/layers/poky/meta/recipes-devtools/gcc/gcc-source_14.2.bb:do_deploy_source_date_epoch&apos;,
 &apos;esdk/layers/poky/meta/recipes-devtools/gcc/libgcc-initial_14.2.bb:do_create_spdx&apos;,
 &apos;esdk/layers/poky/meta/recipes-devtools/gcc/libgcc-initial_14.2.bb:do_deploy_source_date_epoch&apos;,
 &apos;esdk/layers/poky/meta/recipes-devtools/gcc/libgcc-initial_14.2.bb:do_populate_sysroot&apos;}
ERROR: Task (esdk/layers/poky/meta/recipes-devtools/gcc/gcc-source_14.2.bb:do_fetch) failed with exit code &apos;setscene ignore_tasks&apos;


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] += &quot;BBLAYERS&quot;

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 &quot;wic&quot; image type but not with the &quot;tar&quot; 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] += &quot;${WICVARS}&quot;.  I don&apos;t know why that makes it work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102408</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-07-03 16:11:55 +0000</bug_when>
    <thetext>Sunil, Have you been able to reproduce this defect?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102422</commentid>
    <comment_count>2</comment_count>
    <who name="Sermsity Sunil Kumar Dora">SunilKumar.Dora</who>
    <bug_when>2025-07-07 04:59:11 +0000</bug_when>
    <thetext>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 = &quot;tar&quot;  
In conf/local.conf, I set:
-- MACHINE = &quot;genericx86-64&quot;  
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&apos;t find them. I am comparing these components between Scarthgap and master branches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102553</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-08-07 13:38:43 +0000</bug_when>
    <thetext>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 &apos;BB_SETSCENE_ENFORCE = &quot;0&quot;&apos; &gt;&gt; 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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102562</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-08-07 18:12:35 +0000</bug_when>
    <thetext>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 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>