Build Information
Failed to build ProgressSpinnerKit, reference main (33ff37
), with Swift 6.2 (beta) for Android on 22 Jun 2025 13:43:31 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/yutailang0119/progressspinnerkit.git
Reference: main
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/yutailang0119/progressspinnerkit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 33ff37d Merge pull request #61 from yutailang0119/swift-tools-support-core
Cloned https://github.com/yutailang0119/progressspinnerkit.git
Revision (git rev-parse @):
33ff37dc1cccc9a9af7d18fcc0088c5a759f2697
SUCCESS checkout https://github.com/yutailang0119/progressspinnerkit.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/yutailang0119/progressspinnerkit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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
Fetching https://github.com/swiftlang/swift-tools-support-core.git
[1/6857] Fetching swift-tools-support-core
Fetched https://github.com/swiftlang/swift-tools-support-core.git from cache (0.72s)
Computing version for https://github.com/swiftlang/swift-tools-support-core.git
Computed https://github.com/swiftlang/swift-tools-support-core.git at 0.7.3 (3.70s)
Creating working copy for https://github.com/swiftlang/swift-tools-support-core.git
Working copy of https://github.com/swiftlang/swift-tools-support-core.git resolved at 0.7.3
Building for debugging...
[0/18] Write sources
[5/18] Compiling TSCclibc libc.c
[6/18] Compiling TSCclibc strerror.c
[7/18] Compiling TSCclibc process.c
[8/18] Write swift-version-8C5A4AE7A8CE2BA.txt
[10/20] Emitting module TSCLibc
[11/20] Compiling TSCLibc libc.swift
[12/21] Wrapping AST for TSCLibc for debugging
[14/61] Emitting module TSCBasic
[15/61] Compiling TSCBasic OSLog.swift
[16/61] Compiling TSCBasic ObjectIdentifierProtocol.swift
[17/61] Compiling TSCBasic OrderedDictionary.swift
[18/61] Compiling TSCBasic OrderedSet.swift
[19/61] Compiling TSCBasic Path.swift
[20/61] Compiling TSCBasic Await.swift
[21/61] Compiling TSCBasic Base64URL.swift
[22/61] Compiling TSCBasic ByteString.swift
[23/61] Compiling TSCBasic CStringArray.swift
[24/61] Compiling TSCBasic CacheableSequence.swift
[25/61] Compiling TSCBasic Closable.swift
[26/66] Compiling TSCBasic Result.swift
[27/66] Compiling TSCBasic SortedArray.swift
[28/66] Compiling TSCBasic StringConversions.swift
[29/66] Compiling TSCBasic SynchronizedQueue.swift
[30/66] Compiling TSCBasic TemporaryFile.swift
[31/66] Compiling TSCBasic HashAlgorithms.swift
[32/66] Compiling TSCBasic JSON.swift
[33/66] Compiling TSCBasic JSONMapper.swift
[34/66] Compiling TSCBasic KeyedPair.swift
[35/66] Compiling TSCBasic LazyCache.swift
[36/66] Compiling TSCBasic Lock.swift
[37/66] Compiling TSCBasic CodableResult.swift
[38/66] Compiling TSCBasic CollectionAlgorithms.swift
[39/66] Compiling TSCBasic CollectionExtensions.swift
[40/66] Compiling TSCBasic Condition.swift
[41/66] Compiling TSCBasic DeltaAlgorithm.swift
[42/66] Compiling TSCBasic DiagnosticsEngine.swift
[43/66] Compiling TSCBasic DictionaryExtensions.swift
[44/66] Compiling TSCBasic DictionaryLiteralExtensions.swift
[45/66] Compiling TSCBasic EditDistance.swift
[46/66] Compiling TSCBasic FileInfo.swift
[47/66] Compiling TSCBasic FileSystem.swift
[48/66] Compiling TSCBasic GraphAlgorithms.swift
[49/66] Compiling TSCBasic PathShims.swift
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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 {
[50/66] Compiling TSCBasic Process.swift
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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 {
[51/66] Compiling TSCBasic ProcessEnv.swift
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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 {
[52/66] Compiling TSCBasic ProcessSet.swift
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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 {
[53/66] Compiling TSCBasic RegEx.swift
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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/.build/checkouts/swift-tools-support-core/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 {
[54/66] Compiling TSCBasic TerminalController.swift
[55/66] Compiling TSCBasic Thread.swift
[56/66] Compiling TSCBasic Tuple.swift
[57/66] Compiling TSCBasic WritableByteStream.swift
[58/66] Compiling TSCBasic misc.swift
BUILD FAILURE 6.2 android