bazelbuild / bazel

a fast, scalable, multi-language and extensible build system
https://bazel.build
Apache License 2.0
22.96k stars 4.02k forks source link

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

Open 6eanut opened 1 month ago

6eanut commented 1 month ago

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 commented 1 month ago

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