Build Information
Successful build of gir2swift, reference main (d00424
), with Swift 6.0 for Linux on 11 Mar 2025 08:51:02 UTC.
Swift 6 data race errors: 179
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
169 | static let mutablePointerTypes: Set<GIRType> = [mutableRawPointerType, gpointerType, optionalGPointerType, forceUnwrappedGPointerType]
170 | static let pointerTypes = constPointerTypes ∪ mutablePointerTypes ∪ opaquePointerType
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:169:16: warning: static property 'mutablePointerTypes' is not concurrency-safe because non-'Sendable' type 'Set<GIRType>' may have shared mutable state; this is an error in the Swift 6 language mode
167 | static let rawPointerTypes: Set<GIRType> = [rawPointerType, mutableRawPointerType]
168 | static let constPointerTypes: Set<GIRType> = [rawPointerType, gconstpointerType, optionalGConstPointerType, forceUnwrappedGConstPointerType]
169 | static let mutablePointerTypes: Set<GIRType> = [mutableRawPointerType, gpointerType, optionalGPointerType, forceUnwrappedGPointerType]
| |- warning: static property 'mutablePointerTypes' is not concurrency-safe because non-'Sendable' type 'Set<GIRType>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mutablePointerTypes' 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
170 | static let pointerTypes = constPointerTypes ∪ mutablePointerTypes ∪ opaquePointerType
171 | static let rawPointerRef = TypeReference(type: rawPointerType)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:170:16: warning: static property 'pointerTypes' is not concurrency-safe because non-'Sendable' type 'Set<GIRType>' may have shared mutable state; this is an error in the Swift 6 language mode
168 | static let constPointerTypes: Set<GIRType> = [rawPointerType, gconstpointerType, optionalGConstPointerType, forceUnwrappedGConstPointerType]
169 | static let mutablePointerTypes: Set<GIRType> = [mutableRawPointerType, gpointerType, optionalGPointerType, forceUnwrappedGPointerType]
170 | static let pointerTypes = constPointerTypes ∪ mutablePointerTypes ∪ opaquePointerType
| |- warning: static property 'pointerTypes' is not concurrency-safe because non-'Sendable' type 'Set<GIRType>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pointerTypes' 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
171 | static let rawPointerRef = TypeReference(type: rawPointerType)
172 | static let mutableRawPointerRef = TypeReference(type: mutableRawPointerType)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:171:16: warning: static property 'rawPointerRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
169 | static let mutablePointerTypes: Set<GIRType> = [mutableRawPointerType, gpointerType, optionalGPointerType, forceUnwrappedGPointerType]
170 | static let pointerTypes = constPointerTypes ∪ mutablePointerTypes ∪ opaquePointerType
171 | static let rawPointerRef = TypeReference(type: rawPointerType)
| |- warning: static property 'rawPointerRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawPointerRef' 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
172 | static let mutableRawPointerRef = TypeReference(type: mutableRawPointerType)
173 | static let gpointerRef = TypeReference(type: gpointerType)
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:172:16: warning: static property 'mutableRawPointerRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
170 | static let pointerTypes = constPointerTypes ∪ mutablePointerTypes ∪ opaquePointerType
171 | static let rawPointerRef = TypeReference(type: rawPointerType)
172 | static let mutableRawPointerRef = TypeReference(type: mutableRawPointerType)
| |- warning: static property 'mutableRawPointerRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mutableRawPointerRef' 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
173 | static let gpointerRef = TypeReference(type: gpointerType)
174 | static let gpointerConstPointerRef = TypeReference(type: gpointerConstPointerType)
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:175:16: warning: static property 'optionalGPointerRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
173 | static let gpointerRef = TypeReference(type: gpointerType)
174 | static let gpointerConstPointerRef = TypeReference(type: gpointerConstPointerType)
175 | static let optionalGPointerRef = TypeReference(type: optionalGPointerType)
| |- warning: static property 'optionalGPointerRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'optionalGPointerRef' 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
176 | static let forceUnwrappedGPointerRef = TypeReference(type: forceUnwrappedGPointerType)
177 | static let gconstpointerRef = TypeReference(type: gconstpointerType)
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:178:16: warning: static property 'optionalGConstPointerRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
176 | static let forceUnwrappedGPointerRef = TypeReference(type: forceUnwrappedGPointerType)
177 | static let gconstpointerRef = TypeReference(type: gconstpointerType)
178 | static let optionalGConstPointerRef = TypeReference(type: optionalGConstPointerType)
| |- warning: static property 'optionalGConstPointerRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'optionalGConstPointerRef' 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
179 | static let forceUnwrappedGConstPointerRef = TypeReference(type: forceUnwrappedGConstPointerType)
180 | static let gpointerPointerRef = TypeReference.pointer(to: gpointerType, pointerIsConst: true)
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:193:16: warning: static property 'errorProtocol' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
191 | static let gerror = "GError"
192 | static let errorT = "GLibError"
193 | static let errorProtocol = GIRType(error, ctype: "")
| |- warning: static property 'errorProtocol' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'errorProtocol' 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
194 | static let errorReference = TypeReference(type: errorProtocol)
195 | static let gErrorStruct = GIRType(gerror, ctype: gerror, superType: errorReference)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:194:16: warning: static property 'errorReference' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
192 | static let errorT = "GLibError"
193 | static let errorProtocol = GIRType(error, ctype: "")
194 | static let errorReference = TypeReference(type: errorProtocol)
| |- warning: static property 'errorReference' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'errorReference' 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
195 | static let gErrorStruct = GIRType(gerror, ctype: gerror, superType: errorReference)
196 | static let errorPointer = TypeReference.pointer(to: gErrorStruct)
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:195:16: warning: static property 'gErrorStruct' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
193 | static let errorProtocol = GIRType(error, ctype: "")
194 | static let errorReference = TypeReference(type: errorProtocol)
195 | static let gErrorStruct = GIRType(gerror, ctype: gerror, superType: errorReference)
| |- warning: static property 'gErrorStruct' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gErrorStruct' 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
196 | static let errorPointer = TypeReference.pointer(to: gErrorStruct)
197 | static let constErrorPointer = TypeReference.pointer(to: gErrorStruct, isConst: true)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:196:16: warning: static property 'errorPointer' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
194 | static let errorReference = TypeReference(type: errorProtocol)
195 | static let gErrorStruct = GIRType(gerror, ctype: gerror, superType: errorReference)
196 | static let errorPointer = TypeReference.pointer(to: gErrorStruct)
| |- warning: static property 'errorPointer' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'errorPointer' 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
197 | static let constErrorPointer = TypeReference.pointer(to: gErrorStruct, isConst: true)
198 | static let errorType = GIRType(aliasOf: errorPointer, name: error, swiftName: errorT)
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:197:16: warning: static property 'constErrorPointer' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
195 | static let gErrorStruct = GIRType(gerror, ctype: gerror, superType: errorReference)
196 | static let errorPointer = TypeReference.pointer(to: gErrorStruct)
197 | static let constErrorPointer = TypeReference.pointer(to: gErrorStruct, isConst: true)
| |- warning: static property 'constErrorPointer' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'constErrorPointer' 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
198 | static let errorType = GIRType(aliasOf: errorPointer, name: error, swiftName: errorT)
199 | static let gerrorType = GIRType(aliasOf: errorPointer)
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:198:16: warning: static property 'errorType' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
196 | static let errorPointer = TypeReference.pointer(to: gErrorStruct)
197 | static let constErrorPointer = TypeReference.pointer(to: gErrorStruct, isConst: true)
198 | static let errorType = GIRType(aliasOf: errorPointer, name: error, swiftName: errorT)
| |- warning: static property 'errorType' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'errorType' 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
199 | static let gerrorType = GIRType(aliasOf: errorPointer)
200 |
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:199:16: warning: static property 'gerrorType' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
197 | static let constErrorPointer = TypeReference.pointer(to: gErrorStruct, isConst: true)
198 | static let errorType = GIRType(aliasOf: errorPointer, name: error, swiftName: errorT)
199 | static let gerrorType = GIRType(aliasOf: errorPointer)
| |- warning: static property 'gerrorType' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gerrorType' 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
200 |
201 | static var errorTypes: Set<GIRType> = {
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:201:16: warning: static property 'errorTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
199 | static let gerrorType = GIRType(aliasOf: errorPointer)
200 |
201 | static var errorTypes: Set<GIRType> = {
| |- warning: static property 'errorTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'errorTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'errorTypes' 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
202 | let types: Set<GIRType> = [errorType, gerrorType]
203 | return types
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:207:16: warning: static property 'aliases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
205 |
206 | /// Common aliases used
207 | static var aliases: Set<GIRType> = {[
| |- warning: static property 'aliases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'aliases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'aliases' 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
208 | GIRType(aliasOf: guintType, ctype: "unsigned int"),
209 | GIRType(aliasOf: gulongType, ctype: "unsigned long"),
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:215:16: warning: static property 'enums' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
213 |
214 | /// Known enums
215 | static var enums: Set<GIRType> = []
| |- warning: static property 'enums' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enums' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'enums' 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
216 |
217 | /// Known bitfields
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:218:16: warning: static property 'bitfields' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
216 |
217 | /// Known bitfields
218 | static var bitfields: Set<GIRType> = []
| |- warning: static property 'bitfields' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bitfields' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'bitfields' 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
219 |
220 | /// Swift `OptionSet` equivalent to the given C `enum`
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:221:16: warning: static property 'optionSets' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
219 |
220 | /// Swift `OptionSet` equivalent to the given C `enum`
221 | static var optionSets: [ GIRType : TypeReference ] = [:]
| |- warning: static property 'optionSets' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'optionSets' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'optionSets' 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
222 |
223 | /// Known records
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:224:16: warning: static property 'recordTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
222 |
223 | /// Known records
224 | static var recordTypes: Set<GIRType> = []
| |- warning: static property 'recordTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'recordTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'recordTypes' 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
225 |
226 | /// `Ref` conversion for a given record
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:227:16: warning: static property 'recordRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
225 |
226 | /// `Ref` conversion for a given record
227 | static var recordRefs: [ GIRType : TypeReference ] = [:]
| |- warning: static property 'recordRefs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'recordRefs' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'recordRefs' 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
228 |
229 | /// Class conversion for a given ref
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:230:16: warning: static property 'refRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
228 |
229 | /// Class conversion for a given ref
230 | static var refRecords: [ GIRType : TypeReference ] = [:]
| |- warning: static property 'refRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'refRecords' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'refRecords' 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
231 |
232 | /// `Protocol` conversion for a given record
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:233:16: warning: static property 'protocols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
231 |
232 | /// `Protocol` conversion for a given record
233 | static var protocols: [ GIRType : TypeReference ] = [:]
| |- warning: static property 'protocols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'protocols' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'protocols' 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
234 |
235 | /// Interface implementation table
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:236:16: warning: static property 'implements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
234 |
235 | /// Interface implementation table
236 | static var implements: [ GIRType : Set<TypeReference> ] = [:]
| |- warning: static property 'implements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'implements' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'implements' 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
237 |
238 | /// All fundamental types prior to GIR parsing
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:239:16: warning: static property 'fundamentalTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
237 |
238 | /// All fundamental types prior to GIR parsing
239 | static var fundamentalTypes: Set<GIRType> = {
| |- warning: static property 'fundamentalTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fundamentalTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fundamentalTypes' 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
240 | return numericTypes ∪ boolType ∪ voidType ∪ noneType ∪ stringType ∪ aliases ∪ enums ∪ bitfields
241 | }()
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:244:16: warning: static property 'numericConversions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
242 |
243 | /// All numeric conversions
244 | static var numericConversions = { numericTypes.flatMap { s in numericTypes.map { t in
| |- warning: static property 'numericConversions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'numericConversions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'numericConversions' 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
245 | s == t ? TypeConversion(source: s, target: t) : CastConversion(source: s, target: t)
246 | }}}()
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:249:16: warning: static property 'knownTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
247 |
248 | /// All known types so far
249 | static var knownTypes: Set<GIRType> = fundamentalTypes
| |- warning: static property 'knownTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'knownTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'knownTypes' 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
250 |
251 | /// Mapping from names to known types
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:252:16: warning: static property 'namedTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
250 |
251 | /// Mapping from names to known types
252 | static var namedTypes: [String : Set<GIRType>] = {
| |- warning: static property 'namedTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namedTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namedTypes' 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
253 | var namedTypes = [String : Set<GIRType>]()
254 | knownTypes.forEach { addKnownType($0, to: &namedTypes) }
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:69:23: warning: static property 'excludeList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | /// Names of excluded identifiers.
69 | public static var excludeList: Set<String> = []
| |- warning: static property 'excludeList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'excludeList' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'excludeList' 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
70 |
71 | /// names of constants to be taken verbatim
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:72:23: warning: static property 'verbatimConstants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | /// names of constants to be taken verbatim
72 | public static var verbatimConstants: Set<String> = []
| |- warning: static property 'verbatimConstants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'verbatimConstants' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'verbatimConstants' 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
73 |
74 | /// names of override initialisers
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:75:23: warning: static property 'overrides' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | /// names of override initialisers
75 | public static var overrides: Set<String> = []
| |- warning: static property 'overrides' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'overrides' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'overrides' 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 |
77 | /// known types indexed by C identifier.
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:82:23: warning: static property 'knownRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
80 | public static var knownDataTypes: [ String : Datatype ] = [:]
81 | /// context of known records
82 | public static var knownRecords: [ String : Record ] = [:]
| |- warning: static property 'knownRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'knownRecords' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'knownRecords' 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
83 | /// context of known records
84 | public static var knownBitfields: [ String : Bitfield ] = [:]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:84:23: warning: static property 'knownBitfields' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
82 | public static var knownRecords: [ String : Record ] = [:]
83 | /// context of known records
84 | public static var knownBitfields: [ String : Bitfield ] = [:]
| |- warning: static property 'knownBitfields' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'knownBitfields' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'knownBitfields' 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
85 | /// context of known functions
86 | public static var KnownFunctions: [ String : Function ] = [:]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:86:23: warning: static property 'KnownFunctions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
84 | public static var knownBitfields: [ String : Bitfield ] = [:]
85 | /// context of known functions
86 | public static var KnownFunctions: [ String : Function ] = [:]
| |- warning: static property 'KnownFunctions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'KnownFunctions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'KnownFunctions' 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
87 | /// suffixes for `@escaping` callback heuristics
88 | public static var callbackSuffixes = [String]()
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:88:23: warning: static property 'callbackSuffixes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
86 | public static var KnownFunctions: [ String : Function ] = [:]
87 | /// suffixes for `@escaping` callback heuristics
88 | public static var callbackSuffixes = [String]()
| |- warning: static property 'callbackSuffixes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'callbackSuffixes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'callbackSuffixes' 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
89 | /// types to turn into force-unwrapped optionals
90 | public static var forceUnwrapped: Set<String> = ["gpointer", "gconstpointer"]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:90:23: warning: static property 'forceUnwrapped' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
88 | public static var callbackSuffixes = [String]()
89 | /// types to turn into force-unwrapped optionals
90 | public static var forceUnwrapped: Set<String> = ["gpointer", "gconstpointer"]
| |- warning: static property 'forceUnwrapped' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'forceUnwrapped' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'forceUnwrapped' 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
91 |
92 | /// Dotted namespace replacements
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:93:23: warning: static property 'namespaceReplacements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
91 |
92 | /// Dotted namespace replacements
93 | public static var namespaceReplacements: [ Substring : Substring ] = [
| |- warning: static property 'namespaceReplacements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namespaceReplacements' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namespaceReplacements' 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
94 | "GObject." : "GLibObject.", "Gio." : "GIO.", "GdkPixbuf." : "GdkPixBuf.", "cairo." : "Cairo."
95 | ]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:98:23: warning: static property 'typedCollections' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
96 |
97 | /// Names of typed collections.
98 | public static var typedCollections: Set<String> = [
| |- warning: static property 'typedCollections' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'typedCollections' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'typedCollections' 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
99 | "GLib.List", "GLib.SList", "GLib.PtrArray"
100 | ]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:103:23: warning: static property 'glibPointerWrapper' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 |
102 | /// Name of the GLib pointer wrapper that every type conforms to.
103 | public static var glibPointerWrapper = "GLib.PointerWrapper"
| |- warning: static property 'glibPointerWrapper' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'glibPointerWrapper' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'glibPointerWrapper' 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
104 |
105 | /// designated constructor
/host/spi-builder-workspace/Sources/libgir2swift/utilities/Streams.swift:11:16: warning: static property 'stdErr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | /// Abstraction for stderr, calling fputs under the hood.
10 | @usableFromInline
11 | static var stdErr: StandardError = StandardError()
| |- warning: static property 'stdErr' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stdErr' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'stdErr' 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
12 |
13 | /// Abstraction for stdErr
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:131:23: warning: static property 'void' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
129 |
130 | /// Reference to void type
131 | public static var void: TypeReference = TypeReference(type: GIR.voidType)
| |- warning: static property 'void' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'void' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'void' 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
132 |
133 | /// Designated initialiser for a type reference
[132/141] Compiling libgir2swift CodeBuilder.swift
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultCodeIndentation' 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
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:82:23: warning: static property 'knownRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
80 | public static var knownDataTypes: [ String : Datatype ] = [:]
81 | /// context of known records
82 | public static var knownRecords: [ String : Record ] = [:]
| |- warning: static property 'knownRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'knownRecords' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'knownRecords' 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
83 | /// context of known records
84 | public static var knownBitfields: [ String : Bitfield ] = [:]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:159:16: warning: static property 'gpointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
157 | static let gconstpointerB = gconstpointer + "!"
158 | static let gconstpointerQ = gconstpointer + "?"
159 | static let gpointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: gpointer, swiftName: gpointer, ctype: gpointer)
| |- warning: static property 'gpointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gpointerType' 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
160 | static let gpointerConstPointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: gpointer, swiftName: gpointer, ctype: gconstpointer)
161 | static let gconstpointerType = GIRRawPointerType(aliasOf: voidPointer, name: gconstpointer, swiftName: gconstpointer, ctype: gconstpointer)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:400:20: note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
398 | /// Representation of a raw pointer type, its relationship to other types,
399 | /// and casting operations
400 | public final class GIRRawPointerType: GIRType {
| `- note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
401 | /// Return the default cast to convert the given expression to an opaque pointer
402 | /// - Parameters:
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:123:16: warning: static property 'stringRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
121 | static let gustringType = GIRStringType(name: string, ctype: guchar, superType: gucharPtr)
122 | static let constGUStringType = GIRStringType(name: string, ctype: guchar, superType: constGUCharPtr)
123 | static let stringRef = TypeReference(type: stringType)
| |- warning: static property 'stringRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringRef' 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
124 | static let constStringRef = TypeReference(type: constStringType, isConst: true)
125 | static let utf8Type = GIRType(utf8, ctype: gcharType.ctype)
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:27:16: warning: static property 'uint32Type' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
25 | static let uint8Type = GIRType("UInt8", ctype: "u_int8_t")
26 | static let uint16Type = GIRType("UInt16", ctype: "u_int16_t")
27 | static let uint32Type = GIRType("UInt32", ctype: "u_int32_t")
| |- warning: static property 'uint32Type' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uint32Type' 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
28 | static let uint64Type = GIRType("UInt64", ctype: "u_int64_t")
29 | static let swiftNumericTypes: Set<GIRType> = [floatType, doubleType, float80Type, intType, uintType, int8Type, int16Type, int32Type, int64Type, uint8Type, uint16Type, uint32Type, uint64Type]
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:80:23: warning: static property 'knownDataTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
78 | public static var knownCIdentifiers: [ String : Datatype ] = [:]
79 | /// context of known types
80 | public static var knownDataTypes: [ String : Datatype ] = [:]
| |- warning: static property 'knownDataTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'knownDataTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'knownDataTypes' 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 | /// context of known records
82 | public static var knownRecords: [ String : Record ] = [:]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:37:23: warning: static property 'dottedPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | public static var prefix = ""
36 | /// Current namespace prefix with a trailing "."
37 | public static var dottedPrefix = ""
| |- warning: static property 'dottedPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dottedPrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dottedPrefix' 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
38 | /// Collection of identifier prefixes
39 | public var identifierPrefixes = Array<String>()
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:93:23: warning: static property 'namespaceReplacements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
91 |
92 | /// Dotted namespace replacements
93 | public static var namespaceReplacements: [ Substring : Substring ] = [
| |- warning: static property 'namespaceReplacements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namespaceReplacements' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namespaceReplacements' 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
94 | "GObject." : "GLibObject.", "Gio." : "GIO.", "GdkPixbuf." : "GdkPixBuf.", "cairo." : "Cairo."
95 | ]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:72:23: warning: static property 'verbatimConstants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | /// names of constants to be taken verbatim
72 | public static var verbatimConstants: Set<String> = []
| |- warning: static property 'verbatimConstants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'verbatimConstants' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'verbatimConstants' 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
73 |
74 | /// names of override initialisers
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:69:23: warning: static property 'excludeList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | /// Names of excluded identifiers.
69 | public static var excludeList: Set<String> = []
| |- warning: static property 'excludeList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'excludeList' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'excludeList' 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
70 |
71 | /// names of constants to be taken verbatim
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:75:23: warning: static property 'overrides' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | /// names of override initialisers
75 | public static var overrides: Set<String> = []
| |- warning: static property 'overrides' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'overrides' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'overrides' 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 |
77 | /// known types indexed by C identifier.
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:98:23: warning: static property 'typedCollections' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
96 |
97 | /// Names of typed collections.
98 | public static var typedCollections: Set<String> = [
| |- warning: static property 'typedCollections' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'typedCollections' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'typedCollections' 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
99 | "GLib.List", "GLib.SList", "GLib.PtrArray"
100 | ]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:150:16: warning: static property 'rawPointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
148 | static let voidPointer = TypeReference.pointer(to: voidType, isConst: true)
149 | static let mutableVoidPointer = TypeReference.pointer(to: voidType)
150 | static let rawPointerType = GIRRawPointerType(aliasOf: voidPointer, name: "UnsafeRawPointer")
| |- warning: static property 'rawPointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawPointerType' 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
151 | static let mutableRawPointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: "UnsafeMutableRawPointer")
152 | static let opaquePointer = "OpaquePointer"
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:400:20: note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
398 | /// Representation of a raw pointer type, its relationship to other types,
399 | /// and casting operations
400 | public final class GIRRawPointerType: GIRType {
| `- note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
401 | /// Return the default cast to convert the given expression to an opaque pointer
402 | /// - Parameters:
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:103:23: warning: static property 'glibPointerWrapper' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 |
102 | /// Name of the GLib pointer wrapper that every type conforms to.
103 | public static var glibPointerWrapper = "GLib.PointerWrapper"
| |- warning: static property 'glibPointerWrapper' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'glibPointerWrapper' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'glibPointerWrapper' 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
104 |
105 | /// designated constructor
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:193:16: warning: static property 'errorProtocol' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
191 | static let gerror = "GError"
192 | static let errorT = "GLibError"
193 | static let errorProtocol = GIRType(error, ctype: "")
| |- warning: static property 'errorProtocol' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'errorProtocol' 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
194 | static let errorReference = TypeReference(type: errorProtocol)
195 | static let gErrorStruct = GIRType(gerror, ctype: gerror, superType: errorReference)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:48:16: warning: static property 'swiftParameterTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | /// Idiomatic swift type replacements for parameters
48 | static let swiftParameterTypeReplacements = Dictionary(uniqueKeysWithValues: ints + floats + bools + rawCharPtrs + gpointers + gpointerPointers)
| |- warning: static property 'swiftParameterTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftParameterTypeReplacements' 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
49 |
50 | /// Mapping of gir type names to Swift names for underlying C types
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:42:16: warning: static property 'swiftReturnTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Idiomatic swift type replacements for return types
42 | static let swiftReturnTypeReplacements = Dictionary(uniqueKeysWithValues: strings + rawStrings + ints + floats + bools + gpointers + gpointerPointers)
| |- warning: static property 'swiftReturnTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftReturnTypeReplacements' 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
43 |
44 | /// Idiomatic swift type replacements for signals
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:45:16: warning: static property 'swiftSignalTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Idiomatic swift type replacements for signals
45 | static let swiftSignalTypeReplacements = Dictionary(uniqueKeysWithValues: strings + rawStrings + sints + uints + floats + bools + gpointers + gpointerPointers)
| |- warning: static property 'swiftSignalTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftSignalTypeReplacements' 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
46 |
47 | /// Idiomatic swift type replacements for parameters
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
[133/141] Compiling libgir2swift c2swift.swift
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultCodeIndentation' 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
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:82:23: warning: static property 'knownRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
80 | public static var knownDataTypes: [ String : Datatype ] = [:]
81 | /// context of known records
82 | public static var knownRecords: [ String : Record ] = [:]
| |- warning: static property 'knownRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'knownRecords' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'knownRecords' 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
83 | /// context of known records
84 | public static var knownBitfields: [ String : Bitfield ] = [:]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:159:16: warning: static property 'gpointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
157 | static let gconstpointerB = gconstpointer + "!"
158 | static let gconstpointerQ = gconstpointer + "?"
159 | static let gpointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: gpointer, swiftName: gpointer, ctype: gpointer)
| |- warning: static property 'gpointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gpointerType' 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
160 | static let gpointerConstPointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: gpointer, swiftName: gpointer, ctype: gconstpointer)
161 | static let gconstpointerType = GIRRawPointerType(aliasOf: voidPointer, name: gconstpointer, swiftName: gconstpointer, ctype: gconstpointer)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:400:20: note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
398 | /// Representation of a raw pointer type, its relationship to other types,
399 | /// and casting operations
400 | public final class GIRRawPointerType: GIRType {
| `- note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
401 | /// Return the default cast to convert the given expression to an opaque pointer
402 | /// - Parameters:
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:123:16: warning: static property 'stringRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
121 | static let gustringType = GIRStringType(name: string, ctype: guchar, superType: gucharPtr)
122 | static let constGUStringType = GIRStringType(name: string, ctype: guchar, superType: constGUCharPtr)
123 | static let stringRef = TypeReference(type: stringType)
| |- warning: static property 'stringRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringRef' 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
124 | static let constStringRef = TypeReference(type: constStringType, isConst: true)
125 | static let utf8Type = GIRType(utf8, ctype: gcharType.ctype)
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:27:16: warning: static property 'uint32Type' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
25 | static let uint8Type = GIRType("UInt8", ctype: "u_int8_t")
26 | static let uint16Type = GIRType("UInt16", ctype: "u_int16_t")
27 | static let uint32Type = GIRType("UInt32", ctype: "u_int32_t")
| |- warning: static property 'uint32Type' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uint32Type' 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
28 | static let uint64Type = GIRType("UInt64", ctype: "u_int64_t")
29 | static let swiftNumericTypes: Set<GIRType> = [floatType, doubleType, float80Type, intType, uintType, int8Type, int16Type, int32Type, int64Type, uint8Type, uint16Type, uint32Type, uint64Type]
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:80:23: warning: static property 'knownDataTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
78 | public static var knownCIdentifiers: [ String : Datatype ] = [:]
79 | /// context of known types
80 | public static var knownDataTypes: [ String : Datatype ] = [:]
| |- warning: static property 'knownDataTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'knownDataTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'knownDataTypes' 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 | /// context of known records
82 | public static var knownRecords: [ String : Record ] = [:]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:37:23: warning: static property 'dottedPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | public static var prefix = ""
36 | /// Current namespace prefix with a trailing "."
37 | public static var dottedPrefix = ""
| |- warning: static property 'dottedPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dottedPrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dottedPrefix' 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
38 | /// Collection of identifier prefixes
39 | public var identifierPrefixes = Array<String>()
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:93:23: warning: static property 'namespaceReplacements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
91 |
92 | /// Dotted namespace replacements
93 | public static var namespaceReplacements: [ Substring : Substring ] = [
| |- warning: static property 'namespaceReplacements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namespaceReplacements' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namespaceReplacements' 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
94 | "GObject." : "GLibObject.", "Gio." : "GIO.", "GdkPixbuf." : "GdkPixBuf.", "cairo." : "Cairo."
95 | ]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:72:23: warning: static property 'verbatimConstants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | /// names of constants to be taken verbatim
72 | public static var verbatimConstants: Set<String> = []
| |- warning: static property 'verbatimConstants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'verbatimConstants' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'verbatimConstants' 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
73 |
74 | /// names of override initialisers
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:69:23: warning: static property 'excludeList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | /// Names of excluded identifiers.
69 | public static var excludeList: Set<String> = []
| |- warning: static property 'excludeList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'excludeList' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'excludeList' 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
70 |
71 | /// names of constants to be taken verbatim
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:75:23: warning: static property 'overrides' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | /// names of override initialisers
75 | public static var overrides: Set<String> = []
| |- warning: static property 'overrides' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'overrides' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'overrides' 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 |
77 | /// known types indexed by C identifier.
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:98:23: warning: static property 'typedCollections' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
96 |
97 | /// Names of typed collections.
98 | public static var typedCollections: Set<String> = [
| |- warning: static property 'typedCollections' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'typedCollections' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'typedCollections' 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
99 | "GLib.List", "GLib.SList", "GLib.PtrArray"
100 | ]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:150:16: warning: static property 'rawPointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
148 | static let voidPointer = TypeReference.pointer(to: voidType, isConst: true)
149 | static let mutableVoidPointer = TypeReference.pointer(to: voidType)
150 | static let rawPointerType = GIRRawPointerType(aliasOf: voidPointer, name: "UnsafeRawPointer")
| |- warning: static property 'rawPointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawPointerType' 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
151 | static let mutableRawPointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: "UnsafeMutableRawPointer")
152 | static let opaquePointer = "OpaquePointer"
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:400:20: note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
398 | /// Representation of a raw pointer type, its relationship to other types,
399 | /// and casting operations
400 | public final class GIRRawPointerType: GIRType {
| `- note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
401 | /// Return the default cast to convert the given expression to an opaque pointer
402 | /// - Parameters:
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:103:23: warning: static property 'glibPointerWrapper' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 |
102 | /// Name of the GLib pointer wrapper that every type conforms to.
103 | public static var glibPointerWrapper = "GLib.PointerWrapper"
| |- warning: static property 'glibPointerWrapper' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'glibPointerWrapper' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'glibPointerWrapper' 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
104 |
105 | /// designated constructor
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:193:16: warning: static property 'errorProtocol' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
191 | static let gerror = "GError"
192 | static let errorT = "GLibError"
193 | static let errorProtocol = GIRType(error, ctype: "")
| |- warning: static property 'errorProtocol' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'errorProtocol' 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
194 | static let errorReference = TypeReference(type: errorProtocol)
195 | static let gErrorStruct = GIRType(gerror, ctype: gerror, superType: errorReference)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:48:16: warning: static property 'swiftParameterTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | /// Idiomatic swift type replacements for parameters
48 | static let swiftParameterTypeReplacements = Dictionary(uniqueKeysWithValues: ints + floats + bools + rawCharPtrs + gpointers + gpointerPointers)
| |- warning: static property 'swiftParameterTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftParameterTypeReplacements' 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
49 |
50 | /// Mapping of gir type names to Swift names for underlying C types
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:42:16: warning: static property 'swiftReturnTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Idiomatic swift type replacements for return types
42 | static let swiftReturnTypeReplacements = Dictionary(uniqueKeysWithValues: strings + rawStrings + ints + floats + bools + gpointers + gpointerPointers)
| |- warning: static property 'swiftReturnTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftReturnTypeReplacements' 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
43 |
44 | /// Idiomatic swift type replacements for signals
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:45:16: warning: static property 'swiftSignalTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Idiomatic swift type replacements for signals
45 | static let swiftSignalTypeReplacements = Dictionary(uniqueKeysWithValues: strings + rawStrings + sints + uints + floats + bools + gpointers + gpointerPointers)
| |- warning: static property 'swiftSignalTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftSignalTypeReplacements' 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
46 |
47 | /// Idiomatic swift type replacements for parameters
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
[134/141] Compiling libgir2swift emit-class.swift
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultCodeIndentation' 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
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:82:23: warning: static property 'knownRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
80 | public static var knownDataTypes: [ String : Datatype ] = [:]
81 | /// context of known records
82 | public static var knownRecords: [ String : Record ] = [:]
| |- warning: static property 'knownRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'knownRecords' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'knownRecords' 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
83 | /// context of known records
84 | public static var knownBitfields: [ String : Bitfield ] = [:]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:159:16: warning: static property 'gpointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
157 | static let gconstpointerB = gconstpointer + "!"
158 | static let gconstpointerQ = gconstpointer + "?"
159 | static let gpointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: gpointer, swiftName: gpointer, ctype: gpointer)
| |- warning: static property 'gpointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gpointerType' 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
160 | static let gpointerConstPointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: gpointer, swiftName: gpointer, ctype: gconstpointer)
161 | static let gconstpointerType = GIRRawPointerType(aliasOf: voidPointer, name: gconstpointer, swiftName: gconstpointer, ctype: gconstpointer)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:400:20: note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
398 | /// Representation of a raw pointer type, its relationship to other types,
399 | /// and casting operations
400 | public final class GIRRawPointerType: GIRType {
| `- note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
401 | /// Return the default cast to convert the given expression to an opaque pointer
402 | /// - Parameters:
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:123:16: warning: static property 'stringRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
121 | static let gustringType = GIRStringType(name: string, ctype: guchar, superType: gucharPtr)
122 | static let constGUStringType = GIRStringType(name: string, ctype: guchar, superType: constGUCharPtr)
123 | static let stringRef = TypeReference(type: stringType)
| |- warning: static property 'stringRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringRef' 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
124 | static let constStringRef = TypeReference(type: constStringType, isConst: true)
125 | static let utf8Type = GIRType(utf8, ctype: gcharType.ctype)
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:27:16: warning: static property 'uint32Type' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
25 | static let uint8Type = GIRType("UInt8", ctype: "u_int8_t")
26 | static let uint16Type = GIRType("UInt16", ctype: "u_int16_t")
27 | static let uint32Type = GIRType("UInt32", ctype: "u_int32_t")
| |- warning: static property 'uint32Type' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uint32Type' 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
28 | static let uint64Type = GIRType("UInt64", ctype: "u_int64_t")
29 | static let swiftNumericTypes: Set<GIRType> = [floatType, doubleType, float80Type, intType, uintType, int8Type, int16Type, int32Type, int64Type, uint8Type, uint16Type, uint32Type, uint64Type]
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:80:23: warning: static property 'knownDataTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
78 | public static var knownCIdentifiers: [ String : Datatype ] = [:]
79 | /// context of known types
80 | public static var knownDataTypes: [ String : Datatype ] = [:]
| |- warning: static property 'knownDataTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'knownDataTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'knownDataTypes' 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 | /// context of known records
82 | public static var knownRecords: [ String : Record ] = [:]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:37:23: warning: static property 'dottedPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | public static var prefix = ""
36 | /// Current namespace prefix with a trailing "."
37 | public static var dottedPrefix = ""
| |- warning: static property 'dottedPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dottedPrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dottedPrefix' 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
38 | /// Collection of identifier prefixes
39 | public var identifierPrefixes = Array<String>()
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:93:23: warning: static property 'namespaceReplacements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
91 |
92 | /// Dotted namespace replacements
93 | public static var namespaceReplacements: [ Substring : Substring ] = [
| |- warning: static property 'namespaceReplacements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namespaceReplacements' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namespaceReplacements' 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
94 | "GObject." : "GLibObject.", "Gio." : "GIO.", "GdkPixbuf." : "GdkPixBuf.", "cairo." : "Cairo."
95 | ]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:72:23: warning: static property 'verbatimConstants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | /// names of constants to be taken verbatim
72 | public static var verbatimConstants: Set<String> = []
| |- warning: static property 'verbatimConstants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'verbatimConstants' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'verbatimConstants' 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
73 |
74 | /// names of override initialisers
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:69:23: warning: static property 'excludeList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | /// Names of excluded identifiers.
69 | public static var excludeList: Set<String> = []
| |- warning: static property 'excludeList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'excludeList' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'excludeList' 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
70 |
71 | /// names of constants to be taken verbatim
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:75:23: warning: static property 'overrides' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | /// names of override initialisers
75 | public static var overrides: Set<String> = []
| |- warning: static property 'overrides' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'overrides' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'overrides' 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 |
77 | /// known types indexed by C identifier.
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:98:23: warning: static property 'typedCollections' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
96 |
97 | /// Names of typed collections.
98 | public static var typedCollections: Set<String> = [
| |- warning: static property 'typedCollections' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'typedCollections' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'typedCollections' 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
99 | "GLib.List", "GLib.SList", "GLib.PtrArray"
100 | ]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:150:16: warning: static property 'rawPointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
148 | static let voidPointer = TypeReference.pointer(to: voidType, isConst: true)
149 | static let mutableVoidPointer = TypeReference.pointer(to: voidType)
150 | static let rawPointerType = GIRRawPointerType(aliasOf: voidPointer, name: "UnsafeRawPointer")
| |- warning: static property 'rawPointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawPointerType' 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
151 | static let mutableRawPointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: "UnsafeMutableRawPointer")
152 | static let opaquePointer = "OpaquePointer"
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:400:20: note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
398 | /// Representation of a raw pointer type, its relationship to other types,
399 | /// and casting operations
400 | public final class GIRRawPointerType: GIRType {
| `- note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
401 | /// Return the default cast to convert the given expression to an opaque pointer
402 | /// - Parameters:
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:103:23: warning: static property 'glibPointerWrapper' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 |
102 | /// Name of the GLib pointer wrapper that every type conforms to.
103 | public static var glibPointerWrapper = "GLib.PointerWrapper"
| |- warning: static property 'glibPointerWrapper' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'glibPointerWrapper' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'glibPointerWrapper' 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
104 |
105 | /// designated constructor
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:193:16: warning: static property 'errorProtocol' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
191 | static let gerror = "GError"
192 | static let errorT = "GLibError"
193 | static let errorProtocol = GIRType(error, ctype: "")
| |- warning: static property 'errorProtocol' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'errorProtocol' 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
194 | static let errorReference = TypeReference(type: errorProtocol)
195 | static let gErrorStruct = GIRType(gerror, ctype: gerror, superType: errorReference)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:48:16: warning: static property 'swiftParameterTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | /// Idiomatic swift type replacements for parameters
48 | static let swiftParameterTypeReplacements = Dictionary(uniqueKeysWithValues: ints + floats + bools + rawCharPtrs + gpointers + gpointerPointers)
| |- warning: static property 'swiftParameterTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftParameterTypeReplacements' 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
49 |
50 | /// Mapping of gir type names to Swift names for underlying C types
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:42:16: warning: static property 'swiftReturnTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Idiomatic swift type replacements for return types
42 | static let swiftReturnTypeReplacements = Dictionary(uniqueKeysWithValues: strings + rawStrings + ints + floats + bools + gpointers + gpointerPointers)
| |- warning: static property 'swiftReturnTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftReturnTypeReplacements' 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
43 |
44 | /// Idiomatic swift type replacements for signals
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:45:16: warning: static property 'swiftSignalTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Idiomatic swift type replacements for signals
45 | static let swiftSignalTypeReplacements = Dictionary(uniqueKeysWithValues: strings + rawStrings + sints + uints + floats + bools + gpointers + gpointerPointers)
| |- warning: static property 'swiftSignalTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftSignalTypeReplacements' 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
46 |
47 | /// Idiomatic swift type replacements for parameters
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
[135/141] Compiling libgir2swift emit-signals.swift
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultCodeIndentation' 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
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:82:23: warning: static property 'knownRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
80 | public static var knownDataTypes: [ String : Datatype ] = [:]
81 | /// context of known records
82 | public static var knownRecords: [ String : Record ] = [:]
| |- warning: static property 'knownRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'knownRecords' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'knownRecords' 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
83 | /// context of known records
84 | public static var knownBitfields: [ String : Bitfield ] = [:]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:159:16: warning: static property 'gpointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
157 | static let gconstpointerB = gconstpointer + "!"
158 | static let gconstpointerQ = gconstpointer + "?"
159 | static let gpointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: gpointer, swiftName: gpointer, ctype: gpointer)
| |- warning: static property 'gpointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gpointerType' 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
160 | static let gpointerConstPointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: gpointer, swiftName: gpointer, ctype: gconstpointer)
161 | static let gconstpointerType = GIRRawPointerType(aliasOf: voidPointer, name: gconstpointer, swiftName: gconstpointer, ctype: gconstpointer)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:400:20: note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
398 | /// Representation of a raw pointer type, its relationship to other types,
399 | /// and casting operations
400 | public final class GIRRawPointerType: GIRType {
| `- note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
401 | /// Return the default cast to convert the given expression to an opaque pointer
402 | /// - Parameters:
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:123:16: warning: static property 'stringRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
121 | static let gustringType = GIRStringType(name: string, ctype: guchar, superType: gucharPtr)
122 | static let constGUStringType = GIRStringType(name: string, ctype: guchar, superType: constGUCharPtr)
123 | static let stringRef = TypeReference(type: stringType)
| |- warning: static property 'stringRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringRef' 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
124 | static let constStringRef = TypeReference(type: constStringType, isConst: true)
125 | static let utf8Type = GIRType(utf8, ctype: gcharType.ctype)
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:27:16: warning: static property 'uint32Type' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
25 | static let uint8Type = GIRType("UInt8", ctype: "u_int8_t")
26 | static let uint16Type = GIRType("UInt16", ctype: "u_int16_t")
27 | static let uint32Type = GIRType("UInt32", ctype: "u_int32_t")
| |- warning: static property 'uint32Type' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uint32Type' 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
28 | static let uint64Type = GIRType("UInt64", ctype: "u_int64_t")
29 | static let swiftNumericTypes: Set<GIRType> = [floatType, doubleType, float80Type, intType, uintType, int8Type, int16Type, int32Type, int64Type, uint8Type, uint16Type, uint32Type, uint64Type]
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:80:23: warning: static property 'knownDataTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
78 | public static var knownCIdentifiers: [ String : Datatype ] = [:]
79 | /// context of known types
80 | public static var knownDataTypes: [ String : Datatype ] = [:]
| |- warning: static property 'knownDataTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'knownDataTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'knownDataTypes' 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 | /// context of known records
82 | public static var knownRecords: [ String : Record ] = [:]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:37:23: warning: static property 'dottedPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | public static var prefix = ""
36 | /// Current namespace prefix with a trailing "."
37 | public static var dottedPrefix = ""
| |- warning: static property 'dottedPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dottedPrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dottedPrefix' 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
38 | /// Collection of identifier prefixes
39 | public var identifierPrefixes = Array<String>()
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:93:23: warning: static property 'namespaceReplacements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
91 |
92 | /// Dotted namespace replacements
93 | public static var namespaceReplacements: [ Substring : Substring ] = [
| |- warning: static property 'namespaceReplacements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namespaceReplacements' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namespaceReplacements' 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
94 | "GObject." : "GLibObject.", "Gio." : "GIO.", "GdkPixbuf." : "GdkPixBuf.", "cairo." : "Cairo."
95 | ]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:72:23: warning: static property 'verbatimConstants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | /// names of constants to be taken verbatim
72 | public static var verbatimConstants: Set<String> = []
| |- warning: static property 'verbatimConstants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'verbatimConstants' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'verbatimConstants' 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
73 |
74 | /// names of override initialisers
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:69:23: warning: static property 'excludeList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | /// Names of excluded identifiers.
69 | public static var excludeList: Set<String> = []
| |- warning: static property 'excludeList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'excludeList' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'excludeList' 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
70 |
71 | /// names of constants to be taken verbatim
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:75:23: warning: static property 'overrides' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | /// names of override initialisers
75 | public static var overrides: Set<String> = []
| |- warning: static property 'overrides' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'overrides' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'overrides' 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 |
77 | /// known types indexed by C identifier.
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:98:23: warning: static property 'typedCollections' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
96 |
97 | /// Names of typed collections.
98 | public static var typedCollections: Set<String> = [
| |- warning: static property 'typedCollections' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'typedCollections' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'typedCollections' 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
99 | "GLib.List", "GLib.SList", "GLib.PtrArray"
100 | ]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:150:16: warning: static property 'rawPointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
148 | static let voidPointer = TypeReference.pointer(to: voidType, isConst: true)
149 | static let mutableVoidPointer = TypeReference.pointer(to: voidType)
150 | static let rawPointerType = GIRRawPointerType(aliasOf: voidPointer, name: "UnsafeRawPointer")
| |- warning: static property 'rawPointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawPointerType' 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
151 | static let mutableRawPointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: "UnsafeMutableRawPointer")
152 | static let opaquePointer = "OpaquePointer"
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:400:20: note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
398 | /// Representation of a raw pointer type, its relationship to other types,
399 | /// and casting operations
400 | public final class GIRRawPointerType: GIRType {
| `- note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
401 | /// Return the default cast to convert the given expression to an opaque pointer
402 | /// - Parameters:
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:103:23: warning: static property 'glibPointerWrapper' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 |
102 | /// Name of the GLib pointer wrapper that every type conforms to.
103 | public static var glibPointerWrapper = "GLib.PointerWrapper"
| |- warning: static property 'glibPointerWrapper' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'glibPointerWrapper' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'glibPointerWrapper' 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
104 |
105 | /// designated constructor
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:193:16: warning: static property 'errorProtocol' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
191 | static let gerror = "GError"
192 | static let errorT = "GLibError"
193 | static let errorProtocol = GIRType(error, ctype: "")
| |- warning: static property 'errorProtocol' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'errorProtocol' 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
194 | static let errorReference = TypeReference(type: errorProtocol)
195 | static let gErrorStruct = GIRType(gerror, ctype: gerror, superType: errorReference)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:48:16: warning: static property 'swiftParameterTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | /// Idiomatic swift type replacements for parameters
48 | static let swiftParameterTypeReplacements = Dictionary(uniqueKeysWithValues: ints + floats + bools + rawCharPtrs + gpointers + gpointerPointers)
| |- warning: static property 'swiftParameterTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftParameterTypeReplacements' 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
49 |
50 | /// Mapping of gir type names to Swift names for underlying C types
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:42:16: warning: static property 'swiftReturnTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Idiomatic swift type replacements for return types
42 | static let swiftReturnTypeReplacements = Dictionary(uniqueKeysWithValues: strings + rawStrings + ints + floats + bools + gpointers + gpointerPointers)
| |- warning: static property 'swiftReturnTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftReturnTypeReplacements' 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
43 |
44 | /// Idiomatic swift type replacements for signals
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:45:16: warning: static property 'swiftSignalTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Idiomatic swift type replacements for signals
45 | static let swiftSignalTypeReplacements = Dictionary(uniqueKeysWithValues: strings + rawStrings + sints + uints + floats + bools + gpointers + gpointerPointers)
| |- warning: static property 'swiftSignalTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftSignalTypeReplacements' 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
46 |
47 | /// Idiomatic swift type replacements for parameters
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
[136/141] Compiling libgir2swift gir+swift.swift
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultCodeIndentation' 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
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:82:23: warning: static property 'knownRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
80 | public static var knownDataTypes: [ String : Datatype ] = [:]
81 | /// context of known records
82 | public static var knownRecords: [ String : Record ] = [:]
| |- warning: static property 'knownRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'knownRecords' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'knownRecords' 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
83 | /// context of known records
84 | public static var knownBitfields: [ String : Bitfield ] = [:]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:159:16: warning: static property 'gpointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
157 | static let gconstpointerB = gconstpointer + "!"
158 | static let gconstpointerQ = gconstpointer + "?"
159 | static let gpointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: gpointer, swiftName: gpointer, ctype: gpointer)
| |- warning: static property 'gpointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gpointerType' 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
160 | static let gpointerConstPointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: gpointer, swiftName: gpointer, ctype: gconstpointer)
161 | static let gconstpointerType = GIRRawPointerType(aliasOf: voidPointer, name: gconstpointer, swiftName: gconstpointer, ctype: gconstpointer)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:400:20: note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
398 | /// Representation of a raw pointer type, its relationship to other types,
399 | /// and casting operations
400 | public final class GIRRawPointerType: GIRType {
| `- note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
401 | /// Return the default cast to convert the given expression to an opaque pointer
402 | /// - Parameters:
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:123:16: warning: static property 'stringRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
121 | static let gustringType = GIRStringType(name: string, ctype: guchar, superType: gucharPtr)
122 | static let constGUStringType = GIRStringType(name: string, ctype: guchar, superType: constGUCharPtr)
123 | static let stringRef = TypeReference(type: stringType)
| |- warning: static property 'stringRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringRef' 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
124 | static let constStringRef = TypeReference(type: constStringType, isConst: true)
125 | static let utf8Type = GIRType(utf8, ctype: gcharType.ctype)
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:27:16: warning: static property 'uint32Type' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
25 | static let uint8Type = GIRType("UInt8", ctype: "u_int8_t")
26 | static let uint16Type = GIRType("UInt16", ctype: "u_int16_t")
27 | static let uint32Type = GIRType("UInt32", ctype: "u_int32_t")
| |- warning: static property 'uint32Type' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uint32Type' 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
28 | static let uint64Type = GIRType("UInt64", ctype: "u_int64_t")
29 | static let swiftNumericTypes: Set<GIRType> = [floatType, doubleType, float80Type, intType, uintType, int8Type, int16Type, int32Type, int64Type, uint8Type, uint16Type, uint32Type, uint64Type]
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:80:23: warning: static property 'knownDataTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
78 | public static var knownCIdentifiers: [ String : Datatype ] = [:]
79 | /// context of known types
80 | public static var knownDataTypes: [ String : Datatype ] = [:]
| |- warning: static property 'knownDataTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'knownDataTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'knownDataTypes' 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 | /// context of known records
82 | public static var knownRecords: [ String : Record ] = [:]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:37:23: warning: static property 'dottedPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | public static var prefix = ""
36 | /// Current namespace prefix with a trailing "."
37 | public static var dottedPrefix = ""
| |- warning: static property 'dottedPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dottedPrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dottedPrefix' 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
38 | /// Collection of identifier prefixes
39 | public var identifierPrefixes = Array<String>()
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:93:23: warning: static property 'namespaceReplacements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
91 |
92 | /// Dotted namespace replacements
93 | public static var namespaceReplacements: [ Substring : Substring ] = [
| |- warning: static property 'namespaceReplacements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namespaceReplacements' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namespaceReplacements' 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
94 | "GObject." : "GLibObject.", "Gio." : "GIO.", "GdkPixbuf." : "GdkPixBuf.", "cairo." : "Cairo."
95 | ]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:72:23: warning: static property 'verbatimConstants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | /// names of constants to be taken verbatim
72 | public static var verbatimConstants: Set<String> = []
| |- warning: static property 'verbatimConstants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'verbatimConstants' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'verbatimConstants' 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
73 |
74 | /// names of override initialisers
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:69:23: warning: static property 'excludeList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | /// Names of excluded identifiers.
69 | public static var excludeList: Set<String> = []
| |- warning: static property 'excludeList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'excludeList' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'excludeList' 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
70 |
71 | /// names of constants to be taken verbatim
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:75:23: warning: static property 'overrides' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | /// names of override initialisers
75 | public static var overrides: Set<String> = []
| |- warning: static property 'overrides' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'overrides' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'overrides' 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 |
77 | /// known types indexed by C identifier.
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:98:23: warning: static property 'typedCollections' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
96 |
97 | /// Names of typed collections.
98 | public static var typedCollections: Set<String> = [
| |- warning: static property 'typedCollections' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'typedCollections' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'typedCollections' 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
99 | "GLib.List", "GLib.SList", "GLib.PtrArray"
100 | ]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:150:16: warning: static property 'rawPointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
148 | static let voidPointer = TypeReference.pointer(to: voidType, isConst: true)
149 | static let mutableVoidPointer = TypeReference.pointer(to: voidType)
150 | static let rawPointerType = GIRRawPointerType(aliasOf: voidPointer, name: "UnsafeRawPointer")
| |- warning: static property 'rawPointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawPointerType' 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
151 | static let mutableRawPointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: "UnsafeMutableRawPointer")
152 | static let opaquePointer = "OpaquePointer"
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:400:20: note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
398 | /// Representation of a raw pointer type, its relationship to other types,
399 | /// and casting operations
400 | public final class GIRRawPointerType: GIRType {
| `- note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
401 | /// Return the default cast to convert the given expression to an opaque pointer
402 | /// - Parameters:
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:103:23: warning: static property 'glibPointerWrapper' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 |
102 | /// Name of the GLib pointer wrapper that every type conforms to.
103 | public static var glibPointerWrapper = "GLib.PointerWrapper"
| |- warning: static property 'glibPointerWrapper' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'glibPointerWrapper' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'glibPointerWrapper' 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
104 |
105 | /// designated constructor
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:193:16: warning: static property 'errorProtocol' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
191 | static let gerror = "GError"
192 | static let errorT = "GLibError"
193 | static let errorProtocol = GIRType(error, ctype: "")
| |- warning: static property 'errorProtocol' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'errorProtocol' 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
194 | static let errorReference = TypeReference(type: errorProtocol)
195 | static let gErrorStruct = GIRType(gerror, ctype: gerror, superType: errorReference)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:48:16: warning: static property 'swiftParameterTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | /// Idiomatic swift type replacements for parameters
48 | static let swiftParameterTypeReplacements = Dictionary(uniqueKeysWithValues: ints + floats + bools + rawCharPtrs + gpointers + gpointerPointers)
| |- warning: static property 'swiftParameterTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftParameterTypeReplacements' 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
49 |
50 | /// Mapping of gir type names to Swift names for underlying C types
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:42:16: warning: static property 'swiftReturnTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Idiomatic swift type replacements for return types
42 | static let swiftReturnTypeReplacements = Dictionary(uniqueKeysWithValues: strings + rawStrings + ints + floats + bools + gpointers + gpointerPointers)
| |- warning: static property 'swiftReturnTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftReturnTypeReplacements' 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
43 |
44 | /// Idiomatic swift type replacements for signals
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:45:16: warning: static property 'swiftSignalTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Idiomatic swift type replacements for signals
45 | static let swiftSignalTypeReplacements = Dictionary(uniqueKeysWithValues: strings + rawStrings + sints + uints + floats + bools + gpointers + gpointerPointers)
| |- warning: static property 'swiftSignalTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftSignalTypeReplacements' 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
46 |
47 | /// Idiomatic swift type replacements for parameters
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
[137/141] Compiling libgir2swift girtypes+swift.swift
/host/spi-builder-workspace/Sources/libgir2swift/emitting/CodeBuilder.swift:29:16: warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// Convenience class for using CodeBuilder DSL. This class was introduced to shorten calls. As for now, this class compensates for some missing DSL features like for-in loops.
28 | class Code {
29 | static var defaultCodeIndentation: String = " "
| |- warning: static property 'defaultCodeIndentation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCodeIndentation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultCodeIndentation' 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
30 |
31 | /// Code in builder block of this function will have additional indentation passed in the first argument.
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:82:23: warning: static property 'knownRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
80 | public static var knownDataTypes: [ String : Datatype ] = [:]
81 | /// context of known records
82 | public static var knownRecords: [ String : Record ] = [:]
| |- warning: static property 'knownRecords' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'knownRecords' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'knownRecords' 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
83 | /// context of known records
84 | public static var knownBitfields: [ String : Bitfield ] = [:]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:159:16: warning: static property 'gpointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
157 | static let gconstpointerB = gconstpointer + "!"
158 | static let gconstpointerQ = gconstpointer + "?"
159 | static let gpointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: gpointer, swiftName: gpointer, ctype: gpointer)
| |- warning: static property 'gpointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'gpointerType' 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
160 | static let gpointerConstPointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: gpointer, swiftName: gpointer, ctype: gconstpointer)
161 | static let gconstpointerType = GIRRawPointerType(aliasOf: voidPointer, name: gconstpointer, swiftName: gconstpointer, ctype: gconstpointer)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:400:20: note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
398 | /// Representation of a raw pointer type, its relationship to other types,
399 | /// and casting operations
400 | public final class GIRRawPointerType: GIRType {
| `- note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
401 | /// Return the default cast to convert the given expression to an opaque pointer
402 | /// - Parameters:
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:123:16: warning: static property 'stringRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
121 | static let gustringType = GIRStringType(name: string, ctype: guchar, superType: gucharPtr)
122 | static let constGUStringType = GIRStringType(name: string, ctype: guchar, superType: constGUCharPtr)
123 | static let stringRef = TypeReference(type: stringType)
| |- warning: static property 'stringRef' is not concurrency-safe because non-'Sendable' type 'TypeReference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringRef' 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
124 | static let constStringRef = TypeReference(type: constStringType, isConst: true)
125 | static let utf8Type = GIRType(utf8, ctype: gcharType.ctype)
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:27:16: warning: static property 'uint32Type' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
25 | static let uint8Type = GIRType("UInt8", ctype: "u_int8_t")
26 | static let uint16Type = GIRType("UInt16", ctype: "u_int16_t")
27 | static let uint32Type = GIRType("UInt32", ctype: "u_int32_t")
| |- warning: static property 'uint32Type' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'uint32Type' 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
28 | static let uint64Type = GIRType("UInt64", ctype: "u_int64_t")
29 | static let swiftNumericTypes: Set<GIRType> = [floatType, doubleType, float80Type, intType, uintType, int8Type, int16Type, int32Type, int64Type, uint8Type, uint16Type, uint32Type, uint64Type]
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:80:23: warning: static property 'knownDataTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
78 | public static var knownCIdentifiers: [ String : Datatype ] = [:]
79 | /// context of known types
80 | public static var knownDataTypes: [ String : Datatype ] = [:]
| |- warning: static property 'knownDataTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'knownDataTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'knownDataTypes' 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 | /// context of known records
82 | public static var knownRecords: [ String : Record ] = [:]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:37:23: warning: static property 'dottedPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | public static var prefix = ""
36 | /// Current namespace prefix with a trailing "."
37 | public static var dottedPrefix = ""
| |- warning: static property 'dottedPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dottedPrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'dottedPrefix' 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
38 | /// Collection of identifier prefixes
39 | public var identifierPrefixes = Array<String>()
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:93:23: warning: static property 'namespaceReplacements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
91 |
92 | /// Dotted namespace replacements
93 | public static var namespaceReplacements: [ Substring : Substring ] = [
| |- warning: static property 'namespaceReplacements' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'namespaceReplacements' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'namespaceReplacements' 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
94 | "GObject." : "GLibObject.", "Gio." : "GIO.", "GdkPixbuf." : "GdkPixBuf.", "cairo." : "Cairo."
95 | ]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:72:23: warning: static property 'verbatimConstants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | /// names of constants to be taken verbatim
72 | public static var verbatimConstants: Set<String> = []
| |- warning: static property 'verbatimConstants' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'verbatimConstants' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'verbatimConstants' 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
73 |
74 | /// names of override initialisers
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:69:23: warning: static property 'excludeList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | /// Names of excluded identifiers.
69 | public static var excludeList: Set<String> = []
| |- warning: static property 'excludeList' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'excludeList' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'excludeList' 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
70 |
71 | /// names of constants to be taken verbatim
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:75:23: warning: static property 'overrides' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | /// names of override initialisers
75 | public static var overrides: Set<String> = []
| |- warning: static property 'overrides' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'overrides' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'overrides' 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 |
77 | /// known types indexed by C identifier.
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:98:23: warning: static property 'typedCollections' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
96 |
97 | /// Names of typed collections.
98 | public static var typedCollections: Set<String> = [
| |- warning: static property 'typedCollections' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'typedCollections' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'typedCollections' 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
99 | "GLib.List", "GLib.SList", "GLib.PtrArray"
100 | ]
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:150:16: warning: static property 'rawPointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
148 | static let voidPointer = TypeReference.pointer(to: voidType, isConst: true)
149 | static let mutableVoidPointer = TypeReference.pointer(to: voidType)
150 | static let rawPointerType = GIRRawPointerType(aliasOf: voidPointer, name: "UnsafeRawPointer")
| |- warning: static property 'rawPointerType' is not concurrency-safe because non-'Sendable' type 'GIRRawPointerType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawPointerType' 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
151 | static let mutableRawPointerType = GIRRawPointerType(aliasOf: mutableVoidPointer, name: "UnsafeMutableRawPointer")
152 | static let opaquePointer = "OpaquePointer"
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:400:20: note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
398 | /// Representation of a raw pointer type, its relationship to other types,
399 | /// and casting operations
400 | public final class GIRRawPointerType: GIRType {
| `- note: class 'GIRRawPointerType' does not conform to the 'Sendable' protocol
401 | /// Return the default cast to convert the given expression to an opaque pointer
402 | /// - Parameters:
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir.swift:103:23: warning: static property 'glibPointerWrapper' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 |
102 | /// Name of the GLib pointer wrapper that every type conforms to.
103 | public static var glibPointerWrapper = "GLib.PointerWrapper"
| |- warning: static property 'glibPointerWrapper' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'glibPointerWrapper' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'glibPointerWrapper' 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
104 |
105 | /// designated constructor
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnownTypes.swift:193:16: warning: static property 'errorProtocol' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
191 | static let gerror = "GError"
192 | static let errorT = "GLibError"
193 | static let errorProtocol = GIRType(error, ctype: "")
| |- warning: static property 'errorProtocol' is not concurrency-safe because non-'Sendable' type 'GIRType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'errorProtocol' 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
194 | static let errorReference = TypeReference(type: errorProtocol)
195 | static let gErrorStruct = GIRType(gerror, ctype: gerror, superType: errorReference)
/host/spi-builder-workspace/Sources/libgir2swift/models/GirType.swift:12:14: note: class 'GIRType' does not conform to the 'Sendable' protocol
10 | /// Representation of a fundamental type, its relationship to other types,
11 | /// and casting operations
12 | public class GIRType: Hashable {
| `- note: class 'GIRType' does not conform to the 'Sendable' protocol
13 | /// Name of the type defined in the GIR file, without a namespace
14 | public let name: String
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:48:16: warning: static property 'swiftParameterTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
46 |
47 | /// Idiomatic swift type replacements for parameters
48 | static let swiftParameterTypeReplacements = Dictionary(uniqueKeysWithValues: ints + floats + bools + rawCharPtrs + gpointers + gpointerPointers)
| |- warning: static property 'swiftParameterTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftParameterTypeReplacements' 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
49 |
50 | /// Mapping of gir type names to Swift names for underlying C types
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:42:16: warning: static property 'swiftReturnTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | /// Idiomatic swift type replacements for return types
42 | static let swiftReturnTypeReplacements = Dictionary(uniqueKeysWithValues: strings + rawStrings + ints + floats + bools + gpointers + gpointerPointers)
| |- warning: static property 'swiftReturnTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftReturnTypeReplacements' 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
43 |
44 | /// Idiomatic swift type replacements for signals
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
/host/spi-builder-workspace/Sources/libgir2swift/models/Gir+KnowTypeSets.swift:45:16: warning: static property 'swiftSignalTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Idiomatic swift type replacements for signals
45 | static let swiftSignalTypeReplacements = Dictionary(uniqueKeysWithValues: strings + rawStrings + sints + uints + floats + bools + gpointers + gpointerPointers)
| |- warning: static property 'swiftSignalTypeReplacements' is not concurrency-safe because non-'Sendable' type '[TypeReference : TypeReference]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'swiftSignalTypeReplacements' 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
46 |
47 | /// Idiomatic swift type replacements for parameters
/host/spi-builder-workspace/Sources/libgir2swift/models/TypeReference.swift:11:15: note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
9 |
10 | /// Reference to a GIR type.
11 | public struct TypeReference: Hashable {
| |- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
| `- note: consider making struct 'TypeReference' conform to the 'Sendable' protocol
12 | /// The type referenced
13 | public let type: GIRType
[138/142] Wrapping AST for libgir2swift for debugging
[140/144] Compiling gir2swift main.swift
[141/144] Emitting module gir2swift
[142/145] Wrapping AST for gir2swift for debugging
[143/145] Write Objects.LinkFileList
[144/145] Linking gir2swift
Build complete! (55.03s)
Build complete.
{
"dependencies" : [
{
"identity" : "yams",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.6",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/jpsim/Yams.git"
},
{
"identity" : "swiftlibxml",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/rhx/SwiftLibXML.git"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
}
],
"manifest_display_name" : "gir2swift",
"name" : "gir2swift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "gir2swift",
"targets" : [
"gir2swift"
],
"type" : {
"executable" : null
}
},
{
"name" : "libgir2swift",
"targets" : [
"libgir2swift"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "gir2swift-plugin",
"targets" : [
"gir2swift-plugin"
],
"type" : {
"plugin" : null
}
}
],
"targets" : [
{
"c99name" : "libgir2swift",
"module_type" : "SwiftTarget",
"name" : "libgir2swift",
"path" : "Sources/libgir2swift",
"product_dependencies" : [
"SwiftLibXML",
"ArgumentParser",
"Yams"
],
"product_memberships" : [
"gir2swift",
"libgir2swift",
"gir2swift-plugin"
],
"sources" : [
"emitting/CodeBuilder.swift",
"emitting/c2swift.swift",
"emitting/emit-class.swift",
"emitting/emit-signals.swift",
"emitting/gir+swift.swift",
"emitting/girtypes+swift.swift",
"emitting/gtk2swiftdoc.swift",
"models/ConversionContext.swift",
"models/Gir+Enums.swift",
"models/Gir+KnowTypeSets.swift",
"models/Gir+KnownTypes.swift",
"models/Gir.swift",
"models/Gir2Swift.swift",
"models/GirType.swift",
"models/TypeConversion.swift",
"models/TypeReference.swift",
"models/gir elements/GirAlias.swift",
"models/gir elements/GirArgument.swift",
"models/gir elements/GirBitfield.swift",
"models/gir elements/GirCType.swift",
"models/gir elements/GirCallback.swift",
"models/gir elements/GirClass.swift",
"models/gir elements/GirConstant.swift",
"models/gir elements/GirDatatype.swift",
"models/gir elements/GirEnumeration.swift",
"models/gir elements/GirField.swift",
"models/gir elements/GirFunction.swift",
"models/gir elements/GirInterface.swift",
"models/gir elements/GirMethod.swift",
"models/gir elements/GirProperty.swift",
"models/gir elements/GirRecord.swift",
"models/gir elements/GirSignal.swift",
"models/gir elements/GirThing.swift",
"models/gir elements/GirUnion.swift",
"models/girtype+xml.swift",
"utilities/Character+Utilities.swift",
"utilities/Collection+Utilities.swift",
"utilities/Streams.swift",
"utilities/String+Substring.swift",
"utilities/String+Utilities.swift",
"utilities/System.swift",
"utilities/XML+Utilities.swift",
"utilities/generation.swift",
"utilities/planning.swift",
"utilities/postprocessing.swift"
],
"type" : "library"
},
{
"c99name" : "gir2swiftTests",
"module_type" : "SwiftTarget",
"name" : "gir2swiftTests",
"path" : "Tests/gir2swiftTests",
"sources" : [
"gir2swiftTests.swift"
],
"target_dependencies" : [
"libgir2swift"
],
"type" : "test"
},
{
"c99name" : "gir2swift_plugin",
"module_type" : "PluginTarget",
"name" : "gir2swift-plugin",
"path" : "Plugins/gir2swift-plugin",
"plugin_capability" : {
"type" : "buildTool"
},
"product_memberships" : [
"gir2swift-plugin"
],
"sources" : [
"plugin.swift"
],
"target_dependencies" : [
"gir2swift"
],
"type" : "plugin"
},
{
"c99name" : "gir2swift",
"module_type" : "SwiftTarget",
"name" : "gir2swift",
"path" : "Sources/gir2swift",
"product_memberships" : [
"gir2swift",
"gir2swift-plugin"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"libgir2swift"
],
"type" : "executable"
}
],
"tools_version" : "5.6"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.