question: Windows link fails with livekit/libwebrtc CRT mismatch (MT vs MD) on voice-13 #128

Closed
opened 2026-11-11 21:04:55 +00:00 by charles · 2 comments
Owner

Task 13 (PR #121), branch voice-13-voice-livekit-interop at 10e1104: local cargo xtask ci passes on Linux, but the Windows (x64) run 156 fails at link time in cargo test --workspace (lib test of fluxer-voice).

Log (release ci-log-156-windows): many LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' between libwebrtc_sys's prebuilt objects (static CRT /MT) and the Rust/cc-built objects (/MD), then LNK2005 duplicates between libcpmt.lib and msvcprt.lib and LNK1169: one or more multiply defined symbols found.

This is not a mechanical CI fix (formatting, line endings, missing package). It needs a decision on CRT linkage for the livekit/libwebrtc dependency on Windows (for example a consistent /MT or /MD choice via RUSTFLAGS -C target-feature=+crt-static or a cc/CRT override for the Windows build, or gating the livekit dependency off for Windows test builds). PR #121 is not labelled ready-to-merge.

Task 13 (PR #121), branch voice-13-voice-livekit-interop at 10e1104: local `cargo xtask ci` passes on Linux, but the Windows (x64) run 156 fails at link time in `cargo test --workspace` (lib test of fluxer-voice). Log (release ci-log-156-windows): many `LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease'` between libwebrtc_sys's prebuilt objects (static CRT /MT) and the Rust/cc-built objects (/MD), then `LNK2005` duplicates between libcpmt.lib and msvcprt.lib and `LNK1169: one or more multiply defined symbols found`. This is not a mechanical CI fix (formatting, line endings, missing package). It needs a decision on CRT linkage for the livekit/libwebrtc dependency on Windows (for example a consistent /MT or /MD choice via RUSTFLAGS -C target-feature=+crt-static or a cc/CRT override for the Windows build, or gating the livekit dependency off for Windows test builds). PR #121 is not labelled ready-to-merge.
Author
Owner

Update from the orchestrator.

  • The static CRT setting (7c28fba) fixed the link: run 161 on voice-13-voice-livekit-interop linked on Windows.
  • Run 161 then failed at run time: the fluxer-voice test binary exited with STATUS_DLL_NOT_FOUND. tools/ci/missing-dlls.ps1 named msdmo.dll, which libwebrtc imports and Server Core does not ship.
  • Runner fix: Install-WindowsFeature Server-Media-Foundation on both Windows runners (win-runner, win-runner-02). C:\Windows\System32\msdmo.dll is now present on both; no reboot was needed.

Open point for the packaged client: desktop Windows 10/11 ships msdmo.dll, but the N editions only have it with the Media Feature Pack installed. On those the client would fail to start rather than show a message. Worth deciding in the packaging task (25) whether to delay-load it or to detect it at startup.

Update from the orchestrator. - The static CRT setting (7c28fba) fixed the link: run 161 on `voice-13-voice-livekit-interop` linked on Windows. - Run 161 then failed at run time: the `fluxer-voice` test binary exited with `STATUS_DLL_NOT_FOUND`. `tools/ci/missing-dlls.ps1` named `msdmo.dll`, which libwebrtc imports and Server Core does not ship. - Runner fix: `Install-WindowsFeature Server-Media-Foundation` on both Windows runners (`win-runner`, `win-runner-02`). `C:\Windows\System32\msdmo.dll` is now present on both; no reboot was needed. Open point for the packaged client: desktop Windows 10/11 ships `msdmo.dll`, but the N editions only have it with the Media Feature Pack installed. On those the client would fail to start rather than show a message. Worth deciding in the packaging task (25) whether to delay-load it or to detect it at startup.
Author
Owner

Resolved: Windows CI is green on voice (53e3d60) with the static CRT (7c28fba) and the Server-Media-Foundation feature on both runners. The Windows N edition point above is still open for a decision.

Resolved: Windows CI is green on `voice` (53e3d60) with the static CRT (7c28fba) and the Server-Media-Foundation feature on both runners. The Windows N edition point above is still open for a decision.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#128
No description provided.