bazel: Cross-compiling Bazel for arm64 platforms is broken
Description of the bug:
During our release process, we encountered the following errors when cross-compiling for macOS arm64 and Windows arm64 platforms
ERROR: /Users/buildkite/builds/bk-trusted-macpro-4/bazel-trusted/bazel-release/src/BUILD:166:10: Illegal ambiguous match on configurable attribute "srcs" in //src:embedded_jdk_minimal_cached:
//src/conditions:darwin_x86_64
//src/conditions:darwin_arm64
Multiple matches are not allowed unless one is unambiguously more specialized.
ERROR: C:/b/bk-trusted-windows-qkvt/bazel-trusted/bazel-release/src/BUILD:166:10: Illegal ambiguous match on configurable attribute "srcs" in //src:embedded_jdk_minimal_cached:
//src/conditions:windows_arm64
//src/conditions:windows_x86_64
What’s the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
On macOS x86_64:
export USE_BAZEL_VERSION=108c17859c255a350724b661b74e19aeacf44fe6
bazelisk build --nobuild --cpu=darwin_arm64 //src:bazel
On Windows x86_64:
export USE_BAZEL_VERSION=108c17859c255a350724b661b74e19aeacf44fe6
bazelisk build --nobuild --cpu= x64_arm64_windows //src:bazel
Which operating system are you running Bazel on?
macOS and Windows
What is the output of bazel info release
?
108c17859c255a350724b661b74e19aeacf44fe6
If bazel info release
returns development version
or (@non-git)
, tell us how you built Bazel.
No response
What’s the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD
?
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
Bisect points to 108c17859c255a350724b661b74e19aeacf44fe6 as the culprit
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (16 by maintainers)
Commits related to this issue
- fix for https://github.com/bazelbuild/bazel/issues/15465 PiperOrigin-RevId: 448023669 — committed to bazelbuild/bazel by a-googler 2 years ago
- Update dependency bazelbuild/bazel to latest version Included changes: - 8cea7651b8f08c06a5fe9c085bef6899fe084517 Cleanup AbstractActionInputPrefetcher and split RemoteAct... - 4eb62cd07393e495a... — committed to google/copybara by a-googler 2 years ago
Thanks for the clarification! Since we already have https://github.com/bazelbuild/bazel/issues/14604, there is no need to create a new one. But as it’s still a new feature, it’s worth putting a RELNOTES section in the CL description.