Build TorizonCare with yocto fails at ostree-kernel-initramfs_0.0.1.bb:do_install

l-native', 'attr-native', 'zlib-native', 'libgcc', 'linux-libc-headers', 'libmpc-native', 'gmp-native', 'mpfr-native', 'm4-native']
| DEBUG: sed -e 's:^[^/]*/:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/work/verdin_imx8mm-tdx-linux/ostree-kernel-initramfs/0.0.1-r0/recipe-sysroot-native/:g' /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/bison-native/fixmepath /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/pkgconfig-native/fixmepath /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/openssl-native/fixmepath /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/perl-native/fixmepath /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/gtk-doc-native/fixmepath /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/python3-native/fixmepath /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/ncurses-native/fixmepath /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/e2fsprogs-native/fixmepath /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/glib-2.0-native/fixmepath /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/libpcre2-native/fixmepath /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/libxml2-native/fixmepath /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/itstool-native/fixmepath /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/curl-native/fixmepath /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/libpcre-native/fixmepath /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/gettext-native/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/work/verdin_imx8mm-tdx-linux/ostree-kernel-initramfs/0.0.1-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/work/verdin_imx8mm-tdx-linux/ostree-kernel-initramfs/0.0.1-r0/recipe-sysroot-native:g' -e 's:FIXME_PSEUDO_SYSROOT:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/pseudo-native:g' -e 's:FIXME_HOSTTOOLS_DIR:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/pkgdata/verdin-imx8mm:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/work/verdin_imx8mm-tdx-linux/ostree-kernel-initramfs/0.0.1-r0/pseudo/:g' -e 's:FIXME_LOGFIFO:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/work/verdin_imx8mm-tdx-linux/ostree-kernel-initramfs/0.0.1-r0/temp/fifo.30094:g'
| DEBUG: sed -e 's:^[^/]*/:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/work/verdin_imx8mm-tdx-linux/ostree-kernel-initramfs/0.0.1-r0/recipe-sysroot/:g' /home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/verdin_imx8mm/depmodwrapper-cross/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/work/verdin_imx8mm-tdx-linux/ostree-kernel-initramfs/0.0.1-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/work/verdin_imx8mm-tdx-linux/ostree-kernel-initramfs/0.0.1-r0/recipe-sysroot-native:g' -e 's:FIXME_PSEUDO_SYSROOT:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/sysroots-components/x86_64/pseudo-native:g' -e 's:FIXME_HOSTTOOLS_DIR:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/pkgdata/verdin-imx8mm:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/work/verdin_imx8mm-tdx-linux/ostree-kernel-initramfs/0.0.1-r0/pseudo/:g' -e 's:FIXME_LOGFIFO:/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/work/verdin_imx8mm-tdx-linux/ostree-kernel-initramfs/0.0.1-r0/temp/fifo.30094:g'
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| install: cannot stat '/home/owner/projects/toradex/torizonCore_native/build-torizon/deploy/images/verdin-imx8mm/overlays/*.dtbo': No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/owner/projects/toradex/torizonCore_native/build-torizon/tmp/work/verdin_imx8mm-tdx-linux/ostree-kernel-initramfs/0.0.1-r0/temp/run.do_install.30094' failed with exit code 1:
| install: cannot stat '/home/owner/projects/toradex/torizonCore_native/build-torizon/deploy/images/verdin-imx8mm/overlays/*.dtbo': No such file or directory
| WARNING: exit code 1 from a shell command.
| 
ERROR: Task (/home/owner/projects/toradex/torizonCore_native/build-torizon/conf/../../layers/meta-updater/recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6343 tasks of which 0 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 73 seconds

Summary: 1 task failed:
  /home/owner/projects/toradex/torizonCore_native/build-torizon/conf/../../layers/meta-updater/recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb:do_install
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Greetings @billerica01,

There seems to be some kind of strange behavior going on with Torizon builds as this same error was reported by others as well. We have not been able to reproduce this on our side yet but there is a workaround.

For the time being the workaround is to first run bitbake device-tree-overlay-filter, then run the full bitbake torizon-core-docker. The first command should generate the missing files for the build to proceed. Please utilize this workaround until we figure out a proper fix for this issue.

Best Regards,
Jeremias