Solved – QA Issue: Files/directories were installed but not shipped in any package

If you are compiling some recipe which you have written recently, you might seen an error like below, [ here example recipe is predefine_0.1.bb, which was a simple recipe to add precompiled helloworld binary to filesystem.

NOTE: Executing RunQueue Tasks<br>
ERROR: predefine-0.1-r0 do_package: QA Issue: predefine: Files/directories were installed but not shipped in any package:
  /usr/bin/helloworld_bin
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
predefine: 1 installed and not shipped files. [installed-vs-shipped]
ERROR: predefine-0.1-r0 do_package: Fatal QA errors found, failing task.
ERROR: predefine-0.1-r0 do_package: Function failed: do_package
ERROR: Logfile of failure stored in: yocto/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/predefine/0.1-r0/temp/log.do_package.11026
ERROR: Task (yocto/metadata/meta-lynxbee/recipes-example/predefined/predefine_0.1.bb:do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 474 tasks of which 464 didn't need to be rerun and 1 failed.

Solution :

Open the respective bitbake recipe, in our case its “metadata/meta-lynxbee/recipes-example/predefined/predefine_0.1.bb” and add/modify/append below lines as,

FILES_${PN} = "${bindir}/helloworld_bin"

i.e. simple solution to resolve this error is to add FILES_$PN with the directories or files pointed out in errors at command line.

Android Android Commands Android Java Applications Application Libraries Application Stack / User Interface Bash / Shell Scripts Commands and Packages Compilation Content Management System - CMS Core Kernel C Programs Development & Build Development Environment Setup Errors & Failures Flutter git Go Language Programs Hardware Platforms HTML JAVA Programs Kernel & Device Drivers Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Monetization / Google AdSense Multimedia - Audio, Video, Images NDK / Middleware / HAL OS Concepts PHP Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized User Interface Web design and development Wordpress Yocto / Bitbake / Openembedded

Leave a Reply / Ask Question