-
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
the "cc-compiler-darwin_arm64" toolchain cannot be detected when install CommandLineTools and Xcode.app is not installed. #13514
Comments
if you want work.you can chang the file vim $(bazel info output_base)/external/local_config_cc/BUILD
|
The cause of this bug is that the cpu value |
Hi @meteorcloudy, is there any update on this issue, will it be fixed in v4.2? Just saw the PR is closed without merge. 👀 |
@khanhtc1202 The fix is imported at b4b0c32, we don't just merge PR on github but import it to Google's internal codebase then export it github. |
We'll have to cherry-pick this is 4.2 though. |
This allow the basic unix toolchain to work on Apple silicon without Xcode installed. Fixes bazelbuild#13514 Closes bazelbuild#13515. PiperOrigin-RevId: 375711139
May also require a fix or patch to the cc config: bazelbuild/bazel#13514 (comment)
May also require a fix or patch to the cc config: bazelbuild/bazel#13514 (comment)
this is still an issue |
After doing what @kekxv suggested, I got this:
|
Your error here is very different:
|
@keith indeed |
It looks like something else about your environment might have issues, can you verify the command line tools are up to date? You might also try cleaning the workspace after you update them. Otherwise can you file a new issue with repro steps? |
@juancrescente , Try using bazel 5.0.0 instead of 4.2.2 when building tensorflow. I think the fix is merged into 5.0.0 version, not 4.2.2 |
the "cc-compiler-darwin_arm64" toolchain cannot be detected when install CommandLineTools and Xcode.app is not installed.
What operating system are you running Bazel on?
What's the output of
bazel info release
?use bazel (
/opt/homebrew/Cellar/bazel/4.1.0... (9 files, 29.9MB)
)The text was updated successfully, but these errors were encountered: