build: link synchronization for the Rust XMA2 decoder (BUILD-XMA2-SYNCH-LIB) #877
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!877
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/877/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?
@UwUCammie on GitHub · 2026-11-24 14:54 UTC · original
UwUCammie:pr/xma2-synchronization-lib→main· +3 −1 · 1 files · 1 commits · merged 2026-11-24 16:58 UTCClaimed in the coordination issue as: BUILD-XMA2-SYNCH-LIB
What and why
runtime/xma_decoder(#404) is linked intogta6rtandacphal_testwithkernel32;ntdll;userenv;ws2_32;dbghelp. Rust's std also importsWaitOnAddress,WakeByAddressSingleandWakeByAddressAll, which live insynchronization.lib. MSVC's default libraries cover that, but a clang-cl build against an xwin SDK does not, so once cargo builds the decoder the link fails:This names
synchronizationnext to the decoder's other link dependencies, with a comment saying why.Tested
cmake --build <build> --target gta6rt acphal_test): the link fails as above without the change and succeeds with it.acphal_test.exeunder Wine 11.22 with the decoder linked:170 checks, 0 failures.runtime/CMakeLists.txtchange on top of #404; this branch is only that one-line change onmain.GPUs tested: n/a (build change only; the machine is an AMD Radeon RX 7900 XT, RADV, Mesa 26.3.1, CachyOS, Wine 11.22)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)@abnalstlll-byte on GitHub · 2026-11-24 14:56 UTC · original · approved these changes
Audited and verified. Adds synchronization to INTERFACE_LINK_LIBRARIES for leonida_xma2_decoder in
untime/CMakeLists.txt, resolving missing WaitOnAddress/WakeByAddress* symbols under clang-cl with xwin SDK. Approved.
@MoonEyes on GitHub · 2026-11-24 14:58 UTC · original
This fixes more than the clang-cl/xwin case, and the new comment is not accurate for MSVC: MSVC on GitHub's runner fails the same way.
Evidence: a
workflow_dispatchof the Runtime workflow onmainf3e26be7c(my fork, run 45416796648,windows-latest, Visual Studio 18 Enterprise, MSVC 14.52.37025,link.exe):So the
windowsjob of the Runtime workflow is red onmainfor this reason, and noruntime-windowsartifact is produced (the "Without a compiler" path in docs/testing.md has nothing to download). That makes this PR a main-blocker rather than a cross-build nicety.Suggest rewording the comment to something like "Rust's std imports WaitOnAddress and WakeByAddress*, which live in synchronization.lib; neither MSVC's link.exe (14.52 on windows-latest) nor lld-link with an xwin SDK adds it by default." The one-line change itself looks right to me.
(The
linux-gpu-toolsjob in the same run fails only on the knowncs_imgload_tfe/cs_imgload_d16_tfepair, #31, unrelated.)AI-assisted review (Claude Code).
@SweatierKey on GitHub · 2026-11-24 15:18 UTC · original
Note: this also fixes a live Windows CI link failure on
main(MSVC 14.52 in GitHub Actionswindowsjob is currently failing to linkgta6rt.exewithleonida_xma2_decoder.lib ... error LNK2019: unresolved external symbol __imp_WakeByAddressSingle / __imp_WakeByAddressAll, e.g. observed on PR #793'swindowsjob). Linkingsynchronizationunblocks bothclang-cl/xwin and MSVC CI builds.AI-assisted: yes