Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Suite: `make -C <repo> test` fails [137] because print-SRC_V_asan-gfx output includes make's "Entering directory" banner

Aperta Adatta ai principianti
#1,340 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à
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
88/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
c, shell

Direzione di ricerca

Inizia con tests/test_asan_gfx.sh e tests/test_leak_guard.sh, in particolare con i lettori print-*, e riproduci il problema con MAKEFLAGS=w. Verifica che entrambi i lettori ricevano solo nomi di file sorgente, quindi esegui make -C test e conferma che la sezione [137] passi; aggiungi il controllo richiesto per l'output di directory-banner.

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

Descrizione

area:lint-tooling bug

tests/test_asan_gfx.sh (suite section [137]) reads its source list with

SRCS=$(make -C "$ROOT" -s print-SRC_V_asan-gfx 2>/dev/null)

When the suite itself was started as make -C /path/to/EigenScript test, the outer make puts w (--print-directory) into MAKEFLAGS. The nested make inherits it, and -s does not suppress the banner, which goes to stdout. SRCS then contains make[1]: Entering directory '/path' / Leaving directory words, and the compile fails at link time:

/usr/bin/ld: cannot find make[1]:: No such file or directory
/usr/bin/ld: cannot find Entering: No such file or directory
/usr/bin/ld: cannot find '/home/user/wt1243': No such file or directory
...
  FAIL: asan-gfx build failed
  FAIL: test_asan_gfx.sh exited 1 without completing — section verdict is not trustworthy (#988)

The nested call in isolation, measured on main 38a20d5:

$ make -s print-SRC_V_asan-gfx | head -c 60
src/eigenscript.c src/lexer.c src/parser.c src/builtins.c
$ MAKEFLAGS=w make -C . -s print-SRC_V_asan-gfx | head -c 60
make: Entering directory '/home/user/wt1243'
src/eigens

cd <repo> && make test passes [137] (15/15). make -C <repo> test fails it deterministically (twice in a row), and the reported failure points at the gfx corpus rather than at the invocation. Found while gating an unrelated PR (#1330) from a different working directory.

tests/test_leak_guard.sh:51 reads make -s print-SOURCES the same way; it is exposed to the same inherited flag whenever it runs under a make that has w set.

Done when

  • Both readers get a clean list whatever MAKEFLAGS the suite inherits: pass --no-print-directory, or clear MAKEFLAGS/MAKELEVEL for that call.
  • make -C <repo> test passes [137] on a tree where cd <repo> && make test passes.
  • A check that fails if a print-* reader's output contains Entering directory. For example, run the reader with MAKEFLAGS=w in the environment and assert that every word ends in .c.
Lingua principale
C
Stelle
3
Fork
7
Merge medio
4h 5m
PR unite (30g)
116

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 InauguralSystems/EigenScript

Tutte le issue di InauguralSystems/EigenScript

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.