Skip to content

1.8.0 mach_task_self_ concurrency build error on macos-14 GHA runners #373

Description

@rgoldberg

On macos-14 GHA runners, building swift-system 1.8.0 as a dependency for a SwiftPM 6.3 project reports 10 of the following error in .build/checkouts/swift-system/Sources/System/MachPort.swift (I can supply the log, if necessary):

error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state

I set up the Swift 6.3 toolchain using:

swiftly init -ny
git reset --hard HEAD # to undo unnecessary changes to .swift-version
swiftly link latest

I do not know if other GHA runners also report the same error (or other errors), because the macos-14 failure canceled the builds on other runners.

I do not get any errors building with swift from Xcode 26.6 on my macOS 26.6.1 M4 Max Studio.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions