# Yocto build fails, installed-vs-shipped

**URL:** <https://hub.mender.io/t/yocto-build-fails-installed-vs-shipped/7722>\
**Category:** General Discussions\
**Tags:** yocto\
**Created:** [April 15, 2025, 5:50am UTC](https://hub.mender.io/t/yocto-build-fails-installed-vs-shipped/7722 "2025-04-15T05:50:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romain.Donze](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@Romain.Donze](https://hub.mender.io/u/Romain.Donze)\
**Post date:** [April 15, 2025, 5:50am UTC](https://hub.mender.io/t/yocto-build-fails-installed-vs-shipped/7722/1 "2025-04-15T05:50:45Z")

</div>

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](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

```auto
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?

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [April 15, 2025, 2:41pm UTC](https://hub.mender.io/t/yocto-build-fails-installed-vs-shipped/7722/2 "2025-04-15T14:41:15Z")

</div>

Hi @Romain.Donze,

The error message tells you how to fix it:

```auto
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](https://git.openembedded.org/openembedded-core/tree/meta/recipes-core/util-linux/util-linux_2.37.4.bb?h=kirkstone#n148). So a very first stab would be finding out if something appends to that recipe and possibly introduces the error.

Greetz,  
Josef
