Build Information
Failed to build Git, reference master (450dbc
), with Swift 6.1 for Linux on 5 Jun 2025 18:46:47 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[87/112] Compiling Git GitLogOptions.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:69:20: warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 | class Reference {
68 |
69 | static var head: String = "HEAD"
| |- warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'head' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | static var mergeHead: String = "MERGE_HEAD"
71 |
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:70:20: warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | static var head: String = "HEAD"
70 | static var mergeHead: String = "MERGE_HEAD"
| |- warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'mergeHead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'mergeHead' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | public required init(referenceName: String, direction: ComparisonDirection) {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:50:24: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | final class ProcessSpawn {
49 |
50 | private static var bufferSize = 1024 * 8
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// The arguments to be executed.
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[88/112] Compiling Git LogTask.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:69:20: warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 | class Reference {
68 |
69 | static var head: String = "HEAD"
| |- warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'head' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | static var mergeHead: String = "MERGE_HEAD"
71 |
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:70:20: warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | static var head: String = "HEAD"
70 | static var mergeHead: String = "MERGE_HEAD"
| |- warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'mergeHead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'mergeHead' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | public required init(referenceName: String, direction: ComparisonDirection) {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:50:24: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | final class ProcessSpawn {
49 |
50 | private static var bufferSize = 1024 * 8
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// The arguments to be executed.
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[89/112] Compiling Git MergeOptions.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:69:20: warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 | class Reference {
68 |
69 | static var head: String = "HEAD"
| |- warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'head' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | static var mergeHead: String = "MERGE_HEAD"
71 |
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:70:20: warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | static var head: String = "HEAD"
70 | static var mergeHead: String = "MERGE_HEAD"
| |- warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'mergeHead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'mergeHead' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | public required init(referenceName: String, direction: ComparisonDirection) {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:50:24: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | final class ProcessSpawn {
49 |
50 | private static var bufferSize = 1024 * 8
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// The arguments to be executed.
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[90/112] Compiling Git MergeTask.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:69:20: warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 | class Reference {
68 |
69 | static var head: String = "HEAD"
| |- warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'head' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | static var mergeHead: String = "MERGE_HEAD"
71 |
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:70:20: warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | static var head: String = "HEAD"
70 | static var mergeHead: String = "MERGE_HEAD"
| |- warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'mergeHead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'mergeHead' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | public required init(referenceName: String, direction: ComparisonDirection) {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:50:24: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | final class ProcessSpawn {
49 |
50 | private static var bufferSize = 1024 * 8
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// The arguments to be executed.
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[91/112] Compiling Git ProcessSpawn.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:69:20: warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 | class Reference {
68 |
69 | static var head: String = "HEAD"
| |- warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'head' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | static var mergeHead: String = "MERGE_HEAD"
71 |
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:70:20: warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | static var head: String = "HEAD"
70 | static var mergeHead: String = "MERGE_HEAD"
| |- warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'mergeHead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'mergeHead' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | public required init(referenceName: String, direction: ComparisonDirection) {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:50:24: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | final class ProcessSpawn {
49 |
50 | private static var bufferSize = 1024 * 8
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// The arguments to be executed.
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[92/112] Compiling Git GitPullOptions.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:69:20: warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 | class Reference {
68 |
69 | static var head: String = "HEAD"
| |- warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'head' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | static var mergeHead: String = "MERGE_HEAD"
71 |
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:70:20: warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | static var head: String = "HEAD"
70 | static var mergeHead: String = "MERGE_HEAD"
| |- warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'mergeHead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'mergeHead' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | public required init(referenceName: String, direction: ComparisonDirection) {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:50:24: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | final class ProcessSpawn {
49 |
50 | private static var bufferSize = 1024 * 8
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// The arguments to be executed.
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[93/112] Compiling Git PullTask.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:69:20: warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 | class Reference {
68 |
69 | static var head: String = "HEAD"
| |- warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'head' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | static var mergeHead: String = "MERGE_HEAD"
71 |
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:70:20: warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | static var head: String = "HEAD"
70 | static var mergeHead: String = "MERGE_HEAD"
| |- warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'mergeHead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'mergeHead' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | public required init(referenceName: String, direction: ComparisonDirection) {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:50:24: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | final class ProcessSpawn {
49 |
50 | private static var bufferSize = 1024 * 8
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// The arguments to be executed.
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[94/112] Compiling Git GitPushOptions.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:69:20: warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 | class Reference {
68 |
69 | static var head: String = "HEAD"
| |- warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'head' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | static var mergeHead: String = "MERGE_HEAD"
71 |
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:70:20: warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | static var head: String = "HEAD"
70 | static var mergeHead: String = "MERGE_HEAD"
| |- warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'mergeHead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'mergeHead' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | public required init(referenceName: String, direction: ComparisonDirection) {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:50:24: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | final class ProcessSpawn {
49 |
50 | private static var bufferSize = 1024 * 8
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// The arguments to be executed.
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[95/112] Compiling Git PushTask.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:69:20: warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 | class Reference {
68 |
69 | static var head: String = "HEAD"
| |- warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'head' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | static var mergeHead: String = "MERGE_HEAD"
71 |
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:70:20: warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | static var head: String = "HEAD"
70 | static var mergeHead: String = "MERGE_HEAD"
| |- warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'mergeHead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'mergeHead' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | public required init(referenceName: String, direction: ComparisonDirection) {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:50:24: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | final class ProcessSpawn {
49 |
50 | private static var bufferSize = 1024 * 8
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// The arguments to be executed.
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[96/112] Compiling Git ReferencesTask.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:69:20: warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 | class Reference {
68 |
69 | static var head: String = "HEAD"
| |- warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'head' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | static var mergeHead: String = "MERGE_HEAD"
71 |
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:70:20: warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | static var head: String = "HEAD"
70 | static var mergeHead: String = "MERGE_HEAD"
| |- warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'mergeHead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'mergeHead' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | public required init(referenceName: String, direction: ComparisonDirection) {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:50:24: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | final class ProcessSpawn {
49 |
50 | private static var bufferSize = 1024 * 8
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// The arguments to be executed.
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[97/112] Compiling Git RemoteAddTask.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:69:20: warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 | class Reference {
68 |
69 | static var head: String = "HEAD"
| |- warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'head' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | static var mergeHead: String = "MERGE_HEAD"
71 |
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:70:20: warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | static var head: String = "HEAD"
70 | static var mergeHead: String = "MERGE_HEAD"
| |- warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'mergeHead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'mergeHead' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | public required init(referenceName: String, direction: ComparisonDirection) {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:50:24: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | final class ProcessSpawn {
49 |
50 | private static var bufferSize = 1024 * 8
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// The arguments to be executed.
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[98/112] Compiling Git RemoteListTask.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:69:20: warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
67 | class Reference {
68 |
69 | static var head: String = "HEAD"
| |- warning: static property 'head' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'head' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | static var mergeHead: String = "MERGE_HEAD"
71 |
/host/spi-builder-workspace/Sources/Classes/Tasks/Log/GitLogCompareOptions.swift:70:20: warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | static var head: String = "HEAD"
70 | static var mergeHead: String = "MERGE_HEAD"
| |- warning: static property 'mergeHead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'mergeHead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'mergeHead' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | public required init(referenceName: String, direction: ComparisonDirection) {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:50:24: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 | final class ProcessSpawn {
49 |
50 | private static var bufferSize = 1024 * 8
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// The arguments to be executed.
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[99/112] Compiling Git File.swift
/host/spi-builder-workspace/Sources/Classes/FileManagement/File.swift:16:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Returns a default options to apply while processing a file
16 | public static var `default` = FileOptions()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Indicates whether line annotations should be read.
[100/112] Compiling Git FileAnnotationRecord.swift
/host/spi-builder-workspace/Sources/Classes/FileManagement/File.swift:16:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Returns a default options to apply while processing a file
16 | public static var `default` = FileOptions()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Indicates whether line annotations should be read.
[101/112] Compiling Git FileCoder.swift
/host/spi-builder-workspace/Sources/Classes/FileManagement/File.swift:16:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Returns a default options to apply while processing a file
16 | public static var `default` = FileOptions()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Indicates whether line annotations should be read.
[102/112] Compiling Git FileStorage.swift
/host/spi-builder-workspace/Sources/Classes/FileManagement/File.swift:16:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Returns a default options to apply while processing a file
16 | public static var `default` = FileOptions()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Indicates whether line annotations should be read.
[103/112] Compiling Git GitFile.swift
/host/spi-builder-workspace/Sources/Classes/FileManagement/File.swift:16:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Returns a default options to apply while processing a file
16 | public static var `default` = FileOptions()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Indicates whether line annotations should be read.
[104/112] Compiling Git GitFileStorage.swift
/host/spi-builder-workspace/Sources/Classes/FileManagement/File.swift:16:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Returns a default options to apply while processing a file
16 | public static var `default` = FileOptions()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Indicates whether line annotations should be read.
[105/112] Compiling Git GitCredentialsProvider.swift
/host/spi-builder-workspace/Sources/Classes/FileManagement/File.swift:16:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Returns a default options to apply while processing a file
16 | public static var `default` = FileOptions()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Indicates whether line annotations should be read.
[106/112] Compiling Git GitFileStatus.swift
/host/spi-builder-workspace/Sources/Classes/FileManagement/File.swift:16:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Returns a default options to apply while processing a file
16 | public static var `default` = FileOptions()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Indicates whether line annotations should be read.
[107/112] Compiling Git GitFileStatusList.swift
/host/spi-builder-workspace/Sources/Classes/FileManagement/File.swift:16:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Returns a default options to apply while processing a file
16 | public static var `default` = FileOptions()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Indicates whether line annotations should be read.
[108/112] Compiling Git GitLogRecord.swift
/host/spi-builder-workspace/Sources/Classes/FileManagement/File.swift:16:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Returns a default options to apply while processing a file
16 | public static var `default` = FileOptions()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Indicates whether line annotations should be read.
[109/112] Compiling Git GitLogRecordList.swift
/host/spi-builder-workspace/Sources/Classes/FileManagement/File.swift:16:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Returns a default options to apply while processing a file
16 | public static var `default` = FileOptions()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Indicates whether line annotations should be read.
[110/112] Compiling Git GitMergeStatus.swift
/host/spi-builder-workspace/Sources/Classes/FileManagement/File.swift:16:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Returns a default options to apply while processing a file
16 | public static var `default` = FileOptions()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Indicates whether line annotations should be read.
[111/112] Compiling Git GitReference.swift
/host/spi-builder-workspace/Sources/Classes/FileManagement/File.swift:16:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Returns a default options to apply while processing a file
16 | public static var `default` = FileOptions()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Indicates whether line annotations should be read.
[112/112] Compiling Git GitReferenceList.swift
/host/spi-builder-workspace/Sources/Classes/FileManagement/File.swift:16:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Returns a default options to apply while processing a file
16 | public static var `default` = FileOptions()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /// Indicates whether line annotations should be read.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2b296aa7156f49efc57252cdf9ed4bb21d0f92fc98d88800e255491ba2db3116
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/98] Compiling Git GitRepository+Tag.swift
[3/98] Compiling Git GitRepositoryErrorFormatter.swift
[4/98] Compiling Git GitStashRecord.swift
[5/98] Compiling Git GitStashRecordList.swift
[6/98] Compiling Git GitTagRecord.swift
[7/98] Compiling Git GitTagRecordList.swift
[8/98] Compiling Git AddTask.swift
[9/98] Compiling Git GitAddOptions.swift
[10/98] Compiling Git ArgumentConvertible.swift
[11/98] Compiling Git BranchOptions.swift
[12/98] Compiling Git BranchTask.swift
[13/98] Compiling Git CheckReferenceTask.swift
[14/98] Compiling Git CheckoutOptions.swift
[15/98] Compiling Git CheckoutTask.swift
[16/111] Emitting module Git
[17/111] Compiling Git GitStashDropOptions.swift
[18/111] Compiling Git StashDropTask.swift
[19/111] Compiling Git GitStashListOptions.swift
[20/111] Compiling Git StashListTask.swift
[21/111] Compiling Git GitStatusOptions.swift
[22/111] Compiling Git StatusTask.swift
[23/111] Compiling Git GitTagListOptions.swift
[24/111] Compiling Git GitTagOptions.swift
[25/111] Compiling Git TagTask.swift
[26/111] Compiling Git GitFormatDecoder.swift
[27/111] Compiling Git GitFormatEncoder.swift
[28/111] Compiling Git GitOutputParser.swift
[29/111] Compiling Git IndexIterator.swift
[30/111] Compiling Git RemoteRenameTask.swift
[31/111] Compiling Git RemoteUrlChangeTask.swift
[32/111] Compiling Git RemoteUrlTask.swift
[33/111] Compiling Git RepositoryTask.swift
[34/111] Compiling Git GitResetOptions.swift
[35/111] Compiling Git ResetTask.swift
[36/111] Compiling Git GitSparseAddOptions.swift
[37/111] Compiling Git GitSparseSetOptions.swift
[38/111] Compiling Git SparseTask.swift
[39/111] Compiling Git GitStashApplyOptions.swift
[40/111] Compiling Git StashApplyTask.swift
[41/111] Compiling Git GitStashOptions.swift
[42/111] Compiling Git StashTask.swift
[43/111] Compiling Git CherryTask.swift
[44/111] Compiling Git GitCherryOptions.swift
[45/111] Compiling Git GitCherryResult.swift
[46/111] Compiling Git CherryPickOptions.swift
[47/111] Compiling Git CherryPickTask.swift
[48/111] Compiling Git CleanOptions.swift
[49/111] Compiling Git CleanTask.swift
[50/111] Compiling Git CloneOptions.swift
[51/111] Compiling Git CloneTask.swift
[52/111] Compiling Git CommitOptions.swift
[53/111] Compiling Git CommitTask.swift
[54/111] Compiling Git FetchTask.swift
[55/111] Compiling Git GitFetchOptions.swift
[56/111] Compiling Git InitOptions.swift
[57/111] Compiling Git InitTask.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[58/111] Compiling Git GitLogCompareOptions.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[59/111] Compiling Git GitLogOptions.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[60/111] Compiling Git LogTask.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[61/111] Compiling Git MergeOptions.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[62/111] Compiling Git MergeTask.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[63/111] Compiling Git ProcessSpawn.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[64/111] Compiling Git GitPullOptions.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[65/111] Compiling Git PullTask.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[66/111] Compiling Git GitPushOptions.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[67/111] Compiling Git PushTask.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[68/111] Compiling Git ReferencesTask.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[69/111] Compiling Git RemoteAddTask.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[70/111] Compiling Git RemoteListTask.swift
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:142:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
140 | defer { for case let env? in envp { free(env) } }
141 |
142 | guard posix_spawn(&pid, argv[0], &childFDActions, nil, argv + [nil], envp + [nil]) >= 0 else {
| |- error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
143 | throw SpawnError.canNotCreatePosixSpawn
144 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:147:26: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
145 |
146 | posix_spawn_file_actions_destroy(&childFDActions)
147 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
148 |
149 | processId = pid
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:158:27: warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
156 | }
157 |
158 | if childFDActions != nil {
| `- warning: comparing non-optional value of type 'posix_spawn_file_actions_t' to 'nil' always returns true
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:160:30: error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
158 | if childFDActions != nil {
159 | posix_spawn_file_actions_destroy(&childFDActions)
160 | childFDActions = nil
| `- error: 'nil' cannot be assigned to type 'posix_spawn_file_actions_t'
161 | }
162 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:176:19: error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
176 | tid = nil
| `- error: 'nil' cannot be assigned to type 'pthread_t' (aka 'UInt')
177 | }
178 | }
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:173:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
171 | pipe.closePipe(.read)
172 |
173 | if let threadId = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
174 | pthread_cancel(threadId)
175 | pthread_join(threadId, nil)
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:235:36: error: cannot convert value of type 'Int' to expected argument type 'Int32'
233 |
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
237 |
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:236:35: error: cannot convert value of type 'Int' to expected argument type 'Int32'
234 | // Set up cancellation
235 | pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, nil)
236 | pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, nil)
| `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
237 |
238 | let bufferSize: size_t = ProcessSpawn.bufferSize
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:266:35: error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
264 | threadPayloadRef.pointee = threadPayload
265 |
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
| `- error: cannot convert value of type '(UnsafeMutableRawPointer) -> UnsafeMutableRawPointer?' to expected argument type '@convention(c) (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?'
267 |
268 | if let tid = tid {
/host/spi-builder-workspace/Sources/Classes/Tasks/ProcessSpawn.swift:268:12: error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
266 | pthread_create(&tid, nil, callback, threadPayloadRef)
267 |
268 | if let tid = tid {
| `- error: initializer for conditional binding must have Optional type, not 'pthread_t' (aka 'UInt')
269 | // Wait for the thread to be executed
270 | pthread_join(tid, nil)
[71/111] Compiling Git GitReferenceName.swift
[72/111] Compiling Git GitRemote.swift
[73/111] Compiling Git GitRemoteList.swift
[74/111] Compiling Git GitRepository.swift
[75/111] Compiling Git GitRepository+Cherry.swift
[76/111] Compiling Git GitRepository+CherryPick.swift
[77/111] Compiling Git GitRepository+Files.swift
[78/111] Compiling Git GitRepository+Init.swift
[79/111] Compiling Git GitRepository+Log.swift
[80/111] Compiling Git GitRepository+Merge.swift
[81/111] Compiling Git GitRepository+Reference.swift
[82/111] Compiling Git GitRepository+Remotes.swift
[83/111] Compiling Git GitRepository+SparseCheckout.swift
[84/111] Compiling Git GitRepository+Status.swift
[85/111] Compiling Git FileManager+Utils.swift
[86/111] Compiling Git Formatter+Date.swift
[87/111] Compiling Git Array+Utils.swift
[88/111] Compiling Git CredentialsProvider.swift
[89/111] Compiling Git Repository.swift
[90/111] Compiling Git RepositoryDelegate.swift
[91/111] Compiling Git RepositoryError.swift
[92/111] Compiling Git RepositoryLogRecord.swift
[93/111] Compiling Git RepositoryReference.swift
[94/111] Compiling Git RepositoryReferenceName.swift
[95/111] Compiling Git RepositoryRemote.swift
[96/111] Compiling Git RepositoryStashRecord.swift
[97/111] Compiling Git RepositoryTagRecord.swift
[98/111] Compiling Git File.swift
[99/111] Compiling Git FileAnnotationRecord.swift
[100/111] Compiling Git FileCoder.swift
[101/111] Compiling Git FileStorage.swift
[102/111] Compiling Git GitFile.swift
[103/111] Compiling Git GitFileStorage.swift
[104/111] Compiling Git GitCredentialsProvider.swift
[105/111] Compiling Git GitFileStatus.swift
[106/111] Compiling Git GitFileStatusList.swift
[107/111] Compiling Git GitLogRecord.swift
[108/111] Compiling Git GitLogRecordList.swift
[109/111] Compiling Git GitMergeStatus.swift
[110/111] Compiling Git GitReference.swift
[111/111] Compiling Git GitReferenceList.swift
BUILD FAILURE 6.1 linux