-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Incompatibilities with openjdk 17 #136
Comments
Ran into build errors in #138 (targetting main), which had very java-flavoured stacktrace and went away when I restricted to <17, so I'm pretty sure 5.2 is affected. |
In my experience, this is an error in how the toolchain gets the extra commands, but we are fine. Instead of cat >> .bazelrc <<EOF
build --crosstool_top=//bazel_toolchain:toolchain
build --logging=6
build --subcommands
build --verbose_failures
EOF
bazel build //main:hello-world |
Ooops, sorry I misread the upper bound. Well, here are my 2c: I kept facing this error in jaxlib (even with 5.2.0) until we moved to .bazelrc |
I followed the lead of a jax maintainer here conda-forge/jaxlib-feedstock#126 so I copied that to tensorflow-feedstock too!
|
This will need restructuring build.sh so that the bootstrapping is done with a bazelrc file instead of passing flags |
We don't know about all consumer of the |
I suspect the issue isn't with version incompatibility per se, and patching is likely only going to work temporarily. The larger issue seems to be in passing the flags. That's what I faced when I was (re)building jaxlib and all these issues disappeared when the flags were passed via bazelrc rather than directly. These flags are being passed indiscriminately to all stages. I got inspired by this comment conda-forge/jaxlib-feedstock#126 (comment) to form this conclusion, but I am quite uncertain if it makes full sense... |
I opened a PR to lift this cap again (now that openjdk 17 is getting way more widespread): #194 |
This has been "fixed" by #236 😄 |
Solution to issue cannot be found in the documentation.
Issue
Some projects rely on old versions of Bazel on purpose (e.g.
tensorstore
), as specified in their.bazelversion
file.conda-forge has access to openjdk 17 since last week or so, but this openjdk is not compatible with Bazel 5.0 and 5.1 (ref). The solution for those is to pin
openjdk
to the previous release (11
) (source comment).v5.2 is not affected (ref).
@xhochy - do you think we should issue a repodata patch or is this report enough? Only
jaxlib
relies on 5.1.1, but they have an upper bound, so they are getting 5.2, I guess.Installed packages
Environment info
The text was updated successfully, but these errors were encountered: