Skip to contentSkip to conversation

package/ruby: disable unsupported yjit

PATCH Applied James Hilliard 2 participants 2 messages Feb 5, 2024 – Feb 6, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ruby: disable unsupported yjit

The yjit feature requires rust toolchain support, since we don't currently handle setting up the rust toolchain for ruby lets disable this feature for now.

This broke when ruby was bumped to version 3.3.0 in buildroot commit a01c278df7892c8a6736334aa008b2d7c09e9258.

Fixes:
linking static-library libruby-static.a
LLVM ERROR: Invalid encoding
make[2]: *** [Makefile:318: libruby-static.a] Aborted

---
 package/ruby/ruby.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
package/ruby/ruby.mk +6 -1
index b2396010c5..4b9ce80e67 100644
@@ -22,9 +22,14 @@ RUBY_CPE_ID_VENDOR = ruby-lang
 RUBY_DEPENDENCIES = host-pkgconf host-ruby
 HOST_RUBY_DEPENDENCIES = host-pkgconf host-openssl
 RUBY_MAKE_ENV = $(TARGET_MAKE_ENV)
-RUBY_CONF_OPTS = --disable-install-doc --disable-rpath --disable-rubygems
+RUBY_CONF_OPTS = \
+	--disable-install-doc \
+	--disable-rpath \
+	--disable-rubygems \
+	--disable-yjit
 HOST_RUBY_CONF_OPTS = \
 	--disable-install-doc \
+	--disable-yjit \
 	--with-out-ext=curses,readline \
 	--without-gmp
 
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 12 lines · On Mon, 5 Feb 2024 11:33:08 -0700 James Hilliard <[email protected]>…

The yjit feature requires rust toolchain support, since we don't currently handle setting up the rust toolchain for ruby lets disable this feature for now.

This broke when ruby was bumped to version 3.3.0 in buildroot commit a01c278df7892c8a6736334aa008b2d7c09e9258.

Fixes:
linking static-library libruby-static.a
LLVM ERROR: Invalid encoding
make[2]: *** [Makefile:318: libruby-static.a] Aborted

Quoted 4 lines
---
 package/ruby/ruby.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot