Build Information
Failed to build swift-tools-support-core, reference 0.7.3 (e8fbc8
), with Swift 6.2 (beta) for Android on 23 Jun 2025 22:36:41 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftlang/swift-tools-support-core.git
Reference: 0.7.3
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/swiftlang/swift-tools-support-core
* tag 0.7.3 -> FETCH_HEAD
HEAD is now at e8fbc8b Fix an issue where process handles are leaked in exec on Windows
Cloned https://github.com/swiftlang/swift-tools-support-core.git
Revision (git rev-parse @):
e8fbc8b05a155f311b862178d92d043afb216fe3
SUCCESS checkout https://github.com/swiftlang/swift-tools-support-core.git at 0.7.3
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/swiftlang/swift-tools-support-core.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/13] Write sources
[4/13] Compiling TSCclibc strerror.c
[5/13] Compiling TSCclibc process.c
[6/13] Compiling TSCclibc libc.c
[7/13] Write swift-version-8C5A4AE7A8CE2BA.txt
[9/15] Compiling TSCLibc libc.swift
[10/15] Emitting module TSCLibc
[11/16] Wrapping AST for TSCLibc for debugging
[13/56] Emitting module TSCBasic
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:20:22: warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
18 | #endif
19 |
20 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
21 | import TSCLibc
22 | import Dispatch
/host/spi-builder-workspace/Sources/TSCBasic/misc.swift:11:22: warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
9 | */
10 |
11 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
12 | import TSCLibc
13 | import Foundation
/host/spi-builder-workspace/Sources/TSCBasic/Process/ProcessEnv.swift:71:36: warning: conformance of 'Dictionary<Key, Value>' to protocol 'Sendable' conflicts with that stated in the type's module 'Swift' and will be ignored; there cannot be more than one conformance, even with different conditional bounds
69 | }
70 |
71 | extension ProcessEnvironmentBlock: Sendable {}
| `- warning: conformance of 'Dictionary<Key, Value>' to protocol 'Sendable' conflicts with that stated in the type's module 'Swift' and will be ignored; there cannot be more than one conformance, even with different conditional bounds
72 |
73 | /// Provides functionality related a process's environment.
Swift.Dictionary:1:11: note: 'Dictionary<Key, Value>' declares conformance to protocol 'Sendable' here
1 | extension Dictionary : @unchecked Sendable where Key : Sendable, Value : Sendable {
| `- note: 'Dictionary<Key, Value>' declares conformance to protocol 'Sendable' here
2 | }
[14/61] Compiling TSCBasic Result.swift
[15/61] Compiling TSCBasic SortedArray.swift
[16/61] Compiling TSCBasic StringConversions.swift
[17/61] Compiling TSCBasic SynchronizedQueue.swift
[18/61] Compiling TSCBasic TemporaryFile.swift
[19/61] Compiling TSCBasic Await.swift
[20/61] Compiling TSCBasic Base64URL.swift
[21/61] Compiling TSCBasic ByteString.swift
[22/61] Compiling TSCBasic CStringArray.swift
[23/61] Compiling TSCBasic CacheableSequence.swift
[24/61] Compiling TSCBasic Closable.swift
[25/61] Compiling TSCBasic CodableResult.swift
[26/61] Compiling TSCBasic CollectionAlgorithms.swift
[27/61] Compiling TSCBasic CollectionExtensions.swift
[28/61] Compiling TSCBasic Condition.swift
[29/61] Compiling TSCBasic DeltaAlgorithm.swift
[30/61] Compiling TSCBasic DiagnosticsEngine.swift
[31/61] Compiling TSCBasic PathShims.swift
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:20:22: warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
18 | #endif
19 |
20 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
21 | import TSCLibc
22 | import Dispatch
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:387:57: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
385 | self.outputRedirection = outputRedirection
386 | self.startNewProcessGroup = startNewProcessGroup
387 | self.loggingHandler = loggingHandler ?? Process.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
388 | }
389 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:428:57: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
426 | self.outputRedirection = outputRedirection
427 | self.startNewProcessGroup = startNewProcessGroup
428 | self.loggingHandler = loggingHandler ?? Process.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
429 | }
430 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:634:41: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
632 | #endif
633 | posix_spawnattr_init(&attributes)
634 | defer { posix_spawnattr_destroy(&attributes) }
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
635 |
636 | // Unmask all signals.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:639:36: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
637 | var noSignals = sigset_t()
638 | sigemptyset(&noSignals)
639 | posix_spawnattr_setsigmask(&attributes, &noSignals)
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
640 |
641 | // Reset all signals to default behavior.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:659:39: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
657 | sigaddset(&mostSignals, i)
658 | }
659 | posix_spawnattr_setsigdefault(&attributes, &mostSignals)
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
660 | #endif
661 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:667:39: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
665 | // Establish a separate process group.
666 | flags |= POSIX_SPAWN_SETPGROUP
667 | posix_spawnattr_setpgroup(&attributes, 0)
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
668 | }
669 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:670:34: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
668 | }
669 |
670 | posix_spawnattr_setflags(&attributes, Int16(flags))
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
671 |
672 | // Setup the file actions.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:678:39: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
676 | var fileActions = posix_spawn_file_actions_t()
677 | #endif
678 | posix_spawn_file_actions_init(&fileActions)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
679 | defer { posix_spawn_file_actions_destroy(&fileActions) }
680 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:679:50: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
677 | #endif
678 | posix_spawn_file_actions_init(&fileActions)
679 | defer { posix_spawn_file_actions_destroy(&fileActions) }
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
680 |
681 | if let workingDirectory = workingDirectory?.pathString {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:711:42: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
709 |
710 | // Dupe the read portion of the remote to 0.
711 | posix_spawn_file_actions_adddup2(&fileActions, stdinPipe[0], 0)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
712 |
713 | // Close the other side's pipe since it was dupped to 0.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:714:43: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
712 |
713 | // Close the other side's pipe since it was dupped to 0.
714 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[0])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
715 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[1])
716 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:715:43: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
713 | // Close the other side's pipe since it was dupped to 0.
714 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[0])
715 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[1])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
716 |
717 | var outputPipe: [Int32] = [-1, -1]
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:724:46: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
722 |
723 | // Open the write end of the pipe.
724 | posix_spawn_file_actions_adddup2(&fileActions, outputPipe[1], 1)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
725 |
726 | // Close the other ends of the pipe since they were dupped to 1.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:727:47: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
725 |
726 | // Close the other ends of the pipe since they were dupped to 1.
727 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[0])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
728 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[1])
729 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:728:47: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
726 | // Close the other ends of the pipe since they were dupped to 1.
727 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[0])
728 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[1])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
729 |
730 | if outputRedirection.redirectStderr {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:732:50: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
730 | if outputRedirection.redirectStderr {
731 | // If merged was requested, send stderr to stdout.
732 | posix_spawn_file_actions_adddup2(&fileActions, 1, 2)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
733 | } else {
734 | // If no redirect was requested, open the pipe for stderr.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:736:50: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
734 | // If no redirect was requested, open the pipe for stderr.
735 | try open(pipe: &stderrPipe)
736 | posix_spawn_file_actions_adddup2(&fileActions, stderrPipe[1], 2)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
737 |
738 | // Close the other ends of the pipe since they were dupped to 2.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:739:51: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
737 |
738 | // Close the other ends of the pipe since they were dupped to 2.
739 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[0])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
740 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[1])
741 | }
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:740:51: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
738 | // Close the other ends of the pipe since they were dupped to 2.
739 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[0])
740 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[1])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
741 | }
742 | } else {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:743:46: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
741 | }
742 | } else {
743 | posix_spawn_file_actions_adddup2(&fileActions, 1, 1)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
744 | posix_spawn_file_actions_adddup2(&fileActions, 2, 2)
745 | }
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:744:46: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
742 | } else {
743 | posix_spawn_file_actions_adddup2(&fileActions, 1, 1)
744 | posix_spawn_file_actions_adddup2(&fileActions, 2, 2)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
745 | }
746 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:752:32: warning: 'environment' is deprecated: use `environmentBlock` instead [#DeprecatedDeclaration]
750 | }
751 | let argv = CStringArray(resolvedArgs)
752 | let env = CStringArray(environment.map({ "\($0.0)=\($0.1)" }))
| `- warning: 'environment' is deprecated: use `environmentBlock` instead [#DeprecatedDeclaration]
753 | let rv = posix_spawnp(&processID, argv.cArray[0]!, &fileActions, &attributes, argv.cArray, env.cArray)
754 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:753:92: error: value of optional type 'UnsafeMutablePointer<Int8>?' must be unwrapped to a value of type 'UnsafeMutablePointer<Int8>'
751 | let argv = CStringArray(resolvedArgs)
752 | let env = CStringArray(environment.map({ "\($0.0)=\($0.1)" }))
753 | let rv = posix_spawnp(&processID, argv.cArray[0]!, &fileActions, &attributes, argv.cArray, env.cArray)
| |- error: value of optional type 'UnsafeMutablePointer<Int8>?' must be unwrapped to a value of type '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'
754 |
755 | guard rv == 0 else {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:859:49: warning: converting a value of type '(__shared sending Result<ProcessResult, any Error>) -> ()' to type '(Result<ProcessResult, any Error>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
857 | try await withCheckedThrowingContinuation { continuation in
858 | DispatchQueue.processConcurrent.async {
859 | self.waitUntilExit(continuation.resume(with:))
| |- warning: converting a value of type '(__shared sending Result<ProcessResult, any Error>) -> ()' to type '(Result<ProcessResult, any Error>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
860 | }
861 | }
/host/spi-builder-workspace/Sources/TSCBasic/Process/ProcessEnv.swift:71:36: warning: conformance of 'Dictionary<Key, Value>' to protocol 'Sendable' conflicts with that stated in the type's module 'Swift' and will be ignored; there cannot be more than one conformance, even with different conditional bounds
69 | }
70 |
71 | extension ProcessEnvironmentBlock: Sendable {}
| `- warning: conformance of 'Dictionary<Key, Value>' to protocol 'Sendable' conflicts with that stated in the type's module 'Swift' and will be ignored; there cannot be more than one conformance, even with different conditional bounds
72 |
73 | /// Provides functionality related a process's environment.
Swift.Dictionary:1:11: note: 'Dictionary<Key, Value>' declares conformance to protocol 'Sendable' here
1 | extension Dictionary : @unchecked Sendable where Key : Sendable, Value : Sendable {
| `- note: 'Dictionary<Key, Value>' declares conformance to protocol 'Sendable' here
2 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[32/61] Compiling TSCBasic Process.swift
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:20:22: warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
18 | #endif
19 |
20 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
21 | import TSCLibc
22 | import Dispatch
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:387:57: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
385 | self.outputRedirection = outputRedirection
386 | self.startNewProcessGroup = startNewProcessGroup
387 | self.loggingHandler = loggingHandler ?? Process.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
388 | }
389 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:428:57: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
426 | self.outputRedirection = outputRedirection
427 | self.startNewProcessGroup = startNewProcessGroup
428 | self.loggingHandler = loggingHandler ?? Process.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
429 | }
430 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:634:41: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
632 | #endif
633 | posix_spawnattr_init(&attributes)
634 | defer { posix_spawnattr_destroy(&attributes) }
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
635 |
636 | // Unmask all signals.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:639:36: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
637 | var noSignals = sigset_t()
638 | sigemptyset(&noSignals)
639 | posix_spawnattr_setsigmask(&attributes, &noSignals)
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
640 |
641 | // Reset all signals to default behavior.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:659:39: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
657 | sigaddset(&mostSignals, i)
658 | }
659 | posix_spawnattr_setsigdefault(&attributes, &mostSignals)
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
660 | #endif
661 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:667:39: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
665 | // Establish a separate process group.
666 | flags |= POSIX_SPAWN_SETPGROUP
667 | posix_spawnattr_setpgroup(&attributes, 0)
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
668 | }
669 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:670:34: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
668 | }
669 |
670 | posix_spawnattr_setflags(&attributes, Int16(flags))
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
671 |
672 | // Setup the file actions.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:678:39: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
676 | var fileActions = posix_spawn_file_actions_t()
677 | #endif
678 | posix_spawn_file_actions_init(&fileActions)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
679 | defer { posix_spawn_file_actions_destroy(&fileActions) }
680 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:679:50: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
677 | #endif
678 | posix_spawn_file_actions_init(&fileActions)
679 | defer { posix_spawn_file_actions_destroy(&fileActions) }
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
680 |
681 | if let workingDirectory = workingDirectory?.pathString {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:711:42: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
709 |
710 | // Dupe the read portion of the remote to 0.
711 | posix_spawn_file_actions_adddup2(&fileActions, stdinPipe[0], 0)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
712 |
713 | // Close the other side's pipe since it was dupped to 0.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:714:43: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
712 |
713 | // Close the other side's pipe since it was dupped to 0.
714 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[0])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
715 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[1])
716 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:715:43: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
713 | // Close the other side's pipe since it was dupped to 0.
714 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[0])
715 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[1])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
716 |
717 | var outputPipe: [Int32] = [-1, -1]
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:724:46: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
722 |
723 | // Open the write end of the pipe.
724 | posix_spawn_file_actions_adddup2(&fileActions, outputPipe[1], 1)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
725 |
726 | // Close the other ends of the pipe since they were dupped to 1.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:727:47: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
725 |
726 | // Close the other ends of the pipe since they were dupped to 1.
727 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[0])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
728 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[1])
729 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:728:47: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
726 | // Close the other ends of the pipe since they were dupped to 1.
727 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[0])
728 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[1])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
729 |
730 | if outputRedirection.redirectStderr {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:732:50: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
730 | if outputRedirection.redirectStderr {
731 | // If merged was requested, send stderr to stdout.
732 | posix_spawn_file_actions_adddup2(&fileActions, 1, 2)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
733 | } else {
734 | // If no redirect was requested, open the pipe for stderr.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:736:50: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
734 | // If no redirect was requested, open the pipe for stderr.
735 | try open(pipe: &stderrPipe)
736 | posix_spawn_file_actions_adddup2(&fileActions, stderrPipe[1], 2)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
737 |
738 | // Close the other ends of the pipe since they were dupped to 2.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:739:51: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
737 |
738 | // Close the other ends of the pipe since they were dupped to 2.
739 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[0])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
740 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[1])
741 | }
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:740:51: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
738 | // Close the other ends of the pipe since they were dupped to 2.
739 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[0])
740 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[1])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
741 | }
742 | } else {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:743:46: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
741 | }
742 | } else {
743 | posix_spawn_file_actions_adddup2(&fileActions, 1, 1)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
744 | posix_spawn_file_actions_adddup2(&fileActions, 2, 2)
745 | }
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:744:46: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
742 | } else {
743 | posix_spawn_file_actions_adddup2(&fileActions, 1, 1)
744 | posix_spawn_file_actions_adddup2(&fileActions, 2, 2)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
745 | }
746 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:752:32: warning: 'environment' is deprecated: use `environmentBlock` instead [#DeprecatedDeclaration]
750 | }
751 | let argv = CStringArray(resolvedArgs)
752 | let env = CStringArray(environment.map({ "\($0.0)=\($0.1)" }))
| `- warning: 'environment' is deprecated: use `environmentBlock` instead [#DeprecatedDeclaration]
753 | let rv = posix_spawnp(&processID, argv.cArray[0]!, &fileActions, &attributes, argv.cArray, env.cArray)
754 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:753:92: error: value of optional type 'UnsafeMutablePointer<Int8>?' must be unwrapped to a value of type 'UnsafeMutablePointer<Int8>'
751 | let argv = CStringArray(resolvedArgs)
752 | let env = CStringArray(environment.map({ "\($0.0)=\($0.1)" }))
753 | let rv = posix_spawnp(&processID, argv.cArray[0]!, &fileActions, &attributes, argv.cArray, env.cArray)
| |- error: value of optional type 'UnsafeMutablePointer<Int8>?' must be unwrapped to a value of type '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'
754 |
755 | guard rv == 0 else {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:859:49: warning: converting a value of type '(__shared sending Result<ProcessResult, any Error>) -> ()' to type '(Result<ProcessResult, any Error>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
857 | try await withCheckedThrowingContinuation { continuation in
858 | DispatchQueue.processConcurrent.async {
859 | self.waitUntilExit(continuation.resume(with:))
| |- warning: converting a value of type '(__shared sending Result<ProcessResult, any Error>) -> ()' to type '(Result<ProcessResult, any Error>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
860 | }
861 | }
/host/spi-builder-workspace/Sources/TSCBasic/Process/ProcessEnv.swift:71:36: warning: conformance of 'Dictionary<Key, Value>' to protocol 'Sendable' conflicts with that stated in the type's module 'Swift' and will be ignored; there cannot be more than one conformance, even with different conditional bounds
69 | }
70 |
71 | extension ProcessEnvironmentBlock: Sendable {}
| `- warning: conformance of 'Dictionary<Key, Value>' to protocol 'Sendable' conflicts with that stated in the type's module 'Swift' and will be ignored; there cannot be more than one conformance, even with different conditional bounds
72 |
73 | /// Provides functionality related a process's environment.
Swift.Dictionary:1:11: note: 'Dictionary<Key, Value>' declares conformance to protocol 'Sendable' here
1 | extension Dictionary : @unchecked Sendable where Key : Sendable, Value : Sendable {
| `- note: 'Dictionary<Key, Value>' declares conformance to protocol 'Sendable' here
2 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[33/61] Compiling TSCBasic ProcessEnv.swift
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:20:22: warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
18 | #endif
19 |
20 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
21 | import TSCLibc
22 | import Dispatch
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:387:57: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
385 | self.outputRedirection = outputRedirection
386 | self.startNewProcessGroup = startNewProcessGroup
387 | self.loggingHandler = loggingHandler ?? Process.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
388 | }
389 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:428:57: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
426 | self.outputRedirection = outputRedirection
427 | self.startNewProcessGroup = startNewProcessGroup
428 | self.loggingHandler = loggingHandler ?? Process.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
429 | }
430 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:634:41: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
632 | #endif
633 | posix_spawnattr_init(&attributes)
634 | defer { posix_spawnattr_destroy(&attributes) }
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
635 |
636 | // Unmask all signals.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:639:36: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
637 | var noSignals = sigset_t()
638 | sigemptyset(&noSignals)
639 | posix_spawnattr_setsigmask(&attributes, &noSignals)
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
640 |
641 | // Reset all signals to default behavior.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:659:39: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
657 | sigaddset(&mostSignals, i)
658 | }
659 | posix_spawnattr_setsigdefault(&attributes, &mostSignals)
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
660 | #endif
661 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:667:39: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
665 | // Establish a separate process group.
666 | flags |= POSIX_SPAWN_SETPGROUP
667 | posix_spawnattr_setpgroup(&attributes, 0)
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
668 | }
669 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:670:34: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
668 | }
669 |
670 | posix_spawnattr_setflags(&attributes, Int16(flags))
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
671 |
672 | // Setup the file actions.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:678:39: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
676 | var fileActions = posix_spawn_file_actions_t()
677 | #endif
678 | posix_spawn_file_actions_init(&fileActions)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
679 | defer { posix_spawn_file_actions_destroy(&fileActions) }
680 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:679:50: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
677 | #endif
678 | posix_spawn_file_actions_init(&fileActions)
679 | defer { posix_spawn_file_actions_destroy(&fileActions) }
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
680 |
681 | if let workingDirectory = workingDirectory?.pathString {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:711:42: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
709 |
710 | // Dupe the read portion of the remote to 0.
711 | posix_spawn_file_actions_adddup2(&fileActions, stdinPipe[0], 0)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
712 |
713 | // Close the other side's pipe since it was dupped to 0.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:714:43: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
712 |
713 | // Close the other side's pipe since it was dupped to 0.
714 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[0])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
715 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[1])
716 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:715:43: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
713 | // Close the other side's pipe since it was dupped to 0.
714 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[0])
715 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[1])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
716 |
717 | var outputPipe: [Int32] = [-1, -1]
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:724:46: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
722 |
723 | // Open the write end of the pipe.
724 | posix_spawn_file_actions_adddup2(&fileActions, outputPipe[1], 1)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
725 |
726 | // Close the other ends of the pipe since they were dupped to 1.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:727:47: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
725 |
726 | // Close the other ends of the pipe since they were dupped to 1.
727 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[0])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
728 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[1])
729 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:728:47: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
726 | // Close the other ends of the pipe since they were dupped to 1.
727 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[0])
728 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[1])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
729 |
730 | if outputRedirection.redirectStderr {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:732:50: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
730 | if outputRedirection.redirectStderr {
731 | // If merged was requested, send stderr to stdout.
732 | posix_spawn_file_actions_adddup2(&fileActions, 1, 2)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
733 | } else {
734 | // If no redirect was requested, open the pipe for stderr.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:736:50: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
734 | // If no redirect was requested, open the pipe for stderr.
735 | try open(pipe: &stderrPipe)
736 | posix_spawn_file_actions_adddup2(&fileActions, stderrPipe[1], 2)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
737 |
738 | // Close the other ends of the pipe since they were dupped to 2.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:739:51: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
737 |
738 | // Close the other ends of the pipe since they were dupped to 2.
739 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[0])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
740 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[1])
741 | }
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:740:51: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
738 | // Close the other ends of the pipe since they were dupped to 2.
739 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[0])
740 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[1])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
741 | }
742 | } else {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:743:46: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
741 | }
742 | } else {
743 | posix_spawn_file_actions_adddup2(&fileActions, 1, 1)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
744 | posix_spawn_file_actions_adddup2(&fileActions, 2, 2)
745 | }
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:744:46: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
742 | } else {
743 | posix_spawn_file_actions_adddup2(&fileActions, 1, 1)
744 | posix_spawn_file_actions_adddup2(&fileActions, 2, 2)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
745 | }
746 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:752:32: warning: 'environment' is deprecated: use `environmentBlock` instead [#DeprecatedDeclaration]
750 | }
751 | let argv = CStringArray(resolvedArgs)
752 | let env = CStringArray(environment.map({ "\($0.0)=\($0.1)" }))
| `- warning: 'environment' is deprecated: use `environmentBlock` instead [#DeprecatedDeclaration]
753 | let rv = posix_spawnp(&processID, argv.cArray[0]!, &fileActions, &attributes, argv.cArray, env.cArray)
754 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:753:92: error: value of optional type 'UnsafeMutablePointer<Int8>?' must be unwrapped to a value of type 'UnsafeMutablePointer<Int8>'
751 | let argv = CStringArray(resolvedArgs)
752 | let env = CStringArray(environment.map({ "\($0.0)=\($0.1)" }))
753 | let rv = posix_spawnp(&processID, argv.cArray[0]!, &fileActions, &attributes, argv.cArray, env.cArray)
| |- error: value of optional type 'UnsafeMutablePointer<Int8>?' must be unwrapped to a value of type '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'
754 |
755 | guard rv == 0 else {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:859:49: warning: converting a value of type '(__shared sending Result<ProcessResult, any Error>) -> ()' to type '(Result<ProcessResult, any Error>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
857 | try await withCheckedThrowingContinuation { continuation in
858 | DispatchQueue.processConcurrent.async {
859 | self.waitUntilExit(continuation.resume(with:))
| |- warning: converting a value of type '(__shared sending Result<ProcessResult, any Error>) -> ()' to type '(Result<ProcessResult, any Error>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
860 | }
861 | }
/host/spi-builder-workspace/Sources/TSCBasic/Process/ProcessEnv.swift:71:36: warning: conformance of 'Dictionary<Key, Value>' to protocol 'Sendable' conflicts with that stated in the type's module 'Swift' and will be ignored; there cannot be more than one conformance, even with different conditional bounds
69 | }
70 |
71 | extension ProcessEnvironmentBlock: Sendable {}
| `- warning: conformance of 'Dictionary<Key, Value>' to protocol 'Sendable' conflicts with that stated in the type's module 'Swift' and will be ignored; there cannot be more than one conformance, even with different conditional bounds
72 |
73 | /// Provides functionality related a process's environment.
Swift.Dictionary:1:11: note: 'Dictionary<Key, Value>' declares conformance to protocol 'Sendable' here
1 | extension Dictionary : @unchecked Sendable where Key : Sendable, Value : Sendable {
| `- note: 'Dictionary<Key, Value>' declares conformance to protocol 'Sendable' here
2 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[34/61] Compiling TSCBasic ProcessSet.swift
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:20:22: warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
18 | #endif
19 |
20 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
21 | import TSCLibc
22 | import Dispatch
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:387:57: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
385 | self.outputRedirection = outputRedirection
386 | self.startNewProcessGroup = startNewProcessGroup
387 | self.loggingHandler = loggingHandler ?? Process.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
388 | }
389 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:428:57: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
426 | self.outputRedirection = outputRedirection
427 | self.startNewProcessGroup = startNewProcessGroup
428 | self.loggingHandler = loggingHandler ?? Process.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
429 | }
430 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:634:41: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
632 | #endif
633 | posix_spawnattr_init(&attributes)
634 | defer { posix_spawnattr_destroy(&attributes) }
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
635 |
636 | // Unmask all signals.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:639:36: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
637 | var noSignals = sigset_t()
638 | sigemptyset(&noSignals)
639 | posix_spawnattr_setsigmask(&attributes, &noSignals)
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
640 |
641 | // Reset all signals to default behavior.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:659:39: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
657 | sigaddset(&mostSignals, i)
658 | }
659 | posix_spawnattr_setsigdefault(&attributes, &mostSignals)
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
660 | #endif
661 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:667:39: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
665 | // Establish a separate process group.
666 | flags |= POSIX_SPAWN_SETPGROUP
667 | posix_spawnattr_setpgroup(&attributes, 0)
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
668 | }
669 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:670:34: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
668 | }
669 |
670 | posix_spawnattr_setflags(&attributes, Int16(flags))
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
671 |
672 | // Setup the file actions.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:678:39: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
676 | var fileActions = posix_spawn_file_actions_t()
677 | #endif
678 | posix_spawn_file_actions_init(&fileActions)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
679 | defer { posix_spawn_file_actions_destroy(&fileActions) }
680 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:679:50: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
677 | #endif
678 | posix_spawn_file_actions_init(&fileActions)
679 | defer { posix_spawn_file_actions_destroy(&fileActions) }
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
680 |
681 | if let workingDirectory = workingDirectory?.pathString {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:711:42: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
709 |
710 | // Dupe the read portion of the remote to 0.
711 | posix_spawn_file_actions_adddup2(&fileActions, stdinPipe[0], 0)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
712 |
713 | // Close the other side's pipe since it was dupped to 0.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:714:43: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
712 |
713 | // Close the other side's pipe since it was dupped to 0.
714 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[0])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
715 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[1])
716 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:715:43: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
713 | // Close the other side's pipe since it was dupped to 0.
714 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[0])
715 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[1])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
716 |
717 | var outputPipe: [Int32] = [-1, -1]
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:724:46: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
722 |
723 | // Open the write end of the pipe.
724 | posix_spawn_file_actions_adddup2(&fileActions, outputPipe[1], 1)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
725 |
726 | // Close the other ends of the pipe since they were dupped to 1.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:727:47: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
725 |
726 | // Close the other ends of the pipe since they were dupped to 1.
727 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[0])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
728 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[1])
729 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:728:47: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
726 | // Close the other ends of the pipe since they were dupped to 1.
727 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[0])
728 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[1])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
729 |
730 | if outputRedirection.redirectStderr {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:732:50: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
730 | if outputRedirection.redirectStderr {
731 | // If merged was requested, send stderr to stdout.
732 | posix_spawn_file_actions_adddup2(&fileActions, 1, 2)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
733 | } else {
734 | // If no redirect was requested, open the pipe for stderr.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:736:50: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
734 | // If no redirect was requested, open the pipe for stderr.
735 | try open(pipe: &stderrPipe)
736 | posix_spawn_file_actions_adddup2(&fileActions, stderrPipe[1], 2)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
737 |
738 | // Close the other ends of the pipe since they were dupped to 2.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:739:51: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
737 |
738 | // Close the other ends of the pipe since they were dupped to 2.
739 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[0])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
740 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[1])
741 | }
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:740:51: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
738 | // Close the other ends of the pipe since they were dupped to 2.
739 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[0])
740 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[1])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
741 | }
742 | } else {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:743:46: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
741 | }
742 | } else {
743 | posix_spawn_file_actions_adddup2(&fileActions, 1, 1)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
744 | posix_spawn_file_actions_adddup2(&fileActions, 2, 2)
745 | }
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:744:46: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
742 | } else {
743 | posix_spawn_file_actions_adddup2(&fileActions, 1, 1)
744 | posix_spawn_file_actions_adddup2(&fileActions, 2, 2)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
745 | }
746 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:752:32: warning: 'environment' is deprecated: use `environmentBlock` instead [#DeprecatedDeclaration]
750 | }
751 | let argv = CStringArray(resolvedArgs)
752 | let env = CStringArray(environment.map({ "\($0.0)=\($0.1)" }))
| `- warning: 'environment' is deprecated: use `environmentBlock` instead [#DeprecatedDeclaration]
753 | let rv = posix_spawnp(&processID, argv.cArray[0]!, &fileActions, &attributes, argv.cArray, env.cArray)
754 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:753:92: error: value of optional type 'UnsafeMutablePointer<Int8>?' must be unwrapped to a value of type 'UnsafeMutablePointer<Int8>'
751 | let argv = CStringArray(resolvedArgs)
752 | let env = CStringArray(environment.map({ "\($0.0)=\($0.1)" }))
753 | let rv = posix_spawnp(&processID, argv.cArray[0]!, &fileActions, &attributes, argv.cArray, env.cArray)
| |- error: value of optional type 'UnsafeMutablePointer<Int8>?' must be unwrapped to a value of type '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'
754 |
755 | guard rv == 0 else {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:859:49: warning: converting a value of type '(__shared sending Result<ProcessResult, any Error>) -> ()' to type '(Result<ProcessResult, any Error>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
857 | try await withCheckedThrowingContinuation { continuation in
858 | DispatchQueue.processConcurrent.async {
859 | self.waitUntilExit(continuation.resume(with:))
| |- warning: converting a value of type '(__shared sending Result<ProcessResult, any Error>) -> ()' to type '(Result<ProcessResult, any Error>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
860 | }
861 | }
/host/spi-builder-workspace/Sources/TSCBasic/Process/ProcessEnv.swift:71:36: warning: conformance of 'Dictionary<Key, Value>' to protocol 'Sendable' conflicts with that stated in the type's module 'Swift' and will be ignored; there cannot be more than one conformance, even with different conditional bounds
69 | }
70 |
71 | extension ProcessEnvironmentBlock: Sendable {}
| `- warning: conformance of 'Dictionary<Key, Value>' to protocol 'Sendable' conflicts with that stated in the type's module 'Swift' and will be ignored; there cannot be more than one conformance, even with different conditional bounds
72 |
73 | /// Provides functionality related a process's environment.
Swift.Dictionary:1:11: note: 'Dictionary<Key, Value>' declares conformance to protocol 'Sendable' here
1 | extension Dictionary : @unchecked Sendable where Key : Sendable, Value : Sendable {
| `- note: 'Dictionary<Key, Value>' declares conformance to protocol 'Sendable' here
2 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[35/61] Compiling TSCBasic RegEx.swift
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:20:22: warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
18 | #endif
19 |
20 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
21 | import TSCLibc
22 | import Dispatch
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:387:57: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
385 | self.outputRedirection = outputRedirection
386 | self.startNewProcessGroup = startNewProcessGroup
387 | self.loggingHandler = loggingHandler ?? Process.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
388 | }
389 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:428:57: warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
426 | self.outputRedirection = outputRedirection
427 | self.startNewProcessGroup = startNewProcessGroup
428 | self.loggingHandler = loggingHandler ?? Process.loggingHandler
| `- warning: 'loggingHandler' is deprecated: use instance level `loggingHandler` passed via `init` instead of setting one globally. [#DeprecatedDeclaration]
429 | }
430 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:634:41: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
632 | #endif
633 | posix_spawnattr_init(&attributes)
634 | defer { posix_spawnattr_destroy(&attributes) }
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
635 |
636 | // Unmask all signals.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:639:36: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
637 | var noSignals = sigset_t()
638 | sigemptyset(&noSignals)
639 | posix_spawnattr_setsigmask(&attributes, &noSignals)
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
640 |
641 | // Reset all signals to default behavior.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:659:39: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
657 | sigaddset(&mostSignals, i)
658 | }
659 | posix_spawnattr_setsigdefault(&attributes, &mostSignals)
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
660 | #endif
661 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:667:39: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
665 | // Establish a separate process group.
666 | flags |= POSIX_SPAWN_SETPGROUP
667 | posix_spawnattr_setpgroup(&attributes, 0)
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
668 | }
669 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:670:34: error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
668 | }
669 |
670 | posix_spawnattr_setflags(&attributes, Int16(flags))
| |- error: value of optional type 'posix_spawnattr_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawnattr_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
671 |
672 | // Setup the file actions.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:678:39: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
676 | var fileActions = posix_spawn_file_actions_t()
677 | #endif
678 | posix_spawn_file_actions_init(&fileActions)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
679 | defer { posix_spawn_file_actions_destroy(&fileActions) }
680 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:679:50: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
677 | #endif
678 | posix_spawn_file_actions_init(&fileActions)
679 | defer { posix_spawn_file_actions_destroy(&fileActions) }
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
680 |
681 | if let workingDirectory = workingDirectory?.pathString {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:711:42: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
709 |
710 | // Dupe the read portion of the remote to 0.
711 | posix_spawn_file_actions_adddup2(&fileActions, stdinPipe[0], 0)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
712 |
713 | // Close the other side's pipe since it was dupped to 0.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:714:43: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
712 |
713 | // Close the other side's pipe since it was dupped to 0.
714 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[0])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
715 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[1])
716 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:715:43: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
713 | // Close the other side's pipe since it was dupped to 0.
714 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[0])
715 | posix_spawn_file_actions_addclose(&fileActions, stdinPipe[1])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
716 |
717 | var outputPipe: [Int32] = [-1, -1]
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:724:46: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
722 |
723 | // Open the write end of the pipe.
724 | posix_spawn_file_actions_adddup2(&fileActions, outputPipe[1], 1)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
725 |
726 | // Close the other ends of the pipe since they were dupped to 1.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:727:47: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
725 |
726 | // Close the other ends of the pipe since they were dupped to 1.
727 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[0])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
728 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[1])
729 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:728:47: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
726 | // Close the other ends of the pipe since they were dupped to 1.
727 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[0])
728 | posix_spawn_file_actions_addclose(&fileActions, outputPipe[1])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
729 |
730 | if outputRedirection.redirectStderr {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:732:50: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
730 | if outputRedirection.redirectStderr {
731 | // If merged was requested, send stderr to stdout.
732 | posix_spawn_file_actions_adddup2(&fileActions, 1, 2)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
733 | } else {
734 | // If no redirect was requested, open the pipe for stderr.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:736:50: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
734 | // If no redirect was requested, open the pipe for stderr.
735 | try open(pipe: &stderrPipe)
736 | posix_spawn_file_actions_adddup2(&fileActions, stderrPipe[1], 2)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
737 |
738 | // Close the other ends of the pipe since they were dupped to 2.
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:739:51: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
737 |
738 | // Close the other ends of the pipe since they were dupped to 2.
739 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[0])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
740 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[1])
741 | }
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:740:51: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
738 | // Close the other ends of the pipe since they were dupped to 2.
739 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[0])
740 | posix_spawn_file_actions_addclose(&fileActions, stderrPipe[1])
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
741 | }
742 | } else {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:743:46: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
741 | }
742 | } else {
743 | posix_spawn_file_actions_adddup2(&fileActions, 1, 1)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
744 | posix_spawn_file_actions_adddup2(&fileActions, 2, 2)
745 | }
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:744:46: error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
742 | } else {
743 | posix_spawn_file_actions_adddup2(&fileActions, 1, 1)
744 | posix_spawn_file_actions_adddup2(&fileActions, 2, 2)
| |- error: value of optional type 'posix_spawn_file_actions_t?' (aka 'Optional<OpaquePointer>') must be unwrapped to a value of type 'posix_spawn_file_actions_t' (aka 'OpaquePointer')
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
745 | }
746 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:752:32: warning: 'environment' is deprecated: use `environmentBlock` instead [#DeprecatedDeclaration]
750 | }
751 | let argv = CStringArray(resolvedArgs)
752 | let env = CStringArray(environment.map({ "\($0.0)=\($0.1)" }))
| `- warning: 'environment' is deprecated: use `environmentBlock` instead [#DeprecatedDeclaration]
753 | let rv = posix_spawnp(&processID, argv.cArray[0]!, &fileActions, &attributes, argv.cArray, env.cArray)
754 |
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:753:92: error: value of optional type 'UnsafeMutablePointer<Int8>?' must be unwrapped to a value of type 'UnsafeMutablePointer<Int8>'
751 | let argv = CStringArray(resolvedArgs)
752 | let env = CStringArray(environment.map({ "\($0.0)=\($0.1)" }))
753 | let rv = posix_spawnp(&processID, argv.cArray[0]!, &fileActions, &attributes, argv.cArray, env.cArray)
| |- error: value of optional type 'UnsafeMutablePointer<Int8>?' must be unwrapped to a value of type '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'
754 |
755 | guard rv == 0 else {
/host/spi-builder-workspace/Sources/TSCBasic/Process/Process.swift:859:49: warning: converting a value of type '(__shared sending Result<ProcessResult, any Error>) -> ()' to type '(Result<ProcessResult, any Error>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
857 | try await withCheckedThrowingContinuation { continuation in
858 | DispatchQueue.processConcurrent.async {
859 | self.waitUntilExit(continuation.resume(with:))
| |- warning: converting a value of type '(__shared sending Result<ProcessResult, any Error>) -> ()' to type '(Result<ProcessResult, any Error>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
860 | }
861 | }
/host/spi-builder-workspace/Sources/TSCBasic/Process/ProcessEnv.swift:71:36: warning: conformance of 'Dictionary<Key, Value>' to protocol 'Sendable' conflicts with that stated in the type's module 'Swift' and will be ignored; there cannot be more than one conformance, even with different conditional bounds
69 | }
70 |
71 | extension ProcessEnvironmentBlock: Sendable {}
| `- warning: conformance of 'Dictionary<Key, Value>' to protocol 'Sendable' conflicts with that stated in the type's module 'Swift' and will be ignored; there cannot be more than one conformance, even with different conditional bounds
72 |
73 | /// Provides functionality related a process's environment.
Swift.Dictionary:1:11: note: 'Dictionary<Key, Value>' declares conformance to protocol 'Sendable' here
1 | extension Dictionary : @unchecked Sendable where Key : Sendable, Value : Sendable {
| `- note: 'Dictionary<Key, Value>' declares conformance to protocol 'Sendable' here
2 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[36/61] Compiling TSCBasic OSLog.swift
[37/61] Compiling TSCBasic ObjectIdentifierProtocol.swift
[38/61] Compiling TSCBasic OrderedDictionary.swift
[39/61] Compiling TSCBasic OrderedSet.swift
[40/61] Compiling TSCBasic Path.swift
[41/61] Compiling TSCBasic HashAlgorithms.swift
[42/61] Compiling TSCBasic JSON.swift
[43/61] Compiling TSCBasic JSONMapper.swift
[44/61] Compiling TSCBasic KeyedPair.swift
[45/61] Compiling TSCBasic LazyCache.swift
[46/61] Compiling TSCBasic Lock.swift
[47/61] Compiling TSCBasic DictionaryExtensions.swift
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:441:21: warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead [#DeprecatedDeclaration]
439 | defer { fsr.deallocate() }
440 |
441 | return try? AbsolutePath(String(cString: fsr))
| `- warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead [#DeprecatedDeclaration]
442 | #endif
443 | }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:441:16: warning: no calls to throwing functions occur within 'try' expression
439 | defer { fsr.deallocate() }
440 |
441 | return try? AbsolutePath(String(cString: fsr))
| `- warning: no calls to throwing functions occur within 'try' expression
442 | #endif
443 | }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:365:84: warning: will never be executed
363 | func hasQuarantineAttribute(_ path: AbsolutePath) -> Bool { false }
364 |
365 | func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool { false }
| | `- warning: will never be executed
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
366 |
367 | func itemReplacementDirectories(for path: AbsolutePath) throws -> [AbsolutePath] { [] }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:424:9: warning: will never be executed
416 | }
417 |
418 | func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool {
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
419 | #if canImport(Darwin)
420 | let bufLength = getxattr(path.pathString, name.rawValue, nil, 0, 0, 0)
:
422 | return bufLength > 0
423 | #else
424 | return false
| `- warning: will never be executed
425 | #endif
426 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[48/61] Compiling TSCBasic DictionaryLiteralExtensions.swift
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:441:21: warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead [#DeprecatedDeclaration]
439 | defer { fsr.deallocate() }
440 |
441 | return try? AbsolutePath(String(cString: fsr))
| `- warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead [#DeprecatedDeclaration]
442 | #endif
443 | }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:441:16: warning: no calls to throwing functions occur within 'try' expression
439 | defer { fsr.deallocate() }
440 |
441 | return try? AbsolutePath(String(cString: fsr))
| `- warning: no calls to throwing functions occur within 'try' expression
442 | #endif
443 | }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:365:84: warning: will never be executed
363 | func hasQuarantineAttribute(_ path: AbsolutePath) -> Bool { false }
364 |
365 | func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool { false }
| | `- warning: will never be executed
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
366 |
367 | func itemReplacementDirectories(for path: AbsolutePath) throws -> [AbsolutePath] { [] }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:424:9: warning: will never be executed
416 | }
417 |
418 | func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool {
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
419 | #if canImport(Darwin)
420 | let bufLength = getxattr(path.pathString, name.rawValue, nil, 0, 0, 0)
:
422 | return bufLength > 0
423 | #else
424 | return false
| `- warning: will never be executed
425 | #endif
426 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[49/61] Compiling TSCBasic EditDistance.swift
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:441:21: warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead [#DeprecatedDeclaration]
439 | defer { fsr.deallocate() }
440 |
441 | return try? AbsolutePath(String(cString: fsr))
| `- warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead [#DeprecatedDeclaration]
442 | #endif
443 | }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:441:16: warning: no calls to throwing functions occur within 'try' expression
439 | defer { fsr.deallocate() }
440 |
441 | return try? AbsolutePath(String(cString: fsr))
| `- warning: no calls to throwing functions occur within 'try' expression
442 | #endif
443 | }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:365:84: warning: will never be executed
363 | func hasQuarantineAttribute(_ path: AbsolutePath) -> Bool { false }
364 |
365 | func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool { false }
| | `- warning: will never be executed
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
366 |
367 | func itemReplacementDirectories(for path: AbsolutePath) throws -> [AbsolutePath] { [] }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:424:9: warning: will never be executed
416 | }
417 |
418 | func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool {
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
419 | #if canImport(Darwin)
420 | let bufLength = getxattr(path.pathString, name.rawValue, nil, 0, 0, 0)
:
422 | return bufLength > 0
423 | #else
424 | return false
| `- warning: will never be executed
425 | #endif
426 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[50/61] Compiling TSCBasic FileInfo.swift
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:441:21: warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead [#DeprecatedDeclaration]
439 | defer { fsr.deallocate() }
440 |
441 | return try? AbsolutePath(String(cString: fsr))
| `- warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead [#DeprecatedDeclaration]
442 | #endif
443 | }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:441:16: warning: no calls to throwing functions occur within 'try' expression
439 | defer { fsr.deallocate() }
440 |
441 | return try? AbsolutePath(String(cString: fsr))
| `- warning: no calls to throwing functions occur within 'try' expression
442 | #endif
443 | }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:365:84: warning: will never be executed
363 | func hasQuarantineAttribute(_ path: AbsolutePath) -> Bool { false }
364 |
365 | func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool { false }
| | `- warning: will never be executed
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
366 |
367 | func itemReplacementDirectories(for path: AbsolutePath) throws -> [AbsolutePath] { [] }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:424:9: warning: will never be executed
416 | }
417 |
418 | func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool {
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
419 | #if canImport(Darwin)
420 | let bufLength = getxattr(path.pathString, name.rawValue, nil, 0, 0, 0)
:
422 | return bufLength > 0
423 | #else
424 | return false
| `- warning: will never be executed
425 | #endif
426 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[51/61] Compiling TSCBasic FileSystem.swift
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:441:21: warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead [#DeprecatedDeclaration]
439 | defer { fsr.deallocate() }
440 |
441 | return try? AbsolutePath(String(cString: fsr))
| `- warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead [#DeprecatedDeclaration]
442 | #endif
443 | }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:441:16: warning: no calls to throwing functions occur within 'try' expression
439 | defer { fsr.deallocate() }
440 |
441 | return try? AbsolutePath(String(cString: fsr))
| `- warning: no calls to throwing functions occur within 'try' expression
442 | #endif
443 | }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:365:84: warning: will never be executed
363 | func hasQuarantineAttribute(_ path: AbsolutePath) -> Bool { false }
364 |
365 | func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool { false }
| | `- warning: will never be executed
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
366 |
367 | func itemReplacementDirectories(for path: AbsolutePath) throws -> [AbsolutePath] { [] }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:424:9: warning: will never be executed
416 | }
417 |
418 | func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool {
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
419 | #if canImport(Darwin)
420 | let bufLength = getxattr(path.pathString, name.rawValue, nil, 0, 0, 0)
:
422 | return bufLength > 0
423 | #else
424 | return false
| `- warning: will never be executed
425 | #endif
426 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[52/61] Compiling TSCBasic GraphAlgorithms.swift
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:441:21: warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead [#DeprecatedDeclaration]
439 | defer { fsr.deallocate() }
440 |
441 | return try? AbsolutePath(String(cString: fsr))
| `- warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead [#DeprecatedDeclaration]
442 | #endif
443 | }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:441:16: warning: no calls to throwing functions occur within 'try' expression
439 | defer { fsr.deallocate() }
440 |
441 | return try? AbsolutePath(String(cString: fsr))
| `- warning: no calls to throwing functions occur within 'try' expression
442 | #endif
443 | }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:365:84: warning: will never be executed
363 | func hasQuarantineAttribute(_ path: AbsolutePath) -> Bool { false }
364 |
365 | func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool { false }
| | `- warning: will never be executed
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
366 |
367 | func itemReplacementDirectories(for path: AbsolutePath) throws -> [AbsolutePath] { [] }
/host/spi-builder-workspace/Sources/TSCBasic/FileSystem.swift:424:9: warning: will never be executed
416 | }
417 |
418 | func hasAttribute(_ name: FileSystemAttribute, _ path: AbsolutePath) -> Bool {
| `- note: 'name' is of type 'FileSystemAttribute' which cannot be constructed because it is an enum with no cases
419 | #if canImport(Darwin)
420 | let bufLength = getxattr(path.pathString, name.rawValue, nil, 0, 0, 0)
:
422 | return bufLength > 0
423 | #else
424 | return false
| `- warning: will never be executed
425 | #endif
426 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[53/61] Compiling TSCBasic TerminalController.swift
/host/spi-builder-workspace/Sources/TSCBasic/misc.swift:11:22: warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
9 | */
10 |
11 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
12 | import TSCLibc
13 | import Foundation
/host/spi-builder-workspace/Sources/TSCBasic/TerminalController.swift:116:23: warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
114 | public static func terminalType(_ stream: LocalFileOutputByteStream) -> TerminalType {
115 | #if !os(Windows)
116 | if ProcessEnv.vars["TERM"] == "dumb" {
| `- warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
117 | return .dumb
118 | }
/host/spi-builder-workspace/Sources/TSCBasic/TerminalController.swift:138:37: warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
136 | #else
137 | // Try to get from environment.
138 | if let columns = ProcessEnv.vars["COLUMNS"], let width = Int(columns) {
| `- warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
139 | return width
140 | }
/host/spi-builder-workspace/Sources/TSCBasic/Thread.swift:54:41: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
52 | }
53 |
54 | self.thread = ThreadImpl(block: theTask)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
55 | }
56 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[54/61] Compiling TSCBasic Thread.swift
/host/spi-builder-workspace/Sources/TSCBasic/misc.swift:11:22: warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
9 | */
10 |
11 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
12 | import TSCLibc
13 | import Foundation
/host/spi-builder-workspace/Sources/TSCBasic/TerminalController.swift:116:23: warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
114 | public static func terminalType(_ stream: LocalFileOutputByteStream) -> TerminalType {
115 | #if !os(Windows)
116 | if ProcessEnv.vars["TERM"] == "dumb" {
| `- warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
117 | return .dumb
118 | }
/host/spi-builder-workspace/Sources/TSCBasic/TerminalController.swift:138:37: warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
136 | #else
137 | // Try to get from environment.
138 | if let columns = ProcessEnv.vars["COLUMNS"], let width = Int(columns) {
| `- warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
139 | return width
140 | }
/host/spi-builder-workspace/Sources/TSCBasic/Thread.swift:54:41: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
52 | }
53 |
54 | self.thread = ThreadImpl(block: theTask)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
55 | }
56 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[55/61] Compiling TSCBasic Tuple.swift
/host/spi-builder-workspace/Sources/TSCBasic/misc.swift:11:22: warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
9 | */
10 |
11 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
12 | import TSCLibc
13 | import Foundation
/host/spi-builder-workspace/Sources/TSCBasic/TerminalController.swift:116:23: warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
114 | public static func terminalType(_ stream: LocalFileOutputByteStream) -> TerminalType {
115 | #if !os(Windows)
116 | if ProcessEnv.vars["TERM"] == "dumb" {
| `- warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
117 | return .dumb
118 | }
/host/spi-builder-workspace/Sources/TSCBasic/TerminalController.swift:138:37: warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
136 | #else
137 | // Try to get from environment.
138 | if let columns = ProcessEnv.vars["COLUMNS"], let width = Int(columns) {
| `- warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
139 | return width
140 | }
/host/spi-builder-workspace/Sources/TSCBasic/Thread.swift:54:41: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
52 | }
53 |
54 | self.thread = ThreadImpl(block: theTask)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
55 | }
56 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[56/61] Compiling TSCBasic WritableByteStream.swift
/host/spi-builder-workspace/Sources/TSCBasic/misc.swift:11:22: warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
9 | */
10 |
11 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
12 | import TSCLibc
13 | import Foundation
/host/spi-builder-workspace/Sources/TSCBasic/TerminalController.swift:116:23: warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
114 | public static func terminalType(_ stream: LocalFileOutputByteStream) -> TerminalType {
115 | #if !os(Windows)
116 | if ProcessEnv.vars["TERM"] == "dumb" {
| `- warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
117 | return .dumb
118 | }
/host/spi-builder-workspace/Sources/TSCBasic/TerminalController.swift:138:37: warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
136 | #else
137 | // Try to get from environment.
138 | if let columns = ProcessEnv.vars["COLUMNS"], let width = Int(columns) {
| `- warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
139 | return width
140 | }
/host/spi-builder-workspace/Sources/TSCBasic/Thread.swift:54:41: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
52 | }
53 |
54 | self.thread = ThreadImpl(block: theTask)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
55 | }
56 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[57/61] Compiling TSCBasic misc.swift
/host/spi-builder-workspace/Sources/TSCBasic/misc.swift:11:22: warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
9 | */
10 |
11 | @_implementationOnly import TSCclibc
| `- warning: using '@_implementationOnly' without enabling library evolution for 'TSCBasic' may lead to instability during execution
12 | import TSCLibc
13 | import Foundation
/host/spi-builder-workspace/Sources/TSCBasic/TerminalController.swift:116:23: warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
114 | public static func terminalType(_ stream: LocalFileOutputByteStream) -> TerminalType {
115 | #if !os(Windows)
116 | if ProcessEnv.vars["TERM"] == "dumb" {
| `- warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
117 | return .dumb
118 | }
/host/spi-builder-workspace/Sources/TSCBasic/TerminalController.swift:138:37: warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
136 | #else
137 | // Try to get from environment.
138 | if let columns = ProcessEnv.vars["COLUMNS"], let width = Int(columns) {
| `- warning: 'vars' is deprecated: Use `block` instead [#DeprecatedDeclaration]
139 | return width
140 | }
/host/spi-builder-workspace/Sources/TSCBasic/Thread.swift:54:41: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
52 | }
53 |
54 | self.thread = ThreadImpl(block: theTask)
| `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
55 | }
56 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
BUILD FAILURE 6.2 android