<?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>11674</bug_id>
          
          <creation_ts>2017-06-15 19:39:37 +0000</creation_ts>
          <short_desc>core-image-sato-sdk-ptest build error for cpio image</short_desc>
          <delta_ts>2024-11-19 13:01:36 +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>5.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Juro Bystricky">juro.bystricky</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
    
    <cc>shashwatx.pandey</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>74252</commentid>
    <comment_count>0</comment_count>
      <attachid>3824</attachid>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-06-15 19:39:37 +0000</bug_when>
    <thetext>Created attachment 3824
log.do_image_cpio.22223

with local.conf:
MACHINE = &quot;qemux86-64&quot;
IMAGE_FSTYPES += &quot; cpio&quot;

the following build fails:

juro@juro-Precision-T5610:/data/master-master/poky/build-bug-11661$ bitbake core-image-sato-sdk-ptest
Parsing recipes: 100% |#####################################################################################################################################| Time: 0:00:04
Parsing of 826 .bb files complete (0 cached, 826 parsed). 1293 targets, 48 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.34.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;qemux86-64&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.3&quot;
TUNE_FEATURES     = &quot;m64 core2&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-poky         
meta-yocto-bsp    = &quot;HEAD:bd61cb3d900d1c36667f1bb8f403ee4dbbedd468&quot;

Initialising tasks: 100% |##################################################################################################################################| Time: 0:00:19
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: core-image-sato-sdk-ptest-1.0-r0 do_image_cpio: Function failed: do_image_cpio (log file is located at /data/master-master/poky/build-bug-11661/tmp/work/qemux86_64-poky-linux/core-image-sato-sdk-ptest/1.0-r0/temp/log.do_image_cpio.22223)
ERROR: Logfile of failure stored in: /data/master-master/poky/build-bug-11661/tmp/work/qemux86_64-poky-linux/core-image-sato-sdk-ptest/1.0-r0/temp/log.do_image_cpio.22223
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_cpio
| 4796864 blocks
| cpio: cannot seek on output: Invalid argument
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_image_cpio (log file is located at /data/master-master/poky/build-bug-11661/tmp/work/qemux86_64-poky-linux/core-image-sato-sdk-ptest/1.0-r0/temp/log.do_image_cpio.22223)
ERROR: Task (/data/master-master/poky/meta/recipes-sato/images/core-image-sato-sdk-ptest.bb:do_image_cpio) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 7117 tasks of which 5977 didn&apos;t need to be rerun and 1 failed.

Summary: 1 task failed:
  /data/master-master/poky/meta/recipes-sato/images/core-image-sato-sdk-ptest.bb:do_image_cpio



ROOTFS size issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74467</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-06-22 14:38:19 +0000</bug_when>
    <thetext>&quot;The cpio utility was standardized in POSIX.1-1988, but it was omitted from POSIX.1-2001 because of its file size (and other) limitations. For example, the GNU version offers various output format options, such as &quot;bin&quot; (default, and obsolete) and &quot;ustar&quot;, having a file size limitations of 2,147,483,647 bytes (2 GB) and 8,589,934,591 bytes (8 GB), respectively.[3]&quot;

Very much looks like file size is the problem.  If we&apos;re not using ustar format we should, and if possible we should verify the size.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78193</commentid>
    <comment_count>2</comment_count>
    <who name="Shashwat Pandey">shashwatx.pandey</who>
    <bug_when>2017-11-14 06:25:19 +0000</bug_when>
    <thetext>Submitted into mailing list for merging:

http://lists.openembedded.org/pipermail/openembedded-core/2017-November/144315.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85442</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-10-24 23:03:29 +0000</bug_when>
    <thetext>Submitted patch would break initramfs:

&gt; Do recent kernels actually support ustar for initramfs? I thought it only
&gt; supported newc? My 4.9 kernel certainly still only mentions newc...

Also note that the sizes being referred to are actually the &quot;file size
limits for individual files&quot; not the total cpio archive size.

  https://www.gnu.org/software/cpio/manual/cpio.html

What&apos;s the case where &gt; 4GB files are needed in an initramfs?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91846</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-10-28 15:22:50 +0000</bug_when>
    <thetext>We should sanity check cpio targets to be less than the 2 GB limit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95509</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-05-10 15:42:38 +0000</bug_when>
    <thetext>Amusingly I had a look at this, figured out what the combination that breaks it is, looked at upstream git and found a commit less than two weeks ago:

https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=0987d63384f0419b4b14aecdc6a61729b75ce86a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95510</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-05-10 17:00:54 +0000</bug_when>
    <thetext>Patches for cpio on the list. Only took six years...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96933</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:46 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100205</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-11-19 13:01:36 +0000</bug_when>
    <thetext>Fixed in oe-core 84619c2eb2574d808d52d1862ad3b5e099e4dbf7.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3824</attachid>
            <date>2017-06-15 19:39:37 +0000</date>
            <delta_ts>2017-06-15 19:39:37 +0000</delta_ts>
            <desc>log.do_image_cpio.22223</desc>
            <filename>log.do_image_cpio.22223</filename>
            <type>application/octet-stream</type>
            <size>442</size>
            <attacher name="Juro Bystricky">juro.bystricky</attacher>
            
              <data encoding="base64">REVCVUc6IEV4ZWN1dGluZyBweXRob24gZnVuY3Rpb24gc2V0X2ltYWdlX3NpemUKREVCVUc6IFB5
dGhvbiBmdW5jdGlvbiBzZXRfaW1hZ2Vfc2l6ZSBmaW5pc2hlZApERUJVRzogRXhlY3V0aW5nIHNo
ZWxsIGZ1bmN0aW9uIGRvX2ltYWdlX2NwaW8KNDc5Njg2NCBibG9ja3MKY3BpbzogY2Fubm90IHNl
ZWsgb24gb3V0cHV0OiBJbnZhbGlkIGFyZ3VtZW50CldBUk5JTkc6IGV4aXQgY29kZSAxIGZyb20g
YSBzaGVsbCBjb21tYW5kLgpFUlJPUjogRnVuY3Rpb24gZmFpbGVkOiBkb19pbWFnZV9jcGlvIChs
b2cgZmlsZSBpcyBsb2NhdGVkIGF0IC9kYXRhL21hc3Rlci1tYXN0ZXIvcG9reS9idWlsZC1idWct
MTE2NjEvdG1wL3dvcmsvcWVtdXg4Nl82NC1wb2t5LWxpbnV4L2NvcmUtaW1hZ2Utc2F0by1zZGst
cHRlc3QvMS4wLXIwL3RlbXAvbG9nLmRvX2ltYWdlX2NwaW8uMjIyMjMpCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>