Bug 11590

Summary: creating root file systems using elf failed applying patch fix-makefile-to-find-libz.patch
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Francisco Pedraza <francisco.j.pedraza.gonzalez>
Component: coreAssignee: Saul Wold <sgw>
Status: RESOLVED FIXED QA Contact: Francisco Pedraza <francisco.j.pedraza.gonzalez>
Severity: normal    
Priority: Medium CC: jose.perez.carranza, meta.mr.watcher, meta.watcher, randy.macleod, sgw
Version: 2.4   
Target Milestone: 2.4 M2   
Hardware: x86   
OS: x86   
URL: http://www.yoctoproject.org/docs/2.2/mega-manual/mega-manual.html#var-IMAGE_TYPES
Whiteboard: Backport to 2.3.1
OS type for building Yocto: --- Type of Regression: Regression (Found by QA test)
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 10745    
Attachments:
Description Flags
log elf applying patch none

Description Francisco Pedraza 2017-05-29 21:26:34 UTC
Created attachment 3780 [details]
log elf applying patch

"elf" image compression failed 

Steps to reproduce
1. Add the following variables to "conf/local.conf"
IMAGE_FSTYPES += "elf"
2. Compile
$ bitbake core-image-minimal

Expected result:
The compilation process should be performed successfully and the generated compressed image should be at: "~/tmp/deploy/images/machine/"

Actual result:
The compilation image process failed getting the following error message:


ERROR: mkelfimage-native-4.0+gitAUTOINC+686a48a339-r0 do_patch: Command Error: 'quilt --quiltrc /home/fjpedraz/Bugs/2.4/poky/build/tmp/work/x86_64-linux/mkelfimage-native/4.0+gitAUTOINC+686a48a339-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
Applying patch fix-makefile-to-find-libz.patch
patching file configure.ac
Hunk #2 FAILED at 175.
1 out of 2 hunks FAILED -- rejects in file configure.ac
Patch fix-makefile-to-find-libz.patch does not apply (enforce with -f)
ERROR: mkelfimage-native-4.0+gitAUTOINC+686a48a339-r0 do_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/fjpedraz/Bugs/2.4/poky/build/tmp/work/x86_64-linux/mkelfimage-native/4.0+gitAUTOINC+686a48a339-r0/temp/log.do_patch.34263
ERROR: Task (virtual:native:/home/fjpedraz/Bugs/2.4/poky/meta/recipes-devtools/mkelfimage/mkelfimage_git.bb:do_patch) failed with exit code '1'



Build Configuration:
BB_VERSION        = "1.34.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal-4.8"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "2.3"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""


Attached you can find logs.
Comment 1 Francisco Pedraza 2017-05-29 21:28:21 UTC
It has relation with another implementation I am working on: https://bugzilla.yoctoproject.org/show_bug.cgi?id=10745