Bug 8439 - image build with image-swab in USER_CLASSES fails due to dependency on strace
Summary: image build with image-swab in USER_CLASSES fails due to dependency on strace
Status: RESOLVED FIXED
Alias: None
Product: Swabber
Classification: Yocto Project Subprojects
Component: swabber (show other bugs)
Version: 1.9
Hardware: x86 Multiple
: Undecided minor
Target Milestone: ---
Assignee: Maxin B. John
QA Contact:
URL:
Whiteboard: 06 Oct 2015: IN PROGRESS REVIEW
Depends on:
Blocks:
 
Reported: 2015-10-05 11:42 UTC by Maxin B. John
Modified: 2015-10-07 13:55 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Done (doc changes complete)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxin B. John 2015-10-05 11:42:22 UTC
Including "image-swab" in USER_CLASSES causes the build to fail as it depends on "strace" to be present in the build machine.

How to re-create it:

$ git clone git://git.yoctoproject.org/poky
$ cd poky
$ source oe-init-build-env

Update "conf/local.conf" file in build directory and include "image-swab" in USER_CLASSES.
ie:

USER_CLASSES ?= "buildstats image-mklibs image-prelink image-swab"

$ bitbake core-image-minimal
Parsing recipes: 100% |#####################################################################################################################################################################################################################################################################################| Time: 00:00:15
Parsing of 898 .bb files complete (0 cached, 898 parsed). 1328 targets, 39 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.28.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Fedora-22"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "qemux86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "2.0"
TUNE_FEATURES     = "m64 core2"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "master:eac61f37e36099f74485dab398b57f3812826d17"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Failed to fetch URL ftp://invisible-island.net/ncurses/current/ncurses-5.9-20150329.tgz, attempting MIRRORS if available
ERROR: Function failed: imageswab_attachstrace (log file is located at /home/maxin/poky/build/tmp/work/qemux86_64-poky-linux/base-files/3.0.14-r89/temp/log.do_configure.3834)
ERROR: Logfile of failure stored in: /home/maxin/poky/build/tmp/work/qemux86_64-poky-linux/base-files/3.0.14-r89/temp/log.do_configure.3834
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function imageswab_attachstrace
| which: no strace in (/home/maxin/poky/scripts:/home/maxin/poky/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux:/home/maxin/poky/build/tmp/sysroots/qemux86-64/usr/bin/crossscripts:/home/maxin/poky/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/maxin/poky/build/tmp/sysroots/x86_64-linux/usr/bin:/home/maxin/poky/build/tmp/sysroots/x86_64-linux/sbin:/home/maxin/poky/build/tmp/sysroots/x86_64-linux/bin:/home/maxin/poky/scripts:/home/maxin/poky/bitbake/bin:/usr/lib64/ccache:/usr/libexec/icecc/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/maxin/.local/bin:/home/maxin/bin)
| WARNING: /home/maxin/poky/build/tmp/work/qemux86_64-poky-linux/base-files/3.0.14-r89/temp/run.imageswab_attachstrace.3834:1 exit 1 from
|   STRACE=`which strace`
| ERROR: Function failed: imageswab_attachstrace (log file is located at /home/maxin/poky/build/tmp/work/qemux86_64-poky-linux/base-files/3.0.14-r89/temp/log.do_configure.3834)
ERROR: Task 756 (/home/maxin/poky/meta/recipes-core/base-files/base-files_3.0.14.bb, do_configure) failed with exit code '1'

Second Keyboard Interrupt, stopping...


Summary: 1 task failed:
  /home/maxin/poky/meta/recipes-core/base-files/base-files_3.0.14.bb, do_configure
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
NOTE: Sending SIGTERM to remaining 21 tasks


Once solution is to document the "strace" dependency for image-swab.
Comment 2 Scott Rifenbark 2015-10-06 16:05:47 UTC
John, 

See http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html#ref-classes-image-swab for the new note.  I did a bit of rewording.  On your approval I will update the bug to RESOLVED/FIXED and reset the Doc flag to "Done."

Thanks,
Scott
Comment 3 Maxin B. John 2015-10-07 07:05:17 UTC
Hi Scott,

(In reply to comment #2)
> John, 
> 
> See
> http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html#ref-classes-
> image-swab for the new note.  I did a bit of rewording.  On your approval I
> will update the bug to RESOLVED/FIXED and reset the Doc flag to "Done."

The new line looks nice. Please update the bug RESOLVED/FIXED.
 
> Thanks,
> Scott

Regards,
Maxin
Comment 4 Scott Rifenbark 2015-10-07 13:55:57 UTC
Thanks for the review.  Done.