-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
rules_docker
target //docs:update
broken on M1 mac with 5.1.0rc2
#15099
Comments
rules_docker
target //docs:update
broken on M1 mac by 5.1.0rc2 rules_docker
target //docs:update
broken on M1 mac with 5.1.0rc2
My bisect points to 785c7ec. |
@linzhp Locally, on my M1 mac, the contents of |
There is a similar error reported back to rules_docker a long time ago: bazelbuild/rules_docker#1988 rules_docker still use Bazel 4.0.0 on CI: https://github.com/bazelbuild/rules_docker/blob/094a012750a9b12f3c92634d34cb16f3314ea2c2/.bazelci/presubmit.yml#L6 /cc @uhthomas |
huh, I cannot reproduce this on my M1 mac at all. It builds completely fine:
What's weirder is that my |
@Wyverald I am able to build
|
@Wyverald Your Bazel is living in the (x86_64) simulation. |
I did some debugging with the --experimental_repository_resolved_file flag, it turns out indeed it's because rules_docker is still using a very old version (681f1ee032566aa2d443cf0335d012925d9c58d4) of
I think this should be fixed from rules_docker instead of being a release blocker. |
Ah, that's why. Maybe it's because I have my Bazelisk installed from |
The Python version of Bazelisk will automatically use the arm64 version if you run it on M1 mac |
Based on @meteorcloudy's analysis, I will close this issue as it's something that should be fixed in rules_docker. Sorry for the false alarm, I just didn't want to risk letting this go unnoticed in case it were on Bazel. |
This old platforms issue might be hit by more folks as well google/flatbuffers#7195 |
* [swift] Add bazel configuration for Swift This change adds a simple bazel BUILD file for consuming the Swift support. This also bumps the platforms bazel repo to fix support for M1s and bazel 5.1+ bazelbuild/bazel#15099 (comment) The rules_swift inclusion here must happen before gRPC to ensure we don't pull in an older version. * Add CC=clang which is a requirement for Swift on Linux * Add Swift to PATH
* [swift] Add bazel configuration for Swift This change adds a simple bazel BUILD file for consuming the Swift support. This also bumps the platforms bazel repo to fix support for M1s and bazel 5.1+ bazelbuild/bazel#15099 (comment) The rules_swift inclusion here must happen before gRPC to ensure we don't pull in an older version. * Add CC=clang which is a requirement for Swift on Linux * Add Swift to PATH
Description of the problem / feature request:
On an M1 Mac, rules_docker
s target
//docs:update` builds with Bazel 5.1.0rc1, but fails with a toolchain error with Bazel 5.1.0rc2, Bazel 5.1.0rc3 as well as on head.This was initially discovered by @linzhp in #15043 (comment).
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
What operating system are you running Bazel on?
macOS M1
What's the output of
bazel info release
?release 5.1.0rc2
Have you found anything relevant by searching the web?
No
Any other information, logs, or outputs that you want to share?
No
The text was updated successfully, but these errors were encountered: