You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: master's local gate fails: video_io tests don't link for x86_64-pc-windows-gnu #451
Since #420 (video-io port) and #431 (Windows-GNU cross build in the rust-test lane) both merged, the local gate's rust-test lane fails on master (ea3df88), so every contributor's gate is red. Neither PR's CI built the two together.
soldr cargo test -p obs-media-io --locked --no-run --target x86_64-pc-windows-gnu fails to link with MinGW:
Every obs-media-io test (video_frame, video_fourcc_layout, audio_io_inlines, ...): undefined obs_get_profiler_name_store and profile_store_name. The only oracle definitions are in oracle/audio_io_posix.c, which build.rs skips on Windows (*_posix.c). Moving the two stubs into a file that builds on every target (for example oracle/profiler_name_stubs.c) fixes all of these. I checked that locally, and Linux obs-media-io + obs-c-oracle stays 236/236.
Then only tests/video_io.rs still fails: undefined blog, bcrash, video_scaler_create/scale/destroy, os_gettime_ns, os_oom, os_breakpoint, os_utf8_to_wcs_ptr. The audio-io port and its tests are #![cfg(unix)] ("Unix-first: Windows keeps media-io/audio-io.c"). The video-io port and tests/video_io.rs are not.
Decision needed (port owner): make the video-io port Unix-first like audio-io (#![cfg(unix)] on the port and its tests), or give the oracle Windows stand-ins for those symbols. Until then, 1 alone still leaves the gate red.
Correction: my diagnosis above was partly wrong. The "missing" symbols are in the oracle, and the failure is GNU ld's single, in-order archive scan (rustc can place the oracle rlib before the crates that call it). #450 links the windows-gnu check through lld, and I verified that the local gate's rust-test lane passes with it (134 s, including the windows-gnu --no-run build). So neither the #![cfg(unix)] option nor new Windows stubs is needed. #450 fixes this issue.
Fixed by #450 (strong video-io oracle stand-ins on all Windows targets, plus lld for the windows-gnu link). It also carries the MSVC Tier 2 fix from #452.
Activity
zackees commentedon Oct 13, 2026
Correction: my diagnosis above was partly wrong. The "missing" symbols are in the oracle, and the failure is GNU ld's single, in-order archive scan (rustc can place the oracle rlib before the crates that call it). #450 links the windows-gnu check through lld, and I verified that the local gate's rust-test lane passes with it (134 s, including the windows-gnu
--no-runbuild). So neither the#![cfg(unix)]option nor new Windows stubs is needed. #450 fixes this issue.zackees commentedon Oct 13, 2026
Fixed by #450 (strong video-io oracle stand-ins on all Windows targets, plus lld for the windows-gnu link). It also carries the MSVC Tier 2 fix from #452.