Skip to content

ci: Fix master's windows-gnu link check and MSVC Tier 2 build - #450

Merged
zackees merged 3 commits into
masterfrom
fix/video-io-oracle-mingw
Oct 13, 2026
Merged

zackees merged 3 commits into
masterfrom
fix/video-io-oracle-mingw

Conversation

@zackees

@zackees zackees commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Closes #451.

Master's local gate is red: the rust-test lane's --no-run windows-gnu link (#431) fails on obs-media-io's video_io test. That test was added by #420, which merged minutes before #431, so neither PR's run saw the other.

Two fixes:

  1. oracle/video_io.c: the public obs_get_profiler_name_store/profile_store_name stand-ins were strong only under _MSC_VER. On MinGW they were weak, the audio oracle's strong copies aren't built on Windows, and MinGW drops weak-only definitions from static archives. They're now strong on every _WIN32, the same fix as Build the C oracle and libobs util with GCC for Windows #431's test_stubs.c.
  2. Link order: on this test's link line rustc places libobs_c_oracle before obs_media_io/obs_util, which reference its symbols. GNU ld scans archives once, so blog, bcrash, video_scaler_* and others stay unresolved. lld has no ordering requirement, so the lane now links windows-gnu through the pinned toolchain's rustlib/<host>/bin/gcc-ld/ld.lld (-B<dir> -fuse-ld=lld). That path is found from rustc --print sysroot, so it works on any host. ci/test_local_gate.py stubs the lookup.

The rust-test lane passes again, and the full local gate passed and is stamped. A real GNU-ld link on a Windows host would still hit the ordering issue; #441 tracks MinGW runtime work.

Also includes (from #452): test/cmocka/test_volume_meter_snapshot.cpp uses an explicit static_cast<float>. MSVC's C4244 (int→float) under /WX broke master's Windows Tier 2 build since #442. The two fixes blocked each other's CI, so they ship together.

#420 (video-io port) and #431 (windows-gnu --no-run link in the
rust-test lane) merged within minutes, and together the lane failed on
master: obs-media-io's video_io test didn't link.

- The video-io oracle's obs_get_profiler_name_store/profile_store_name
  stand-ins were weak on every non-MSVC Windows target, where the audio
  oracle's strong copies don't exist; MinGW drops weak-only definitions
  from static archives. Strong on every _WIN32 now.
- GNU ld scans archives once, in order, and rustc put the oracle's rlib
  before obs_util and obs_media_io, which call into it. The lane links
  through the toolchain's lld (rustlib/<host>/bin/gcc-ld) instead.

Refs #291
Refs #291

Local-Gate: v1 tree=c76ee7b09ded3822d79f86e8018201a9c7648710 secs=262 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791864926,"gate":"rust/all/fmt","host":"linux-x86_64","key":"67a2b8a8802732e7ab2a6d35bdb6210ead1f055dbfe2d78dd74eb314de4e731a","lane":"lint","parents":["f4c2251a304e64e11a8a1977f30e8a384a4b33dc"],"secs":39,"stamp":"805a94abb16f83535f3663f362d9f58b","tree":"c76ee7b09ded3822d79f86e8018201a9c7648710","v":1,"via":"run"}
Ci-Attestation: {"at":1791864926,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"67a2b8a8802732e7ab2a6d35bdb6210ead1f055dbfe2d78dd74eb314de4e731a","lane":"lint","parents":["f4c2251a304e64e11a8a1977f30e8a384a4b33dc"],"secs":39,"stamp":"d93982b1d2f7af5ef0c74e054b18351e","tree":"c76ee7b09ded3822d79f86e8018201a9c7648710","v":1,"via":"run"}
Ci-Attestation: {"at":1791864926,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"42807fb72bc7a02b51409465460909f7bc009a0885fc1c1d9b45f564a733d9a3","lane":"rust-test","parents":["f4c2251a304e64e11a8a1977f30e8a384a4b33dc"],"secs":154,"stamp":"f49a632603c5a4c20beefa2043c2ac85","tree":"c76ee7b09ded3822d79f86e8018201a9c7648710","v":1,"via":"run"}
Ci-Attestation: {"at":1791864926,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"e0846be3f097a9a59de3c4d987f2a2072e4f9fbc30cd41afdb3b99c9021a9b72","lane":"tier2-linux","parents":["f4c2251a304e64e11a8a1977f30e8a384a4b33dc"],"secs":68,"stamp":"d43d83bef1306ac9a87e8a692ce10cd9","tree":"c76ee7b09ded3822d79f86e8018201a9c7648710","v":1,"via":"run"}
MSVC builds the cmocka tests with warnings as errors, and the int to
float assignments (C4244) broke the Windows Tier 2 build since #442,
which merged without a Windows run.

(cherry picked from commit a03a798)
Local-Gate: v1 tree=f4140f6412d1118b542542df6f929497a8fcdcd3 secs=204 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791866044,"gate":"rust/all/fmt","host":"linux-x86_64","key":"b6916df1b6d51dc3c3a97fd1e18e79dc6d1924f54704de68eb3d2e1fe1a572b7","lane":"lint","parents":["eb955ba16df49ab2c92a32d560acbde669d90325"],"secs":30,"stamp":"a8e0148e8d8332ad3c6d9d7791cbe019","tree":"f4140f6412d1118b542542df6f929497a8fcdcd3","v":1,"via":"run"}
Ci-Attestation: {"at":1791866044,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"b6916df1b6d51dc3c3a97fd1e18e79dc6d1924f54704de68eb3d2e1fe1a572b7","lane":"lint","parents":["eb955ba16df49ab2c92a32d560acbde669d90325"],"secs":30,"stamp":"9ff5cba95920b207741da203e78bc29f","tree":"f4140f6412d1118b542542df6f929497a8fcdcd3","v":1,"via":"run"}
Ci-Attestation: {"at":1791866044,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"4dfb4b5f61dcfd8b23844b3873525b41234345625f54ef82d7f5d5c2cc55d1d3","lane":"rust-test","parents":["eb955ba16df49ab2c92a32d560acbde669d90325"],"secs":113,"stamp":"1c7c7d54bc1ca4367a02f2f524cb2c1f","tree":"f4140f6412d1118b542542df6f929497a8fcdcd3","v":1,"via":"run"}
Ci-Attestation: {"at":1791866044,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"cd28f30d8ed9a88c247264a5f2861954e1d6c2bc1355fdddf49f0465a8708fdd","lane":"tier2-linux","parents":["eb955ba16df49ab2c92a32d560acbde669d90325"],"secs":61,"stamp":"a6740cf1f64c53f6811a7d5405e1c2fa","tree":"f4140f6412d1118b542542df6f929497a8fcdcd3","v":1,"via":"run"}
@zackees zackees changed the title ci: Fix the windows-gnu link check broken by the video-io port ci: Fix master's windows-gnu link check and MSVC Tier 2 build Oct 13, 2026
@zackees
zackees merged commit 483c0f3 into master Oct 13, 2026
20 checks passed
@zackees
zackees deleted the fix/video-io-oracle-mingw branch October 26, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

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

1 participant