Build Information
Successful build of BSONSerialization, reference 2.2.0 (72abf2
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 08:28:23 UTC.
Swift 6 data race errors: 2
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/frizlab/bsonserialization.git
Reference: 2.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/frizlab/bsonserialization
* tag 2.2.0 -> FETCH_HEAD
HEAD is now at 72abf22 Add the compressed BSON binary subtype
Cloned https://github.com/frizlab/bsonserialization.git
Revision (git rev-parse @):
72abf222b6c33fc6b40c906a83984cbbf90ec155
SUCCESS checkout https://github.com/frizlab/bsonserialization.git at 2.2.0
Fetching https://github.com/Frizlab/stream-reader.git
[1/1051] Fetching stream-reader
Fetched https://github.com/Frizlab/stream-reader.git from cache (0.83s)
Computing version for https://github.com/Frizlab/stream-reader.git
Computed https://github.com/Frizlab/stream-reader.git at 3.5.1 (1.48s)
Creating working copy for https://github.com/Frizlab/stream-reader.git
Working copy of https://github.com/Frizlab/stream-reader.git resolved at 3.5.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": "bsonserialization",
"name": "BSONSerialization",
"url": "https://github.com/frizlab/bsonserialization.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/bsonserialization",
"dependencies": [
{
"identity": "stream-reader",
"name": "stream-reader",
"url": "https://github.com/Frizlab/stream-reader.git",
"version": "3.6.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/stream-reader",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/frizlab/bsonserialization.git
[1/721] Fetching bsonserialization
Fetched https://github.com/frizlab/bsonserialization.git from cache (0.73s)
Fetching https://github.com/Frizlab/stream-reader.git from cache
Fetched https://github.com/Frizlab/stream-reader.git from cache (0.45s)
Computing version for https://github.com/Frizlab/stream-reader.git
Computed https://github.com/Frizlab/stream-reader.git at 3.6.1 (0.97s)
Creating working copy for https://github.com/frizlab/bsonserialization.git
Working copy of https://github.com/frizlab/bsonserialization.git resolved at 2.2.0 (72abf22)
Creating working copy for https://github.com/Frizlab/stream-reader.git
Working copy of https://github.com/Frizlab/stream-reader.git resolved at 3.6.1
warning: '.resolve-product-dependencies': dependency 'bsonserialization' is not used by any target
Found 1 product dependencies
- stream-reader
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/frizlab/bsonserialization.git
https://github.com/frizlab/bsonserialization.git
{
"dependencies" : [
{
"identity" : "stream-reader",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Frizlab/stream-reader.git"
}
],
"manifest_display_name" : "BSONSerialization",
"name" : "BSONSerialization",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "BSONSerialization",
"targets" : [
"BSONSerialization"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "BSONSerializationTests",
"module_type" : "SwiftTarget",
"name" : "BSONSerializationTests",
"path" : "Tests/BSONSerializationTests",
"sources" : [
"BSONSerializationTests.swift",
"TestHelpers.swift"
],
"target_dependencies" : [
"BSONSerialization"
],
"type" : "test"
},
{
"c99name" : "BSONSerialization",
"module_type" : "SwiftTarget",
"name" : "BSONSerialization",
"path" : "Sources/BSONSerialization",
"product_dependencies" : [
"StreamReader"
],
"product_memberships" : [
"BSONSerialization"
],
"sources" : [
"BSONClasses.swift",
"BSONSerialization.swift",
"Errors.swift",
"OutputStream+Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/13] Compiling StreamReader URLSessionStreamTaskReader.swift
[5/13] Compiling StreamReader GenericStreamReader.swift
[6/13] Compiling StreamReader StreamReaderErrors.swift
[7/13] Compiling StreamReader FileDescriptorReader.swift
[8/13] Compiling StreamReader FileHandleReader.swift
[9/13] Compiling StreamReader InputStreamReader.swift
[10/13] Emitting module StreamReader
[11/13] Compiling StreamReader StreamReader.swift
[12/13] Compiling StreamReader DataReader.swift
[13/13] Compiling StreamReader Matching.swift
[14/18] Compiling BSONSerialization Errors.swift
/Users/admin/builder/spi-builder-workspace/Sources/BSONSerialization/Errors.swift:70:7: warning: associated value 'invalidBSONObject(invalidElement:)' of 'Sendable'-conforming enum 'BSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
68 | An invalid BSON object was given to be serialized.
69 | The invalid element is passed in argument to this error. */
70 | case invalidBSONObject(invalidElement: Any)
| `- warning: associated value 'invalidBSONObject(invalidElement:)' of 'Sendable'-conforming enum 'BSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
71 | /**
72 | Tried to serialize an unserializable string (using the C representation).
[15/18] Compiling BSONSerialization OutputStream+Utils.swift
[16/18] Compiling BSONSerialization BSONSerialization.swift
/Users/admin/builder/spi-builder-workspace/Sources/BSONSerialization/BSONSerialization.swift:41:21: warning: static property 'skipSizes' is not concurrency-safe because non-'Sendable' type 'BSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
35 |
36 | public let rawValue: Int
:
39 | Set all sizes to 0 in generated BSON.
40 | Mainly useful internally for optimization purposes. */
41 | public static let skipSizes = WritingOptions(rawValue: 1 << 0)
| |- warning: static property 'skipSizes' is not concurrency-safe because non-'Sendable' type 'BSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'skipSizes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | public init(rawValue v: Int) {
[17/18] Emitting module BSONSerialization
/Users/admin/builder/spi-builder-workspace/Sources/BSONSerialization/BSONSerialization.swift:41:21: warning: static property 'skipSizes' is not concurrency-safe because non-'Sendable' type 'BSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
35 |
36 | public let rawValue: Int
:
39 | Set all sizes to 0 in generated BSON.
40 | Mainly useful internally for optimization purposes. */
41 | public static let skipSizes = WritingOptions(rawValue: 1 << 0)
| |- warning: static property 'skipSizes' is not concurrency-safe because non-'Sendable' type 'BSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'skipSizes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | public init(rawValue v: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/BSONSerialization/Errors.swift:70:7: warning: associated value 'invalidBSONObject(invalidElement:)' of 'Sendable'-conforming enum 'BSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
68 | An invalid BSON object was given to be serialized.
69 | The invalid element is passed in argument to this error. */
70 | case invalidBSONObject(invalidElement: Any)
| `- warning: associated value 'invalidBSONObject(invalidElement:)' of 'Sendable'-conforming enum 'BSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
71 | /**
72 | Tried to serialize an unserializable string (using the C representation).
[18/18] Compiling BSONSerialization BSONClasses.swift
Build complete! (7.16s)
Build complete.
{
"dependencies" : [
{
"identity" : "stream-reader",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Frizlab/stream-reader.git"
}
],
"manifest_display_name" : "BSONSerialization",
"name" : "BSONSerialization",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "BSONSerialization",
"targets" : [
"BSONSerialization"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "BSONSerializationTests",
"module_type" : "SwiftTarget",
"name" : "BSONSerializationTests",
"path" : "Tests/BSONSerializationTests",
"sources" : [
"BSONSerializationTests.swift",
"TestHelpers.swift"
],
"target_dependencies" : [
"BSONSerialization"
],
"type" : "test"
},
{
"c99name" : "BSONSerialization",
"module_type" : "SwiftTarget",
"name" : "BSONSerialization",
"path" : "Sources/BSONSerialization",
"product_dependencies" : [
"StreamReader"
],
"product_memberships" : [
"BSONSerialization"
],
"sources" : [
"BSONClasses.swift",
"BSONSerialization.swift",
"Errors.swift",
"OutputStream+Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.