-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Make Bazel clearly communicate issues with XCode install #25728
Comments
Just noticed I can not build even default branch (https://github.com/grpc/grpc) so it looks like something on my env broke with some Bazel update or maybe OS update. I'm a Googler, feel free to reach out internally. |
probably the same local env issues as discussed on #23111 |
I needed to reinstall XCode. I will change the title and description of this issue. |
Either way, Bazel should not crash. @keith do you see a way for us to print a helpful error message instead of crashing? |
yea for sure we can check for |
I'm also a bit personally curious -- why is this still in native code, actually? I thought this kind of stuff was taken care of by apple_support/rules_apple already. |
this specific logic is doing non-hermetic stuff to make sure the absolute path to Xcode doesn't appear in the action keys. specifically the resulting path here bazel/src/main/java/com/google/devtools/build/lib/exec/local/XcodeLocalEnvProvider.java Lines 95 to 96 in 2d14aa2
|
Can we starlarkify |
I updated the OS but did not update XCode. Bazel was failing with the most cryptic error (see below).
Please make Bazel messaging more helpful, possibly suggesting the user to check XCode install and do
bazel clean --expunge
Description of the bug:
Unable to build my branch on my local macOS environment. This branch builds on CI, including Mac.
Which category does this issue belong to?
No response
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
No response
Which operating system are you running Bazel on?
macOS 15.3.2 (24D81)
What is the output of
bazel info release
?release 8.0.1
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 HEAD
?If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
The text was updated successfully, but these errors were encountered: