<?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>15936</bug_id>
          
          <creation_ts>2025-07-23 14:42:12 +0000</creation_ts>
          <short_desc>populate_sysroot for native recipes from sstate fails, missing sstate manifest</short_desc>
          <delta_ts>2026-04-21 18:50:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>5.0.10</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>5.3.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matthias Wauer">matthiaswauer</reporter>
          <assigned_to name="Matthias Wauer">matthiaswauer</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>yoann.congal</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102498</commentid>
    <comment_count>0</comment_count>
    <who name="Matthias Wauer">matthiaswauer</who>
    <bug_when>2025-07-23 14:42:12 +0000</bug_when>
    <thetext>Recently I started encountering the following build errors in the automated builds:

ERROR: maintenance-image-5.1.9999-r0 do_rootfs: The sstate manifest for task &apos;libarchive-native:populate_sysroot&apos; (multilib variant &apos;&apos;) could not be found.
The pkgarchs considered were: x86_64, x86_64_fedora-39.
But none of these manifests exists:
    /yocto/scarthgap/build/tmp/sstate-control/manifest-x86_64-libarchive-native.populate_sysroot
    /yocto/scarthgap/build/tmp/sstate-control/manifest-x86_64_fedora-39-libarchive-native.populate_sysroot

and

ERROR: linux-yocto-6.6.84+git-r0 do_prepare_recipe_sysroot: The sstate manifest for task &apos;xz-native:populate_sysroot&apos; (multilib variant &apos;&apos;) could not be found.
The pkgarchs considered were: x86_64, x86_64_fedora-39.
But none of these manifests exists:
    /yocto/scarthgap/build/tmp/sstate-control/manifest-x86_64-xz-native.populate_sysroot
    /yocto/scarthgap/build/tmp/sstate-control/manifest-x86_64_fedora-39-xz-native.populate_sysroot

These errors started to appear after poky patch level updates (from 5.0.8 to 5.0.9 and .10).

The errors can be reproduced/seem to happen, by switching between these versions.

- build an image/recipe with one poky version
- build same image/recipe with another poky version
- build same image/recipe with 1. poky version, ensure any recipe needs rebuilding that requires now a changed version of the native recipe.


I suspected some kind of broken sstate and completely cleared everything: build, tmp, sstate (except downloads). After above steps, the problem reappeared after a couple of builds.

Observations:
- all &apos;clean&apos; or updated builds run without errors.
- not directly tied to poky native recipes, the same was seen with up/downgrade of qtbase-native
- the failing native recipes are exactly the ones with updated/changed versions between poky patch-level tags (seen for libarchive, xz).
- do_cleansstate xxx-native fixes it for the next build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104479</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-03-03 22:07:55 +0000</bug_when>
    <thetext>Add Yoann who is maintaining the stable releases now.

Mattias, 
Are you still seeing this problem?
Are you able to reproduce it with just oe-core ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105087</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-15 19:36:15 +0000</bug_when>
    <thetext>Bump to 5.3.4.

The description contains a reproducer albeit with a bit of ambiguity.
We just don&apos;t have anyone signed up to work on the bug.

Matthias, is this still a problem for you ?
If so, can you either work on debugging it or
add share the exact steps needed to reproduce the bug?
Hopefully those steps only involve poky.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105176</commentid>
    <comment_count>3</comment_count>
    <who name="Matthias Wauer">matthiaswauer</who>
    <bug_when>2026-04-21 18:18:24 +0000</bug_when>
    <thetext>The issue is no longer a problem. I found, that the issue came from reusing the build and expecially tmp directories for different machine builds (both using the same tune).

Now the issue does no longer seem to appear after providing different directories to the poky init script (build-$MACHINE). sstate is still shared.

In the meantime a lots of yocto/poky updates (latest to 5.0.17) with several rebuilds of native recipes (up and downgrade builds) never seem to trigger the described behaviour.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105177</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-21 18:50:14 +0000</bug_when>
    <thetext>Hi Matthias,

Thanks for the update. I&apos;ll close the issue.

We do appreciate the bug report and may have more people available
to work on such issues soon so if it comes back, please re-open this defect.

We are working to ensure that sstate always &quot;just works&quot;. 

../Randy</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>