Build Information
Successful build of SwiftDithering, reference main (16ec27
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 14:20:12 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 -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/lugalu/SwiftDithering.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/lugalu/SwiftDithering
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 16ec27c Update README.md
Cloned https://github.com/lugalu/SwiftDithering.git
Revision (git rev-parse @):
16ec27c59b5702ee6017468790c331b001e1c850
SUCCESS checkout https://github.com/lugalu/SwiftDithering.git at main
========================================
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": "swiftdithering",
"name": "SwiftDithering",
"url": "https://github.com/lugalu/SwiftDithering.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftDithering",
"dependencies": [
]
}
]
}
Fetching https://github.com/lugalu/SwiftDithering.git
[9/814] Fetching swiftdithering
Fetched https://github.com/lugalu/SwiftDithering.git from cache (2.12s)
Creating working copy for https://github.com/lugalu/SwiftDithering.git
Working copy of https://github.com/lugalu/SwiftDithering.git resolved at main (16ec27c)
warning: '.resolve-product-dependencies': dependency 'swiftdithering' 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/lugalu/SwiftDithering.git
{
"dependencies" : [
],
"manifest_display_name" : "SwiftDithering",
"name" : "SwiftDithering",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "SwiftDithering",
"targets" : [
"SwiftDithering"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftDitheringTests",
"module_type" : "SwiftTarget",
"name" : "SwiftDitheringTests",
"path" : "Tests/SwiftDitheringTests",
"sources" : [
"DownsamplersTestsCases.swift",
"GeneralMathTests.swift",
"QuantizationTestCases.swift"
],
"target_dependencies" : [
"SwiftDithering"
],
"type" : "test"
},
{
"c99name" : "SwiftDithering",
"module_type" : "SwiftTarget",
"name" : "SwiftDithering",
"path" : "Sources/SwiftDithering",
"product_memberships" : [
"SwiftDithering"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Resources/balancedCenteredPoint6x6.png",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Resources/bayer8x8.png",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Resources/centralWhitePoint6x6.png",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Resources/clusteredDots6x6.png",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Resources/diagonalOrdered8x8.png",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"CIFilter/BayerMatrix.swift",
"CIFilter/Ordered.swift",
"CIFilter/OrderedKernel.swift",
"Commons/ColorSpace.swift",
"Commons/Creators.swift",
"Commons/Downsamplers.swift",
"Commons/GeneralMath.swift",
"Commons/ImageErrors.swift",
"Commons/ImageLoopers.swift",
"Commons/QuantizationMath.swift",
"Dithers/Bayer.swift",
"Dithers/ErrorDifusion.swift",
"Dithers/FloydSteinberg.swift",
"Dithers/OrderedDithering.swift",
"Dithers/Stucki.swift",
"Dithers/Thresholding.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7.1"
}
warning: 'spi-builder-workspace': Invalid Resource 'Resources/bayer8x8.png': File not found.
warning: 'spi-builder-workspace': Invalid Resource 'Resources/balancedCenteredPoint6x6.png': File not found.
warning: 'spi-builder-workspace': Invalid Resource 'Resources/centralWhitePoint6x6.png': File not found.
warning: 'spi-builder-workspace': Invalid Resource 'Resources/clusteredDots6x6.png': File not found.
warning: 'spi-builder-workspace': Invalid Resource 'Resources/diagonalOrdered8x8.png': File not found.
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/7] Write sources
[1/7] Copying centralWhitePoint6x6.png
[1/7] Copying balancedCenteredPoint6x6.png
[1/7] Copying bayer8x8.png
[1/7] Copying clusteredDots6x6.png
[1/7] Copying diagonalOrdered8x8.png
[6/7] Write swift-version--7754E27361AE5C74.txt
[8/24] Compiling SwiftDithering FloydSteinberg.swift
[9/24] Compiling SwiftDithering OrderedDithering.swift
[10/24] Compiling SwiftDithering Bayer.swift
[11/24] Compiling SwiftDithering ErrorDifusion.swift
[12/25] Compiling SwiftDithering Creators.swift
[13/25] Compiling SwiftDithering Downsamplers.swift
[14/25] Compiling SwiftDithering GeneralMath.swift
[15/25] Compiling SwiftDithering ImageErrors.swift
[16/25] Compiling SwiftDithering resource_bundle_accessor.swift
[17/25] Emitting module SwiftDithering
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/CIFilter/Ordered.swift:80:24: warning: static property 'kernel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
78 | extension OrderedDithering {
79 |
80 | private static var kernel: CIKernel = {
| |- warning: static property 'kernel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kernel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'kernel' 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
81 | return CIKernel(source: bayerMatrixCalculation + orderedKernel)!
82 | }()
[18/25] Compiling SwiftDithering BayerMatrix.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/CIFilter/Ordered.swift:80:24: warning: static property 'kernel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
78 | extension OrderedDithering {
79 |
80 | private static var kernel: CIKernel = {
| |- warning: static property 'kernel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kernel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'kernel' 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
81 | return CIKernel(source: bayerMatrixCalculation + orderedKernel)!
82 | }()
[19/25] Compiling SwiftDithering Ordered.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/CIFilter/Ordered.swift:80:24: warning: static property 'kernel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
78 | extension OrderedDithering {
79 |
80 | private static var kernel: CIKernel = {
| |- warning: static property 'kernel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kernel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'kernel' 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
81 | return CIKernel(source: bayerMatrixCalculation + orderedKernel)!
82 | }()
[20/25] Compiling SwiftDithering OrderedKernel.swift
[21/25] Compiling SwiftDithering ColorSpace.swift
[22/25] Compiling SwiftDithering Stucki.swift
[23/25] Compiling SwiftDithering Thresholding.swift
[24/25] Compiling SwiftDithering ImageLoopers.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Commons/ImageLoopers.swift:37:13: warning: capture of 'content' with non-sendable type '(inout UnsafeMutablePointer<UInt8>, Int, Int) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | DispatchQueue.concurrentPerform(iterations: height) { y in
36 | DispatchQueue.concurrentPerform(iterations: width) { x in
37 | content(&imageData, x, y)
| |- warning: capture of 'content' with non-sendable type '(inout UnsafeMutablePointer<UInt8>, Int, Int) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Commons/ImageLoopers.swift:37:22: warning: capture of 'imageData' with non-sendable type 'UnsafeMutablePointer<UInt8>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | DispatchQueue.concurrentPerform(iterations: height) { y in
36 | DispatchQueue.concurrentPerform(iterations: width) { x in
37 | content(&imageData, x, y)
| `- warning: capture of 'imageData' with non-sendable type 'UnsafeMutablePointer<UInt8>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
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)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Commons/ImageLoopers.swift:37:13: warning: capture of 'content' with non-sendable type '(inout UnsafeMutablePointer<UInt8>, Int, Int) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | DispatchQueue.concurrentPerform(iterations: height) { y in
36 | DispatchQueue.concurrentPerform(iterations: width) { x in
37 | content(&imageData, x, y)
| |- warning: capture of 'content' with non-sendable type '(inout UnsafeMutablePointer<UInt8>, Int, Int) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Commons/ImageLoopers.swift:37:22: warning: capture of 'imageData' with non-sendable type 'UnsafeMutablePointer<UInt8>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | DispatchQueue.concurrentPerform(iterations: height) { y in
36 | DispatchQueue.concurrentPerform(iterations: width) { x in
37 | content(&imageData, x, y)
| `- warning: capture of 'imageData' with non-sendable type 'UnsafeMutablePointer<UInt8>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
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)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Commons/ImageLoopers.swift:37:22: warning: mutable capture of 'inout' parameter 'imageData' is not allowed in concurrently-executing code; this is an error in the Swift 6 language mode
35 | DispatchQueue.concurrentPerform(iterations: height) { y in
36 | DispatchQueue.concurrentPerform(iterations: width) { x in
37 | content(&imageData, x, y)
| `- warning: mutable capture of 'inout' parameter 'imageData' is not allowed in concurrently-executing code; this is an error in the Swift 6 language mode
38 | }
39 | }
[25/25] Compiling SwiftDithering QuantizationMath.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Commons/ImageLoopers.swift:37:13: warning: capture of 'content' with non-sendable type '(inout UnsafeMutablePointer<UInt8>, Int, Int) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | DispatchQueue.concurrentPerform(iterations: height) { y in
36 | DispatchQueue.concurrentPerform(iterations: width) { x in
37 | content(&imageData, x, y)
| |- warning: capture of 'content' with non-sendable type '(inout UnsafeMutablePointer<UInt8>, Int, Int) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Commons/ImageLoopers.swift:37:22: warning: capture of 'imageData' with non-sendable type 'UnsafeMutablePointer<UInt8>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | DispatchQueue.concurrentPerform(iterations: height) { y in
36 | DispatchQueue.concurrentPerform(iterations: width) { x in
37 | content(&imageData, x, y)
| `- warning: capture of 'imageData' with non-sendable type 'UnsafeMutablePointer<UInt8>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
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)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Commons/ImageLoopers.swift:37:13: warning: capture of 'content' with non-sendable type '(inout UnsafeMutablePointer<UInt8>, Int, Int) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | DispatchQueue.concurrentPerform(iterations: height) { y in
36 | DispatchQueue.concurrentPerform(iterations: width) { x in
37 | content(&imageData, x, y)
| |- warning: capture of 'content' with non-sendable type '(inout UnsafeMutablePointer<UInt8>, Int, Int) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Commons/ImageLoopers.swift:37:22: warning: capture of 'imageData' with non-sendable type 'UnsafeMutablePointer<UInt8>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | DispatchQueue.concurrentPerform(iterations: height) { y in
36 | DispatchQueue.concurrentPerform(iterations: width) { x in
37 | content(&imageData, x, y)
| `- warning: capture of 'imageData' with non-sendable type 'UnsafeMutablePointer<UInt8>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
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)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Commons/ImageLoopers.swift:37:22: warning: mutable capture of 'inout' parameter 'imageData' is not allowed in concurrently-executing code; this is an error in the Swift 6 language mode
35 | DispatchQueue.concurrentPerform(iterations: height) { y in
36 | DispatchQueue.concurrentPerform(iterations: width) { x in
37 | content(&imageData, x, y)
| `- warning: mutable capture of 'inout' parameter 'imageData' is not allowed in concurrently-executing code; this is an error in the Swift 6 language mode
38 | }
39 | }
Build complete! (13.96s)
warning: 'spi-builder-workspace': Invalid Resource 'Resources/bayer8x8.png': File not found.
warning: 'spi-builder-workspace': Invalid Resource 'Resources/balancedCenteredPoint6x6.png': File not found.
warning: 'spi-builder-workspace': Invalid Resource 'Resources/centralWhitePoint6x6.png': File not found.
warning: 'spi-builder-workspace': Invalid Resource 'Resources/clusteredDots6x6.png': File not found.
warning: 'spi-builder-workspace': Invalid Resource 'Resources/diagonalOrdered8x8.png': File not found.
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftDithering",
"name" : "SwiftDithering",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "SwiftDithering",
"targets" : [
"SwiftDithering"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftDitheringTests",
"module_type" : "SwiftTarget",
"name" : "SwiftDitheringTests",
"path" : "Tests/SwiftDitheringTests",
"sources" : [
"DownsamplersTestsCases.swift",
"GeneralMathTests.swift",
"QuantizationTestCases.swift"
],
"target_dependencies" : [
"SwiftDithering"
],
"type" : "test"
},
{
"c99name" : "SwiftDithering",
"module_type" : "SwiftTarget",
"name" : "SwiftDithering",
"path" : "Sources/SwiftDithering",
"product_memberships" : [
"SwiftDithering"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Resources/balancedCenteredPoint6x6.png",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Resources/bayer8x8.png",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Resources/centralWhitePoint6x6.png",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Resources/clusteredDots6x6.png",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftDithering/Resources/diagonalOrdered8x8.png",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"CIFilter/BayerMatrix.swift",
"CIFilter/Ordered.swift",
"CIFilter/OrderedKernel.swift",
"Commons/ColorSpace.swift",
"Commons/Creators.swift",
"Commons/Downsamplers.swift",
"Commons/GeneralMath.swift",
"Commons/ImageErrors.swift",
"Commons/ImageLoopers.swift",
"Commons/QuantizationMath.swift",
"Dithers/Bayer.swift",
"Dithers/ErrorDifusion.swift",
"Dithers/FloydSteinberg.swift",
"Dithers/OrderedDithering.swift",
"Dithers/Stucki.swift",
"Dithers/Thresholding.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7.1"
}
warning: 'spi-builder-workspace': Invalid Resource 'Resources/bayer8x8.png': File not found.
warning: 'spi-builder-workspace': Invalid Resource 'Resources/balancedCenteredPoint6x6.png': File not found.
warning: 'spi-builder-workspace': Invalid Resource 'Resources/centralWhitePoint6x6.png': File not found.
warning: 'spi-builder-workspace': Invalid Resource 'Resources/clusteredDots6x6.png': File not found.
warning: 'spi-builder-workspace': Invalid Resource 'Resources/diagonalOrdered8x8.png': File not found.
Done.