Bug 14719

Summary: Ruby fails to build on AB
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Saul Wold <saul.wold>
Component: devtools / tool chainAssignee: Unassigned <unassigned>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alex.kanavin, alexandre.belloni, meta.mr.watcher, meta.watcher, randy.macleod
Version: unspecified   
Target Milestone: 4.0 M3   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Saul Wold 2022-02-10 15:40:12 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/118/builds/1197/steps/12/logs/stdio
fedora35-ty-2 SSD



| ERROR: oe_runmake failed
| WARNING: /home/pokybuild/yocto-worker/reproducible-fedora/build/build-st/reproducibleA/tmp/work/core2-64-poky-linux/ruby/3.1.0-r0/temp/run.do_compile.1080938:186 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
| make: *** [uncommon.mk:762: x86_64-linux-gnu-fake.rb] Error 1
| 	#1: bbfatal_log, /home/pokybuild/yocto-worker/reproducible-fedora/build/build-st/reproducibleA/tmp/work/core2-64-poky-linux/ruby/3.1.0-r0/temp/run.do_compile.1080938, line 186
| 	#2: die, /home/pokybuild/yocto-worker/reproducible-fedora/build/build-st/reproducibleA/tmp/work/core2-64-poky-linux/ruby/3.1.0-r0/temp/run.do_compile.1080938, line 170
| 	#3: oe_runmake, /home/pokybuild/yocto-worker/reproducible-fedora/build/build-st/reproducibleA/tmp/work/core2-64-poky-linux/ruby/3.1.0-r0/temp/run.do_compile.1080938, line 165
| 	#4: autotools_do_compile, /home/pokybuild/yocto-worker/reproducible-fedora/build/build-st/reproducibleA/tmp/work/core2-64-poky-linux/ruby/3.1.0-r0/temp/run.do_compile.1080938, line 160
| 	#5: do_compile, /home/pokybuild/yocto-worker/reproducible-fedora/build/build-st/reproducibleA/tmp/work/core2-64-poky-linux/ruby/3.1.0-r0/temp/run.do_compile.1080938, line 155
| 	#6: main, /home/pokybuild/yocto-worker/reproducible-fedora/build/build-st/reproducibleA/tmp/work/core2-64-poky-linux/ruby/3.1.0-r0/temp/run.do_compile.1080938, line 199
NOTE: recipe ruby-3.1.0-r0: task do_compile: Failed
Comment 1 Randy MacLeod 2022-02-10 15:51:16 UTC
Likely a compile race in ruby that may be related to building the shared library.
See disabling of parallel install.
Comment 2 Alexander Kanavin 2022-02-11 09:06:56 UTC
I don't think it is a race, more like an incompatible -native item from sstate:

NOTE: recipe ruby-native-3.1.0-r0: task do_populate_sysroot_setscene: Succeeded
...
linking miniruby
| generating x86_64-linux-gnu-fake.rb
| executable host ruby is required. use --with-baseruby option.

Seems like ruby-native came from a different host, and on Fedora 35 it doesn't work when building cross ruby, for some reason.