Bug 12077

Summary: Cannot build -dbg packages with sources (image build fails) 2.3.2 (poky pyro)
Product: [Build System, Metadata & Runtime] BitBake Reporter: Matthias Schöpfer <matthias.schoepfer>
Component: bitbakeAssignee: Armin Kuster <akuster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: poky.bs.watcher, poky.watcher
Version: 2.3.2   
Target Milestone: 2.3.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)
Attachments:
Description Flags
verbose error messages none

Description Matthias Schöpfer 2017-09-13 10:47:14 UTC
Created attachment 4004 [details]
verbose error messages

Preconditions/Environment
-------------------------

poky pyro bitbake core-image-minimal

Build Configuration:
BB_VERSION        = "1.34.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "qemux86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "2.3.2"
TUNE_FEATURES     = "m64 core2"
TARGET_FPU        = ""
meta              
meta-poky         
meta-yocto-bsp    = "pyro:ce26a57e04ad65c02087629701d96448a44e73d5"

Triggering Action/Cause
-----------------------

Add

IMAGE_GEN_DEBUGFS = "1"
IMAGE_FSTYPES_DEBUGFS = "tar.bz2"
PACKAGE_DEBUG_SPLIT_STYLE = "debug-file-directory"

to conf/local.conf

Expectation
-----------

-dbg packages should have /usr/src/debug in them and build should finish w/o errors

Actual Result
-------------

Lots of file not found errors (see attachment). Pattern is 

qemu_x86_64/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs-orig/usr/lib/debug/.build-id/04/3ec7422665726df42d5fd22b151f876fe119e2 not found, while

qemu_x86_64/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs-orig/usr/lib/debug/.build-id/04/3ec7422665726df42d5fd22b151f876fe119e2.debug

exists

Reproducibility
---------------

always
Comment 1 Matthias Schöpfer 2017-09-13 13:12:44 UTC
Additional info: this seems only to happen when PACKAGE_CLASSES ?= "package_rpm", PACKAGE_CLASSES ?= "package_deb" works, ipk untested
Comment 2 Richard Purdie 2017-09-14 14:47:47 UTC
Patch in master which addresses this: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=975bea4400ec1817537fb4a91723b75a242d4a10 ?
Comment 3 Armin Kuster 2017-09-14 19:43:22 UTC
bac(In reply to comment #2)
> Patch in master which addresses this:
> http://git.yoctoproject.org/cgit.cgi/poky/commit/
> ?id=975bea4400ec1817537fb4a91723b75a242d4a10 ?

back ported plus these other two

139403a package_rpm.bbclass: use multithreaded xz compression
0690ea0 rpm: allow arch-dependent binaries in noarch packages
Comment 4 Armin Kuster 2017-09-18 17:29:56 UTC
in akuster/pyro-next. got a clean build and should be in the next pull request