build: scope resolver selects pic32mz, which CMake cannot build

Aperta
#4,545 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c, cmake, python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

follow-up Prio 📌

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.c lists pic32mz (device/webusb_serial) among the one-board-per-family selection. Same selector code at 2614ea253 and master 719252a00 (git diff 719252a00 2614ea253 -- tools/change_impact.py tools/build.py hw/bsp/family_support.cmake is empty).
  • check_build.py --scope src/class/vendor/vendor_device.c builds 84/85 boards ok; olimex_emz64 fails with CMake Error at hw/bsp/family_support.cmake:132 (message): Family 'pic32mz' is not known/supported.
  • hw/bsp/pic32mz/ holds only family.c, family.mk and boards; there is no family.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.

Lingua principale
C
Stelle
7.3k
Fork
1.6k
Merge medio
1g 19h
PR unite (30g)
67

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hathach/tinyusb

Tutte le issue di hathach/tinyusb

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.