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
mandrel: update to 23.1.2.0. #48359
mandrel: update to 23.1.2.0. #48359
Conversation
@@ -59,7 +59,7 @@ post_extract() { | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs change too, to mandrel21
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pushed that now, but bb -e '(babashka.process/exec "ls")'
doesn't work still after the revbump.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to fix that before merging then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When building babashka
, under --module-path
it has
/usr/lib/jvm/mandrel21/lib/svm-preview/builder/svm-foreign.jar:/usr/lib/jvm/mandrel21/lib/jvmci/word.jar:/usr/lib/jvm/mandrel21/lib/jvmci/nativeimage.jar:/usr/lib/jvm/mandrel21/lib/jvmci/collections.jar:/usr/lib/jvm/mandrel21/lib/truffle/truffle-compiler.jar:/usr/lib/jvm/mandrel21/lib/svm/builder/pointsto.jar:/usr/lib/jvm/mandrel21/lib/svm/builder/svm.jar:/usr/lib/jvm/mandrel21/lib/svm/builder/objectfile.jar:/usr/lib/jvm/mandrel21/lib/svm/builder/native-image-base.jar
Isn't that one supposed to have graal-sdk.jar
as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried patching this in but it didn't help?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's two build logs for identical babashka
versions - bb_old.txt with mandrel-23.0.1.2 JDK 17, bb_new.txt with mandrel-23.1.2.0 JDK 21. Diffing them, the missing graal-sdk.jar
in the later's --module-path
should be the issue. Maybe a change in graal/mandrel internal across versions? Dunno how to go about debugging that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, the difference is that on mandrel 17 this graal-sdk.jar contains lots of things, but on mandrel 21 it just contains some properties. The actual classes are in the svm*jar things.
Babashka exec needs the class org.graalvm.nativeimage.ProcessProperties to exist, which used to be in graal-sdk.jar but is now in jvmci/nativeimage.jar... which is in module-path already tho.
This fixes it:
|
Haha yeah, just finished building that & coming here to say changing that line in resource-path worked 😆 |
Test failures are due to GitHub I think. |
Failed for me locally too - total five failures
|
These fail due to the container chroot. Let's merge this. |
Testing the changes
Local build testing
One
babashka
test fail, couldn't figure out why exactly.cc @leahneukirchen