Bug 14719 - Ruby fails to build on AB
Summary: Ruby fails to build on AB
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 4.0 M3
Assignee: Unassigned
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2022-02-10 15:40 UTC by Saul Wold
Modified: 2022-02-16 22:31 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.