Build Information
Failed to build llbuild2, reference main (00335e
), with Swift 6.2 (beta) for Android on 18 Jun 2025 18:55:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-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/apple/swift-llbuild2.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/apple/swift-llbuild2
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 00335ec Merge pull request #222 from apple/eq
Cloned https://github.com/apple/swift-llbuild2.git
Revision (git rev-parse @):
00335ec3782c167219bb65d1ad024095fc678977
SUCCESS checkout https://github.com/apple/swift-llbuild2.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/apple/swift-llbuild2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
Fetching https://github.com/apple/swift-tools-support-core.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-distributed-tracing
Fetching https://github.com/grpc/grpc-swift.git
Fetching https://github.com/apple/swift-protobuf.git
[1/3836] Fetching swift-log
[270/8829] Fetching swift-log, swift-distributed-tracing
[3264/15684] Fetching swift-log, swift-distributed-tracing, swift-tools-support-core
[12395/66954] Fetching swift-log, swift-distributed-tracing, swift-tools-support-core, grpc-swift
Fetched https://github.com/apple/swift-log.git from cache (0.68s)
Fetched https://github.com/apple/swift-distributed-tracing from cache (0.69s)
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-argument-parser.git
[9932/58125] Fetching swift-tools-support-core, grpc-swift
[17623/73395] Fetching swift-tools-support-core, grpc-swift, swift-crypto
[24790/88775] Fetching swift-tools-support-core, grpc-swift, swift-crypto, swift-argument-parser
[30268/128230] Fetching swift-tools-support-core, grpc-swift, swift-crypto, swift-argument-parser, swift-protobuf
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.41s)
[69408/112850] Fetching swift-tools-support-core, grpc-swift, swift-crypto, swift-protobuf
Fetching https://github.com/apple/swift-tools-support-async.git
[104566/113625] Fetching swift-tools-support-core, grpc-swift, swift-crypto, swift-protobuf, swift-tools-support-async
Fetched https://github.com/apple/swift-crypto.git from cache (4.01s)
[90464/98355] Fetching swift-tools-support-core, grpc-swift, swift-protobuf, swift-tools-support-async
Fetched https://github.com/apple/swift-tools-support-async.git from cache (0.58s)
[90084/97580] Fetching swift-tools-support-core, grpc-swift, swift-protobuf
Fetched https://github.com/apple/swift-tools-support-core.git from cache (11.76s)
Fetched https://github.com/grpc/grpc-swift.git from cache (11.84s)
Fetched https://github.com/apple/swift-protobuf.git from cache (11.88s)
Computing version for https://github.com/apple/swift-distributed-tracing
Computed https://github.com/apple/swift-distributed-tracing at 1.2.1 (12.87s)
Fetching https://github.com/apple/swift-service-context.git
[1/1081] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.49s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.2.1 (1.28s)
Computing version for https://github.com/apple/swift-tools-support-async.git
Computed https://github.com/apple/swift-tools-support-async.git at 0.14.1 (1.27s)
Fetching https://github.com/apple/swift-nio.git
[1/76327] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (9.07s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.30.0 (10.07s)
Computing version for https://github.com/apple/swift-tools-support-core.git
Computed https://github.com/apple/swift-tools-support-core.git at 0.7.3 (1.29s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.91s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.1 (0.86s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.54s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/16640] Fetching swift-collections
[667/21068] Fetching swift-collections, swift-system
[1022/22865] Fetching swift-collections, swift-system, swift-atomics
Fetched https://github.com/apple/swift-system.git from cache (1.01s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.01s)
[4327/16640] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (4.39s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (5.27s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.83s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.29s)
Computing version for https://github.com/grpc/grpc-swift.git
Computed https://github.com/grpc/grpc-swift.git at 1.26.1 (1.47s)
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/apple/swift-nio-extras.git
[1/5942] Fetching swift-nio-extras
[2/8609] Fetching swift-nio-extras, swift-nio-transport-services
[666/20141] Fetching swift-nio-extras, swift-nio-transport-services, swift-nio-http2
[9761/35031] Fetching swift-nio-extras, swift-nio-transport-services, swift-nio-http2, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.92s)
[9705/32364] Fetching swift-nio-extras, swift-nio-http2, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-extras.git from cache (2.84s)
[23296/26422] Fetching swift-nio-http2, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-http2.git from cache (2.87s)
[13550/14890] Fetching swift-nio-ssl
Fetched https://github.com/apple/swift-nio-ssl.git from cache (4.17s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.24.0 (5.10s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.36.0 (0.95s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.28.0 (1.19s)
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
[1/2426] Fetching swift-service-lifecycle
[2/8610] Fetching swift-service-lifecycle, swift-certificates
[209/10200] Fetching swift-service-lifecycle, swift-certificates, swift-asn1
[2916/15185] Fetching swift-service-lifecycle, swift-certificates, swift-asn1, swift-async-algorithms
[3415/21144] Fetching swift-service-lifecycle, swift-certificates, swift-asn1, swift-async-algorithms, swift-algorithms
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (1.56s)
Fetching https://github.com/apple/swift-http-types.git
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.77s)
Fetched https://github.com/apple/swift-certificates.git from cache (1.79s)
Fetched https://github.com/apple/swift-asn1.git from cache (1.80s)
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetched https://github.com/apple/swift-algorithms.git from cache (1.81s)
[1/904] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types.git from cache (0.49s)
[1/1141] Fetching swift-http-structured-headers
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.52s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.8.0 (3.35s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.0.4 (1.08s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.10.0 (1.07s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.12.3 (2.15s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.3.2 (0.94s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (0.88s)
Fetching https://github.com/apple/swift-numerics.git
[1/5757] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.75s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.4.0 (1.65s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.32.0 (1.44s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.3.0 (0.84s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (0.98s)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.0
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.28.0
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.30.0
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.3.0
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.8.0
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.3.2
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Creating working copy for https://github.com/grpc/grpc-swift.git
Working copy of https://github.com/grpc/grpc-swift.git resolved at 1.26.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.10.0
Creating working copy for https://github.com/apple/swift-distributed-tracing
Working copy of https://github.com/apple/swift-distributed-tracing resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.32.0
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.36.0
Creating working copy for https://github.com/apple/swift-tools-support-async.git
Working copy of https://github.com/apple/swift-tools-support-async.git resolved at 0.14.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.12.3
Creating working copy for https://github.com/apple/swift-tools-support-core.git
Working copy of https://github.com/apple/swift-tools-support-core.git resolved at 0.7.3
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.24.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.5.1
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.0.4
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
[1/1] Compiling plugin GRPCSwiftPlugin
[2/2] Compiling plugin SwiftProtobufPlugin
[3/3] Compiling plugin GenerateManual
Building for debugging...
[3/869] Write sources
[24/869] Compiling _AtomicsShims.c
[25/869] Write swift-version-8C5A4AE7A8CE2BA.txt
[26/869] Compiling TSCclibc strerror.c
[27/869] Compiling TSCclibc libc.c
[28/869] Compiling TSCclibc process.c
[30/880] Emitting module _NIOBase64
[30/880] Compiling buf.cc
[31/880] Write sources
[31/880] Copying PrivacyInfo.xcprivacy
[31/880] Write sources
[51/880] Compiling CNIOWindows shim.c
[52/880] Compiling ber.cc
[53/880] Compiling cbb.cc
[54/882] Compiling asn1_compat.cc
[55/934] Compiling cbs.cc
[56/964] Compiling CNIOWindows WSAStartup.c
[57/982] Compiling CNIOWASI CNIOWASI.c
[58/982] Compiling CNIOLinux shim.c
[59/982] Compiling CNIOLinux liburing_shims.c
[60/982] Compiling CNIOLLHTTP c_nio_llhttp.c
[61/982] Compiling CNIOLLHTTP c_nio_http.c
[62/982] Compiling CNIOLLHTTP c_nio_api.c
[63/982] Compiling CNIODarwin shim.c
[64/982] Compiling CNIOBoringSSLShims shims.c
[65/982] Compiling fiat_p256_adx_sqr.S
[66/982] Compiling fiat_p256_adx_mul.S
[67/982] Compiling fiat_curve25519_adx_square.S
[68/982] Compiling fiat_curve25519_adx_mul.S
[69/982] Compiling tls_record.cc
[71/982] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[72/982] Compiling InternalCollectionsUtilities Debugging.swift
[73/983] Compiling InternalCollectionsUtilities Descriptions.swift
[74/983] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[75/983] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[76/983] Compiling SwiftProtobuf AsyncMessageSequence.swift
[77/983] Compiling SwiftProtobuf BinaryDecoder.swift
[78/983] Compiling SwiftProtobuf AnyMessageStorage.swift
[79/983] Compiling SwiftProtobuf AnyUnpackError.swift
[80/983] Compiling ServiceContextModule ServiceContextKey.swift
[81/983] Emitting module InternalCollectionsUtilities
[82/983] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[83/983] Compiling InternalCollectionsUtilities _SortedCollection.swift
[84/983] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[85/983] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[86/983] Emitting module ServiceContextModule
[87/983] Compiling ServiceContextModule ServiceContext.swift
[88/984] Compiling _NIOBase64 Base64.swift
[91/985] Emitting module _NIODataStructures
[92/989] Compiling _NIODataStructures PriorityQueue.swift
[93/991] Compiling _NIODataStructures _TinyArray.swift
[94/991] Compiling _NIODataStructures Heap.swift
[96/992] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[96/993] Wrapping AST for _NIOBase64 for debugging
[99/993] Emitting module Instrumentation
[99/993] Wrapping AST for _NIODataStructures for debugging
[101/993] Compiling Instrumentation NoOpInstrument.swift
[102/1008] Compiling Instrumentation MultiplexInstrument.swift
[102/1008] Compiling tls_method.cc
[104/1008] Compiling DequeModule _DequeBuffer.swift
[105/1008] Compiling DequeModule _DequeBufferHeader.swift
[105/1010] Wrapping AST for InternalCollectionsUtilities for debugging
[107/1010] Compiling DequeModule Deque+Equatable.swift
[108/1010] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[109/1010] Compiling DequeModule Deque+CustomReflectable.swift
[110/1010] Compiling DequeModule Deque+Descriptions.swift
[111/1010] Compiling DequeModule _DequeSlot.swift
[112/1010] Compiling DequeModule _UnsafeWrappedBuffer.swift
[113/1010] Compiling DequeModule Deque+Extras.swift
[114/1010] Compiling DequeModule Deque+Hashable.swift
[115/1010] Compiling DequeModule Deque._UnsafeHandle.swift
[116/1010] Compiling DequeModule Deque.swift
[117/1010] Compiling DequeModule Deque+Testing.swift
[118/1010] Compiling DequeModule Deque._Storage.swift
[119/1010] Compiling DequeModule Deque+Codable.swift
[120/1010] Compiling DequeModule Deque+Collection.swift
[121/1010] Emitting module DequeModule
[122/1011] Wrapping AST for DequeModule for debugging
[124/1011] Emitting module SwiftProtobuf
[125/1011] Emitting module TSCLibc
[126/1011] Compiling TSCLibc libc.swift
[127/1023] Compiling Instrumentation InstrumentationSystem.swift
[128/1023] Compiling Instrumentation Locks.swift
[129/1023] Compiling Instrumentation Instrument.swift
[130/1024] Compiling Logging MetadataProvider.swift
[132/1032] Compiling tls13_server.cc
[133/1032] Compiling tls13_client.cc
[134/1072] Compiling tls13_enc.cc
[135/1072] Wrapping AST for TSCLibc for debugging
[137/1072] Emitting module Tracing
[138/1072] Compiling Tracing TracingTime.swift
[139/1072] Compiling Logging Locks.swift
[140/1072] Compiling Logging LogHandler.swift
[141/1072] Compiling Logging Logging.swift
[142/1072] Emitting module Logging
[143/1073] Compiling Tracing TracerProtocol.swift
[144/1073] Compiling Tracing Tracer.swift
[145/1073] Wrapping AST for Logging for debugging
[147/1073] Compiling Tracing TracerProtocol+Legacy.swift
[148/1073] Compiling TSCBasic OSLog.swift
[149/1073] Compiling TSCBasic ObjectIdentifierProtocol.swift
[150/1073] Compiling TSCBasic OrderedDictionary.swift
[151/1073] Compiling TSCBasic OrderedSet.swift
[152/1073] Compiling TSCBasic Path.swift
[153/1073] Compiling TSCBasic DictionaryExtensions.swift
[154/1073] Compiling TSCBasic DictionaryLiteralExtensions.swift
[155/1073] Compiling TSCBasic EditDistance.swift
[156/1073] Compiling TSCBasic FileInfo.swift
[157/1073] Compiling TSCBasic FileSystem.swift
[158/1073] Compiling TSCBasic GraphAlgorithms.swift
[159/1073] Compiling TSCBasic HashAlgorithms.swift
[160/1073] Compiling SwiftProtobuf JSONDecodingOptions.swift
[161/1073] Compiling SwiftProtobuf JSONEncoder.swift
[162/1073] Compiling SwiftProtobuf JSONEncodingError.swift
[163/1073] Compiling SwiftProtobuf JSONEncodingOptions.swift
[164/1073] Compiling SwiftProtobuf JSONEncodingVisitor.swift
[165/1073] Compiling SwiftProtobuf JSONMapEncodingVisitor.swift
[166/1073] Compiling SwiftProtobuf JSONScanner.swift
[167/1073] Compiling SwiftProtobuf MathUtils.swift
[168/1073] Compiling SwiftProtobuf Message+AnyAdditions.swift
[169/1073] Compiling SwiftProtobuf Message+BinaryAdditions.swift
[170/1073] Compiling SwiftProtobuf Message+BinaryAdditions_Data.swift
[171/1073] Compiling SwiftProtobuf Message+FieldMask.swift
[172/1073] Compiling Tracing SpanProtocol.swift
[173/1073] Compiling Tracing InstrumentationSystem+Tracing.swift
[174/1073] Compiling Tracing NoOpTracer.swift
[175/1074] Compiling t1_enc.cc
[176/1074] Compiling tls13_both.cc
[178/1074] Emitting module TSCBasic
[178/1074] Compiling ssl_versions.cc
[185/1079] 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 {
[186/1079] 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 {
[187/1079] 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 {
[188/1079] 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 {
[189/1079] 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 {
[190/1079] Compiling TSCBasic Result.swift
[191/1079] Compiling TSCBasic SortedArray.swift
[192/1079] Compiling TSCBasic StringConversions.swift
[193/1079] Compiling TSCBasic SynchronizedQueue.swift
[194/1079] Compiling TSCBasic TemporaryFile.swift
[199/1079] Compiling TSCBasic TerminalController.swift
[200/1079] Compiling TSCBasic Thread.swift
[201/1079] Compiling TSCBasic Tuple.swift
[202/1079] Compiling TSCBasic WritableByteStream.swift
[203/1079] Compiling TSCBasic misc.swift
[204/1079] Compiling SwiftProtobuf PathVisitor.swift
[205/1079] Compiling SwiftProtobuf ProtoNameProviding.swift
[206/1079] Compiling SwiftProtobuf ProtobufAPIVersionCheck.swift
[207/1079] Compiling SwiftProtobuf Google_Protobuf_Duration+Extensions.swift
[208/1079] Compiling SwiftProtobuf Google_Protobuf_FieldMask+Extensions.swift
[209/1079] Compiling SwiftProtobuf Google_Protobuf_ListValue+Extensions.swift
[210/1079] Compiling SwiftProtobuf Google_Protobuf_NullValue+Extensions.swift
[211/1079] Compiling SwiftProtobuf Google_Protobuf_Struct+Extensions.swift
[212/1079] Compiling SwiftProtobuf Google_Protobuf_Timestamp+Extensions.swift
[213/1079] Compiling SwiftProtobuf Google_Protobuf_Value+Extensions.swift
[214/1079] Compiling SwiftProtobuf Google_Protobuf_Wrappers+Extensions.swift
[215/1079] Compiling SwiftProtobuf HashVisitor.swift
[216/1079] Compiling SwiftProtobuf Internal.swift
[217/1079] Compiling SwiftProtobuf JSONDecoder.swift
[218/1079] Compiling SwiftProtobuf JSONDecodingError.swift
[219/1079] Compiling TSCBasic JSON.swift
[220/1079] Compiling TSCBasic JSONMapper.swift
[221/1079] Compiling TSCBasic KeyedPair.swift
[222/1079] Compiling TSCBasic LazyCache.swift
[223/1079] Compiling TSCBasic Lock.swift
[230/1079] Compiling SwiftProtobuf TextFormatEncodingVisitor.swift
[231/1079] Compiling SwiftProtobuf TextFormatScanner.swift
[232/1079] Compiling SwiftProtobuf TimeUtils.swift
[233/1079] Compiling SwiftProtobuf UnknownStorage.swift
[234/1079] Compiling SwiftProtobuf UnsafeRawPointer+Shims.swift
[235/1079] Compiling SwiftProtobuf Varint.swift
[236/1079] Compiling SwiftProtobuf Version.swift
[237/1079] Compiling SwiftProtobuf Visitor.swift
[238/1079] Compiling SwiftProtobuf WireFormat.swift
[239/1079] Compiling SwiftProtobuf ZigZag.swift
[240/1079] Compiling SwiftProtobuf any.pb.swift
[240/1079] Compiling ssl_transcript.cc
[241/1079] Compiling ssl_x509.cc
[249/1079] Compiling TSCBasic CodableResult.swift
[250/1079] Compiling TSCBasic CollectionAlgorithms.swift
[251/1079] Compiling TSCBasic CollectionExtensions.swift
[252/1079] Compiling TSCBasic Condition.swift
[253/1079] Compiling TSCBasic DeltaAlgorithm.swift
[254/1079] Compiling TSCBasic DiagnosticsEngine.swift
[255/1079] Compiling TSCBasic Await.swift
[256/1079] Compiling TSCBasic Base64URL.swift
[257/1079] Compiling TSCBasic ByteString.swift
[258/1079] Compiling TSCBasic CStringArray.swift
[259/1079] Compiling TSCBasic CacheableSequence.swift
[260/1079] Compiling TSCBasic Closable.swift
[266/1079] Compiling ssl_stat.cc
[267/1079] Compiling ssl_privkey.cc
[268/1079] Compiling ssl_session.cc
[281/1079] Compiling ssl_key_share.cc
[282/1079] Compiling ssl_file.cc
[288/1079] Compiling ssl_lib.cc
[288/1079] Compiling ssl_asn1.cc
[288/1079] Compiling ssl_buffer.cc
[288/1079] Compiling ssl_cert.cc
[288/1079] Compiling ssl_cipher.cc
[288/1079] Compiling ssl_credential.cc
BUILD FAILURE 6.2 android