Wind River Support Network


LIN5-18797 : ruby: non -native ruby builds affect ruby-native files in host sysroot

Created: May 22, 2014    Updated: Dec 19, 2017
Resolved Date: May 23, 2014
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace


If you build ruby-native and then ruby (non -native) certain files, 

such as : tmp/sysroots/x86_64-linux/usr/lib/ruby/x86_64-linux/rbconfig.rb

Will be updated with incorrect values (such as the path of ruby as expected on the target, not the host).

This results in errors such as:

| ERROR:  Error installing yajl-ruby-1.2.0.gem:
|       ERROR: Failed to build gem native extension.
|         /usr/bin/ruby extconf.rb
| sh: 1: /usr/bin/ruby: not found

When you attempt for example to build a gem using 'gem install'


Build ruby-native again before attempting to build the gem
bitbake ruby-native -C compile
bitbake yajl-ruby -C install

Steps to Reproduce

Attempt to build a gem that has native extensions. You can do this for example by configuring an OpenStack compute  build

wrlinux-x/wrlinux/configure --enable-board=intel-xeon-core \
--enable-addons=wr-ovp,wr-ovp-openstack \
--enable-rootfs=ovp-openstack-compute \

make bbs
bitbake chef
bitbake ruby -C compile
bitbake yajl-ruby -C install

Other Downloads

Live chat