nm, cpp, and objdump are absent from the new rule based toolchain
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- build-system
Research direction
Start by comparing the previous toolchain configuration at crosstool/cc_toolchain_config.bzl with toolchain/cc_toolchain.bzl and the rules_cc provider helper linked in the issue. Check how legacy_tools entries populate the nm, preprocessor, and objdump fields, then verify that the proposed entries restore the expected tool paths and that the existing nm failure is resolved.
Written by the indexing model from the issue text.
Description
With apple_support 2.9.1 and rules_cc 0.2.29 on Bazel 9.2.0/macOS, the new toolchain exposes an empty $(NM). This breaks an existing rules_zig genrule that invokes $(NM) --defined-only ....
The previous toolchain configuration declares /usr/bin/nm, /usr/bin/cpp, and /usr/bin/objdump. The new toolchain's legacy_tools contains only gcov. Unlike the compiler, archiver, linker, and strip tool, these three have no action-based fallback in rules_cc, leaving nm_executable, preprocessor_executable, and objdump_executable empty. Only nm has caused a failure in our tests so far.
Is this omission intentional, with consumers expected to provide their own tools instead of using these toolchain fields / make variables? Or would a patch restoring these three as cc_legacy_tool entries, using their previous paths, be welcome?
- Dominant language
- Starlark
- Stars
- 109
- Forks
- 79
- Avg merge
- 4h 29m
- Merged PRs (30d)
- 11
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bazelbuild/apple_support
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
bazelbuild/apple_support#685 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
bazelbuild/apple_support#466 · 3 comments ·
Maintainers usually reply within 1 day
All issues in bazelbuild/apple_support
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
out-of-date
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
CachyOS/CachyOS-PKGBUILDS#2232 ·
Maintainers usually reply within 1 day
-
blast/large refactor risk/low spend-dem
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
chriskelly/MusicWall#87 · 2 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
neilotoole/sq#1503 ·
Maintainers usually reply within 1 day
-
ci-alert
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day