Bug 11760 - squashfs_xz and squashfs_lzo image compression failed
Summary: squashfs_xz and squashfs_lzo image compression failed
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.4
Hardware: x86 x86
: Medium+ normal
Target Milestone: 2.4 M2
Assignee: Ed Bartosh
QA Contact:
URL: http://www.yoctoproject.org/docs/2.2/...
Whiteboard:
Depends on:
Blocks: 10745
  Show dependency tree
 
Reported: 2017-07-05 20:38 UTC by Jose Perez C
Modified: 2017-07-18 10:37 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Found by QA test)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jose Perez C 2017-07-05 20:38:27 UTC
Ubi and Ubifs image compression failed on do_image_ubi  and do_image_ubifs when compiling.

Steps to reproduce
1. Add the following variables to "conf/local.conf"
   IMAGE_FSTYPES += "squashfs-lzo squashfs-xz"   
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:


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        = ""
meta              
meta-poky         
meta-yocto-bsp    
meta-selftest     = "jperez/bug10745:4b1d270602a0542eef1b497eaf15bad2b747686f"
ERROR: core-image-minimal-1.0-r0 do_image_squashfs_lzo: Function failed: do_image_squashfs_lzo (log file is located at /home/jgperezc/poky-contrib/build-bug10745/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_squashfs_lzo.28026)
ERROR: Logfile of failure stored in: /home/jgperezc/poky-contrib/build-bug10745/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_squashfs_lzo.28026
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_squashfs_lzo
| mksquashfs: error while loading shared libraries: liblz4.so.1: cannot open shared object file: No such file or directory
| WARNING: /home/jgperezc/poky-contrib/build-bug10745/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/run.do_image_squashfs_lzo.28026:1 exit 127 from 'mksquashfs /home/jgperezc/poky-contrib/build-bug10745/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs /home/jgperezc/poky-contrib/build-bug10745/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/core-image-minimal-qemux86-20170705203218.rootfs.squashfs-lzo -noappend -comp lzo'
| ERROR: Function failed: do_image_squashfs_lzo (log file is located at /home/jgperezc/poky-contrib/build-bug10745/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_squashfs_lzo.28026)


---

ERROR: core-image-minimal-1.0-r0 do_image_squashfs_xz: Function failed: do_image_squashfs_xz (log file is located at /home/jgperezc/poky-contrib/build-bug10745/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_squashfs_xz.28029)
ERROR: Logfile of failure stored in: /home/jgperezc/poky-contrib/build-bug10745/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_squashfs_xz.28029
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_squashfs_xz
| mksquashfs: error while loading shared libraries: liblz4.so.1: cannot open shared object file: No such file or directory
| WARNING: /home/jgperezc/poky-contrib/build-bug10745/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/run.do_image_squashfs_xz.28029:1 exit 127 from 'mksquashfs /home/jgperezc/poky-contrib/build-bug10745/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs /home/jgperezc/poky-contrib/build-bug10745/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/core-image-minimal-qemux86-20170705203218.rootfs.squashfs-xz -noappend -comp xz'
| ERROR: Function failed: do_image_squashfs_xz (log file is located at /home/jgperezc/poky-contrib/build-bug10745/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_squashfs_xz.28029)
Comment 1 Ed Bartosh 2017-07-07 08:33:54 UTC
> Ubi and Ubifs image compression failed on do_image_ubi  and do_image_ubifs when compiling

I don't see any mentioning of ubi[fs] in the output you've provided. The issue with squashfs-lzo and squashfs-xz is understandable, but how is it related to ubifs?
Comment 2 Jose Perez C 2017-07-07 12:43:04 UTC
(In reply to comment #1)
> > Ubi and Ubifs image compression failed on do_image_ubi  and do_image_ubifs when compiling
> 
> I don't see any mentioning of ubi[fs] in the output you've provided. The
> issue with squashfs-lzo and squashfs-xz is understandable, but how is it
> related to ubifs?

My bad.. I clone this bug form the ubi, ubifs one and forgot to change the first description.. Dimissi ubi and ubis this is only related to squashfs-lzo and squashfs-xz
Comment 3 Ed Bartosh 2017-07-07 15:27:47 UTC
Should be fixed by this patch: http://lists.openembedded.org/pipermail/openembedded-core/2017-July/139271.html

Please review.
Comment 4 Jose Perez C 2017-07-07 15:43:09 UTC
(In reply to comment #3)
> Should be fixed by this patch:
> http://lists.openembedded.org/pipermail/openembedded-core/2017-July/139271.
> html
> 
> Please review.

Just tested and is working correctly
Comment 5 Ed Bartosh 2017-07-18 10:37:38 UTC
the fix has been merged to poky master. commit id: b15df41d7d6074e76fea8d1c4f1d12273b46f1a3