<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11760</bug_id>
          
          <creation_ts>2017-07-05 20:38:27 +0000</creation_ts>
          <short_desc>squashfs_xz and squashfs_lzo image compression failed</short_desc>
          <delta_ts>2017-07-18 10:37:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.yoctoproject.org/docs/2.2/mega-manual/mega-manual.html#var-IMAGE_TYPES</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4 M2</target_milestone>
          
          <blocked>10745</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jose Perez C">jose.perez.carranza</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>francisco.j.pedraza.gonzalez</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Found by QA test)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>74791</commentid>
    <comment_count>0</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-07-05 20:38:27 +0000</bug_when>
    <thetext>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 &quot;conf/local.conf&quot;
   IMAGE_FSTYPES += &quot;squashfs-lzo squashfs-xz&quot;   
2. Compile
   $ bitbake core-image-minimal

Expected result:
The compilation process should be performed successfully and the generated compressed image should be at: &quot;~/tmp/deploy/images/&lt;machine&gt;/&quot;

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


Build Configuration:
BB_VERSION        = &quot;1.34.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal-4.8&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.3&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-poky         
meta-yocto-bsp    
meta-selftest     = &quot;jperez/bug10745:4b1d270602a0542eef1b497eaf15bad2b747686f&quot;
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 &apos;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&apos;
| 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 &apos;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&apos;
| 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)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74858</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-07-07 08:33:54 +0000</bug_when>
    <thetext>&gt; Ubi and Ubifs image compression failed on do_image_ubi  and do_image_ubifs when compiling

I don&apos;t see any mentioning of ubi[fs] in the output you&apos;ve provided. The issue with squashfs-lzo and squashfs-xz is understandable, but how is it related to ubifs?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74862</commentid>
    <comment_count>2</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-07-07 12:43:04 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; &gt; Ubi and Ubifs image compression failed on do_image_ubi  and do_image_ubifs when compiling
&gt; 
&gt; I don&apos;t see any mentioning of ubi[fs] in the output you&apos;ve provided. The
&gt; issue with squashfs-lzo and squashfs-xz is understandable, but how is it
&gt; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74866</commentid>
    <comment_count>3</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-07-07 15:27:47 +0000</bug_when>
    <thetext>Should be fixed by this patch: http://lists.openembedded.org/pipermail/openembedded-core/2017-July/139271.html

Please review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74867</commentid>
    <comment_count>4</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-07-07 15:43:09 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Should be fixed by this patch:
&gt; http://lists.openembedded.org/pipermail/openembedded-core/2017-July/139271.
&gt; html
&gt; 
&gt; Please review.

Just tested and is working correctly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75099</commentid>
    <comment_count>5</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-07-18 10:37:38 +0000</bug_when>
    <thetext>the fix has been merged to poky master. commit id: b15df41d7d6074e76fea8d1c4f1d12273b46f1a3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>