-
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
[6.0 regression] Crash on macOS ARM64 when using target_compatible_with = ["@platforms//:incompatible"] #17561
Comments
It looks like a change like this prevents the crash:
That said, I have no idea whether that change is actually correct. I'd rather leave that to someone who has more knowledge on this. |
@bazel-io fork 6.1.0 |
What are you doing with I think your change would work - and automatically error any incompatible target combined with Lines 226 to 237 in f369fcd
|
We've been using |
Stop crashes when incompatible target skipping mixes with ---auto_cpu_environment_group. Fixes bazelbuild#17561. PiperOrigin-RevId: 512125121 Change-Id: If5960a6abb08f8fe4f2643af6249c8528b7a2c51
Stop crashes when incompatible target skipping mixes with ---auto_cpu_environment_group. Fixes #17561. PiperOrigin-RevId: 512125121 Change-Id: If5960a6abb08f8fe4f2643af6249c8528b7a2c51 Closes #17590. Change-Id: If5960a6abb08f8fe4f2643af6249c8528b7a2c51 PiperOrigin-RevId: 512820070 Co-authored-by: Googler <gregce@google.com>
Stop crashes when incompatible target skipping mixes with ---auto_cpu_environment_group. Fixes bazelbuild#17561. PiperOrigin-RevId: 512125121 Change-Id: If5960a6abb08f8fe4f2643af6249c8528b7a2c51 Closes bazelbuild#17590. Change-Id: If5960a6abb08f8fe4f2643af6249c8528b7a2c51 PiperOrigin-RevId: 512820070
Description of the bug:
We have observed Bazel 6.0 and later to crash on macOS using ARM64 hardware, while using
--auto_cpu_environment
. This is a regression caused by 72787a1.What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Create a repository with the following contents:
WORKSPACE:
BUILD.bazel:
And an empty file file named testcrash.sh.
Now run the following command:
Bazel will then crash as follows:
Which operating system are you running Bazel on?
macOS Ventura on ARM64 hardware
What is the output of
bazel info release
?6.0-release
If
bazel info release
returnsdevelopment 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?
No response
The text was updated successfully, but these errors were encountered: