Skip to content
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

no matching toolchains found for types @bazel_tools//tools/jdk:runtime_toolchain_type #23057

Open
6eanut opened this issue Jul 22, 2024 · 4 comments
Labels
P3 We're not considering working on this, but happy to review a PR. (No assignee) type: bug

Comments

@6eanut
Copy link

6eanut commented Jul 22, 2024

Description of the bug:

environment:

$ cat /etc/os-release
NAME="openEuler"
VERSION="24.03 (LTS)"
ID="openEuler"
VERSION_ID="24.03"
PRETTY_NAME="openEuler 24.03 (LTS)"
ANSI_COLOR="0;31"
$ uname -a
Linux openeuler-riscv64-worker1 6.6.0 #1 SMP Tue Jul 2 11:21:06 CST 2024 riscv64 riscv64 riscv64 GNU/Linux

steps:

git clone https://github.com/bazelbuild/bazel.git
cd bazel
git checkout tags/6.1.0
bazel build //src:bazel

bug:

$ bazel build //src:bazel
Starting local Bazel server and connecting to it...
... still trying to connect to local Bazel server after 10 seconds ...
... still trying to connect to local Bazel server after 20 seconds ...
... still trying to connect to local Bazel server after 30 seconds ...
... still trying to connect to local Bazel server after 40 seconds ...
... still trying to connect to local Bazel server after 50 seconds ...
... still trying to connect to local Bazel server after 60 seconds ...
... still trying to connect to local Bazel server after 70 seconds ...
DEBUG: /home/tf/.cache/bazel/_bazel_tf/df2e2a63529870a88d6ad4f4a2babaae/external/build_bazel_rules_nodejs/index.bzl:122:10: WARNING: check_rules_nodejs_version has been removed. This is a no-op, please remove the call.
ERROR: /home/tf/.cache/bazel/_bazel_tf/df2e2a63529870a88d6ad4f4a2babaae/external/bazel_tools/tools/jdk/BUILD:29:19: While resolving toolchains for target @bazel_tools//tools/jdk:current_java_runtime: no matching toolchains found for types @bazel_tools//tools/jdk:runtime_toolchain_type
ERROR: Analysis of target '//src:bazel' failed; build aborted:
INFO: Elapsed time: 239.920s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (186 packages loaded, 1709 targets configured)

@6eanut
Copy link
Author

6eanut commented Jul 22, 2024

i want to build bazel6.1.0 from source, by "bazel build bazel".
bazel's rpm

@satyanandak satyanandak added the team-Configurability platforms, toolchains, cquery, select(), config transitions label Jul 22, 2024
@aranguyen aranguyen added P3 We're not considering working on this, but happy to review a PR. (No assignee) and removed untriaged labels Oct 4, 2024
@aranguyen
Copy link
Contributor

is there any reason why you want to build bazel from src for that specific version instead of the latest one?

@aranguyen aranguyen removed the team-Configurability platforms, toolchains, cquery, select(), config transitions label Oct 4, 2024
@6eanut
Copy link
Author

6eanut commented Oct 5, 2024

@aranguyen i want to build tensorflow from source.
Although the latest 2.17.0 tensorflow also requires 6.5.0 bazel, which is not the latest version of bazel.

@6eanut
Copy link
Author

6eanut commented Oct 5, 2024

@aranguyen
I wonder if there is any version of bazel that supports risc-v now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 We're not considering working on this, but happy to review a PR. (No assignee) type: bug
Projects
None yet
Development

No branches or pull requests

5 participants