The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Git, reference 3.4.0 (618e8f), with Swift 6.3 for Linux on 16 Apr 2026 07:49:41 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/way-to-code/git-macos.git
Reference: 3.4.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/way-to-code/git-macos
 * tag               3.4.0      -> FETCH_HEAD
HEAD is now at 618e8f3 Better cancellation of process
Cloned https://github.com/way-to-code/git-macos.git
Revision (git rev-parse @):
618e8f3ac4969df13f72c45b7be350a1c456107b
SUCCESS checkout https://github.com/way-to-code/git-macos.git at 3.4.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.3
Building package at path:  $PWD
https://github.com/way-to-code/git-macos.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/99] Compiling Git RemoteRenameTask.swift
[4/99] Compiling Git RemoteUrlChangeTask.swift
[5/99] Compiling Git RemoteUrlTask.swift
[6/99] Compiling Git RepositoryTask.swift
[7/99] Compiling Git GitResetOptions.swift
[8/99] Compiling Git ResetTask.swift
[9/99] Compiling Git GitSparseAddOptions.swift
[10/99] Compiling Git GitSparseSetOptions.swift
[11/99] Compiling Git SparseTask.swift
[12/99] Compiling Git GitStashApplyOptions.swift
[13/99] Compiling Git StashApplyTask.swift
[14/99] Compiling Git GitStashOptions.swift
[15/99] Compiling Git StashTask.swift
[16/99] Compiling Git GitStashDropOptions.swift
[17/99] Compiling Git StashDropTask.swift
[18/99] Compiling Git GitStashListOptions.swift
[19/99] Compiling Git StashListTask.swift
[20/99] Compiling Git GitStatusOptions.swift
[21/99] Compiling Git StatusTask.swift
[22/99] Compiling Git GitTagListOptions.swift
[23/99] Compiling Git GitTagOptions.swift
[24/99] Compiling Git TagTask.swift
[25/99] Compiling Git GitFormatDecoder.swift
[26/99] Compiling Git GitFormatEncoder.swift
[27/99] Compiling Git GitOutputParser.swift
[28/99] Compiling Git IndexIterator.swift
[29/99] Compiling Git File.swift
[30/99] Compiling Git FileAnnotationRecord.swift
[31/99] Compiling Git FileCoder.swift
[32/99] Compiling Git FileStorage.swift
[33/99] Compiling Git GitFile.swift
[34/99] Compiling Git GitFileStorage.swift
[35/99] Compiling Git GitCredentialsProvider.swift
[36/99] Compiling Git GitFileStatus.swift
[37/99] Compiling Git GitFileStatusList.swift
[38/99] Compiling Git GitLogRecord.swift
[39/99] Compiling Git GitLogRecordList.swift
[40/99] Compiling Git GitMergeStatus.swift
[41/99] Compiling Git GitReference.swift
[42/99] Compiling Git GitReferenceList.swift
[43/99] Emitting module Git
[44/99] Compiling Git GitRepository+Tag.swift
[45/99] Compiling Git GitRepositoryErrorFormatter.swift
[46/99] Compiling Git GitStashRecord.swift
[47/99] Compiling Git GitStashRecordList.swift
[48/99] Compiling Git GitTagRecord.swift
[49/99] Compiling Git GitTagRecordList.swift
[50/99] Compiling Git AddTask.swift
[51/99] Compiling Git GitAddOptions.swift
[52/99] Compiling Git ArgumentConvertible.swift
[53/99] Compiling Git BranchOptions.swift
[54/99] Compiling Git BranchTask.swift
[55/99] Compiling Git CheckReferenceTask.swift
[56/99] Compiling Git CheckoutOptions.swift
[57/99] Compiling Git CheckoutTask.swift
[58/99] Compiling Git GitReferenceName.swift
[59/99] Compiling Git GitRemote.swift
[60/99] Compiling Git GitRemoteList.swift
[61/99] Compiling Git GitRepository.swift
[62/99] Compiling Git GitRepository+Cherry.swift
[63/99] Compiling Git GitRepository+CherryPick.swift
[64/99] Compiling Git GitRepository+Files.swift
[65/99] Compiling Git GitRepository+Init.swift
[66/99] Compiling Git GitRepository+Log.swift
[67/99] Compiling Git GitRepository+Merge.swift
[68/99] Compiling Git GitRepository+Reference.swift
[69/99] Compiling Git GitRepository+Remotes.swift
[70/99] Compiling Git GitRepository+SparseCheckout.swift
[71/99] Compiling Git GitRepository+Status.swift
[72/99] Compiling Git CherryTask.swift
[73/99] Compiling Git GitCherryOptions.swift
[74/99] Compiling Git GitCherryResult.swift
[75/99] Compiling Git CherryPickOptions.swift
[76/99] Compiling Git CherryPickTask.swift
[77/99] Compiling Git CleanOptions.swift
[78/99] Compiling Git CleanTask.swift
[79/99] Compiling Git CloneOptions.swift
[80/99] Compiling Git CloneTask.swift
[81/99] Compiling Git CommitOptions.swift
[82/99] Compiling Git CommitTask.swift
[83/99] Compiling Git FetchTask.swift
[84/99] Compiling Git GitFetchOptions.swift
[85/99] Compiling Git InitOptions.swift
[86/112] 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)
[87/112] 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)
[88/112] 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)
[89/112] 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)
[90/112] 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)
[91/112] 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)
[92/112] 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)
[93/112] 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)
[94/112] 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)
[95/112] 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)
[96/112] 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)
[97/112] 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)
[98/112] 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)
[99/112] 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)
[100/112] Compiling Git FileManager+Utils.swift
[101/112] Compiling Git Formatter+Date.swift
[102/112] Compiling Git Array+Utils.swift
[103/112] Compiling Git CredentialsProvider.swift
[104/112] Compiling Git Repository.swift
[105/112] Compiling Git RepositoryDelegate.swift
[106/112] Compiling Git RepositoryError.swift
[107/112] Compiling Git RepositoryLogRecord.swift
[108/112] Compiling Git RepositoryReference.swift
[109/112] Compiling Git RepositoryReferenceName.swift
[110/112] Compiling Git RepositoryRemote.swift
[111/112] Compiling Git RepositoryStashRecord.swift
[112/112] Compiling Git RepositoryTagRecord.swift
BUILD FAILURE 6.3 linux