build: scope resolver selects pic32mz, which CMake cannot build
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- build-system, testing
Research direction
Start in tools/change_impact.py at _prune_buildable (around line 1530), then inspect .claude/skills/build/scripts/check_build.py and the selection test in .claude/test/test_build_select.py. Run the scoped selection for src/class/vendor/vendor_device.c and check whether the Make-only pic32mz family is included. Done means the selection excludes or reports pic32mz as uncovered, with a test covering that case.
Written by the indexing model from the issue text.
Description
Found while verifying a fix on #4542.
Problem
check_build.py --scope <common source path> selects the pic32mz family (board olimex_emz64), which has no CMake support, so the CMake build of the scope fails.
python3 .claude/skills/build/scripts/check_build.py --select-only --scope src/class/vendor/vendor_device.clistspic32mz(device/webusb_serial) among the one-board-per-family selection. Same selector code at2614ea253and master719252a00(git diff 719252a00 2614ea253 -- tools/change_impact.py tools/build.py hw/bsp/family_support.cmakeis empty).check_build.py --scope src/class/vendor/vendor_device.cbuilds 84/85 boards ok;olimex_emz64fails withCMake Error at hw/bsp/family_support.cmake:132 (message): Family 'pic32mz' is not known/supported.hw/bsp/pic32mz/holds onlyfamily.c,family.mkandboards; there is nofamily.cmake.
The scoped build therefore exits 1 for any change under src/class/ (likely other core paths too), even when the change is correct. agentrc's pr-babysit build gate runs the build contract and reported fix-verification-failed for a correct fix on #4542 (2026-11-17); two separate writers on that PR hit the same failure.
Not traced: where in tools/change_impact.py the family is picked. _prune_buildable (tools/change_impact.py:1530) accepts a family that builds under Make (family.mk present) while check_build.py builds with CMake; that is the first place to look, unconfirmed.
Solution
Make tools/change_impact.py (or check_build.py) skip families without CMake support, or report them as uncovered/Make-only, instead of selecting them for a CMake build. Add a test to the script suite (.claude/test/test_build_select.py or the tools tests as applicable): a Make-only family such as pic32mz must not appear in the selection for a common class path.
Related: #3941 — covers check_build.py coverage checks in --board mode, not which boards the resolver selects.
- Dominant language
- C
- Stars
- 7.3k
- Forks
- 1.6k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 67
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 hathach/tinyusb
-
follow-up Port WCH USBFS Prio 📌
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
follow-up Prio 📌
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
hil-contract: a background hil_remote.py launch is killed at the Bash default 10 min timeoutPossibly taken @hathach claimed this 16 days ago. Openfollow-up Prio 📌
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
ch32v30x: debug UART loses queued bytes when its TX ring fillsPossibly taken @hathach claimed this 16 days ago. Openfollow-up Prio 📌
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
followup Prio 📌
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
-
Missing slice offset check in jvp_equal fast path corrupts slice comparison and aborts delpathsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 83/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
area9innovation/flow9#1805 ·
Maintainers usually reply within 3 days
-
AI:Robustness triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
open5gs/open5gs#5246 · 1 comment ·
Maintainers usually reply within 1 day