Build Information
Successful build of package-concurrency-helpers, reference main (f1028d
), with Swift 6.0 for macOS (SPM) on 7 Nov 2024 13:06:11 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ordo-one/package-concurrency-helpers.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ordo-one/package-concurrency-helpers
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f1028d2 ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Cloned https://github.com/ordo-one/package-concurrency-helpers.git
Revision (git rev-parse @):
f1028d27a5c38030e3a098e480e612ed287039bf
SUCCESS checkout https://github.com/ordo-one/package-concurrency-helpers.git at main
Fetching https://github.com/mattgallagher/CwlPreconditionTesting
Fetching https://github.com/ordo-one/package-latency-tools
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-atomics
[1/1257] Fetching cwlpreconditiontesting
[228/3295] Fetching cwlpreconditiontesting, swift-docc-plugin
[310/3657] Fetching cwlpreconditiontesting, swift-docc-plugin, package-latency-tools
[484/5226] Fetching cwlpreconditiontesting, swift-docc-plugin, package-latency-tools, swift-atomics
Fetched https://github.com/ordo-one/package-latency-tools from cache (1.20s)
Fetched https://github.com/mattgallagher/CwlPreconditionTesting from cache (1.20s)
[2364/3607] Fetching swift-docc-plugin, swift-atomics
Fetched https://github.com/apple/swift-docc-plugin from cache (1.30s)
Fetched https://github.com/apple/swift-atomics from cache (1.30s)
Computing version for https://github.com/ordo-one/package-latency-tools
Computed https://github.com/ordo-one/package-latency-tools at 1.0.0 (0.66s)
Fetching https://github.com/apple/swift-numerics
[1/5576] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.14s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.79s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (0.51s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (0.62s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3154] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.24s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.67s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting
Computed https://github.com/mattgallagher/CwlPreconditionTesting at 2.2.2 (0.68s)
Fetching https://github.com/mattgallagher/CwlCatchException.git
[1/455] Fetching cwlcatchexception
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.77s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.2.1 (0.64s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/ordo-one/package-latency-tools
Working copy of https://github.com/ordo-one/package-latency-tools resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.2.0
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting resolved at 2.2.2
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.2.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "package-concurrency-helpers",
"name": "package-concurrency-helpers",
"url": "https://github.com/ordo-one/package-concurrency-helpers.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/package-concurrency-helpers",
"dependencies": [
{
"identity": "swift-atomics",
"name": "swift-atomics",
"url": "https://github.com/apple/swift-atomics",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
"dependencies": [
]
},
{
"identity": "package-latency-tools",
"name": "package-latency-tools",
"url": "https://github.com/ordo-one/package-latency-tools",
"version": "1.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/package-latency-tools",
"dependencies": [
{
"identity": "swift-numerics",
"name": "swift-numerics",
"url": "https://github.com/apple/swift-numerics",
"version": "1.0.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-numerics",
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/ordo-one/package-concurrency-helpers.git
[1/1264] Fetching package-concurrency-helpers
Fetched https://github.com/ordo-one/package-concurrency-helpers.git from cache (0.88s)
Fetching https://github.com/ordo-one/package-latency-tools from cache
Fetching https://github.com/apple/swift-atomics from cache
Fetched https://github.com/ordo-one/package-latency-tools from cache (0.47s)
Fetched https://github.com/apple/swift-atomics from cache (0.47s)
Computing version for https://github.com/ordo-one/package-latency-tools
Computed https://github.com/ordo-one/package-latency-tools at 1.0.0 (0.02s)
Fetching https://github.com/apple/swift-numerics from cache
Fetched https://github.com/apple/swift-numerics from cache (2.47s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.03s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (0.04s)
Creating working copy for https://github.com/ordo-one/package-concurrency-helpers.git
Working copy of https://github.com/ordo-one/package-concurrency-helpers.git resolved at main (f1028d2)
Creating working copy for https://github.com/ordo-one/package-latency-tools
Working copy of https://github.com/ordo-one/package-latency-tools resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
warning: '.resolve-product-dependencies': dependency 'package-concurrency-helpers' is not used by any target
Found 2 product dependencies
- swift-atomics
- package-latency-tools
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/ordo-one/package-concurrency-helpers.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/9] Write sources
[6/9] Compiling _PauseShims _PauseShims.c
[7/9] Write swift-version--7754E27361AE5C74.txt
[8/11] Compiling _AtomicsShims.c
[10/30] Compiling Atomics ManagedAtomic.swift
[11/30] Compiling Atomics ManagedAtomicLazyReference.swift
[12/30] Compiling Atomics AtomicStorage.swift
[13/30] Compiling Atomics AtomicValue.swift
[14/30] Compiling Atomics AtomicMemoryOrderings.swift
[15/30] Compiling Atomics DoubleWord.swift
[16/32] Compiling Atomics UnsafeAtomic.swift
[17/32] Compiling Atomics UnsafeAtomicLazyReference.swift
[18/32] Compiling Atomics IntegerOperations.swift
[19/32] Compiling Atomics Unmanaged extensions.swift
[20/32] Emitting module LatencyTimer
[21/32] Compiling LatencyTimer LatencyTimer.swift
[22/32] Compiling Atomics OptionalRawRepresentable.swift
[23/32] Compiling Atomics RawRepresentable.swift
[24/32] Compiling Atomics Primitives.shims.swift
[25/32] Compiling Atomics AtomicInteger.swift
[26/32] Compiling Atomics AtomicOptionalWrappable.swift
[27/32] Compiling Atomics AtomicReference.swift
[28/32] Emitting module Atomics
[29/39] Compiling Atomics AtomicBool.swift
[30/39] Compiling Atomics IntegerConformances.swift
[31/39] Compiling Atomics PointerConformances.swift
[32/39] Compiling Atomics Primitives.native.swift
[33/48] Compiling PackageConcurrencyHelpers Protected.swift
[34/48] Compiling PackageConcurrencyHelpers NIOSendable.swift
[35/48] Compiling PackageConcurrencyHelpers Spinlock.swift
[36/48] Compiling PackageConcurrencyHelpers YieldWithBackPressure.swift
/Users/admin/builder/spi-builder-workspace/Sources/ConcurrencyHelpers/YieldWithBackPressure.swift:22:35: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
20 | to continuation: AsyncStream<Message>.Continuation) async -> Bool {
21 | while true {
22 | let result = continuation.yield(message)
| |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'message' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
23 | switch result {
24 | case .terminated:
[37/48] Compiling PackageConcurrencyHelpers Lockable.swift
[38/48] Compiling PackageConcurrencyHelpers Lock.swift
/Users/admin/builder/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:22:25: warning: stored property 'mutex' of 'Sendable'-conforming class 'Lock' has non-sendable type 'UnsafeMutablePointer<os_unfair_lock>' (aka 'UnsafeMutablePointer<os_unfair_lock_s>'); this is an error in the Swift 6 language mode
20 | public final class Lock {
21 | #if os(macOS)
22 | fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
| `- warning: stored property 'mutex' of 'Sendable'-conforming class 'Lock' has non-sendable type 'UnsafeMutablePointer<os_unfair_lock>' (aka 'UnsafeMutablePointer<os_unfair_lock_s>'); this is an error in the Swift 6 language mode
23 | #else
24 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
[39/48] Emitting module PackageConcurrencyHelpers
/Users/admin/builder/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:22:25: warning: stored property 'mutex' of 'Sendable'-conforming class 'Lock' has non-sendable type 'UnsafeMutablePointer<os_unfair_lock>' (aka 'UnsafeMutablePointer<os_unfair_lock_s>'); this is an error in the Swift 6 language mode
20 | public final class Lock {
21 | #if os(macOS)
22 | fileprivate let mutex = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
| `- warning: stored property 'mutex' of 'Sendable'-conforming class 'Lock' has non-sendable type 'UnsafeMutablePointer<os_unfair_lock>' (aka 'UnsafeMutablePointer<os_unfair_lock_s>'); this is an error in the Swift 6 language mode
23 | #else
24 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
| `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 | public let _rawValue: Builtin.RawPointer
3 | public init(_ _rawValue: Builtin.RawPointer)
[40/48] Compiling PackageConcurrencyHelpers RunSync.swift
[41/48] Compiling PackageConcurrencyHelpers ForBlockingCall.swift
[42/48] Compiling Helpers TimeIntervalCounter.swift
[43/48] Compiling Helpers ProcessingRate.swift
[44/48] Compiling Helpers NearestPowerOf2.swift
[45/48] Compiling Helpers MakeStream.swift
[46/48] Emitting module Helpers
[47/48] Compiling Helpers Box.swift
[48/48] Compiling Helpers IsBeingDebugged.swift
Build complete! (29.29s)
Build complete.
{
"dependencies" : [
{
"identity" : "cwlpreconditiontesting",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/mattgallagher/CwlPreconditionTesting"
},
{
"identity" : "swift-atomics",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-atomics"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
},
{
"identity" : "package-latency-tools",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/ordo-one/package-latency-tools"
}
],
"manifest_display_name" : "package-concurrency-helpers",
"name" : "package-concurrency-helpers",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "PackageConcurrencyHelpers",
"targets" : [
"PackageConcurrencyHelpers"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Helpers",
"targets" : [
"Helpers"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "_PauseShims",
"module_type" : "ClangTarget",
"name" : "_PauseShims",
"path" : "Sources/_PauseShims",
"product_memberships" : [
"PackageConcurrencyHelpers"
],
"sources" : [
"_PauseShims.c"
],
"type" : "library"
},
{
"c99name" : "PackageConcurrencyHelpers",
"module_type" : "SwiftTarget",
"name" : "PackageConcurrencyHelpers",
"path" : "Sources/ConcurrencyHelpers",
"product_dependencies" : [
"Atomics"
],
"product_memberships" : [
"PackageConcurrencyHelpers"
],
"sources" : [
"ForBlockingCall.swift",
"Lock.swift",
"Lockable.swift",
"NIOSendable.swift",
"Protected.swift",
"RunSync.swift",
"Spinlock.swift",
"YieldWithBackPressure.swift"
],
"target_dependencies" : [
"_PauseShims"
],
"type" : "library"
},
{
"c99name" : "HelpersTests",
"module_type" : "SwiftTarget",
"name" : "HelpersTests",
"path" : "Tests/HelpersTests",
"sources" : [
"BoxTests.swift",
"TimeIntervalCounterTests.swift"
],
"target_dependencies" : [
"Helpers",
"PackageConcurrencyHelpers"
],
"type" : "test"
},
{
"c99name" : "Helpers",
"module_type" : "SwiftTarget",
"name" : "Helpers",
"path" : "Sources/Helpers",
"product_dependencies" : [
"LatencyTimer"
],
"product_memberships" : [
"Helpers"
],
"sources" : [
"Box.swift",
"IsBeingDebugged.swift",
"MakeStream.swift",
"NearestPowerOf2.swift",
"ProcessingRate.swift",
"TimeIntervalCounter.swift"
],
"type" : "library"
},
{
"c99name" : "ConcurrencyHelpersTests",
"module_type" : "SwiftTarget",
"name" : "ConcurrencyHelpersTests",
"path" : "Tests/ConcurrencyHelpersTests",
"product_dependencies" : [
"CwlPreconditionTesting"
],
"sources" : [
"ConcurrencyHelpersTests.swift"
],
"target_dependencies" : [
"PackageConcurrencyHelpers"
],
"type" : "test"
}
],
"tools_version" : "5.8"
}
Done.