Skip to content

ci: master's local gate fails: video_io tests don't link for x86_64-pc-windows-gnu #451

Closed

Description

@zackees

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:

  1. 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.
  2. 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.

Refs #420, #431, #291.

Activity

  1. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    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.

  2. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions