Skip to content

ci: link synchronization for the XMA2 ABI smoke test (CI-XMA2-FFI-LINKAGE) - #996

Merged
aslan2142 merged 1 commit into
ProjectLeonida:mainfrom
5headsmartbtw:fix/ci-xma2-ffi-linkage
Nov 24, 2026
Merged

aslan2142 merged 1 commit into
ProjectLeonida:mainfrom
5headsmartbtw:fix/ci-xma2-ffi-linkage

Conversation

@5headsmartbtw

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: CI-XMA2-FFI-LINKAGE

What and why

Link synchronization.lib when MSVC builds the standalone synthetic XMA2 C++ ABI smoke test. Rust's Windows standard library references WaitOnAddress, WakeByAddressSingle, and WakeByAddressAll, which the current cl command 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

  • Baseline on Continued 3ed8e50b7: Rust formatting, all 10 Rust tests, and the Rust static library build passed. The standalone smoke-test link failed with three LNK2019 unresolved synchronization imports and LNK1120, matching the upstream Windows CI failure.
  • With the link fix: 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 --check and scripts/check_no_game_data.py passed on the changed files.

GPUs tested: n/a (CPU-only synthetic tests).

AI-assisted: yes, Codex.

Checklist

  • Based on main.
  • One topic.
  • No game data, keys or decryption.

Adapted from LeonidaReforge/Leonida#23 (e932888842afccb38695cab4ce6c4ff6ca8b0dd7). AI-assisted (Codex).
@aslan2142
aslan2142 merged commit 2e026b0 into ProjectLeonida:main Nov 24, 2026
9 of 15 checks passed
@aslan2142

Copy link
Copy Markdown
Collaborator

Merged on local results, since CI has been queued for hours. The windows-ffi job 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 for cl/link on Windows, on a local merge of main (6293c1c4f) and 9f087c96b.

  • cargo fmt --check, cargo test --locked (x86_64-pc-windows-msvc, run under Wine) and cargo build --locked: all pass, with 3 unit and 7 ffi_contract tests.
  • main's cl line: fails with 3 undefined imports from Rust std's futex locks: WaitOnAddress, WakeByAddressAll and WakeByAddressSingle (LNK2019 under MSVC).
  • This PR's line with synchronization.lib: links with no warnings, and the smoke test exits 0 under Wine.
  • Library list: ws2_32, ntdll, userenv and synchronization each resolve imports; nothing else is unresolved.
  • jactionlint 2.6.0, correctness profile: no findings on xma2-decoder.yml.
  • The claim is valid (posted before the PR, unedited).

AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants