已开启
no matching toolchains found for types @bazel_tools//tools/jdk:runtime_toolchain_type #8
AtomGit-Bot创建于  2024年7月23日
AtomGit-Bot
2024年7月23日 创建

环境:

$ 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
$ java -version
openjdk version "11.0.22" 2024-01-16
OpenJDK Runtime Environment Bisheng (build 11.0.22+7)
OpenJDK 64-Bit Server VM Bisheng (build 11.0.22+7, mixed mode, sharing)
$ javac -version
javac 11.0.22

需求:
从github上克隆bazel6.1.0,通过bazel build bazel的方式来构建bazel6.1.0的二进制文件。

复现步骤:
rpm包是由这里的个人包提供。

rpm -ivh bazel-5.3.0-2.oe2403.riscv64.rpm
git clone https://github.com/bazelbuild/bazel.git
cd bazel
git checkout tags/6.1.0
bazel build //src:bazel-dev

error:

$ 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 ...
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:479:27: While resolving toolchains for target @bazel_tools//tools/jdk:remote_jdk11: 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: 162.517s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (188 packages loaded, 1721 targets configured)
likedislike
AAtomGit-Bot
2024年7月23日 创建了自定义
openeuler-ci-bot
openeuler-ci-bot成员
2024年7月23日 评论:

Hi xu-jia_kai, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: ai, and any of the maintainers: @bb-king , @zhunaipan , @sinever , @nicholas_yhr , @guoqi1024 , @kingxian , @henryshi1

likedislike
openeuler-ci-botopeneuler-ci-bot成员
2024年7月23日 添加了   sig/ai 标签
AAtomGit-Bot
2024年7月23日 修改了描述