Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby 3.2 is not built with YJIT #358

Closed
djones opened this issue Jan 26, 2023 · 2 comments
Closed

Ruby 3.2 is not built with YJIT #358

djones opened this issue Jan 26, 2023 · 2 comments
Milestone

Comments

@djones
Copy link

djones commented Jan 26, 2023

One of the big benefits of Ruby 3.2 is YJIT. Currently it is not compiled with YJIT support.

When you go to enable it down the line and verify, this is what you get:

docker run -it phusion/passenger-ruby32 ruby --yjit -ve 'p RubyVM::YJIT.enabled?'
ruby: warning: Ruby was built without YJIT support. You may need to install rustc to build Ruby with YJIT.
ruby 3.2.0 (2022-12-25 revision a528908271) [aarch64-linux]
-e:1:in `<main>': uninitialized constant RubyVM::YJIT (NameError)

p RubyVM::YJIT.enabled?
        ^^^^^^

rustc needs to be installed at some point before ruby is built?

@mathieujobin
Copy link

confirmed, this is very unfortunate...

Digest: sha256:6d5e48b163c00332f1bef5fc3e4f58e219ee12704c5934ee423094a42c752dd3
Status: Downloaded newer image for phusion/passenger-ruby32:latest
 ---> d8ef2c470f35
Step 2/37 : ENV HOME /root
 ---> Running in 760487ef8418
Removing intermediate container 760487ef8418
 ---> 55065272bebc
Step 3/37 : ENV RUBY_YJIT_ENABLE true
 ---> Running in c27dcfd6dc23
Removing intermediate container c27dcfd6dc23
 ---> 1b77099e1feb
Step 4/37 : RUN ruby -e 'puts RUBY_DESCRIPTION'
 ---> Running in f1d33ca76c49
ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux]
Removing intermediate container f1d33ca76c49
 ---> 5c283bad70ff
Step 5/37 : RUN ruby -v
 ---> Running in 9c43d58246e9
ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux]
Removing intermediate container 9c43d58246e9

it also not 3.2.1

@ajhodgson
Copy link
Contributor

Fixed in #369

@CamJN CamJN added this to the 2.6.0 milestone Nov 20, 2023
@CamJN CamJN closed this as completed Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants