-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
trouble building under java8 on arm64 #1461
Comments
Hi @strophy ScalaPB works on all JVMs>=8, so using a JDK that supports Java 11 should be fine. Can you confirm that the |
Yes, running
|
This can be reproduced quite easily using the following short Dockerfile:
Running this file with different vars for
Can you reproduce this on x86? Or should I ask GraalVM for help? |
When running the Dockerfile you provided I noticed that the
|
Thanks, this works perfectly now, including under ARM. You can track inclusion of the Scala plugin in |
Hello, I am trying to native build ScalaPB so it can be included in the rvolosatovs/docker-protobuf plugin collection, but I am having difficulty building for ARM architecture. I followed the example in the CI from this repo, which uses
jabba
under the hood to installgraalvm@21.1.0
. This resolves tograalvm-ce-java8-linux-amd64-21.1.0.tar.gz
. However, under ARM only the following two packages are available injabba
:It turns out GraalVM 21 does not support Java 8 on ARM: https://github.com/graalvm/graalvm-ce-builds/releases/tag/vm-21.1.0
The same problem means using the
sbtscala/scala-sbt
Docker images is also not possible.Unfortunately attempting to build with any other version of Java fails as follows (e.g. Java 11 on x86):
I don't know anything about Java or Scala toolchains, can anyone help me out here? Do I have to use GraalVM, or is some other Java base image like Zulu possible? Otherwise, if the build only runs on Java 8 and Java 8 does not support ARM, how can I run a build?
The text was updated successfully, but these errors were encountered: