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
bench: port_comparison does not link on Windows (18 undefined libobs symbols) #3025
The port_comparison bench of obs-c-oracle does not link on Windows (MSVC target, rust-lld). Found while recording the baselines of #3003. Same result on master (3d4e696) and on the #3003 branch, so it is not caused by #3003:
The C ABI shims of obs-output, obs-encoder and obs-hotkey call these libobs C functions through extern "C". The test binaries define stand-ins for some of them (for example obs-hotkey/tests/hotkey/main.rs, "Cargo-test stand-ins for libobs's hidden obs_hotkeys_mutex_lock"). The bench defines none. On Linux and macOS the bench links, probably because the linker removes the unused shim functions before it reports undefined symbols; lld-link on Windows reports them first. This part is not verified.
CI does not build the benches on Windows, so nothing reports it.
Impact
Low. Only the bench binary is affected; no shipped code and no test. But record.py cannot record a Windows baseline (docs/rust-port/release-criteria.md), and the SIMD work of #3009 cannot show MSVC numbers.
Proposed fix
Stand-ins for the 18 symbols in the bench (as the tests have them), or a shared stand-in module in obs-c-oracle that the tests and the bench both use. Acceptance: soldr cargo bench -p obs-c-oracle --bench port_comparison -- --test passes on Windows; optionally a Windows CI step that builds the bench with --no-run.
Cause, now confirmed in the source: rust/obs-c-oracle/oracle/output_interleave.c keeps the libobs names of the accessors it calls (obs_output_interleave_fields(), obs_encoder_packet_release(), obs_output_get_name() and the others), and its header says that "the cargo test that links this file defines them" (rust/obs-output/tests/output/interleave_parity.rs). The port_comparison bench links the same oracle and shims but defines none of them. No bench calls them, so the Linux and macOS linkers leave them out; lld-link reports them.
Plan (one PR, RED then GREEN):
RED: a ci/ test that requires each of the 18 symbols to have a definition in the bench, and a local RED on Windows: soldr cargo bench -p obs-c-oracle --bench port_comparison --no-run fails to link.
GREEN: a bench module with stand-ins for the 18 symbols, on every platform. They abort with the symbol's name if they are ever called (no bench calls them today). The Windows smoke run (-- --test) passes, and Linux and macOS stay as they are.
Activity
vpacher commentedon Oct 30, 2026
Claiming: #3025.
Cause, now confirmed in the source:
rust/obs-c-oracle/oracle/output_interleave.ckeeps the libobs names of the accessors it calls (obs_output_interleave_fields(),obs_encoder_packet_release(),obs_output_get_name()and the others), and its header says that "the cargo test that links this file defines them" (rust/obs-output/tests/output/interleave_parity.rs). Theport_comparisonbench links the same oracle and shims but defines none of them. No bench calls them, so the Linux and macOS linkers leave them out;lld-linkreports them.Plan (one PR, RED then GREEN):
ci/test that requires each of the 18 symbols to have a definition in the bench, and a local RED on Windows:soldr cargo bench -p obs-c-oracle --bench port_comparison --no-runfails to link.-- --test) passes, and Linux and macOS stay as they are.record.py, next to the Linux and macOS ones of chore: perf: benchmark the SIMD candidates in record.py (format conversion, volume meter, audio mix) #3003.Draft PR within 48 h.
perf(bench): Record the SIMD candidates and repair the benchmark reco…
bench: Link stand-ins so port_comparison builds on Windows; record th…