The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Git, reference 3.4.0 (618e8f), with Swift 6.0 for Linux on 3 Jun 2025 22:12:33 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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.0
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-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:eaa733228b13fb63f7b48fc0ae9a4552a427b7215d37e5caded5aa10021734d9
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/99] Emitting module Git
[4/99] Compiling Git GitReferenceName.swift
[5/99] Compiling Git GitRemote.swift
[6/99] Compiling Git GitRemoteList.swift
[7/99] Compiling Git GitRepository.swift
[8/99] Compiling Git GitRepository+Cherry.swift
[9/99] Compiling Git GitRepository+CherryPick.swift
[10/99] Compiling Git GitRepository+Files.swift
[11/99] Compiling Git GitRepository+Init.swift
[12/99] Compiling Git GitRepository+Log.swift
[13/99] Compiling Git GitRepository+Merge.swift
[14/99] Compiling Git GitRepository+Reference.swift
[15/99] Compiling Git GitRepository+Remotes.swift
[16/99] Compiling Git GitRepository+SparseCheckout.swift
[17/99] Compiling Git GitRepository+Status.swift
[18/112] Compiling Git GitRepository+Tag.swift
[19/112] Compiling Git GitRepositoryErrorFormatter.swift
[20/112] Compiling Git GitStashRecord.swift
[21/112] Compiling Git GitStashRecordList.swift
[22/112] Compiling Git GitTagRecord.swift
[23/112] Compiling Git GitTagRecordList.swift
[24/112] Compiling Git AddTask.swift
[25/112] Compiling Git GitAddOptions.swift
[26/112] Compiling Git ArgumentConvertible.swift
[27/112] Compiling Git BranchOptions.swift
[28/112] Compiling Git BranchTask.swift
[29/112] Compiling Git CheckReferenceTask.swift
[30/112] Compiling Git CheckoutOptions.swift
[31/112] Compiling Git CheckoutTask.swift
[32/112] Compiling Git File.swift
[33/112] Compiling Git FileAnnotationRecord.swift
[34/112] Compiling Git FileCoder.swift
[35/112] Compiling Git FileStorage.swift
[36/112] Compiling Git GitFile.swift
[37/112] Compiling Git GitFileStorage.swift
[38/112] Compiling Git GitCredentialsProvider.swift
[39/112] Compiling Git GitFileStatus.swift
[40/112] Compiling Git GitFileStatusList.swift
[41/112] Compiling Git GitLogRecord.swift
[42/112] Compiling Git GitLogRecordList.swift
[43/112] Compiling Git GitMergeStatus.swift
[44/112] Compiling Git GitReference.swift
[45/112] Compiling Git GitReferenceList.swift
[46/112] Compiling Git CherryTask.swift
[47/112] Compiling Git GitCherryOptions.swift
[48/112] Compiling Git GitCherryResult.swift
[49/112] Compiling Git CherryPickOptions.swift
[50/112] Compiling Git CherryPickTask.swift
[51/112] Compiling Git CleanOptions.swift
[52/112] Compiling Git CleanTask.swift
[53/112] Compiling Git CloneOptions.swift
[54/112] Compiling Git CloneTask.swift
[55/112] Compiling Git CommitOptions.swift
[56/112] Compiling Git CommitTask.swift
[57/112] Compiling Git FetchTask.swift
[58/112] Compiling Git GitFetchOptions.swift
[59/112] Compiling Git InitOptions.swift
[60/112] Compiling Git GitStashDropOptions.swift
[61/112] Compiling Git StashDropTask.swift
[62/112] Compiling Git GitStashListOptions.swift
[63/112] Compiling Git StashListTask.swift
[64/112] Compiling Git GitStatusOptions.swift
[65/112] Compiling Git StatusTask.swift
[66/112] Compiling Git GitTagListOptions.swift
[67/112] Compiling Git GitTagOptions.swift
[68/112] Compiling Git TagTask.swift
[69/112] Compiling Git GitFormatDecoder.swift
[70/112] Compiling Git GitFormatEncoder.swift
[71/112] Compiling Git GitOutputParser.swift
[72/112] Compiling Git IndexIterator.swift
[73/112] Compiling Git RemoteRenameTask.swift
[74/112] Compiling Git RemoteUrlChangeTask.swift
[75/112] Compiling Git RemoteUrlTask.swift
[76/112] Compiling Git RepositoryTask.swift
[77/112] Compiling Git GitResetOptions.swift
[78/112] Compiling Git ResetTask.swift
[79/112] Compiling Git GitSparseAddOptions.swift
[80/112] Compiling Git GitSparseSetOptions.swift
[81/112] Compiling Git SparseTask.swift
[82/112] Compiling Git GitStashApplyOptions.swift
[83/112] Compiling Git StashApplyTask.swift
[84/112] Compiling Git GitStashOptions.swift
[85/112] Compiling Git StashTask.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.0 linux