bazelbuild / bazelbuild/rules_cc

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

Open
#207 1 comment 4 reactions 0 assignees View on GitHub
P3 type: feature request
Dominant language
Starlark
Stars
247
Forks
196
PR merge metrics
No merged PRs in 30d

Description

### Description of the problem / feature request:
I meet this issue when upgrading to rules_cc 0.0.9

```bash
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.

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure on a Mac M1 using Bazel 6.3.2 and rules_cc 0.0.9, then inspect the generated @local_config_cc//:toolchain reported in the error. The work is done when the local toolchain includes cpu 'darwin_arm64' and the affected client target completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.