Build Information
Successful build of SGLImage with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftGL/Image.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SwiftGL/Image
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 7aa96e7 Renamed podspec.
Cloned https://github.com/SwiftGL/Image.git
Revision (git rev-parse @):
7aa96e7548baa8d06619b97a1906012193f6eff8
SUCCESS checkout https://github.com/SwiftGL/Image.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/SwiftGL/Image.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/9] Compiling SGLImage Inflate.swift
[4/9] Compiling SGLImage ImageLoader.swift
/Users/admin/builder/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:50:23: warning: static property 'decoders' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
48 | // Default list of decoders. API user may change this.
49 | // Put imprecise and sloppy detections at the end.
50 | public static var decoders:[SGLImageDecoder.Type] = [
| |- warning: static property 'decoders' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'decoders' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'decoders' 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
51 | SGLImageDecoderPNG.self,
52 | SGLImageDecoderBMP.self,
/Users/admin/builder/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:57:23: warning: static property 'gamma' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | // Gamma for Float conversion. Float is linear color space.
57 | public static var gamma:Float = 2.2
| |- warning: static property 'gamma' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gamma' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gamma' 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
58 | public var gamma:Float {
59 | get { return fGamma }
/Users/admin/builder/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:66:23: warning: static property 'scale' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
64 |
65 | // Scale for Floats. Default is 0.0...1.0
66 | public static var scale:Float = 1.0
| |- warning: static property 'scale' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'scale' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'scale' 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
67 | public var scale:Float {
68 | get { return fScale }
/Users/admin/builder/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:75:23: warning: static property 'flipVertical' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | // Set true to load images with 0,0 origin as bottom left.
75 | public static var flipVertical = false
| |- warning: static property 'flipVertical' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'flipVertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'flipVertical' 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
76 | public var flipVertical:Bool = SGLImageLoader.flipVertical
77 |
[5/9] Compiling SGLImage ImageBMP.swift
[6/9] Compiling SGLImage ImageGIF.swift
[7/9] Compiling SGLImage Image.swift
/Users/admin/builder/spi-builder-workspace/Sources/SGLImage/Image.swift:119:29: warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
117 |
118 | deinit {
119 | buffer.baseAddress!.deallocate(capacity: buffer.count)
| `- warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
120 | }
121 |
[8/9] Compiling SGLImage ImagePNG.swift
[9/9] Emitting module SGLImage
/Users/admin/builder/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:50:23: warning: static property 'decoders' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
48 | // Default list of decoders. API user may change this.
49 | // Put imprecise and sloppy detections at the end.
50 | public static var decoders:[SGLImageDecoder.Type] = [
| |- warning: static property 'decoders' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'decoders' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'decoders' 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
51 | SGLImageDecoderPNG.self,
52 | SGLImageDecoderBMP.self,
/Users/admin/builder/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:57:23: warning: static property 'gamma' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
55 |
56 | // Gamma for Float conversion. Float is linear color space.
57 | public static var gamma:Float = 2.2
| |- warning: static property 'gamma' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'gamma' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'gamma' 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
58 | public var gamma:Float {
59 | get { return fGamma }
/Users/admin/builder/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:66:23: warning: static property 'scale' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
64 |
65 | // Scale for Floats. Default is 0.0...1.0
66 | public static var scale:Float = 1.0
| |- warning: static property 'scale' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'scale' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'scale' 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
67 | public var scale:Float {
68 | get { return fScale }
/Users/admin/builder/spi-builder-workspace/Sources/SGLImage/ImageLoader.swift:75:23: warning: static property 'flipVertical' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | // Set true to load images with 0,0 origin as bottom left.
75 | public static var flipVertical = false
| |- warning: static property 'flipVertical' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'flipVertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'flipVertical' 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
76 | public var flipVertical:Bool = SGLImageLoader.flipVertical
77 |
Build complete! (17.05s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SGLImage",
"name" : "SGLImage",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SGLImage",
"targets" : [
"SGLImage"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SGLImageTests",
"module_type" : "SwiftTarget",
"name" : "SGLImageTests",
"path" : "Tests/SGLImageTests",
"sources" : [
"SwiftGLresImage.swift"
],
"target_dependencies" : [
"SGLImage"
],
"type" : "test"
},
{
"c99name" : "SGLImage",
"module_type" : "SwiftTarget",
"name" : "SGLImage",
"path" : "Sources/SGLImage",
"product_memberships" : [
"SGLImage"
],
"sources" : [
"Image.swift",
"ImageBMP.swift",
"ImageGIF.swift",
"ImageLoader.swift",
"ImagePNG.swift",
"Inflate.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.