-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Cannot build Bazel with local JDK21 #21604
Comments
cc @hvadehra |
it also fails with local JDK11. |
I have a fix I can submit shortly, I'm just trying to understand why the existing tests didn't cover this. |
The rbe toolchain we generated provides the wrong version, e.g.:
so the |
I did some code archaeology, and from what I can tell, the Unfortunately, the definitions evolved over a series of changes, and certain API design choices were made (likely driven by the need for backwards compatibility) which led us to this situation. The intended use of I think it might be preferable if we updated https://github.com/bazelbuild/bazel-toolchains/blob/master/pkg/rbeconfigsgen/rbeconfigsgen.go to use the |
Had a discussion with Chi offline. The situation is trickier than I had hoped. The runtime in this case is naturally non-hermetic, but what's worse is it's not local and doesn't exist where Bazel is executing, so |
Work towards bazelbuild#21604 Closes bazelbuild#21610. PiperOrigin-RevId: 613912980 Change-Id: Ibc620120b783c990d08b84ea6cd8ae224333ed8a
…esubmit.yml Bazel 7.2.0 has been released and the fix for #21604 is included. PiperOrigin-RevId: 644998185 Change-Id: Idbb39dd858dfde20d960899d7d69d56562ff80d5
Description of the bug:
When building Bazel itself with a local JDK21 (
local_java_runtime
), it fails with following error:It seems like the
turbine.ctSymPath
property isn't correctly set, becausejava_runtime.lib_ct_sym
isNone
. By following the code in_java_runtime_rule_impl
, it's becauselocal_java_runtime
doesn't setsrcs
norlib_ct_sym
.This prevent us using RBE with JDK21.
Which category does this issue belong to?
Java Rules
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
https://github.com/bazelbuild/bazel
BUILD
:bazel build --java_runtime_version=local --tool_java_runtime_version=local --extra_toolchains=//:all //src:bazel
Which operating system are you running Bazel on?
linux
What is the output of
bazel info release
?release 7.0.2
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: