Repository navigation
Description
Follow-ups left after 0.25.0 (the fix for #100, engine mcppls-clangd 0.0.24 / clangd 23.1.0-mcppls.13). None blocks the release; this records them so they are not lost. Design and findings: .agents/docs/2026-11-26-issue-100-engine-batch-design.md (§12 findings, §13 release scope).
1. aarch64 hosts do not get the #100 fix (the one with user impact)
Linking X86Desc + X86AsmParser into clangd made the aarch64-openkal image end by SIGBUS in the server's CI (linux-arm64 and darwin-arm64: report, VS Code e2e, proot). The x86_64 images and the engine's own acceptance were fine. Stack: clangdMain -> startModuleMemoStore -> pthread_create -> __clone; okm_done at the start of .bss held the text 6_64/cl. The unmodified 0.0.23 image passes the same job. The root cause is not found (okrun's .okseg/.oksnap sealed segments or boot snapshot, openkal-musl, or the ThinLTO link are the suspects).
What shipped: the libraries are linked only where CMAKE_SYSTEM_PROCESSOR is not arm64, so arm64 hosts still report "MS-style inline assembly is not available" for modules that include <Windows.h> for 32-bit Windows targets. Documented in the CHANGELOGs and troubleshooting.
To do: find the cause (reproduce with qemu-aarch64 + the real okrun, symbolize via the .oke .symtab; a push-triggered probe workflow on the arm runner iterates in ~1.5 min), then drop the gate in patches/0049. Also worth a check for why the engine's acceptance did not catch an image that crashes at startup in the server's flow.
2. Engine main CI: warm-prime darwin-arm64 fails on measurement validity
On the engine's main CI after the 0.0.24 merge (run 45777892099) every job was green except warm-prime darwin-arm64: invalid measurement: cold CPU ratios of pairs [...] lie further than 0.03 from the median (3 attempts; medians 0.898 / 0.905 / 0.944, so no slowdown). It is macOS runner noise against the gate's "at most 2 stray pairs". Accepted as a known limit for this release. The aarch64 image is unchanged in size from 0.0.23, so there was no pairing run either, a departure from the engine's 0.0.21 pairing rule, flagged in the engine CHANGELOG. To do: a separate engine PR if the darwin gate should change (more pairs, or a rule that tolerates the noise); do not loosen it inside a feature change.
3. Not carried in this batch
- mcppls-clangd#19: the image's module worker diagnostics are not bounded on disk on Linux (needs a bounded transport for the image on every system; a note stays in
ModuleBuildWorker.cpp). - release 载荷二进制内嵌 CI 构建机绝对路径(strip 后仍残留于 .rodata) #66: release payload binary embeds CI build-machine absolute paths (
-ffile-prefix-mapin the release build). - Upstream defects register (clangd, mcpp) #24 register entry for the 32-bit Windows target (i686-windows-msvc) fails to parse <Windows.h> in module BMI build: MS-style inline assembly is not available: target MC unavailable #100 behaviour was updated; the arm64 limit is noted there.
4. Test coverage
compdb-clangxx-msvc-i686-windows-h (a real Windows SDK <Windows.h> for i686-pc-windows-msvc) is allowed to be unsupported on hosts without the SDK, so only the Windows runner exercises it. The portable compdb-i686-asm fixture covers the __asm module on every host (passed 6/6 against the shipped 0.25.0 server and payload on linux-x64).
Activity