Bug 4792 - lmbench fails to build due to do_package_qa error
Summary: lmbench fails to build due to do_package_qa error
Status: RESOLVED INVALID
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-06-30 04:49 UTC by John Weber
Modified: 2013-07-01 12:42 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Weber 2013-06-30 04:49:53 UTC
john@leo:~/fsl-community-bsp/build$ bitbake lmbench
Loading cache: 100% |###########################################| ETA:  00:00:00
Loaded 1684 entries from dependency cache.

Build Configuration:
BB_VERSION        = "1.19.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-12.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "wandboard-dual"
DISTRO            = "poky"
DISTRO_VERSION    = "1.4+snapshot-20130630"
TUNE_FEATURES     = "armv7a vfp neon"
TARGET_FPU        = "vfp-neon"
meta              
meta-yocto        = "(nobranch):80b263430453896189b704d0997943642eec6fef"
meta-oe           = "(nobranch):30e97c15d762f09fa37a31602d00f1f4b0d059bb"
meta-fsl-arm      = "(nobranch):3b4c20c4f683b721994ea2e4e364c38601cd3c6b"
meta-fsl-arm-extra = "(nobranch):ca648ca250c09f37b538bf042ab87c59a432aff3"
meta-fsl-demos    = "(nobranch):eb6bd0d3e799c9053f80104194a0f2a37fb690e2"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: QA Issue: lmbench: Files/directories were installed but not shipped
  /run
  /run/lmbench
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/john/fsl-community-bsp/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/lmbench/3.0-a9-r2/temp/log.do_package.14504
ERROR: Task 10 (/home/john/fsl-community-bsp/sources/meta-openembedded/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb, do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 555 tasks of which 543 didn't need to be rerun and 1 failed.
No currently running tasks (555 of 559)

It appears the the QA is checking for empty directories after install.  Some packages are going to create empty directories in do_install to be placeholders in the rootfs.  In the lmbench case, it creates /run/lmbench.

Removing the line in meta-openembedded/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb which creates the run/lmbench directory allows the build to succeed, but does not permit the pre-creation of the directory as desired in the rootfs.
Comment 1 Paul Eggleton 2013-07-01 12:42:55 UTC
What the error is telling you is that these directories will not actually appear in the rootfs because nothing is packaging them. If these directories should be created in the rootfs then they need to be added to FILES_${PN} within the recipe.

In any case, this is a recipe in meta-oe; this bug tracker does not cover those recipes, so I'm marking this as invalid. I'd suggest posting about this issue to the openembedded-devel@lists.openembedded.org mailing list, or since the issue is a trivial one, just sending a patch there to fix it.