Build Information
Successful build of BSONSerialization, reference 2.2.0 (72abf2
), with Swift 6.1 for Linux on 28 Apr 2025 08:23:48 UTC.
Swift 6 data race errors: 2
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
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 /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
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
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/frizlab/bsonserialization.git
https://github.com/frizlab/bsonserialization.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"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" : "/host/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 ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/Frizlab/stream-reader.git
[1/1051] Fetching stream-reader
Fetched https://github.com/Frizlab/stream-reader.git from cache (0.34s)
Computing version for https://github.com/Frizlab/stream-reader.git
Computed https://github.com/Frizlab/stream-reader.git at 3.6.1 (1.19s)
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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/12] Compiling StreamReader URLSessionStreamTaskReader.swift
[5/12] Compiling StreamReader StreamReader.swift
[6/13] Emitting module StreamReader
[7/13] Compiling StreamReader InputStreamReader.swift
[8/13] Compiling StreamReader DataReader.swift
[9/13] Compiling StreamReader FileDescriptorReader.swift
[10/13] Compiling StreamReader FileHandleReader.swift
[11/13] Compiling StreamReader StreamReaderErrors.swift
[12/13] Compiling StreamReader GenericStreamReader.swift
[13/13] Compiling StreamReader Matching.swift
[15/19] Compiling BSONSerialization OutputStream+Utils.swift
[16/19] Compiling BSONSerialization Errors.swift
/host/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).
[17/19] Emitting module BSONSerialization
/host/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) {
/host/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/19] Compiling BSONSerialization BSONClasses.swift
[19/19] Compiling BSONSerialization BSONSerialization.swift
/host/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) {
Build complete! (20.10s)
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" : "/host/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"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.