Skip to content

Support building TensorBoard with Bazel version >= 6.0.0 #6115

@qihach64

Description

@qihach64

Due to bazelbuild/bazel#8622, Bazel 6.0.0 breaks the current TensorBoard build.

$ bazel run tensorboard
ERROR: /usr/local/google/home/bdubois/.cache/bazel/_bazel_bdubois/a027bcadf80e351d5b786d7247b18b84/external/bazel_tools/platforms/BUILD:29:6: in alias rule @bazel_tools//platforms:arm: Constraints from @bazel_tools//platforms have been removed. Please use constraints from @platforms repository embedded in Bazel, or preferably declare dependency on https://github.com/bazelbuild/platforms. See https://github.com/bazelbuild/bazel/issues/8622 for details.
ERROR: /usr/local/google/home/bdubois/.cache/bazel/_bazel_bdubois/a027bcadf80e351d5b786d7247b18b84/external/bazel_tools/platforms/BUILD:29:6: Analysis of target '@bazel_tools//platforms:arm' failed
ERROR: /usr/local/google/home/bdubois/git/tensorboard2/tensorboard/BUILD:20:10: While resolving toolchains for target //tensorboard:tensorboard: invalid registered toolchain '@go_sdk//:go_android_arm': 
ERROR: Analysis of target '//tensorboard:tensorboard' failed; build aborted: 
INFO: Elapsed time: 0.412s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 3 targets conf\
igured)
ERROR: Build failed. Not running target

#6114 forces Tensorboard to continue using Bazel 5 for now but we need to find a way to support Bazel 6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions