Yocto build fails, installed-vs-shipped

Hello,

I tried to follow the steps listed here to build my distro. I am trying to build it for Qt 6.8.3 using this manifest as a base https://code.qt.io/cgit/yocto/boot2qt-manifest.git/tree/toradex/v6.8.3.xml. I am also adding my own meta-layer add some changes. But I am getting this error throughout the build

ERROR: nativesdk-util-linux-2.37.4-r0 do_package: QA Issue: nativesdk-util-linux: Files/directories were installed but not shipped in any package:
  /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/lib
  /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/lib/systemd
  /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/lib/systemd/system
  /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/lib/systemd/system/fstrim.service
  /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/lib/systemd/system/fstrim.timer
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
nativesdk-util-linux: 5 installed and not shipped files. [installed-vs-shipped]
ERROR: nativesdk-util-linux-2.37.4-r0 do_package: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/inno-dev/A_VOH_OS_BUILD/build-apalis-imx8/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-util-linux/2.37.4-r0/temp/log.do_package.3654205
ERROR: Task (virtual:nativesdk:/home/inno-dev/A_VOH_OS_BUILD/sources/poky/meta/recipes-core/util-linux/util-linux_2.37.4.bb:do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5725 tasks of which 5658 didn't need to be rerun and 1 failed.
NOTE: Build completion summary:
NOTE:   do_populate_sysroot: 0.0% sstate reuse(0 setscene, 5 scratch)
NOTE:   do_deploy_source_date_epoch: 0.0% sstate reuse(0 setscene, 5 scratch)
NOTE:   do_package_qa: 0.0% sstate reuse(0 setscene, 5 scratch)
NOTE:   do_package: 0.0% sstate reuse(0 setscene, 6 scratch)
NOTE:   do_packagedata: 0.0% sstate reuse(0 setscene, 5 scratch)
NOTE:   do_package_write_ipk: 97.5% sstate reuse(196 setscene, 5 scratch)
NOTE:   do_populate_lic: 0.0% sstate reuse(0 setscene, 5 scratch)

What can be wrong?

Hi @Romain.Donze,

The error message tells you how to fix it:

Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.

I don’t know the ins and outs of a boot2qt build, and which peculiarities it brings, but generally speaking those files seem to originate in the util-linux recipe. So a very first stab would be finding out if something appends to that recipe and possibly introduces the error.

Greetz,
Josef