From 428fc46f4ec4e7c11d409db933276bf9dd0e6b76 Mon Sep 17 00:00:00 2001 From: cnc Date: Fri, 5 Jun 2026 15:07:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=88=9A=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=9A=84=20AGENTS.md=20=E5=92=8C=20align-linuxcnc=20=E5=8A=A0?= =?UTF-8?q?=E9=80=9F=E8=A7=84=E5=88=99=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 结论:按 align-linuxcnc 先确认干净基线,避免 source-map-only 和 smoke 扩展;增强 WASM interp_base link probe,锁定 LinuxCNC src/emc/rs274ngc/interp_base.cc 的绝对/相对 interpreter 路径失败诊断均到达 wasm-safe dlfcn unavailable 边界。\n\n测试结论:./test-linuxcnc-wasm-interp-base-link.sh、./test-native.sh、./test-linuxcnc-source-link.sh 均通过。 --- test-linuxcnc-wasm-interp-base-link.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test-linuxcnc-wasm-interp-base-link.sh b/test-linuxcnc-wasm-interp-base-link.sh index 5db2fce..a8af3f5 100755 --- a/test-linuxcnc-wasm-interp-base-link.sh +++ b/test-linuxcnc-wasm-interp-base-link.sh @@ -7,6 +7,10 @@ cd "$(dirname "$0")" # whose runtime dynamic loading edge is satisfied by the wasm-safe dlfcn shim. probe=$(./build-linuxcnc-wasm-standalone-probe.sh --mode interp-base-link) -"$probe" +"$probe" 2>"$probe.err" +grep -F "emcTaskInit: could not open interpreter '/tmp/cnc_sim_missing_absolute_interpreter.so': dynamic loading is unavailable in wasm-safe probe" \ + "$probe.err" >/dev/null +grep -F "emcTaskInit: could not open interpreter '" "$probe.err" | \ + grep -F "/lib/linuxcnc/nonexistent-interpreter.so': dynamic loading is unavailable in wasm-safe probe" >/dev/null echo "linuxcnc wasm interp_base link probe passed"