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-1":/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/Frizlab/generic-json.git
Reference: main
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/generic-json
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at bfae33a Make the dynamic member subscript implementation public again
Cloned https://github.com/Frizlab/generic-json.git
Revision (git rev-parse @):
bfae33a5e8d31af37b098e46197b49e94d4c0d9a
SUCCESS checkout https://github.com/Frizlab/generic-json.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/Frizlab/generic-json.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/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/10] Compiling GenericJSON JSON.swift
[4/11] Compiling GenericJSON JSON+CustomDebugStringConvertible.swift
[5/11] Compiling GenericJSON JSON+Decoding.swift
[6/11] Compiling GenericJSON JSON+Init.swift
/host/spi-builder-workspace/GenericJSON/JSON+Init.swift:120:22: warning: static property '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
118 | }
119 |
120 | private static let trueNumber = NSNumber(value: true)
| `- warning: static property '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
121 | private static let falseNumber = NSNumber(value: false)
122 | private static 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/JSON+Init.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 |
:
118 | }
119 |
120 | private static 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
121 | private static let falseNumber = NSNumber(value: false)
122 | private static let trueObjCType = String(cString: trueNumber.objCType)
/host/spi-builder-workspace/GenericJSON/JSON+Init.swift:121:21: warning: static property '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
119 |
120 | private static let trueNumber = NSNumber(value: true)
121 | private static let falseNumber = NSNumber(value: false)
| |- warning: static property '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
122 | private static let trueObjCType = String(cString: trueNumber.objCType)
123 | private static 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/11] Compiling GenericJSON JSON+Merging.swift
[8/11] Compiling GenericJSON JSON+Querying.swift
[9/11] Emitting module GenericJSON
/host/spi-builder-workspace/GenericJSON/JSON+Init.swift:120:22: warning: static property '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
118 | }
119 |
120 | private static let trueNumber = NSNumber(value: true)
| `- warning: static property '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
121 | private static let falseNumber = NSNumber(value: false)
122 | private static 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/JSON+Init.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 |
:
118 | }
119 |
120 | private static 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
121 | private static let falseNumber = NSNumber(value: false)
122 | private static let trueObjCType = String(cString: trueNumber.objCType)
/host/spi-builder-workspace/GenericJSON/JSON+Init.swift:121:21: warning: static property '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
119 |
120 | private static let trueNumber = NSNumber(value: true)
121 | private static let falseNumber = NSNumber(value: false)
| |- warning: static property '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
122 | private static let trueObjCType = String(cString: trueNumber.objCType)
123 | private static 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
[10/11] Compiling GenericJSON JSON+Codable.swift
[11/11] Compiling GenericJSON JSONErrors.swift
Build complete! (9.01s)
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",
"DebugDescriptionTests.swift",
"DecodingTests.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" : [
"JSON+Codable.swift",
"JSON+CustomDebugStringConvertible.swift",
"JSON+Decoding.swift",
"JSON+Init.swift",
"JSON+Merging.swift",
"JSON+Querying.swift",
"JSON.swift",
"JSONErrors.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.