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

TruffleRuby with Graal does not work with Java 9 #556

Closed
chrisseaton opened this issue Sep 24, 2017 · 12 comments
Closed

TruffleRuby with Graal does not work with Java 9 #556

chrisseaton opened this issue Sep 24, 2017 · 12 comments

Comments

@chrisseaton
Copy link
Collaborator

We have instructions for using TruffleRuby and Graal with an older early-access build of Java 9.

https://github.com/graalvm/truffleruby/blob/master/doc/user/using-java9ea.md

These worked in June, but unfortunately some more things changed in later early-access builds and we haven't yet updated these instructions. These need to be updated for the final release now.

@brauliobo
Copy link
Contributor

thanks @chrisseaton, installing openjdk9 now, waiting for new instructions to continue with truffleruby

@chrisseaton
Copy link
Collaborator Author

Oh, and I forgot the other issue is that NFI recently became required, and Sulong is basically required, and we never got those running on Java 9 EA at all.

@chrisseaton
Copy link
Collaborator Author

chrisseaton commented Oct 1, 2017

Fix in #578.

@chrisseaton
Copy link
Collaborator Author

That's not a perfect solution I'm afraid. We recommend using GraalVM and won't support anything else at the moment (beyond attempting to be helpful).

@brauliobo
Copy link
Contributor

@chrisseaton maybe it should be documented why graalvm is prefered over standard JDKs

@chrisseaton
Copy link
Collaborator Author

The GraalVM is the way we package up everything and distribute it for end-users. If you want to use a standard JDK you need to build everything from scratch.

https://github.com/graalvm/truffleruby/blob/master/doc/user/using-graalvm.md

@brauliobo
Copy link
Contributor

hmmm, so there isn't a make task or command to build everything?

@chrisseaton
Copy link
Collaborator Author

@chrisseaton
Copy link
Collaborator Author

I'll keep this open while we fix some more issues with Java 9 - the first being that you can't compile with Java 9.

@chrisseaton
Copy link
Collaborator Author

I've further fixed things #584, so you can now compile and run with Java 9 with Graal enabled.

@sandys
Copy link

sandys commented Oct 9, 2017

@chrisseaton you mention this in the java 9 documentation:

It is also possible to run on Java 9, but we do not support this and at the moment we only document it for interest.

Is this status quo for the foreseeable future ? or is the graal team looking to move to java 9 (as a lot of us were hoping) shortly ?

@chrisseaton
Copy link
Collaborator Author

GraalVM is sticking with a custom Java 8 build that includes JVMCI, for the foreseeable future. I'm not responsible for that and there are many projects which need to co-ordinate beyond TruffleRuby to upgrade - that's why it's not trivial to do.

We can fix any issues that people encounter, but I can't see a way to provide a GraalVM Java 9 release at the moment - it's just not something that this team is responsible for.

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

No branches or pull requests

3 participants