bazelbuild / rules_cc

C++ Rules for Bazel
https://bazel.build
Apache License 2.0
189 stars 94 forks source link

Rules_cc 0.0.9 does not contain a toolchain for cpu 'darwin_arm64' #207

Open toandaominh1997 opened 1 year ago

toandaominh1997 commented 1 year ago

Description of the problem / feature request:

I meet this issue when upgrading to rules_cc 0.0.9

2023/10/15 02:39:22 Downloading https://releases.bazel.build/6.3.2/release/bazel-6.3.2-darwin-arm64...
INFO: --discard_analysis_cache was used in the previous build, discarding analysis cache.
ERROR: /private/var/tmp/_bazel_henry/5caf9eb8b20f26ac3f1864ea5aec3133/external/local_config_cc/BUILD:48:19: in cc_toolchain_suite rule @local_config_cc//:toolchain: cc_toolchain_suite '@local_config_cc//:toolchain' does not contain a toolchain for cpu 'darwin_arm64'
ERROR: /private/var/tmp/_bazel_henry/5caf9eb8b20f26ac3f1864ea5aec3133/external/local_config_cc/BUILD:48:19: Analysis of target '@local_config_cc//:toolchain' failed
ERROR: Analysis of target '//common/main/rust/core/utils:client' failed; build aborted:
INFO: Elapsed time: 1.043s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (130 packages loaded, 831 targets \
configured)
    currently loading: @crate_index__time-0.3.22// ... (6 packages)

I run on Mac M1. It seems like the toolchain of local_config_cc is missing darwin_arm64. Please help me solve this issue.

com6056 commented 4 months ago

Any updates on this?