<?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>11767</bug_id>
          
          <creation_ts>2017-07-06 16:32:58 +0000</creation_ts>
          <short_desc>elf image compression failed due missing cpio.gz file</short_desc>
          <delta_ts>2017-07-24 07:35:00 +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>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4</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>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>74840</commentid>
    <comment_count>0</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-07-06 16:32:58 +0000</bug_when>
    <thetext>When trying to use  IMAGE_FSTYPES += &quot;elf&quot; fails due missing cpio.gz file, also on current master there is another failure due elf is trying to use &quot;virtual/kernel-native&quot; but a patch is already on the list [1], so to get this failure on apply first that patch.

1- https://patchwork.openembedded.org/patch/141623/ 

Steps:

1. Add the following variables to &quot;conf/local.conf&quot;
   IMAGE_FSTYPES += &quot; elf&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:

=====================
DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_elf
| Cannot open `/home/jgperezc/poky-contrib/build-bug10745/tmp/deploy/images/qemux86/core-image-minimal-qemux86.cpio.gz&apos;: 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_elf.33339:1 exit 1 from &apos;mkelfImage --kernel=/home/jgperezc/poky-contrib/build-bug10745/tmp/deploy/images/qemux86/bzImage --initrd=/home/jgperezc/poky-contrib/build-bug10745/tmp/deploy/images/qemux86/core-image-minimal-qemux86.cpio.gz --output=/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-20170706162939.rootfs.elf --append=&apos;ramdisk_size=32768 root=/dev/ram0 rw console=&apos;&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75055</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-07-17 08:59:56 +0000</bug_when>
    <thetext>Please, review the fix: http://lists.openembedded.org/pipermail/openembedded-core/2017-July/139688.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75189</commentid>
    <comment_count>2</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-07-20 14:55:29 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Please, review the fix:
&gt; http://lists.openembedded.org/pipermail/openembedded-core/2017-July/139688.
&gt; html

Just tested with the patch sent and is working correctly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75241</commentid>
    <comment_count>3</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-07-24 07:35:00 +0000</bug_when>
    <thetext>The fix has been merged to poky master. Commit id d66314a18c0c1aeeef50185635dbbe76e48b72d1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>