<?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>15880</bug_id>
          
          <creation_ts>2025-05-28 07:10:56 +0000</creation_ts>
          <short_desc>AB-INT: barebox: fixdep: error opening file</short_desc>
          <delta_ts>2026-01-22 16:16:08 +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.99</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>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Enrico Jorns">ejo</assigned_to>
          <cc>a.fatoum</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</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>102079</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-05-28 07:10:56 +0000</bug_when>
    <thetext>Maybe a race condition in barebox Makefiles?

2025-05-28 01:48:07,246 - oe-selftest - INFO - barebox.BareboxTest.test_boot_barebox (subunit.RemotedTestCase)
2025-05-28 01:48:07,248 - oe-selftest - INFO -  ... FAIL
...
ERROR: barebox-2025.04.0-r0 do_compile: oe_runmake failed
...
| fixdep: error opening file: arch/arm/dts/.imx8mq-zii-ultra-rmb3.dtb.pbl.o.d: No such file or directory
| make[2]: *** [/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1221065/tmp/work/qemuarm64-poky-linux/barebox/2025.04.0/barebox-2025.04.0/scripts/Makefile.build:187: arch/arm/dts/imx8mq-zii-ultra-rmb3.dtb.pbl.o] Error 2
| make[2]: *** Deleting file &apos;arch/arm/dts/imx8mq-zii-ultra-rmb3.dtb.pbl.o&apos;
| make[1]: *** [/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1221065/tmp/work/qemuarm64-poky-linux/barebox/2025.04.0/barebox-2025.04.0/Makefile:1057: arch/arm/dts] Error 2
| make[1]: *** Waiting for unfinished jobs....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102085</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-05-28 07:21:43 +0000</bug_when>
    <thetext>oe-selftest-armhost ubuntu2204-vk-arm2 master completed at 2025-05-28T05:27:08Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/1787/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102093</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-05-29 14:40:30 +0000</bug_when>
    <thetext>Seems like  race in the Makefile...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102107</commentid>
    <comment_count>3</comment_count>
    <who name="Enrico Jorns">ejo</who>
    <bug_when>2025-06-02 08:51:19 +0000</bug_when>
    <thetext>Oh, haven&apos;t seen this before, thank you for notifying!

At least with latest master I wasn&apos;t able to reproduce it, yet. But I&apos;ve contacted the maintainers and we&apos;ll try to identify what&apos;s going on.

Did this happen only once so far? Or multiple times?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102116</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-06-02 17:48:51 +0000</bug_when>
    <thetext>Enrico,

It&apos;s good that you notified upstream. Hopefully they can see and fix the race.

I think it happened only once so far but Mathieu will correct me if I&apos;m wrong.

This is known as an &quot;AB-INT&quot; / &quot;auto-builder intermittent&quot; bug - fun, eh!

The YP autobuilder runs 2 or 3 builds at a time that are either building code or running various tests so the load can be very high. You can try using:
$ stress -t TIMEOUT_TO_SAVE_ME -c &lt;2x v cores&gt; 
or similar in an overnight stress tests while building and cleanall-ing your recipe in a tight loop.

The smarter thing to do is to study the Makefile and insert a delay 
to make the rare race be deterministic. Smarter and harder but it&apos;s a very
useful skill to develop.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102118</commentid>
    <comment_count>5</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-06-03 07:45:37 +0000</bug_when>
    <thetext>&gt; I think it happened only once so far but Mathieu will correct me if I&apos;m wrong.

Yes, only happened once so far.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102124</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-06-03 09:11:21 +0000</bug_when>
    <thetext>This looks like a missing makefile dependency to me, which modern GNU Make has options which can help.  Copy this class and inherit shufflemake in the recipe and make will randomly re-order task execution (but still keeping the dependencies).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102130</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-06-03 14:54:21 +0000</bug_when>
    <thetext>Nice, I didn&apos;t know about that feature. It is only ~ 2 years old...

make.git on master
❯ git log --oneline -1 621d3196f
621d3196 [SV 62100] Add &apos;--shuffle&apos; option support

❯ git tag --contains 621d3196f
4.3.90
4.3.91
4.3.92
4.4
4.4.0.90
4.4.0.91
4.4.1

There&apos;s also a commandline option: --shuffle
https://www.gnu.org/software/make/manual/make.html#index-_002d_002dshuffle</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102131</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-06-03 14:55:40 +0000</bug_when>
    <thetext>Yeah, two years old is too new for a host dependency, thus the class to pull in the native dependencies and pass the option globally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102650</commentid>
    <comment_count>9</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-08-21 14:51:54 +0000</bug_when>
    <thetext>Enrico, Can you try to reproduce this using the new make features?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102652</commentid>
    <comment_count>10</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-08-21 14:54:08 +0000</bug_when>
    <thetext>I failed to link to the class I was talking about:

https://github.com/rossburton/meta-ross/blob/master/classes/shufflemake.bbclass

That&apos;s just:

BASEDEPENDS:append:class-target = &apos; make-native&apos;
EXTRA_OEMAKE:append:class-target = &quot; --shuffle&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102654</commentid>
    <comment_count>11</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-08-21 14:59:15 +0000</bug_when>
    <thetext>Thanks for atttaching the patch.
Could you send the patch to the email list ?
https://docs.yoctoproject.org/contributor-guide/index.html

Please add a test if possible, and ensure that you have a good commit log and Signed-off-by line.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102677</commentid>
    <comment_count>12</comment_count>
    <who name="Ahmad Fatoum">a.fatoum</who>
    <bug_when>2025-09-01 15:54:08 +0000</bug_when>
    <thetext>There is now a fix for this issue on the barebox mailing list:
https://lore.kernel.org/barebox/20250828093135.1959085-1-s.hauer@pengutronix.de

It&apos;s expected that this will be part of this month&apos;s release.
Given that this seems to have broken the Yocto autobuilder only once over many months, I&apos;d suggest just to wait out the two~ weeks or so until there is a v2025.09.0 release.

While make --shuffle was not used to fix this issue, it may be useful to early detect such issues before downstreams run into them.
I used the occasion of Debian Trixie shipped a new enough GNU make to submit patches against upstream CI[1] that run make for the 87 defconfigs that are built on every push with --shuffle.

[1]: https://lore.kernel.org/barebox/20250901153852.2554758-1-a.fatoum@pengutronix.de/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102915</commentid>
    <comment_count>13</comment_count>
    <who name="Ahmad Fatoum">a.fatoum</who>
    <bug_when>2025-10-13 08:38:34 +0000</bug_when>
    <thetext>The issue is now fixed in v2025.09.0. I assume Enrico will submit a version bump or should I?

I want to extend my thanks for the tip around make --shuffle. All our CI builds now use it and just a few days ago it helped eliminate a new build breakage, but this time before it made it into a release:
https://github.com/barebox/barebox/commit/030f0acc230

:)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104033</commentid>
    <comment_count>14</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-01-22 16:16:08 +0000</bug_when>
    <thetext>Not seen in &gt; 6 months.
barebox is updated: 2025.12.0
https://git.openembedded.org/openembedded-core/log/?qt=grep&amp;q=barebox</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>