Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/ruby: disable unsupported yjit
@ 2024-02-05 18:33 James Hilliard
  2024-02-06  9:48 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: James Hilliard @ 2024-02-05 18:33 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard

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

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/ruby/ruby.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/package/ruby/ruby.mk b/package/ruby/ruby.mk
index b2396010c5..4b9ce80e67 100644
--- a/package/ruby/ruby.mk
+++ b/package/ruby/ruby.mk
@@ -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
 
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/ruby: disable unsupported yjit
  2024-02-05 18:33 [Buildroot] [PATCH 1/1] package/ruby: disable unsupported yjit James Hilliard
@ 2024-02-06  9:48 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-02-06  9:48 UTC (permalink / raw)
  To: James Hilliard; +Cc: buildroot

On Mon,  5 Feb 2024 11:33:08 -0700
James Hilliard <james.hilliard1@gmail.com> wrote:

> 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
> 
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
>  package/ruby/ruby.mk | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-06  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-05 18:33 [Buildroot] [PATCH 1/1] package/ruby: disable unsupported yjit James Hilliard
2024-02-06  9:48 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox