tensorflow / tensorflow/tensorboard

Support building TensorBoard with Bazel version >= 7.0.0

Open
#6,702 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:build/install
Dominant language
TypeScript
Stars
7.2k
Forks
1.7k
Avg merge
4d 22h
Merged PRs (30d)
1

Description

TensorBoard won't build with the most recent Bazel 7.0.0, released yesterday, due to an error arising from rules_apple (note: only visible after bumping the Bazel allowed version window in WORKSPACE):

ERROR: Traceback (most recent call last):
	File "/usr/local/google/home/nickfelt/.cache/bazel/_bazel_nickfelt/3cdf037ab9be95ef9846209ffcda115e/external/build_bazel_rules_apple/apple/internal/rule_support.bzl", line 226, column 36, in <toplevel>
		deps_cfg = apple_common.multi_arch_split,
Error: 'apple_common' value has no field or method 'multi_arch_split'
...
ERROR: error loading package '@@com_github_grpc_grpc//src/compiler': at /usr/local/google/home/nickfelt/.cache/bazel/_bazel_nickfelt/3cdf037ab9be95ef9846209ffcda115e/external/com_github_grpc_grpc/bazel/grpc_build_system.bzl:33:6: at /usr/local/google/home/nickfelt/.cache/bazel/_bazel_nickfelt/3cdf037ab9be95ef9846209ffcda115e/external/build_bazel_rules_apple/apple/ios.bzl:26:5: at /usr/local/google/home/nickfelt/.cache/bazel/_bazel_nickfelt/3cdf037ab9be95ef9846209ffcda115e/external/build_bazel_rules_apple/apple/internal/testing/ios_rules.bzl:30:5: at /usr/local/google/home/nickfelt/.cache/bazel/_bazel_nickfelt/3cdf037ab9be95ef9846209ffcda115e/external/build_bazel_rules_apple/apple/internal/rule_factory.bzl:62:5: initialization of module 'apple/internal/rule_support.bzl' failed
ERROR: /usr/local/google/home/nickfelt/tb/WORKSPACE:197:22: error loading package '@@com_github_grpc_grpc//src/compiler': at /usr/local/google/home/nickfelt/.cache/bazel/_bazel_nickfelt/3cdf037ab9be95ef9846209ffcda115e/external/com_github_grpc_grpc/bazel/grpc_build_system.bzl:33:6: at /usr/local/google/home/nickfelt/.cache/bazel/_bazel_nickfelt/3cdf037ab9be95ef9846209ffcda115e/external/build_bazel_rules_apple/apple/ios.bzl:26:5: at /usr/local/google/home/nickfelt/.cache/bazel/_bazel_nickfelt/3cdf037ab9be95ef9846209ffcda115e/external/build_bazel_rules_apple/apple/internal/testing/ios_rules.bzl:30:5: at /usr/local/google/home/nickfelt/.cache/bazel/_bazel_nickfelt/3cdf037ab9be95ef9846209ffcda115e/external/build_bazel_rules_apple/apple/internal/rule_factory.bzl:62:5: initialization of module 'apple/internal/rule_support.bzl' failed and referenced by '//external:grpc_python_plugin'

Based on https://github.com/bazelbuild/bazel/issues/19938 it looks like this is ultimately an issue with gRPC, which needs to update to support Bazel 7.0.0 including bumping rules_apple (which has released a fix). So far, they don't seem to be actively working on it though: https://github.com/grpc/grpc/issues/34791

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Bazel version window in WORKSPACE and the gRPC dependency referenced at WORKSPACE line 197; reproduce the failure with Bazel 7.0.0 and review the linked gRPC issue and rules_apple fix. Done means TensorBoard builds with Bazel 7.0.0 or newer without the apple_common.multi_arch_split error.

Written by the indexing model from the issue text.

Assessment

Tech stack
grpc
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.