-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Building Bazel from source on Power9 fails with "Could not find a JDK for host execution environment" #10377
Comments
Apparently using |
Yes, that is how I build bazel on Power (https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/ci_build/install/install_bazel_from_source.sh) That just means it it using the JDK on the host machine and not the version embedded in Bazel. For the latest Bazel versions I have been using openjdk 11. |
And what does it mean for the so installed Bazel? Will it continue using the system JDK? Will it bundle the system JDK? However I can confirm that this at least works with openJDK 8 to build TensorFlow 2.0.0 on our Power system. And finally:
|
Bazel built this way will use the system JDK. |
IIUC a solution / workaround was given in the discussion here. Please reopen if this is still an issue. |
Description of the problem / feature request:
I'd like to build bazel for Power9 (ppc64le) but it fails with a JDK related issue
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Use a PPC system with openJDK 8 (javac 1.8.0-internal, or javac 1.8.0_222), download the source (*-dist.zip) and do
./compile.sh
What operating system are you running Bazel on?
RHEL 7.6
Have you found anything relevant by searching the web?
#10049
#7943
#8313
#6557
Pretty much this issue: https://stackoverflow.com/questions/56584783/bazel-buid-app-to-buildconfigurable-attribute-actual-doesnt-match-this-co
Any other information, logs, or outputs that you want to share?
The text was updated successfully, but these errors were encountered: