Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support building TensorBoard with Bazel version >= 7.0.0 #6702

Open
nfelt opened this issue Dec 12, 2023 · 0 comments
Open

Support building TensorBoard with Bazel version >= 7.0.0 #6702

nfelt opened this issue Dec 12, 2023 · 0 comments

Comments

@nfelt
Copy link
Collaborator

nfelt commented Dec 12, 2023

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 bazelbuild/bazel#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: grpc/grpc#34791

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant