Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở Phù hợp với người mới
#1,340 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
88/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c, shell
Lĩnh vực
build-system, testing-qa

Hướng nghiên cứu

Bắt đầu với tests/test_asan_gfx.sh và tests/test_leak_guard.sh, đặc biệt là các reader print-*, và tái hiện vấn đề bằng MAKEFLAGS=w. Xác minh rằng cả hai reader chỉ nhận các tên tệp nguồn, sau đó chạy make -C test và xác nhận section [137] đạt; thêm kiểm tra được yêu cầu cho đầu ra của directory-banner.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
C
Star
3
Fork
7
Merge trung bình
3 giờ 56 phút
Pull request đã merge (30 ngày)
102

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của InauguralSystems/EigenScript

Tất cả issue của InauguralSystems/EigenScript

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.