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)
> 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?
(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
Should be fixed by this patch: http://lists.openembedded.org/pipermail/openembedded-core/2017-July/139271.html Please review.
(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
the fix has been merged to poky master. commit id: b15df41d7d6074e76fea8d1c4f1d12273b46f1a3