Skip to content

ci: master Fast Gate red since #4059: mingw oracle build, pthread_mutex_lock redefined #4168

Closed

Description

@vpacher

Summary

Since #4059 (9a95b46), every master push run fails the Fast Gate: the Windows cross build (mingw) of the C oracle does not compile rust/obs-c-oracle/oracle/output_pause_queries.c.

rust/obs-c-oracle/oracle/output_pause_queries.c:41:9: error: 'pthread_mutex_lock' redefined [-Werror]
rust/obs-c-oracle/oracle/output_pause_queries.c:42:9: error: 'pthread_mutex_unlock' redefined [-Werror]

First red run: 42516069306 (9a95b46); the run before it, 42513019795 (096ef55), is green. The same error is in every master Fast Gate since then, for example 42551828784 and 42572306613.

Cause

The oracle file counts the lock calls of obs-output-pause-queries.c.h with #define pthread_mutex_lock output_pause_queries_lock_probe (and the same for pthread_mutex_unlock). The mingw cross build compiles every oracle file with -Dpthread_mutex_lock=oracle_pthread_mutex_lock (the w32-pthreads renaming), so the macro is defined twice and -Werror stops the build. No other oracle file defines a pthread function.

Fix

Save the macros with #pragma push_macro, #undef them before the probe defines, and restore them with #pragma pop_macro after the include. The probe then works on every host, and the w32-pthreads renaming applies again to the rest of the file.

Not this issue

Since about 06:50 UTC on 11-09, other master jobs (Rust Tests and Tier 2 on Windows and macOS, the mac-arm64 cross compile) also fail on downloads from GitHub releases (nextest: HTTP 504; the host Qt for uic: HTTP 22). That is external and goes away on a rerun.

Activity

  1. added
    bug
    on Nov 9, 2026
  2. vpacher commented on Nov 9, 2026

    @vpacher
    MemberAuthor

    Claiming: #4168

    1. One PR: #pragma push_macro / #undef / #pragma pop_macro around the two lock probe macros in rust/obs-c-oracle/oracle/output_pause_queries.c. RED: the cross lane of the local gate on master (the mingw compile error), recorded locally; GREEN: the same lane with the fix. First PR within the hour.
  3. added
    ready
    on Nov 9, 2026
  4. added a commit that references this issue on Nov 9, 2026
    dd81c17
  5. moved this from In merge queue to Done in obs-rust Multiviewon Nov 9, 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