Build Information
Successful build of Bits, reference master (030794
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 12:08:59 UTC.
Swift 6 data race errors: 2
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 -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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vapor-community/bits.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vapor-community/bits
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 0307947 Merge pull request #21 from vapor-community/warnings
Cloned https://github.com/vapor-community/bits.git
Revision (git rev-parse @):
03079476b04139a8b744ad96f975176df5ae12bc
SUCCESS checkout https://github.com/vapor-community/bits.git at master
========================================
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": "bits",
"name": "Bits",
"url": "https://github.com/vapor-community/bits.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/bits",
"dependencies": [
]
}
]
}
Fetching https://github.com/vapor-community/bits.git
[1/358] Fetching bits
Fetched https://github.com/vapor-community/bits.git from cache (0.68s)
Creating working copy for https://github.com/vapor-community/bits.git
Working copy of https://github.com/vapor-community/bits.git resolved at master (0307947)
warning: '.resolve-product-dependencies': dependency 'bits' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/vapor-community/bits.git
{
"dependencies" : [
],
"manifest_display_name" : "Bits",
"name" : "Bits",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Bits",
"targets" : [
"Bits"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "BitsTests",
"module_type" : "SwiftTarget",
"name" : "BitsTests",
"path" : "Tests/BitsTests",
"sources" : [
"AlphabetTests.swift",
"ByteTests.swift",
"BytesTests.swift",
"ControlCharacterTests.swift",
"PatternMatchingTests.swift",
"UnsignedIntegerTests.swift"
],
"target_dependencies" : [
"Bits"
],
"type" : "test"
},
{
"c99name" : "Bits",
"module_type" : "SwiftTarget",
"name" : "Bits",
"path" : "Sources/Bits",
"product_memberships" : [
"Bits"
],
"sources" : [
"Aliases.swift",
"Base64Encoder.swift",
"Byte+Alphabet.swift",
"Byte+ControlCharacters.swift",
"Byte+Convenience.swift",
"Byte+PatternMatching.swift",
"Byte+Random.swift",
"Byte+UTF8Numbers.swift",
"ByteSequence+Conversions.swift",
"Bytes+Base64.swift",
"Bytes+Hex.swift",
"Bytes+Percent.swift",
"BytesConvertible.swift",
"Data+BytesConvertible.swift",
"HexEncoder.swift",
"Operators.swift",
"String+BytesConvertible.swift",
"UnsignedInteger+BytesConvertible.swift",
"UnsignedInteger+Shifting.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
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 -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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/21] Compiling Bits String+BytesConvertible.swift
[4/21] Compiling Bits UnsignedInteger+BytesConvertible.swift
[5/21] Compiling Bits HexEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bits/HexEncoder.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HexEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
3 | ///
4 | /// https://en.wikipedia.org/wiki/Hexadecimal
5 | public final class HexEncoder {
| `- note: class 'HexEncoder' does not conform to the 'Sendable' protocol
6 | /// Maps binary format to hex encoding
7 | static let encodingTable: [Byte: Byte] = [
:
24 |
25 | /// Static shared instance
26 | public static let shared = HexEncoder()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HexEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// When true, the encoder will discard
[6/21] Compiling Bits Operators.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bits/HexEncoder.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HexEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
3 | ///
4 | /// https://en.wikipedia.org/wiki/Hexadecimal
5 | public final class HexEncoder {
| `- note: class 'HexEncoder' does not conform to the 'Sendable' protocol
6 | /// Maps binary format to hex encoding
7 | static let encodingTable: [Byte: Byte] = [
:
24 |
25 | /// Static shared instance
26 | public static let shared = HexEncoder()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HexEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// When true, the encoder will discard
[7/22] Compiling Bits UnsignedInteger+Shifting.swift
[8/22] Compiling Bits Bytes+Hex.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bits/HexEncoder.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HexEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
3 | ///
4 | /// https://en.wikipedia.org/wiki/Hexadecimal
5 | public final class HexEncoder {
| `- note: class 'HexEncoder' does not conform to the 'Sendable' protocol
6 | /// Maps binary format to hex encoding
7 | static let encodingTable: [Byte: Byte] = [
:
24 |
25 | /// Static shared instance
26 | public static let shared = HexEncoder()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HexEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// When true, the encoder will discard
[9/22] Compiling Bits Bytes+Percent.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bits/HexEncoder.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HexEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
3 | ///
4 | /// https://en.wikipedia.org/wiki/Hexadecimal
5 | public final class HexEncoder {
| `- note: class 'HexEncoder' does not conform to the 'Sendable' protocol
6 | /// Maps binary format to hex encoding
7 | static let encodingTable: [Byte: Byte] = [
:
24 |
25 | /// Static shared instance
26 | public static let shared = HexEncoder()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HexEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// When true, the encoder will discard
[10/22] Compiling Bits Byte+Random.swift
[11/22] Compiling Bits Byte+UTF8Numbers.swift
[12/22] Compiling Bits Byte+Convenience.swift
[13/22] Compiling Bits Byte+PatternMatching.swift
[14/22] Compiling Bits ByteSequence+Conversions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bits/Base64Encoder.swift:8:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Base64Encoder' may have shared mutable state; this is an error in the Swift 6 language mode
3 | ///
4 | /// https://en.wikipedia.org/wiki/Base64
5 | public final class Base64Encoder {
| `- note: class 'Base64Encoder' does not conform to the 'Sendable' protocol
6 |
7 | /// Static shared instance
8 | public static let shared = Base64Encoder.regular
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Base64Encoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// Standard Base64Encoder
[15/22] Compiling Bits Bytes+Base64.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bits/Base64Encoder.swift:8:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Base64Encoder' may have shared mutable state; this is an error in the Swift 6 language mode
3 | ///
4 | /// https://en.wikipedia.org/wiki/Base64
5 | public final class Base64Encoder {
| `- note: class 'Base64Encoder' does not conform to the 'Sendable' protocol
6 |
7 | /// Static shared instance
8 | public static let shared = Base64Encoder.regular
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Base64Encoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// Standard Base64Encoder
[16/22] Compiling Bits Byte+Alphabet.swift
[17/22] Compiling Bits Byte+ControlCharacters.swift
[18/22] Compiling Bits Aliases.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bits/Base64Encoder.swift:8:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Base64Encoder' may have shared mutable state; this is an error in the Swift 6 language mode
3 | ///
4 | /// https://en.wikipedia.org/wiki/Base64
5 | public final class Base64Encoder {
| `- note: class 'Base64Encoder' does not conform to the 'Sendable' protocol
6 |
7 | /// Static shared instance
8 | public static let shared = Base64Encoder.regular
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Base64Encoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// Standard Base64Encoder
[19/22] Compiling Bits Base64Encoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bits/Base64Encoder.swift:8:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Base64Encoder' may have shared mutable state; this is an error in the Swift 6 language mode
3 | ///
4 | /// https://en.wikipedia.org/wiki/Base64
5 | public final class Base64Encoder {
| `- note: class 'Base64Encoder' does not conform to the 'Sendable' protocol
6 |
7 | /// Static shared instance
8 | public static let shared = Base64Encoder.regular
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Base64Encoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// Standard Base64Encoder
[20/22] Compiling Bits BytesConvertible.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bits/Data+BytesConvertible.swift:6:22: warning: initialization of 'UnsafeMutableBufferPointer<Byte>' (aka 'UnsafeMutableBufferPointer<UInt8>') results in a dangling buffer pointer
4 | public func makeBytes() -> Bytes {
5 | var array = Bytes(repeating: 0, count: count)
6 | let buffer = UnsafeMutableBufferPointer(start: &array, count: count)
| | |- note: implicit argument conversion from 'Bytes' (aka 'Array<UInt8>') to 'UnsafeMutablePointer<Byte>?' (aka 'Optional<UnsafeMutablePointer<UInt8>>') produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafeMutableBufferPointer<Byte>' (aka 'UnsafeMutableBufferPointer<UInt8>') results in a dangling buffer pointer
7 | _ = copyBytes(to: buffer)
8 | return array
[21/22] Compiling Bits Data+BytesConvertible.swift
/Users/admin/builder/spi-builder-workspace/Sources/Bits/Data+BytesConvertible.swift:6:22: warning: initialization of 'UnsafeMutableBufferPointer<Byte>' (aka 'UnsafeMutableBufferPointer<UInt8>') results in a dangling buffer pointer
4 | public func makeBytes() -> Bytes {
5 | var array = Bytes(repeating: 0, count: count)
6 | let buffer = UnsafeMutableBufferPointer(start: &array, count: count)
| | |- note: implicit argument conversion from 'Bytes' (aka 'Array<UInt8>') to 'UnsafeMutablePointer<Byte>?' (aka 'Optional<UnsafeMutablePointer<UInt8>>') produces a pointer valid only for the duration of the call to 'init(start:count:)'
| | `- note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafeMutableBufferPointer<Byte>' (aka 'UnsafeMutableBufferPointer<UInt8>') results in a dangling buffer pointer
7 | _ = copyBytes(to: buffer)
8 | return array
[22/22] Emitting module Bits
/Users/admin/builder/spi-builder-workspace/Sources/Bits/Base64Encoder.swift:8:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Base64Encoder' may have shared mutable state; this is an error in the Swift 6 language mode
3 | ///
4 | /// https://en.wikipedia.org/wiki/Base64
5 | public final class Base64Encoder {
| `- note: class 'Base64Encoder' does not conform to the 'Sendable' protocol
6 |
7 | /// Static shared instance
8 | public static let shared = Base64Encoder.regular
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Base64Encoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// Standard Base64Encoder
/Users/admin/builder/spi-builder-workspace/Sources/Bits/HexEncoder.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HexEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
3 | ///
4 | /// https://en.wikipedia.org/wiki/Hexadecimal
5 | public final class HexEncoder {
| `- note: class 'HexEncoder' does not conform to the 'Sendable' protocol
6 | /// Maps binary format to hex encoding
7 | static let encodingTable: [Byte: Byte] = [
:
24 |
25 | /// Static shared instance
26 | public static let shared = HexEncoder()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HexEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// When true, the encoder will discard
Build complete! (10.88s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Bits",
"name" : "Bits",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Bits",
"targets" : [
"Bits"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "BitsTests",
"module_type" : "SwiftTarget",
"name" : "BitsTests",
"path" : "Tests/BitsTests",
"sources" : [
"AlphabetTests.swift",
"ByteTests.swift",
"BytesTests.swift",
"ControlCharacterTests.swift",
"PatternMatchingTests.swift",
"UnsignedIntegerTests.swift"
],
"target_dependencies" : [
"Bits"
],
"type" : "test"
},
{
"c99name" : "Bits",
"module_type" : "SwiftTarget",
"name" : "Bits",
"path" : "Sources/Bits",
"product_memberships" : [
"Bits"
],
"sources" : [
"Aliases.swift",
"Base64Encoder.swift",
"Byte+Alphabet.swift",
"Byte+ControlCharacters.swift",
"Byte+Convenience.swift",
"Byte+PatternMatching.swift",
"Byte+Random.swift",
"Byte+UTF8Numbers.swift",
"ByteSequence+Conversions.swift",
"Bytes+Base64.swift",
"Bytes+Hex.swift",
"Bytes+Percent.swift",
"BytesConvertible.swift",
"Data+BytesConvertible.swift",
"HexEncoder.swift",
"Operators.swift",
"String+BytesConvertible.swift",
"UnsignedInteger+BytesConvertible.swift",
"UnsignedInteger+Shifting.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.