mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
![]() Add bazel platform plugin for ray setup deps. It will fail to build java related package on ubuntu lastest (ubuntu 20)/mac lastest 11.x version since bazel tools put a wrong platform verion in its deps, so all of users might get such exception ``` ERROR: /github/home/.cache/bazel/_bazel_root/fa5a074cd6f1[25](https://github.com/ray-project/mobius/runs/5273958213?check_suite_focus=true#step:5:25)5c5f5cefe240bb7613/external/bazel_tools/src/conditions/BUILD:61:15: no such target '@platforms//cpu:riscv64': target 'riscv64' not declared in package 'cpu' defined by /github/home/.cache/bazel/_bazel_root/fa5a074cd6f1255c5f5cefe240bb7613/external/platforms/cpu/BUILD and referenced by '@bazel_tools//src/conditions:linux_riscv64' INFO: Repository remote_coverage_tools instantiated at: /DEFAULT.WORKSPACE.SUFFIX:3:13: in <toplevel> Repository rule http_archive defined at: /github/home/.cache/bazel/_bazel_root/fa5a074cd6f1255c5f5cefe240bb7613/external/bazel_tools/tools/build_defs/repo/http.bzl:364:[31](https://github.com/ray-project/mobius/runs/5273958213?check_suite_focus=true#step:5:31): in <toplevel> INFO: Repository com_google_absl instantiated at: /__w/mobius/mobius/streaming/WORKSPACE:16:15: in <toplevel> /github/home/.cache/bazel/_bazel_root/fa5a074cd6f1255c5f5cefe240bb7613/external/com_github_ray_project_ray/bazel/ray_deps_setup.bzl:217:22: in ray_deps_setup /github/home/.cache/bazel/_bazel_root/fa5a074cd6f1255c5f5cefe240bb7613/external/com_github_ray_project_ray/bazel/ray_deps_setup.bzl:76:24: in auto_http_archive Repository rule http_archive defined at: /github/home/.cache/bazel/_bazel_root/fa5a074cd6f1255c5f5cefe240bb7613/external/bazel_tools/tools/build_defs/repo/http.bzl:364:31: in <toplevel> ERROR: /github/home/.cache/bazel/_bazel_root/fa5a074cd6f1255c5f5cefe240bb7613/external/bazel_tools/tools/jdk/BUILD:90:11: errors encountered resolving select() keys for @bazel_tools//tools/jdk:jni ``` The bazel dev suggests us to update platform mannually in this issue : https://github.com/bazelbuild/bazel/issues/14097. It's to say that we reuse the old platforms plugin then fail to select a true jni setting on mips64 or riscv64 instruction if we don't download the new platform. Co-authored-by: lingxuan.zlx <lingxuan.zlx@antgroup.com> |
||
---|---|---|
.. | ||
BUILD | ||
BUILD.cython | ||
BUILD.hiredis | ||
BUILD.msgpack | ||
BUILD.nlohmann_json | ||
BUILD.rapidjson | ||
BUILD.redis | ||
BUILD.spdlog | ||
python.bzl | ||
ray.bzl | ||
ray_deps_build_all.bzl | ||
ray_deps_setup.bzl |