-
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
Bazel 7.2.0 fails to build due to Java mismatch issues #22789
Comments
Could you share the recipe or at least the Bazel invocation that is used in the build? |
@fmeum This is the invocation file: And this is my recipe:
Thank you! |
You are probably missing |
Hi @fmeum , thanks again! At what moment shall this be applied? I guess since it's build time it should be something like the code below, however it's not working:
|
It needs to replace this, I think: |
Thanks @fmeum , looks like this has worked!!! 😄 |
Description of the bug:
Hi,
I'm currently trying to build
Bazel 7.2.0
as an EasyBuild module (that might not be the relevant part tho, as the procedure doesn't differ really that much). I'm usingGCC-13
, which has already given me troubles when I've tried to install previous versions ofBazel
(6.X.X
), as it fails due to a huge number of formatting issues withAbseil
.I've now tried with the latest release, but here the issue is different:
JAVA-11
, the build fails immediately with the following error:JAVA-21
, the build ignites, however it fails after about a minute with a huge number of errors of these types:and
And eventually:
As I checked, the
55.0
version it's posteriorly asking for corresponds toJava-11
, however at the beginning it's asking forJava-21
. Tbh, it's quite confusing why this Java mismatch is happening.Which category does this issue belong to?
C++ Rules, Java Rules
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
I can provide with the
EasyBuild
recipe, however it's quite standard, it just lists theBazel
version and its dependencies.Which operating system are you running Bazel on?
RHEL 9.2
What is the output of
bazel info release
?No response
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
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
I found this: #18309, and I've tried passing
--java_language_version=21
to the build, however it does nothing... (Same for--java_language_version=11
).Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: