Build Information
Successful build of GenericJSON with Swift 6.0 for Linux.
Swift 6 data race errors: 2
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/iwill/generic-json-swift.git
Reference: master
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/iwill/generic-json-swift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at b010e53 Update CHANGELOG.md
Cloned https://github.com/iwill/generic-json-swift.git
Revision (git rev-parse @):
b010e534371c78cfba8f9a517a36577ad1d71501
SUCCESS checkout https://github.com/iwill/generic-json-swift.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/iwill/generic-json-swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Compiling GenericJSON JSON.swift
[4/7] Compiling GenericJSON Merging.swift
[5/7] Compiling GenericJSON Querying.swift
[6/7] Compiling GenericJSON Initialization.swift
/host/spi-builder-workspace/GenericJSON/Initialization.swift:121:13: warning: let 'trueNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
119 | }
120 |
121 | private let trueNumber = NSNumber(value: true)
| `- warning: let 'trueNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
122 | private let falseNumber = NSNumber(value: false)
123 | private let trueObjCType = String(cString: trueNumber.objCType)
Foundation.NSNumber:1:12: note: class 'NSNumber' does not conform to the 'Sendable' protocol
1 | open class NSNumber : NSValue {
| `- note: class 'NSNumber' does not conform to the 'Sendable' protocol
2 | override open var hash: Int { get }
3 | override open func isEqual(_ value: Any?) -> Bool
/host/spi-builder-workspace/GenericJSON/Initialization.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | private struct InitializationError: Error {}
:
119 | }
120 |
121 | private let trueNumber = NSNumber(value: true)
| |- note: annotate 'trueNumber' 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
122 | private let falseNumber = NSNumber(value: false)
123 | private let trueObjCType = String(cString: trueNumber.objCType)
/host/spi-builder-workspace/GenericJSON/Initialization.swift:122:13: warning: let 'falseNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
120 |
121 | private let trueNumber = NSNumber(value: true)
122 | private let falseNumber = NSNumber(value: false)
| |- warning: let 'falseNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'falseNumber' 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
123 | private let trueObjCType = String(cString: trueNumber.objCType)
124 | private let falseObjCType = String(cString: falseNumber.objCType)
Foundation.NSNumber:1:12: note: class 'NSNumber' does not conform to the 'Sendable' protocol
1 | open class NSNumber : NSValue {
| `- note: class 'NSNumber' does not conform to the 'Sendable' protocol
2 | override open var hash: Int { get }
3 | override open func isEqual(_ value: Any?) -> Bool
[7/7] Emitting module GenericJSON
/host/spi-builder-workspace/GenericJSON/Initialization.swift:121:13: warning: let 'trueNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
119 | }
120 |
121 | private let trueNumber = NSNumber(value: true)
| `- warning: let 'trueNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
122 | private let falseNumber = NSNumber(value: false)
123 | private let trueObjCType = String(cString: trueNumber.objCType)
Foundation.NSNumber:1:12: note: class 'NSNumber' does not conform to the 'Sendable' protocol
1 | open class NSNumber : NSValue {
| `- note: class 'NSNumber' does not conform to the 'Sendable' protocol
2 | override open var hash: Int { get }
3 | override open func isEqual(_ value: Any?) -> Bool
/host/spi-builder-workspace/GenericJSON/Initialization.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | private struct InitializationError: Error {}
:
119 | }
120 |
121 | private let trueNumber = NSNumber(value: true)
| |- note: annotate 'trueNumber' 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
122 | private let falseNumber = NSNumber(value: false)
123 | private let trueObjCType = String(cString: trueNumber.objCType)
/host/spi-builder-workspace/GenericJSON/Initialization.swift:122:13: warning: let 'falseNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
120 |
121 | private let trueNumber = NSNumber(value: true)
122 | private let falseNumber = NSNumber(value: false)
| |- warning: let 'falseNumber' is not concurrency-safe because non-'Sendable' type 'NSNumber' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'falseNumber' 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
123 | private let trueObjCType = String(cString: trueNumber.objCType)
124 | private let falseObjCType = String(cString: falseNumber.objCType)
Foundation.NSNumber:1:12: note: class 'NSNumber' does not conform to the 'Sendable' protocol
1 | open class NSNumber : NSValue {
| `- note: class 'NSNumber' does not conform to the 'Sendable' protocol
2 | override open var hash: Int { get }
3 | override open func isEqual(_ value: Any?) -> Bool
Build complete! (11.77s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "GenericJSON",
"name" : "GenericJSON",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "GenericJSON",
"targets" : [
"GenericJSON"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "GenericJSONTests",
"module_type" : "SwiftTarget",
"name" : "GenericJSONTests",
"path" : "GenericJSONTests",
"sources" : [
"CodingTests.swift",
"EqualityTests.swift",
"InitializationTests.swift",
"MergingTests.swift",
"QueryingTests.swift"
],
"target_dependencies" : [
"GenericJSON"
],
"type" : "test"
},
{
"c99name" : "GenericJSON",
"module_type" : "SwiftTarget",
"name" : "GenericJSON",
"path" : "GenericJSON",
"product_memberships" : [
"GenericJSON"
],
"sources" : [
"Initialization.swift",
"JSON.swift",
"Merging.swift",
"Querying.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.