<?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>14721</bug_id>
          
          <creation_ts>2022-02-12 19:49:02 +0000</creation_ts>
          <short_desc>Intermittent runqueue issue re-running populate_sysroot_setscene after populate_sysroot</short_desc>
          <delta_ts>2023-03-07 17:12:19 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Denys Dmytriyenko">denis</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>luca.ceresoli</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <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>92547</commentid>
    <comment_count>0</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2022-02-12 19:49:02 +0000</bug_when>
    <thetext>Got qemu-native:do_prepare_recipe_sysroot failure due to zlib.h not being ready from zlib-native:do_populate_sysroot

ERROR: qemu-native-6.2.0-r0 do_prepare_recipe_sysroot: Error executing a python function in exec_func_python() autogenerated:
 
The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_func_python() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:extend_recipe_sysroot(d)
     0003:
File: &apos;/OE/new-arago-master/meta/classes/staging.bbclass&apos;, lineno: 583, function: extend_recipe_sysroot
     0579:                    if &quot;/bin/&quot; in l or &quot;/sbin/&quot; in l:
     0580:                        # defer /*bin/* files until last in case they need libs
     0581:                        binfiles[l] = (targetdir, dest)
     0582:                    else:
 *** 0583:                        staging_copyfile(l, targetdir, dest, postinsts, seendirs)
     0584:
     0585:    # Handle deferred binfiles
     0586:    for l in binfiles:
     0587:        (targetdir, dest) = binfiles[l]
File: &apos;/OE/new-arago-master/meta/classes/staging.bbclass&apos;, lineno: 157, function: staging_copyfile
     0153:        os.symlink(linkto, dest)
     0154:        #bb.warn(c)
     0155:    else:
     0156:        try:
 *** 0157:            os.link(c, dest)
     0158:        except OSError as err:
     0159:            if err.errno == errno.EXDEV:
     0160:                bb.utils.copyfile(c, dest)
     0161:            else:
Exception: FileNotFoundError: [Errno 2] No such file or directory: &apos;/OE/new-arago-master/build/tmp-default-glibc/sysroots-components/x86_64/zlib-native/usr/include/zlib.h&apos; -&gt; &apos;/OE/new-arago-master/build/tmp-default-glibc/work/x86_64-linux/qemu-native/6.2.0-r0/recipe-sysroot-native/usr/include/zlib.h&apos;


Cooker logs for all qemu-native and zlib-native tasks show that zlib-native successfully executed do_populate_sysroot task and then decided to re-run do_populate_sysroot_setscene task in the middle of qemu-native:do_prepare_recipe_sysroot

NOTE: recipe zlib-native-1.2.11-r0: task do_fetch: Started
NOTE: recipe zlib-native-1.2.11-r0: task do_fetch: Succeeded
NOTE: recipe zlib-native-1.2.11-r0: task do_prepare_recipe_sysroot: Started
NOTE: recipe zlib-native-1.2.11-r0: task do_prepare_recipe_sysroot: Succeeded
NOTE: Running task 151 of 9535 (/OE/new-arago-master/meta/recipes-devtools/qemu/qemu-native_6.2.0.bb:do_fetch)
NOTE: recipe qemu-native-6.2.0-r0: task do_fetch: Started
NOTE: recipe qemu-native-6.2.0-r0: task do_fetch: Succeeded
NOTE: Running task 2026 of 9535 (/OE/new-arago-master/meta/recipes-devtools/qemu/qemu-native_6.2.0.bb:do_unpack)
NOTE: recipe zlib-native-1.2.11-r0: task do_unpack: Started
NOTE: recipe qemu-native-6.2.0-r0: task do_unpack: Started
NOTE: recipe zlib-native-1.2.11-r0: task do_unpack: Succeeded
NOTE: recipe zlib-native-1.2.11-r0: task do_patch: Started
NOTE: recipe zlib-native-1.2.11-r0: task do_patch: Succeeded
NOTE: recipe zlib-native-1.2.11-r0: task do_deploy_source_date_epoch: Started
NOTE: recipe zlib-native-1.2.11-r0: task do_create_srcipk: Started
NOTE: recipe zlib-native-1.2.11-r0: task do_create_srcipk: Succeeded
NOTE: recipe zlib-native-1.2.11-r0: task do_deploy_source_date_epoch: Succeeded
NOTE: recipe qemu-native-6.2.0-r0: task do_unpack: Succeeded
NOTE: Running task 2170 of 9535 (/OE/new-arago-master/meta/recipes-devtools/qemu/qemu-native_6.2.0.bb:do_patch)
NOTE: recipe zlib-native-1.2.11-r0: task do_configure: Started
NOTE: recipe qemu-native-6.2.0-r0: task do_patch: Started
NOTE: recipe zlib-native-1.2.11-r0: task do_configure: Succeeded
NOTE: recipe qemu-native-6.2.0-r0: task do_patch: Succeeded
NOTE: Running task 2279 of 9535 (/OE/new-arago-master/meta/recipes-devtools/qemu/qemu-native_6.2.0.bb:do_create_srcipk)
NOTE: Running task 2280 of 9535 (/OE/new-arago-master/meta/recipes-devtools/qemu/qemu-native_6.2.0.bb:do_deploy_source_date_epoch)
NOTE: recipe zlib-native-1.2.11-r0: task do_compile: Started
NOTE: recipe qemu-native-6.2.0-r0: task do_create_srcipk: Started
NOTE: recipe qemu-native-6.2.0-r0: task do_deploy_source_date_epoch: Started
NOTE: recipe qemu-native-6.2.0-r0: task do_create_srcipk: Succeeded
NOTE: Running task 2352 of 9535 (/OE/new-arago-master/meta/recipes-devtools/qemu/qemu-native_6.2.0.bb:do_populate_lic)
NOTE: recipe qemu-native-6.2.0-r0: task do_deploy_source_date_epoch: Succeeded
NOTE: Task /OE/new-arago-master/meta/recipes-devtools/qemu/qemu-native_6.2.0.bb:do_deploy_source_date_epoch unihash changed to 93fe89d6405b5f00058aa4eb64beef13e6269f5e7f10cfd703e96cc0affe53d1
NOTE: recipe qemu-native-6.2.0-r0: task do_populate_lic: Started
NOTE: recipe zlib-native-1.2.11-r0: task do_populate_lic: Started
NOTE: recipe zlib-native-1.2.11-r0: task do_compile: Succeeded
NOTE: recipe qemu-native-6.2.0-r0: task do_populate_lic: Succeeded
NOTE: recipe zlib-native-1.2.11-r0: task do_populate_lic: Succeeded
NOTE: Task /OE/new-arago-master/meta/recipes-devtools/qemu/qemu-native_6.2.0.bb:do_populate_lic unihash changed to a6dced3dae65779c96d0299625aabe4c857cbd0fda6dc11c5d2d5497a302f821
NOTE: recipe zlib-native-1.2.11-r0: task do_install: Started
NOTE: recipe zlib-native-1.2.11-r0: task do_install: Succeeded
NOTE: recipe zlib-native-1.2.11-r0: task do_populate_sysroot: Started
NOTE: recipe zlib-native-1.2.11-r0: task do_populate_sysroot: Succeeded
NOTE: recipe zlib-native-1.2.11-r0: task do_deploy_source_date_epoch: Started
NOTE: recipe zlib-native-1.2.11-r0: task do_deploy_source_date_epoch: Succeeded
NOTE: recipe zlib-native-1.2.11-r0: task do_populate_lic: Started
NOTE: recipe zlib-native-1.2.11-r0: task do_populate_lic: Succeeded
NOTE: Running task 5223 of 9535 (/OE/new-arago-master/meta/recipes-devtools/qemu/qemu-native_6.2.0.bb:do_prepare_recipe_sysroot)
NOTE: recipe zlib-native-1.2.11-r0: task do_populate_sysroot_setscene: Started
NOTE: recipe qemu-native-6.2.0-r0: task do_prepare_recipe_sysroot: Started
ERROR: qemu-native-6.2.0-r0 do_prepare_recipe_sysroot: Error executing a python function in exec_func_python() autogenerated:
Exception: FileNotFoundError: [Errno 2] No such file or directory: &apos;/OE/new-arago-master/build/tmp-default-glibc/sysroots-components/x86_64/zlib-native/usr/include/zlib.h&apos; -&gt; &apos;/OE/new-arago-master/build/tmp-default-glibc/work/x86_64-linux/qemu-native/6.2.0-r0/recipe-sysroot-native/usr/include/zlib.h&apos;
NOTE: recipe zlib-native-1.2.11-r0: task do_populate_sysroot_setscene: Succeeded
ERROR: Logfile of failure stored in: /OE/new-arago-master/build/tmp-default-glibc/work/x86_64-linux/qemu-native/6.2.0-r0/temp/log.do_prepare_recipe_sysroot.1169796
NOTE: recipe qemu-native-6.2.0-r0: task do_prepare_recipe_sysroot: Failed
ERROR: Task (/OE/new-arago-master/meta/recipes-devtools/qemu/qemu-native_6.2.0.bb:do_prepare_recipe_sysroot) failed with exit code &apos;1&apos;
NOTE: recipe zlib-native-1.2.11-r0: task do_deploy_source_date_epoch: Started
NOTE: recipe zlib-native-1.2.11-r0: task do_deploy_source_date_epoch: Succeeded
NOTE: recipe zlib-native-1.2.11-r0: task do_populate_lic: Started
NOTE: recipe zlib-native-1.2.11-r0: task do_populate_lic: Succeeded</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92548</commentid>
    <comment_count>1</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2022-02-13 22:34:07 +0000</bug_when>
    <thetext>Another instance of the same issue:

NOTE: recipe util-linux-native-2.37.3-r0: task do_fetch: Started
NOTE: recipe util-linux-native-2.37.3-r0: task do_fetch: Succeeded
NOTE: recipe vala-native-0.54.6-r0: task do_fetch: Started
NOTE: recipe vala-native-0.54.6-r0: task do_fetch: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_unpack: Started
NOTE: recipe vala-native-0.54.6-r0: task do_unpack: Started
NOTE: recipe vala-native-0.54.6-r0: task do_unpack: Succeeded
NOTE: recipe vala-native-0.54.6-r0: task do_patch: Started
NOTE: recipe vala-native-0.54.6-r0: task do_patch: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_unpack: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_patch: Started
NOTE: recipe vala-native-0.54.6-r0: task do_create_srcipk: Started
NOTE: recipe vala-native-0.54.6-r0: task do_deploy_source_date_epoch: Started
NOTE: recipe vala-native-0.54.6-r0: task do_create_srcipk: Succeeded
NOTE: recipe vala-native-0.54.6-r0: task do_deploy_source_date_epoch: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_patch: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_deploy_source_date_epoch: Started
NOTE: recipe util-linux-native-2.37.3-r0: task do_create_srcipk: Started
NOTE: recipe util-linux-native-2.37.3-r0: task do_create_srcipk: Succeeded
NOTE: recipe vala-native-0.54.6-r0: task do_populate_lic: Started
NOTE: recipe util-linux-native-2.37.3-r0: task do_populate_lic: Started
NOTE: recipe util-linux-native-2.37.3-r0: task do_deploy_source_date_epoch: Succeeded
NOTE: recipe vala-native-0.54.6-r0: task do_populate_lic: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_populate_lic: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_prepare_recipe_sysroot: Started
NOTE: recipe util-linux-native-2.37.3-r0: task do_prepare_recipe_sysroot: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_configure: Started
NOTE: recipe util-linux-native-2.37.3-r0: task do_configure: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_compile: Started
NOTE: recipe util-linux-native-2.37.3-r0: task do_compile: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_install: Started
NOTE: recipe util-linux-native-2.37.3-r0: task do_install: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_populate_sysroot: Started
NOTE: recipe util-linux-native-2.37.3-r0: task do_populate_sysroot: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_deploy_source_date_epoch: Started
NOTE: recipe util-linux-native-2.37.3-r0: task do_deploy_source_date_epoch: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_populate_lic: Started
NOTE: recipe util-linux-native-2.37.3-r0: task do_populate_lic: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_populate_sysroot_setscene: Started
NOTE: recipe vala-native-0.54.6-r0: task do_prepare_recipe_sysroot: Started
ERROR: vala-native-0.54.6-r0 do_prepare_recipe_sysroot: Manifest /OE/new-arago-master/build/tmp-default-glibc/sstate-control/manifest-x86_64_ubuntu-20.04-util-linux-native.populate_sysroot not found in x86_64 x86_64_ubuntu-20.04 (variant &apos;&apos;)?
ERROR: Logfile of failure stored in: /OE/new-arago-master/build/tmp-default-glibc/work/x86_64-linux/vala-native/0.54.6-r0/temp/log.do_prepare_recipe_sysroot.1195006
NOTE: recipe vala-native-0.54.6-r0: task do_prepare_recipe_sysroot: Failed
NOTE: recipe util-linux-native-2.37.3-r0: task do_populate_sysroot_setscene: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_deploy_source_date_epoch: Started
NOTE: recipe util-linux-native-2.37.3-r0: task do_populate_lic: Started
NOTE: recipe util-linux-native-2.37.3-r0: task do_deploy_source_date_epoch: Succeeded
NOTE: recipe util-linux-native-2.37.3-r0: task do_populate_lic: Succeeded</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92599</commentid>
    <comment_count>2</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2022-02-18 23:49:08 +0000</bug_when>
    <thetext>FYI, just got another instance of the second error with vala-native and util-linux-native, but with more recent master and a different platform.

BTW, I have hash equiv enabled in local.conf:

BB_HASHSERVE_UPSTREAM = &quot;typhoon.yocto.io:8687&quot;
BB_HASHSERVE = &quot;auto&quot;
BB_SIGNATURE_HANDLER = &quot;OEEquivHash&quot;

I&apos;ll probably need to disable it to not hit the issue, unless more logs are needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92602</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-02-20 16:04:46 +0000</bug_when>
    <thetext>The real problem here is that I need to find a way to reproduce the issue. We have seen errors like this in a past as it is something wrong with the state engine in runqueue.py. I remember how hard this was to debug and fix last time, I think I spent about two weeks trying to resolve a previous issue like this. I don&apos;t have that length of time available :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92884</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-03-30 17:53:08 +0000</bug_when>
    <thetext>The issue here is that if XXX-native:do_populate_sysroot runs, XXX-native:do_populate_sysroot_setscene should never run after that. The code is supposed to enforce that but doesn&apos;t seem to be the case here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93348</commentid>
    <comment_count>5</comment_count>
    <who name="Luca Ceresoli">luca.ceresoli</who>
    <bug_when>2022-05-27 18:57:27 +0000</bug_when>
    <thetext>Richard pointed out on IRC that the following failure has different effects but the same reason (&quot;they both end up with overlapping files as a result of setscene graph corruption so I&apos;m happy for them to be the same issue&quot;):

stdio: ERROR: Setscene task .../netbase_6.3.bb:do_package in both covered and notcovered.  (many of these, all for netbase)

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/3602</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93727</commentid>
    <comment_count>6</comment_count>
    <who name="Luca Ceresoli">luca.ceresoli</who>
    <bug_when>2022-08-05 14:32:02 +0000</bug_when>
    <thetext>Two new errors, probably caused by the same bug:


ERROR: ca-certificates-20211016-r0 do_package_write_rpm: Error executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_func_python() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:write_specfile(d)
     0003:
File: &apos;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/classes/package_rpm.bbclass&apos;, lineno: 342, function: write_specfile
     0338:        localdata.setVar(&apos;PKG&apos;, pkgname)
     0339:
     0340:        localdata.setVar(&apos;OVERRIDES&apos;, d.getVar(&quot;OVERRIDES&quot;, False) + &quot;:&quot; + pkg)
     0341:
 *** 0342:        conffiles = get_conffiles(pkg, d)
     0343:        dirfiles = localdata.getVar(&apos;DIRFILES&apos;)
     0344:        if dirfiles is not None:
     0345:            dirfiles = dirfiles.split()
     0346:
File: &apos;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/classes/package.bbclass&apos;, lineno: 302, function: get_conffiles
     0298:def get_conffiles(pkg, d):
     0299:    pkgdest = d.getVar(&apos;PKGDEST&apos;)
     0300:    root = os.path.join(pkgdest, pkg)
     0301:    cwd = os.getcwd()
 *** 0302:    os.chdir(root)
     0303:
     0304:    conffiles = d.getVar(&apos;CONFFILES:%s&apos; % pkg);
     0305:    if conffiles == None:
     0306:        conffiles = d.getVar(&apos;CONFFILES&apos;)
Exception: FileNotFoundError: [Errno 2] No such file or directory: &apos;/home/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-1389915/tmp/work/all-poky-linux/ca-certificates/20211016-r0/packages-split/ca-certificates-src&apos;


Logs:

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/3895/steps/14/logs/stdio

oe-selftest-fedora on fedora35-ty-2

https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/3940/steps/14/logs/stdio

oe-selftest-ubuntu on ubuntu2204-ty-1


Discussed these with Richard on IRC: &quot;it ran packaging without having do_package present&quot;.

Richard has sent a series that hopefully fixes the bug:

https://lists.openembedded.org/g/bitbake-devel/message/13873</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94650</commentid>
    <comment_count>7</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2023-01-10 16:15:46 +0000</bug_when>
    <thetext>Was this fixed? I still see this marked as NEW.

Richard, is this issue similar to what you mentioned on the tech call regarding uninative and tasks running out of order?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94676</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-01-11 22:54:56 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; Was this fixed? I still see this marked as NEW.

I don&apos;t know, I&apos;ve not been able to reproduce the issue.

It is possible something like:

https://git.yoctoproject.org/poky/commit/bitbake/lib/bb/runqueue.py?id=5fdd28e37face59410da781d5d70178565e69e5e

fixed it.

&gt; Richard, is this issue similar to what you mentioned on the tech call
&gt; regarding uninative and tasks running out of order?

No, nothing related to that.

Are you still seeing it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95073</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-03-07 13:00:52 +0000</bug_when>
    <thetext>I&apos;m going to assume the above fix was the issue. If it still occurs, please reopen or open a new bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95082</commentid>
    <comment_count>10</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2023-03-07 17:12:19 +0000</bug_when>
    <thetext>Sounds good, thanks</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>