ci: link synchronization for the XMA2 ABI smoke test (CI-XMA2-FFI-LINKAGE) #996
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!996
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/996/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@5headsmartbtw on GitHub · 2026-11-24 16:40 UTC · original
5headsmartbtw:fix/ci-xma2-ffi-linkage→main· +4 −2 · 2 files · 1 commits · merged 2026-11-24 20:38 UTCClaimed in the coordination issue as: CI-XMA2-FFI-LINKAGE
What and why
Link
synchronization.libwhen MSVC builds the standalone synthetic XMA2 C++ ABI smoke test. Rust's Windows standard library referencesWaitOnAddress,WakeByAddressSingle, andWakeByAddressAll, which the currentclcommand leaves unresolved. Document the Windows import library in the decoder README.Adapted from Danila Kupreenko's LeonidaReforge/Leonida#23. The workflow and its README are the scope of this PR. Related Continued #877 covers the runtime CMake targets.
Tested
3ed8e50b7: Rust formatting, all 10 Rust tests, and the Rust static library build passed. The standalone smoke-test link failed with threeLNK2019unresolved synchronization imports andLNK1120, matching the upstream Windows CI failure.cargo fmt -- --check,cargo test --locked(10 passed),cargo build --locked, and the synthetic C++ ABI smoke test all passed on Windows x64 with Rust 1.100.0, MSVC 14.44.35207 and Windows SDK 10.0.26100.0.git diff --checkandscripts/check_no_game_data.pypassed on the changed files.GPUs tested: n/a (CPU-only synthetic tests).
AI-assisted: yes, Codex.
Checklist
main.@aslan2142 on GitHub · 2026-11-24 20:38 UTC · original
Merged on local results, since CI has been queued for hours. The
windows-ffijob was reproduced on Linux with clang-cl/lld-link 23.1.5, the xwin MSVC CRT and Windows SDK 10.0.26100, and Wine 11.22, standing in forcl/linkon Windows, on a local merge ofmain(6293c1c4f) and9f087c96b.cargo fmt --check,cargo test --locked(x86_64-pc-windows-msvc, run under Wine) andcargo build --locked: all pass, with 3 unit and 7ffi_contracttests.main'sclline: fails with 3 undefined imports from Rust std's futex locks:WaitOnAddress,WakeByAddressAllandWakeByAddressSingle(LNK2019 under MSVC).synchronization.lib: links with no warnings, and the smoke test exits 0 under Wine.ws2_32,ntdll,userenvandsynchronizationeach resolve imports; nothing else is unresolved.correctnessprofile: no findings onxma2-decoder.yml.AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).