Add embedded jdk support for ppc64le#11436
Add embedded jdk support for ppc64le#11436jayfurmanek wants to merge 5 commits intobazelbuild:masterfrom
Conversation
philwo
left a comment
There was a problem hiding this comment.
This is really cool! Thank you :)
The tests fail, but the fix is simple (there's just a wrong URL in the jdk.WORKSPACE).
src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE
Show resolved
Hide resolved
src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE
Outdated
Show resolved
Hide resolved
|
FYI @meisterT |
|
Nice! |
|
I think the remaining fails here are unrelated. Also, what's the policy on compile.sh changes? In our builds, we add in the below to the bazel build command: It looks like it doesn't build in the jdk by default. Is the idea that you should do that kind of thing with a bazelrc file? Thanks for reviewing! |
To be honest, I'm not sure what these flags do. 😬 Why do you need them for your build? The test failures are indeed related to this change: They happen because we run most tests without network access on our CI and instead inject the external repositories (like JDKs) from the outside. It should work if you copy the definition of your Then add your
That should fix it. :) |
|
That worked. Thanks for the assistance @philwo ! |
|
Anything else needed here? Thx!! |
|
@jayfurmanek I think we're good, thanks! I'll try to merge this now. |
This patch follows a similar approach used in PR bazelbuild#11436 to add support for embedding OpenJDK in bazel for s390x. Similar to ppc, the openjdk used will be downloadded from adoptopenjdk website. Another thing this PR does is to also provide the cached version of allmodules_jdk and minimal_jdk zip files built on s390x. I have tested by linking this file locally on s390x machines and with these zip files provided, tests no longer fail with java exec format error on s390x.
This patch follows a similar approach used in PR bazelbuild#11436 to add support for embedding OpenJDK in bazel on s390x. Similar to ppc, the openjdk used will be downloadded from adoptopenjdk website. Another thing this PR does is to provide the cached version of allmodules_jdk and minimal_jdk zip files built on s390x. I have tested by linking the files locally on s390x and with these zip files provided, tests no longer fail with java exec format error on s390x.
This patch follows a similar approach used in PR bazelbuild#11436 to add support for embedding OpenJDK in bazel on s390x. Similar to ppc, the openjdk used will be downloadded from adoptopenjdk website. Another thing this PR does is to provide the cached version of allmodules_jdk and minimal_jdk zip files built on s390x. I have tested by linking the files locally on s390x and with these zip files provided, tests no longer fail with java exec format error on s390x.
This patch follows a similar approach used in PR bazelbuild#11436 to add support for embedding OpenJDK in bazel on s390x. Similar to ppc, the openjdk used will be downloadded from adoptopenjdk website.
This patch follows a similar approach used in PR bazelbuild#11436 to add support for embedding OpenJDK in bazel on s390x. Similar to ppc, the openjdk used will be downloadded from adoptopenjdk website.
This patch follows a similar approach used in PR bazelbuild#11436 to add support for embedding OpenJDK in bazel on s390x. Similar to ppc, the openjdk used will be downloadded from adoptopenjdk website.
This adds support for embedding OpenJDK in bazel for ppc64le.
Azul Systems does not create Zulu/OpenJDK builds for ppc64le, but AdoptOpenjdk.net does.
This PR adds the necessary configs and conditionals and http_file configuration URLs for adoptopenjdk downloads.
The minimize_jdk.sh script needed a slight generalization.
I've been using adoptOpenjdk-embedded bazel for quite a while and can vouch for its stability.