Bug 15186

Summary: AB-INT: build-sysroots do_build_native_sysroot: failure
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Alexandre Belloni <alexandre.belloni>
Component: coreAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandre.belloni, meta.mr.watcher, meta.watcher, randy.macleod, richard.purdie
Version: unspecified   
Target Milestone: 4.3   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alexandre Belloni 2023-08-10 14:25:40 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/60/builds/7514/steps/17/logs/stdio

Exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/pokybuild/yocto-worker/qemumips/build/build/tmp/work/qemumips-poky-linux/core-image-minimal/1.0-r0/testsdkext/tmp/sysroots-components/x86_64/patch-native/usr/bin/patch' -> '/home/pokybuild/yocto-worker/qemumips/build/build/tmp/work/qemumips-poky-linux/core-image-minimal/1.0-r0/testsdkext/tmp/sysroots/x86_64/usr/bin/patch'

qemumips opensuse154-ty-1
Comment 1 Richard Purdie 2023-08-21 14:50:33 UTC
The logs clearly show:

NOTE: recipe patch-native-2.7.6-r0: task do_populate_sysroot_setscene: Started
NOTE: recipe build-sysroots-1.0-r0: task do_build_native_sysroot: Started

so the two tasks are racing over the patch-native provided usr/bin/patch.

I'd guess there was something in the sysroot but sstate is cleaning and adding a new version, hence the missing file error. The logs from a failed build for patch-native would confirm that.

Not sure how we fix this.