Skip to content

ci: macOS Tier 2 intermittently fails to link libobs against the MacOSX27.0 SDK ("unknown architecture") #777

Closed

Description

@zackees

Rust Tier 2 macos-26 (build_rust_ON) sometimes fails linking libobs:

.../SDKs/MacOSX27.0.sdk/usr/lib/libobjc.A.tbd:4:54: error: unknown architecture
.../SDKs/MacOSX27.0.sdk/usr/lib/libSystem.B.tbd:4:20: error: unknown architecture
.../SDKs/MacOSX27.0.sdk/usr/lib/libz.1.tbd:4:20: error: unknown architecture
clang: error: linker command failed with exit code 1

Seen twice on 2026-10-14: the merge-queue run for #766 (run 38641907173; it passed on re-queue) and the PR run for #775. Neither PR touched the build. Other macOS Tier 2 runs the same day passed, so it looks like runner variance: some macos-26 images have the 27.0 Command Line Tools SDK, whose .tbd stubs list an architecture the selected linker doesn't know.

Likely fix: make the Tier 2 macOS job use the Xcode it selects for the build, e.g. sudo xcode-select --switch /Applications/Xcode_26.x.app (as release-rust.yaml does) and/or set SDKROOT=$(xcrun --sdk macosx --show-sdk-path) so libobs links against that Xcode's SDK, not /Library/Developer/CommandLineTools.

Activity

  1. zackees commented on Oct 15, 2026

    @zackees
    MemberAuthor

    Another occurrence: #796, run 38669886387 job 116210714383 (build_rust_ON, libobjc/libSystem/libz .tbd "unknown architecture").

  2. nathan-v commented on Oct 15, 2026

    @nathan-v
    Contributor

    Claiming: macOS Tier 2 SDK/linker mismatch.

    1. Inspect the failing job and reproduce the selected SDK/toolchain behavior on a macOS host.
    2. Commit a failing regression check, then make the macOS Tier 2 lane select a consistent Xcode and SDK.
    3. Run native macOS validation, the local gates, and current-head CI.

    First PR expected today. Please add the claimed label if my account cannot.

  3. nathan-v commented on Oct 15, 2026

    @nathan-v
    Contributor

    Progress: PR #808 has separate RED (2e4cd80) and GREEN (1cf39f4) commits. The cause is Corrosion 0.5.2 injecting the CLT SDK library directory into libobs_rust-static, ahead of the selected Xcode SDK. The fix removes that injected path on macOS. Native Xcode 27 OFF/ON validation passes (132 tests passed and one skipped per configuration; 1,877 identical exports). The generated ON project has four CLT-path references before and zero after. Hosted Rust tests on Linux/macOS/Windows and cross lint are green; Tier 2 jobs are still running.

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