Skip to content

bench: port_comparison links gs_timer stand-ins twice #4615

Closed

Description

@rdoupe

What happens

soldr cargo test -p obs-c-oracle --locked --bench port_comparison no longer links on master (seen on 05c19cb):

rust-lld: error: duplicate symbol: gs_timer_destroy
rust-lld: error: duplicate symbol: gs_timer_begin
rust-lld: error: duplicate symbol: gs_timer_end
rust-lld: error: duplicate symbol: gs_timer_get_data
rust-lld: error: duplicate symbol: gs_timer_range_destroy
rust-lld: error: duplicate symbol: gs_timer_range_begin
rust-lld: error: duplicate symbol: gs_timer_range_end
rust-lld: error: duplicate symbol: gs_timer_range_get_data
error: could not compile `obs-c-oracle` (bench "port_comparison")

Why

The timer dispatch port (#4557) and the timer-range dispatch port (#4595) made those eight gs_timer_* entry points Rust in obs-graphics, which the bench links. rust/obs-c-oracle/oracle/source_profiler_host.c still defines do-nothing stand-ins under the same names for the source profiler oracle, so the bench has two definitions of each. The test binaries are not affected.

Fix

Drop the stand-ins that obs-graphics now defines from the oracle (keeping gs_timer_create/gs_timer_range_create and anything still C), and check that the source profiler oracle still links and its parity holds. The bench is not run on PR CI, which is why the ports were green.

Activity

  1. added
    bug
    on Nov 10, 2026
  2. rdoupe commented on Nov 13, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: this link failure, batched with #4786, which reports the same eight duplicate gs_timer_* symbols in the port_comparison bench.

    1. RED: reproduce the bench link failure on current master and record it.
    2. GREEN: drop the eight stand-ins obs-graphics now defines from rust/obs-c-oracle/oracle/source_profiler_host.c, keeping gs_timer_create, gs_timer_range_create and the other stand-ins that are still C; check that the bench links and the source profiler parity holds.
    3. Local gates. One PR fixes both issues.

    PR expected within a few hours.

  3. added
    ready
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions