ventanamicro-dev / riscv64-bazel-build

Repo to hold Dockerfile & related assets to build bazel on riscv64
2 stars 0 forks source link

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

Open 6eanut opened 1 month ago

6eanut commented 1 month ago

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 https://github.com/bazelbuild/bazel/pull/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

hi, i am working on build bazel6.1.0 from source by the way "bazel build bazel". i have the bazel5.3.0'rpm. can you give me some advice on this? thanks!