<?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>14695</bug_id>
          
          <creation_ts>2022-01-17 16:02:24 +0000</creation_ts>
          <short_desc>ruby 3.1.0 do_install failure</short_desc>
          <delta_ts>2022-01-27 15:55:56 +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>devtools / tool chain</component>
          <version>3.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>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>kweihmann</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>92340</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-01-17 16:02:24 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/108/builds/2521/steps/11/logs/stdio


| linking shared-library libruby.so.3.1.0
| ./libruby.so: file not recognized: file format not recognized
| collect2: error: ld returned 1 exit status
| ../ruby-3.1.0/defs/gmake.mk:413: recipe for target &apos;spec/ruby/optional/capi/ext/proc_spec.so&apos; failed
| make: *** [spec/ruby/optional/capi/ext/proc_spec.so] Error 1
| make: *** Waiting for unfinished jobs....
| linking ruby
| make[2]: Leaving directory &apos;/home/pokybuild/yocto-worker/qemux86-world-alt/build/build/tmp/work/core2-64-poky-linux/ruby/3.1.0-r0/build&apos;
| make[1]: Leaving directory &apos;/home/pokybuild/yocto-worker/qemux86-world-alt/build/build/tmp/work/core2-64-poky-linux/ruby/3.1.0-r0/build&apos;
| make[1]: Entering directory &apos;/home/pokybuild/yocto-worker/qemux86-world-alt/build/build/tmp/work/core2-64-poky-linux/ruby/3.1.0-r0/build&apos;
| make[1]: Nothing to be done for &apos;note&apos;.
| make[1]: Leaving directory &apos;/home/pokybuild/yocto-worker/qemux86-world-alt/build/build/tmp/work/core2-64-poky-linux/ruby/3.1.0-r0/build&apos;
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
NOTE: recipe ruby-3.1.0-r0: task do_install: Failed
ERROR: Task (/home/pokybuild/yocto-worker/qemux86-world-alt/build/meta/recipes-devtools/ruby/ruby_3.1.0.bb:do_install) failed with exit code &apos;1&apos;


On the worker:
tmp/work/core2-64-poky-linux/ruby/3.1.0-r0/build$ file libruby.so
libruby.so: symbolic link to libruby.so.3.1.0
tmp/work/core2-64-poky-linux/ruby/3.1.0-r0/build$ file libruby.so.3.1.0
libruby.so.3.1.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=29104e2d28ae1d507a490e1de26440e9bb512e6e, with debug_info, not stripped</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92341</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-01-17 16:04:25 +0000</bug_when>
    <thetext>tmp/work/core2-64-poky-linux/ruby/3.1.0-r0/build$ stat libruby.so.3.1.0
  File: libruby.so.3.1.0
  Size: 18387704  	Blocks: 35920      IO Block: 4096   regular file
Device: fd01h/64769d	Inode: 258289976   Links: 1
Access: (0755/-rwxr-xr-x)  Uid: ( 6000/pokybuild)   Gid: ( 6000/pokybuild)
Access: 2022-01-17 15:56:13.920962593 +0000
Modify: 2022-01-16 04:16:14.522093947 +0000
Change: 2022-01-16 04:16:14.522093947 +0000
 Birth: -
tmp/work/core2-64-poky-linux/ruby/3.1.0-r0/build$ stat libruby.so
  File: libruby.so -&gt; libruby.so.3.1.0
  Size: 16        	Blocks: 0          IO Block: 4096   symbolic link
Device: fd01h/64769d	Inode: 258290018   Links: 1
Access: (0777/lrwxrwxrwx)  Uid: ( 6000/pokybuild)   Gid: ( 6000/pokybuild)
Access: 2022-01-17 15:55:57.989048817 +0000
Modify: 2022-01-16 04:16:14.558093782 +0000
Change: 2022-01-16 04:16:14.558093782 +0000
 Birth: -</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92344</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-01-17 16:48:14 +0000</bug_when>
    <thetext>I think these can happen when the file is being written by two writers and it sees an incomplete file, or the file is being accessed before it was completely written out. This therefore could be some kind of race in ruby&apos;s makefiles?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92346</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-01-17 17:06:00 +0000</bug_when>
    <thetext>The ruby workdir is saved in /srv/autobuilder/autobuilder.yocto.io/pub/failed-builds-data/bug14695

Running do_install again on the worker after renaming the build directory properly just worked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92359</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-01-20 12:35:38 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/118/builds/1139/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92361</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-01-20 15:27:56 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/108/builds/2535/steps/11/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92364</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-01-20 15:45:35 +0000</bug_when>
    <thetext>This seems to have started after December&apos;s ruby upgrade.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92367</commentid>
    <comment_count>7</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2022-01-20 15:52:59 +0000</bug_when>
    <thetext>Konrad, would you be able to take a look?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92373</commentid>
    <comment_count>8</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2022-01-20 22:24:34 +0000</bug_when>
    <thetext>Patch proposed:
https://lists.openembedded.org/g/openembedded-core/message/160802

Note that *not* enabling libruby.so is the upstream default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92376</commentid>
    <comment_count>9</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2022-01-21 13:48:08 +0000</bug_when>
    <thetext>Better patch:
https://lists.openembedded.org/g/openembedded-core/message/160829</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92416</commentid>
    <comment_count>10</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-01-27 15:55:56 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/poky/commit/?id=29a14ae59b03e8aae0e23254f881f97a4539edf0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>