Build Information
Failed to build Shwift, reference main (d7be04), with Swift 6.2 for Android on 21 Jun 2025 07:51:47 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/GeorgeLyon/Shwift.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/GeorgeLyon/Shwift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d7be048 Fix remainder (#27)
Cloned https://github.com/GeorgeLyon/Shwift.git
Revision (git rev-parse @):
d7be04898d094ddce6140cc6a2e9a83fc994b66d
SUCCESS checkout https://github.com/GeorgeLyon/Shwift.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/GeorgeLyon/Shwift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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-nio.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-system
[1/4436] Fetching swift-system
[4393/80775] Fetching swift-system, swift-nio
[4438/96155] Fetching swift-system, swift-nio, swift-argument-parser
Fetched https://github.com/apple/swift-system from cache (0.79s)
[10898/91719] Fetching swift-nio, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.53s)
[23666/76339] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (8.24s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.5.0 (10.45s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.80s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.36s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[1/1797] Fetching swift-atomics
[1709/18437] Fetching swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.76s)
[4327/16640] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.80s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.53s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.04s)
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-system
Working copy of https://github.com/apple/swift-system resolved at 1.5.0
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-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.1
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 GenerateManual
Building for debugging...
[1/48] Write sources
[16/48] Compiling CNIOWindows shim.c
[16/48] Compiling _AtomicsShims.c
[18/48] Compiling CNIOWindows WSAStartup.c
[19/48] Compiling CNIOWASI CNIOWASI.c
[19/48] Compiling CNIODarwin shim.c
[21/48] Write sources
[23/48] Write swift-version-8C5A4AE7A8CE2BA.txt
[24/48] Compiling CSystem shims.c
[25/48] Compiling CNIOLinux liburing_shims.c
[26/53] Compiling CNIOLinux shim.c
[28/116] Emitting module _NIOBase64
[29/116] Emitting module InternalCollectionsUtilities
[29/117] Compiling c-nioatomics.c
[30/117] Compiling c-atomics.c
[32/123] Compiling SystemPackage FilePathComponentView.swift
[33/123] Compiling SystemPackage FilePathComponents.swift
[34/123] Compiling SystemPackage FileDescriptor.swift
[35/123] Compiling SystemPackage FileHelpers.swift
[36/123] Compiling SystemPackage Errno.swift
[37/123] Compiling SystemPackage ErrnoWindows.swift
[38/123] Compiling SystemPackage Exports.swift
[39/123] Compiling SystemPackage FilePathTempPosix.swift
[40/125] Compiling SystemPackage FilePathSyntax.swift
[41/125] Compiling SystemPackage FilePathTemp.swift
[42/125] Compiling SystemPackage FilePathParsing.swift
[43/125] Compiling SystemPackage FilePathString.swift
[44/125] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[49/125] Compiling SystemPackage Backcompat.swift
[50/125] Compiling SystemPackage CInterop.swift
[51/125] Compiling SystemPackage Constants.swift
[54/125] Compiling SystemPackage FileOperations.swift
[55/125] Compiling SystemPackage FilePath.swift
[56/125] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[57/126] Compiling SystemPackage MachPort.swift
[58/126] Compiling SystemPackage PlatformString.swift
[59/126] Compiling SystemPackage SystemString.swift
[61/129] Compiling _NIODataStructures PriorityQueue.swift
[70/129] Emitting module SystemPackage
[71/129] Compiling _NIOBase64 Base64.swift
[71/130] Wrapping AST for InternalCollectionsUtilities for debugging
[73/133] Compiling DequeModule Deque+Codable.swift
[74/133] Compiling DequeModule Deque+Collection.swift
[76/133] Emitting module Atomics
[81/145] Emitting module _NIODataStructures
[82/145] Compiling _NIODataStructures Heap.swift
[82/145] Wrapping AST for _NIOBase64 for debugging
[84/145] Compiling _NIODataStructures _TinyArray.swift
[85/146] Compiling NIOConcurrencyHelpers NIOLock.swift
[86/146] Wrapping AST for _NIODataStructures for debugging
[88/146] Compiling DequeModule Deque+Equatable.swift
[89/146] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[90/148] Compiling DequeModule _DequeBuffer.swift
[91/148] Compiling DequeModule _DequeBufferHeader.swift
[92/148] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[93/148] Emitting module ArgumentParserToolInfo
[94/148] Compiling ArgumentParserToolInfo ToolInfo.swift
[95/149] Compiling NIOConcurrencyHelpers lock.swift
[96/149] Compiling DequeModule Deque+CustomReflectable.swift
[97/149] Compiling DequeModule Deque+Descriptions.swift
[99/149] Compiling Atomics IntegerOperations.swift
[100/149] Compiling Atomics Unmanaged extensions.swift
[102/150] Emitting module NIOConcurrencyHelpers
[103/150] Compiling NIOConcurrencyHelpers atomics.swift
[104/150] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[104/151] Wrapping AST for ArgumentParserToolInfo for debugging
[106/151] Wrapping AST for Atomics for debugging
[108/151] Compiling DequeModule Deque+Extras.swift
[109/151] Compiling DequeModule Deque+Hashable.swift
[109/189] Wrapping AST for NIOConcurrencyHelpers for debugging
[111/189] Compiling ArgumentParser CommandConfiguration.swift
[112/189] Compiling ArgumentParser CommandGroup.swift
[113/189] Compiling ArgumentParser DumpHelpGenerator.swift
[114/189] Compiling ArgumentParser HelpCommand.swift
[115/189] Compiling ArgumentParser HelpGenerator.swift
[116/189] Compiling ArgumentParser Errors.swift
[117/189] Compiling ArgumentParser Flag.swift
[118/189] Compiling ArgumentParser NameSpecification.swift
[119/189] Compiling ArgumentParser Option.swift
[120/189] Compiling ArgumentParser BashCompletionsGenerator.swift
[121/189] Compiling ArgumentParser CompletionsGenerator.swift
[122/189] Emitting module DequeModule
[123/190] Wrapping AST for DequeModule for debugging
[125/250] Compiling NIOCore NIOAsyncWriter.swift
[126/250] Compiling NIOCore ByteBuffer-multi-int.swift
[127/250] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[128/250] Compiling NIOCore ByteBuffer-views.swift
[129/250] Compiling NIOCore ChannelOption.swift
[130/250] Compiling NIOCore ChannelPipeline.swift
[131/250] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[132/250] Compiling NIOCore EventLoopFuture+Deprecated.swift
[133/250] Compiling NIOCore Channel.swift
[134/250] Compiling NIOCore ChannelHandler.swift
[135/250] Compiling NIOCore ChannelHandlers.swift
[136/250] Compiling NIOCore ChannelInvoker.swift
[137/250] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[138/250] Compiling NIOCore EventLoopFuture.swift
[139/250] Compiling NIOCore FileDescriptor.swift
[140/250] Compiling NIOCore FileHandle.swift
[141/251] Wrapping AST for SystemPackage for debugging
[143/251] Compiling NIOCore MulticastChannel.swift
[144/251] Compiling NIOCore NIOAny.swift
[145/251] Compiling NIOCore NIOCloseOnErrorHandler.swift
[146/251] Compiling NIOCore NIOLoopBound.swift
[147/251] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[148/251] Compiling NIOCore NIOScheduledCallback.swift
[149/251] Compiling NIOCore NIOSendable.swift
[150/251] Compiling NIOCore RecvByteBufferAllocator.swift
[156/264] Emitting module ArgumentParser
[157/264] Compiling NIOCore AddressedEnvelope.swift
[158/264] Compiling NIOCore AsyncAwaitSupport.swift
[159/264] Compiling NIOCore AsyncChannel.swift
[160/264] Compiling NIOCore AsyncChannelHandler.swift
[161/264] Compiling NIOCore AsyncChannelInboundStream.swift
[162/264] Compiling NIOCore AsyncChannelOutboundWriter.swift
[163/264] Compiling NIOCore NIOAsyncSequenceProducer.swift
[164/264] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[169/264] Compiling NIOCore IO.swift
[170/264] Compiling NIOCore IOData.swift
[171/264] Compiling NIOCore IPProtocol.swift
[172/264] Compiling NIOCore IntegerBitPacking.swift
[173/264] Compiling NIOCore IntegerTypes.swift
[174/264] Compiling NIOCore Interfaces.swift
[175/264] Compiling NIOCore Linux.swift
[176/264] Compiling NIOCore MarkedCircularBuffer.swift
[177/264] Compiling ArgumentParser CollectionExtensions.swift
[178/264] Compiling ArgumentParser Platform.swift
[179/264] Compiling ArgumentParser SequenceExtensions.swift
[180/264] Compiling ArgumentParser StringExtensions.swift
[181/264] Compiling ArgumentParser Tree.swift
[187/264] Compiling NIOCore CircularBuffer.swift
[188/264] Compiling NIOCore Codec.swift
[189/264] Compiling NIOCore ConvenienceOptionSupport.swift
[190/264] Compiling NIOCore DeadChannel.swift
[191/264] Compiling NIOCore DispatchQueue+WithFuture.swift
[192/264] Compiling NIOCore EventLoop+Deprecated.swift
[193/264] Compiling NIOCore EventLoop+SerialExecutor.swift
[194/264] Compiling NIOCore EventLoop.swift
[201/264] Compiling NIOCore FileRegion.swift
[202/264] Compiling NIOCore GlobalSingletons.swift
[203/264] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[204/264] Compiling NIOCore SocketAddresses.swift
[205/264] Compiling NIOCore SocketOptionProvider.swift
[206/264] Compiling NIOCore SystemCallHelpers.swift
[207/264] Compiling NIOCore TimeAmount+Duration.swift
[208/264] Compiling NIOCore TypeAssistedChannelHandler.swift
[209/264] Compiling NIOCore UniversalBootstrapSupport.swift
[210/264] Compiling NIOCore Utilities.swift
[235/265] Wrapping AST for ArgumentParser for debugging
[237/265] Emitting module NIOCore
[238/265] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[239/265] Compiling NIOCore BSDSocketAPI.swift
[240/265] Compiling NIOCore ByteBuffer-aux.swift
[241/265] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[242/265] Compiling NIOCore ByteBuffer-conversions.swift
[243/265] Compiling NIOCore ByteBuffer-core.swift
[244/265] Compiling NIOCore ByteBuffer-hex.swift
[245/265] Compiling NIOCore ByteBuffer-int.swift
[246/265] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[256/266] Wrapping AST for NIOCore for debugging
[258/316] Compiling NIOEmbedded AsyncTestingChannel.swift
[259/316] Emitting module NIOEmbedded
[260/316] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[261/316] Compiling NIOEmbedded Embedded.swift
[262/317] Wrapping AST for NIOEmbedded for debugging
[264/317] Compiling NIOPosix ServerSocket.swift
[265/317] Compiling NIOPosix Socket.swift
[266/317] Compiling NIOPosix SocketChannel.swift
[267/317] Compiling NIOPosix SocketProtocols.swift
[268/317] Compiling NIOPosix System.swift
[269/317] Compiling NIOPosix Thread.swift
[270/323] Compiling NIOPosix SelectableChannel.swift
[271/323] Compiling NIOPosix SelectableEventLoop.swift
[272/323] Compiling NIOPosix SelectorEpoll.swift
[273/323] Compiling NIOPosix SelectorGeneric.swift
[274/323] Compiling NIOPosix SelectorKqueue.swift
[275/323] Compiling NIOPosix SelectorUring.swift
[276/323] Compiling NIOPosix Pool.swift
[277/323] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[278/323] Compiling NIOPosix PosixSingletons.swift
[279/323] Compiling NIOPosix RawSocketBootstrap.swift
[280/323] Compiling NIOPosix Resolver.swift
[281/323] Compiling NIOPosix Selectable.swift
[282/323] Emitting module NIOPosix
[283/323] Compiling NIOPosix BSDSocketAPICommon.swift
[284/323] Compiling NIOPosix BSDSocketAPIPosix.swift
[285/323] Compiling NIOPosix BSDSocketAPIWindows.swift
[286/323] Compiling NIOPosix BaseSocket.swift
[287/323] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[288/323] Compiling NIOPosix BaseSocketChannel.swift
[289/323] Compiling NIOPosix BaseStreamSocketChannel.swift
[290/323] Compiling NIOPosix ThreadPosix.swift
[291/323] Compiling NIOPosix ThreadWindows.swift
[292/323] Compiling NIOPosix UnsafeTransfer.swift
[293/323] Compiling NIOPosix Utilities.swift
[294/323] Compiling NIOPosix VsockAddress.swift
[295/323] Compiling NIOPosix VsockChannelEvents.swift
[296/323] Compiling NIOPosix Bootstrap.swift
[297/323] Compiling NIOPosix ControlMessage.swift
[298/323] Compiling NIOPosix DatagramVectorReadManager.swift
[299/323] Compiling NIOPosix Errors+Any.swift
[300/323] Compiling NIOPosix FileDescriptor.swift
[301/323] Compiling NIOPosix GetaddrinfoResolver.swift
[302/323] Compiling NIOPosix HappyEyeballs.swift
[303/323] Compiling NIOPosix NIOThreadPool.swift
[304/323] Compiling NIOPosix NonBlockingFileIO.swift
[305/323] Compiling NIOPosix PendingDatagramWritesManager.swift
[306/323] Compiling NIOPosix PendingWritesManager.swift
[307/323] Compiling NIOPosix PipeChannel.swift
[308/323] Compiling NIOPosix PipePair.swift
[309/323] Compiling NIOPosix IO.swift
[310/323] Compiling NIOPosix IntegerBitPacking.swift
[311/323] Compiling NIOPosix IntegerTypes.swift
[312/323] Compiling NIOPosix Linux.swift
[313/323] Compiling NIOPosix LinuxCPUSet.swift
[314/323] Compiling NIOPosix LinuxUring.swift
[315/323] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[316/326] Wrapping AST for NIOPosix for debugging
[318/326] Compiling NIO Exports.swift
[319/326] Emitting module NIO
[320/329] Wrapping AST for NIO for debugging
[322/329] Compiling _NIOConcurrency Empty.swift
[323/329] Emitting module _NIOConcurrency
[324/330] Wrapping AST for _NIOConcurrency for debugging
[326/340] Compiling Shwift NIO Pipe Bootstrap.swift
/host/spi-builder-workspace/Sources/Shwift/Support/NIO Pipe Bootstrap.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 | import SystemPackage
3 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:16:10: error: Unsupported Platform
14 | private typealias PlatformType<U> = U
15 | #else
16 | #error("Unsupported Platform")
| `- error: Unsupported Platform
17 | #endif
18 |
/host/spi-builder-workspace/Sources/Shwift/Support/NIO Pipe Bootstrap.swift:17:26: warning: 'withPipes(inputDescriptor:outputDescriptor:)' is deprecated: renamed to 'takingOwnershipOfDescriptors(input:output:)' [#DeprecatedDeclaration]
15 | let output = try outputDescriptor.duplicate()
16 | do {
17 | return try await withPipes(
| |- warning: 'withPipes(inputDescriptor:outputDescriptor:)' is deprecated: renamed to 'takingOwnershipOfDescriptors(input:output:)' [#DeprecatedDeclaration]
| `- note: use 'takingOwnershipOfDescriptors(input:output:)' instead
18 | inputDescriptor: input.rawValue,
19 | outputDescriptor: output.rawValue
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[327/340] Compiling Shwift File Descriptor.swift
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:16:10: error: Unsupported Platform
14 | private typealias PlatformType<U> = U
15 | #else
16 | #error("Unsupported Platform")
| `- error: Unsupported Platform
17 | #endif
18 |
[328/341] Compiling Shwift Async Inbound Handler.swift
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:16:10: error: Unsupported Platform
14 | private typealias PlatformType<U> = U
15 | #else
16 | #error("Unsupported Platform")
| `- error: Unsupported Platform
17 | #endif
18 |
[329/341] Compiling Shwift Process.swift
/host/spi-builder-workspace/Sources/Shwift/Process.swift:109:14: error: Unsupported Platform
107 | ])
108 | #else
109 | #error("Unsupported Platform")
| `- error: Unsupported Platform
110 | #endif
111 | try attributes.setBlockedSignals(to: .none)
/host/spi-builder-workspace/Sources/Shwift/Process.swift:140:14: error: Unsupported Platform
138 | try actions.addCloseFileDescriptors(from: lowestFileDescriptorValueToClose)
139 | #else
140 | #error("Unsupported Platform")
| `- error: Unsupported Platform
141 | #endif
142 |
/host/spi-builder-workspace/Sources/Shwift/Process.swift:171:14: error: Unsupported Platform
169 | let killingSignal = \siginfo_t._sifields._rt.si_sigval.sival_int
170 | #else
171 | #error("Unsupported Platform")
| `- error: Unsupported Platform
172 | #endif
173 |
/host/spi-builder-workspace/Sources/Shwift/Process.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 | import SystemPackage
3 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:16:10: error: Unsupported Platform
14 | private typealias PlatformType<U> = U
15 | #else
16 | #error("Unsupported Platform")
| `- error: Unsupported Platform
17 | #endif
18 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:105:15: error: cannot find type 'pid_t' in scope
103 | fileActions: inout FileActions,
104 | attributes: inout Attributes
105 | ) throws -> pid_t {
| `- error: cannot find type 'pid_t' in scope
106 | var pid = pid_t()
107 |
/host/spi-builder-workspace/Sources/Shwift/Process.swift:180:21: error: cannot find 'pid' in scope
178 | Since we use the control channel to detect termination, this _shouldn't_ happen (unless the child decides to call `close(3)` for some reason).
179 | */
180 | info[keyPath: pid] = 0
| `- error: cannot find 'pid' in scope
181 | do {
182 | errno = 0
/host/spi-builder-workspace/Sources/Shwift/Process.swift:195:27: error: cannot find 'pid' in scope
193 | By monitoring a file descriptor to detect when a process has terminated, we introduce the possibility of performing a nonblocking wait on a process before it is actually ready to be waited on. This can happen if we win the race with the kernel setting the child process into a waitable state after the kernel closes the file descriptor we are monitoring (this is rare, but has been observed and should only ever result in a 1 second delay). This could also be caused by unusual behavior in the child process (for instance, iterating over all of its own descriptors and closing the ones it doesn't know about, including the one we use for monitoring; in this case the overhead of polling should still be minimal).
194 | */
195 | guard info[keyPath: pid] != 0 else {
| `- error: cannot find 'pid' in scope
196 | /// Reset `info`
197 | info = siginfo_t()
/host/spi-builder-workspace/Sources/Shwift/Process.swift:218:45: error: cannot find 'sigchldInfo' in scope
216 | switch Int(info.si_code) {
217 | case Int(CLD_EXITED):
218 | let terminationStatus = info[keyPath: sigchldInfo].si_status
| `- error: cannot find 'sigchldInfo' in scope
219 | guard terminationStatus == 0 else {
220 | throw TerminationError.nonzeroTerminationStatus(terminationStatus)
/host/spi-builder-workspace/Sources/Shwift/Process.swift:223:59: error: cannot find 'killingSignal' in scope
221 | }
222 | case Int(CLD_KILLED):
223 | throw TerminationError.uncaughtSignal(info[keyPath: killingSignal], coreDumped: false)
| `- error: cannot find 'killingSignal' in scope
224 | case Int(CLD_DUMPED):
225 | throw TerminationError.uncaughtSignal(info[keyPath: killingSignal], coreDumped: true)
/host/spi-builder-workspace/Sources/Shwift/Process.swift:225:59: error: cannot find 'killingSignal' in scope
223 | throw TerminationError.uncaughtSignal(info[keyPath: killingSignal], coreDumped: false)
224 | case Int(CLD_DUMPED):
225 | throw TerminationError.uncaughtSignal(info[keyPath: killingSignal], coreDumped: true)
| `- error: cannot find 'killingSignal' in scope
226 | default:
227 | fatalError()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[330/341] Emitting module Shwift
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 | import SystemPackage
3 | @_implementationOnly import _NIOConcurrency
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:3:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
2 | import SystemPackage
3 | @_implementationOnly import _NIOConcurrency
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
4 |
5 | /**
/host/spi-builder-workspace/Sources/Shwift/Context.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 |
3 | import SystemPackage
/host/spi-builder-workspace/Sources/Shwift/Environment.swift:3:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | import SystemPackage
2 |
3 | @_implementationOnly import Foundation
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
4 |
5 | /**
/host/spi-builder-workspace/Sources/Shwift/Process.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 | import SystemPackage
3 |
/host/spi-builder-workspace/Sources/Shwift/Support/NIO Pipe Bootstrap.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 | import SystemPackage
3 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:16:10: error: Unsupported Platform
14 | private typealias PlatformType<U> = U
15 | #else
16 | #error("Unsupported Platform")
| `- error: Unsupported Platform
17 | #endif
18 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:29:48: error: cannot find 'POSIX_SPAWN_SETSIGMASK' in scope
27 | #endif
28 |
29 | static let setSignalMask = Flags(rawValue: POSIX_SPAWN_SETSIGMASK)
| `- error: cannot find 'POSIX_SPAWN_SETSIGMASK' in scope
30 |
31 | init(rawValue: Int32) {
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:58:31: error: cannot find type 'PlatformType' in scope
56 | }
57 |
58 | fileprivate var rawValue: PlatformType<posix_spawnattr_t> = .init()
| `- error: cannot find type 'PlatformType' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:96:31: error: cannot find type 'PlatformType' in scope
94 | }
95 |
96 | fileprivate var rawValue: PlatformType<posix_spawn_file_actions_t> = .init()
| `- error: cannot find type 'PlatformType' in scope
97 | }
98 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:105:15: error: cannot find type 'pid_t' in scope
103 | fileActions: inout FileActions,
104 | attributes: inout Attributes
105 | ) throws -> pid_t {
| `- error: cannot find type 'pid_t' in scope
106 | var pid = pid_t()
107 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:152:44: error: cannot find type 'sigset_t' in scope
150 | }
151 |
152 | private init(_ fn: (UnsafeMutablePointer<sigset_t>) -> CInt) throws {
| `- error: cannot find type 'sigset_t' in scope
153 | rawValue = sigset_t()
154 | try Errno.check(fn(&rawValue))
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:156:17: error: cannot find type 'sigset_t' in scope
154 | try Errno.check(fn(&rawValue))
155 | }
156 | var rawValue: sigset_t
| `- error: cannot find type 'sigset_t' in scope
157 | }
158 |
[331/341] Compiling Shwift Pipe.swift
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:16:10: error: Unsupported Platform
14 | private typealias PlatformType<U> = U
15 | #else
16 | #error("Unsupported Platform")
| `- error: Unsupported Platform
17 | #endif
18 |
[332/341] Compiling Shwift Environment.swift
/host/spi-builder-workspace/Sources/Shwift/Environment.swift:3:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | import SystemPackage
2 |
3 | @_implementationOnly import Foundation
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
4 |
5 | /**
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:16:10: error: Unsupported Platform
14 | private typealias PlatformType<U> = U
15 | #else
16 | #error("Unsupported Platform")
| `- error: Unsupported Platform
17 | #endif
18 |
/host/spi-builder-workspace/Sources/Shwift/Environment.swift:26:17: error: cannot find 'environ' in scope
24 | public static var process: Environment {
25 | var environment = Environment()
26 | var entry = environ
| `- error: cannot find 'environ' in scope
27 | while let cString = entry.pointee {
28 | defer { entry = entry.advanced(by: 1) }
[333/341] Compiling Shwift IO.swift
/host/spi-builder-workspace/Sources/Shwift/Environment.swift:3:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | import SystemPackage
2 |
3 | @_implementationOnly import Foundation
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
4 |
5 | /**
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:16:10: error: Unsupported Platform
14 | private typealias PlatformType<U> = U
15 | #else
16 | #error("Unsupported Platform")
| `- error: Unsupported Platform
17 | #endif
18 |
/host/spi-builder-workspace/Sources/Shwift/Environment.swift:26:17: error: cannot find 'environ' in scope
24 | public static var process: Environment {
25 | var environment = Environment()
26 | var entry = environ
| `- error: cannot find 'environ' in scope
27 | while let cString = entry.pointee {
28 | defer { entry = entry.advanced(by: 1) }
[334/341] Compiling Shwift Builtins.swift
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 | import SystemPackage
3 | @_implementationOnly import _NIOConcurrency
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:3:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
2 | import SystemPackage
3 | @_implementationOnly import _NIOConcurrency
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
4 |
5 | /**
/host/spi-builder-workspace/Sources/Shwift/Context.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 |
3 | import SystemPackage
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:16:10: error: Unsupported Platform
14 | private typealias PlatformType<U> = U
15 | #else
16 | #error("Unsupported Platform")
| `- error: Unsupported Platform
17 | #endif
18 |
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:29:44: warning: capture of 'handler' with non-sendable type 'AsyncInboundHandler<ByteBuffer>' in a '@Sendable' closure [#SendableClosureCaptures]
27 | Theoretically if we add this before a call to `channel.read`, it _should_ receive all data sent on the channel. Unfortunately we ran into a case where on Linux, adding the handler outside of the channel initializer made us miss some data.
28 | */
29 | return channel.pipeline.addHandler(handler)
| `- warning: capture of 'handler' with non-sendable type 'AsyncInboundHandler<ByteBuffer>' in a '@Sendable' closure [#SendableClosureCaptures]
30 | }
31 | .duplicating(
/host/spi-builder-workspace/Sources/Shwift/Support/Async Inbound Handler.swift:3:20: note: generic class 'AsyncInboundHandler' does not conform to the 'Sendable' protocol
1 | import NIOCore
2 |
3 | public final class AsyncInboundHandler<InboundIn>: ChannelInboundHandler, AsyncSequence {
| `- note: generic class 'AsyncInboundHandler' does not conform to the 'Sendable' protocol
4 |
5 | public typealias BufferingPolicy = AsyncStream<Element>.Continuation.BufferingPolicy
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:194:30: warning: 'write(_:file:line:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning. [#DeprecatedDeclaration]
192 | let buffer = channel.allocator.buffer(string: string)
193 | /// This future should implicitly be fulfilled after any previous future
194 | lastFuture = channel.write(NIOAny(buffer))
| `- warning: 'write(_:file:line:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning. [#DeprecatedDeclaration]
195 | }
196 | fileprivate let channel: NIO.Channel
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:222:51: warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API. [#DeprecatedDeclaration]
220 | let output = channel.output
221 | let eventLoop = output.channel.eventLoop
222 | let fileHandle = try await context.fileIO.openFile(
| `- warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API. [#DeprecatedDeclaration]
223 | path: filePath.string,
224 | mode: .read,
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:238:19: warning: capture of 'output' with non-sendable type 'Builtin.Output' in a '@Sendable' closure [#SendableClosureCaptures]
179 | A type which can be used to write to a shell command's standard output or standard error
180 | */
181 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
182 |
183 | public func withTextOutputStream(_ body: (inout TextOutputStream) -> Void) async throws {
:
236 | eventLoop: eventLoop,
237 | chunkHandler: { buffer in
238 | output.channel.writeAndFlush(buffer)
| `- warning: capture of 'output' with non-sendable type 'Builtin.Output' in a '@Sendable' closure [#SendableClosureCaptures]
239 | }
240 | )
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:264:51: warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API. [#DeprecatedDeclaration]
262 | try await withChannel(input: input, output: nullDeviceOutput, in: context) { channel in
263 | let eventLoop = context.eventLoopGroup.next()
264 | let fileHandle = try await context.fileIO.openFile(
| `- warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API. [#DeprecatedDeclaration]
265 | path: filePath.string,
266 | mode: .write,
/host/spi-builder-workspace/Sources/Shwift/Context.swift:93:48: warning: capture of non-sendable type 'Handler.Type' in an isolated closure
91 | let channel = try await NIOPipeBootstrap(group: group)
92 | .channelInitializer { channel in
93 | return channel.pipeline.addHandler(handler)
| `- warning: capture of non-sendable type 'Handler.Type' in an isolated closure
94 | }
95 | .duplicating(
/host/spi-builder-workspace/Sources/Shwift/Context.swift:90:10: warning: capture of non-sendable type 'Handler.Type' in an isolated closure
88 | let fileDescriptor: SystemPackage.FileDescriptor
89 | (channel, fileDescriptor) = try await SystemPackage.FileDescriptor.withPipe {
90 | [handler] pipe in
| `- warning: capture of non-sendable type 'Handler.Type' in an isolated closure
91 | let channel = try await NIOPipeBootstrap(group: group)
92 | .channelInitializer { channel in
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[335/341] Compiling Shwift Context.swift
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 | import SystemPackage
3 | @_implementationOnly import _NIOConcurrency
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:3:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
2 | import SystemPackage
3 | @_implementationOnly import _NIOConcurrency
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
4 |
5 | /**
/host/spi-builder-workspace/Sources/Shwift/Context.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 |
3 | import SystemPackage
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:16:10: error: Unsupported Platform
14 | private typealias PlatformType<U> = U
15 | #else
16 | #error("Unsupported Platform")
| `- error: Unsupported Platform
17 | #endif
18 |
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:29:44: warning: capture of 'handler' with non-sendable type 'AsyncInboundHandler<ByteBuffer>' in a '@Sendable' closure [#SendableClosureCaptures]
27 | Theoretically if we add this before a call to `channel.read`, it _should_ receive all data sent on the channel. Unfortunately we ran into a case where on Linux, adding the handler outside of the channel initializer made us miss some data.
28 | */
29 | return channel.pipeline.addHandler(handler)
| `- warning: capture of 'handler' with non-sendable type 'AsyncInboundHandler<ByteBuffer>' in a '@Sendable' closure [#SendableClosureCaptures]
30 | }
31 | .duplicating(
/host/spi-builder-workspace/Sources/Shwift/Support/Async Inbound Handler.swift:3:20: note: generic class 'AsyncInboundHandler' does not conform to the 'Sendable' protocol
1 | import NIOCore
2 |
3 | public final class AsyncInboundHandler<InboundIn>: ChannelInboundHandler, AsyncSequence {
| `- note: generic class 'AsyncInboundHandler' does not conform to the 'Sendable' protocol
4 |
5 | public typealias BufferingPolicy = AsyncStream<Element>.Continuation.BufferingPolicy
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:194:30: warning: 'write(_:file:line:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning. [#DeprecatedDeclaration]
192 | let buffer = channel.allocator.buffer(string: string)
193 | /// This future should implicitly be fulfilled after any previous future
194 | lastFuture = channel.write(NIOAny(buffer))
| `- warning: 'write(_:file:line:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning. [#DeprecatedDeclaration]
195 | }
196 | fileprivate let channel: NIO.Channel
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:222:51: warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API. [#DeprecatedDeclaration]
220 | let output = channel.output
221 | let eventLoop = output.channel.eventLoop
222 | let fileHandle = try await context.fileIO.openFile(
| `- warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API. [#DeprecatedDeclaration]
223 | path: filePath.string,
224 | mode: .read,
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:238:19: warning: capture of 'output' with non-sendable type 'Builtin.Output' in a '@Sendable' closure [#SendableClosureCaptures]
179 | A type which can be used to write to a shell command's standard output or standard error
180 | */
181 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
182 |
183 | public func withTextOutputStream(_ body: (inout TextOutputStream) -> Void) async throws {
:
236 | eventLoop: eventLoop,
237 | chunkHandler: { buffer in
238 | output.channel.writeAndFlush(buffer)
| `- warning: capture of 'output' with non-sendable type 'Builtin.Output' in a '@Sendable' closure [#SendableClosureCaptures]
239 | }
240 | )
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:264:51: warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API. [#DeprecatedDeclaration]
262 | try await withChannel(input: input, output: nullDeviceOutput, in: context) { channel in
263 | let eventLoop = context.eventLoopGroup.next()
264 | let fileHandle = try await context.fileIO.openFile(
| `- warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API. [#DeprecatedDeclaration]
265 | path: filePath.string,
266 | mode: .write,
/host/spi-builder-workspace/Sources/Shwift/Context.swift:93:48: warning: capture of non-sendable type 'Handler.Type' in an isolated closure
91 | let channel = try await NIOPipeBootstrap(group: group)
92 | .channelInitializer { channel in
93 | return channel.pipeline.addHandler(handler)
| `- warning: capture of non-sendable type 'Handler.Type' in an isolated closure
94 | }
95 | .duplicating(
/host/spi-builder-workspace/Sources/Shwift/Context.swift:90:10: warning: capture of non-sendable type 'Handler.Type' in an isolated closure
88 | let fileDescriptor: SystemPackage.FileDescriptor
89 | (channel, fileDescriptor) = try await SystemPackage.FileDescriptor.withPipe {
90 | [handler] pipe in
| `- warning: capture of non-sendable type 'Handler.Type' in an isolated closure
91 | let channel = try await NIOPipeBootstrap(group: group)
92 | .channelInitializer { channel in
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[336/341] Compiling Shwift Posix Spawn.swift
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:16:10: error: Unsupported Platform
14 | private typealias PlatformType<U> = U
15 | #else
16 | #error("Unsupported Platform")
| `- error: Unsupported Platform
17 | #endif
18 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:29:48: error: cannot find 'POSIX_SPAWN_SETSIGMASK' in scope
27 | #endif
28 |
29 | static let setSignalMask = Flags(rawValue: POSIX_SPAWN_SETSIGMASK)
| `- error: cannot find 'POSIX_SPAWN_SETSIGMASK' in scope
30 |
31 | init(rawValue: Int32) {
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:58:31: error: cannot find type 'PlatformType' in scope
56 | }
57 |
58 | fileprivate var rawValue: PlatformType<posix_spawnattr_t> = .init()
| `- error: cannot find type 'PlatformType' in scope
59 | }
60 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:96:31: error: cannot find type 'PlatformType' in scope
94 | }
95 |
96 | fileprivate var rawValue: PlatformType<posix_spawn_file_actions_t> = .init()
| `- error: cannot find type 'PlatformType' in scope
97 | }
98 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:105:15: error: cannot find type 'pid_t' in scope
103 | fileActions: inout FileActions,
104 | attributes: inout Attributes
105 | ) throws -> pid_t {
| `- error: cannot find type 'pid_t' in scope
106 | var pid = pid_t()
107 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:152:44: error: cannot find type 'sigset_t' in scope
150 | }
151 |
152 | private init(_ fn: (UnsafeMutablePointer<sigset_t>) -> CInt) throws {
| `- error: cannot find type 'sigset_t' in scope
153 | rawValue = sigset_t()
154 | try Errno.check(fn(&rawValue))
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:156:17: error: cannot find type 'sigset_t' in scope
154 | try Errno.check(fn(&rawValue))
155 | }
156 | var rawValue: sigset_t
| `- error: cannot find type 'sigset_t' in scope
157 | }
158 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:40:23: error: cannot find 'posix_spawnattr_init' in scope
38 |
39 | init() throws {
40 | try Errno.check(posix_spawnattr_init(&rawValue))
| `- error: cannot find 'posix_spawnattr_init' in scope
41 | }
42 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:44:23: error: cannot find 'posix_spawnattr_destroy' in scope
42 |
43 | mutating func destroy() throws {
44 | try Errno.check(posix_spawnattr_destroy(&rawValue))
| `- error: cannot find 'posix_spawnattr_destroy' in scope
45 | }
46 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:50:11: error: cannot find 'posix_spawnattr_setsigmask' in scope
48 | try Errno.check(
49 | withUnsafePointer(to: signals.rawValue) { signals in
50 | posix_spawnattr_setsigmask(&rawValue, signals)
| `- error: cannot find 'posix_spawnattr_setsigmask' in scope
51 | })
52 | }
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:55:23: error: cannot find 'posix_spawnattr_setflags' in scope
53 |
54 | mutating func setFlags(_ flags: Flags) throws {
55 | try Errno.check(posix_spawnattr_setflags(&rawValue, Int16(flags.rawValue)))
| `- error: cannot find 'posix_spawnattr_setflags' in scope
56 | }
57 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:64:23: error: cannot find 'posix_spawn_file_actions_init' in scope
62 |
63 | init() throws {
64 | try Errno.check(posix_spawn_file_actions_init(&rawValue))
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
65 | }
66 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:68:23: error: cannot find 'posix_spawn_file_actions_destroy' in scope
66 |
67 | mutating func destroy() throws {
68 | try Errno.check(posix_spawn_file_actions_destroy(&rawValue))
| `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
69 | }
70 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:74:11: error: cannot find 'posix_spawn_file_actions_addchdir_np' in scope
72 | try Errno.check(
73 | filePath.withPlatformString {
74 | posix_spawn_file_actions_addchdir_np(&rawValue, $0)
| `- error: cannot find 'posix_spawn_file_actions_addchdir_np' in scope
75 | })
76 | }
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:88:9: error: cannot find 'posix_spawn_file_actions_addclose' in scope
86 | mutating func addCloseFileDescriptor(_ value: Int32) throws {
87 | try Errno.check(
88 | posix_spawn_file_actions_addclose(&rawValue, value)
| `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
89 | )
90 | }
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:93:23: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
91 |
92 | mutating func addDuplicate(_ source: FileDescriptor, as target: CInt) throws {
93 | try Errno.check(posix_spawn_file_actions_adddup2(&rawValue, source.rawValue, target))
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
94 | }
95 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:106:15: error: cannot find 'pid_t' in scope
104 | attributes: inout Attributes
105 | ) throws -> pid_t {
106 | var pid = pid_t()
| `- error: cannot find 'pid_t' in scope
107 |
108 | /// I'm not aware of a way to pass a string containing `NUL` to `posix_spawn`
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:115:53: error: cannot find 'strdup' in scope
113 | }
114 |
115 | let cArguments = arguments.map { $0.withCString(strdup)! }
| `- error: cannot find 'strdup' in scope
116 | defer { cArguments.forEach { $0.deallocate() } }
117 | let cEnvironment = environment.map { $0.withCString(strdup)! }
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:115:32: error: generic parameter 'T' could not be inferred
113 | }
114 |
115 | let cArguments = arguments.map { $0.withCString(strdup)! }
| `- error: generic parameter 'T' could not be inferred
116 | defer { cArguments.forEach { $0.deallocate() } }
117 | let cEnvironment = environment.map { $0.withCString(strdup)! }
Swift.Collection.map:2:24: note: in call to function 'map'
1 | protocol Collection {
2 | @inlinable public func map<T, E>(_ transform: (Self.Element) throws(E) -> T) throws(E) -> [T] where E : Error}
| `- note: in call to function 'map'
3 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:117:57: error: cannot find 'strdup' in scope
115 | let cArguments = arguments.map { $0.withCString(strdup)! }
116 | defer { cArguments.forEach { $0.deallocate() } }
117 | let cEnvironment = environment.map { $0.withCString(strdup)! }
| `- error: cannot find 'strdup' in scope
118 | defer { cEnvironment.forEach { $0.deallocate() } }
119 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:117:36: error: generic parameter 'T' could not be inferred
115 | let cArguments = arguments.map { $0.withCString(strdup)! }
116 | defer { cArguments.forEach { $0.deallocate() } }
117 | let cEnvironment = environment.map { $0.withCString(strdup)! }
| `- error: generic parameter 'T' could not be inferred
118 | defer { cEnvironment.forEach { $0.deallocate() } }
119 |
Swift.Collection.map:2:24: note: in call to function 'map'
1 | protocol Collection {
2 | @inlinable public func map<T, E>(_ transform: (Self.Element) throws(E) -> T) throws(E) -> [T] where E : Error}
| `- note: in call to function 'map'
3 |
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:122:9: error: cannot find 'posix_spawn' in scope
120 | try path.withPlatformString { path in
121 | try Errno.check(
122 | posix_spawn(
| `- error: cannot find 'posix_spawn' in scope
123 | &pid,
124 | path,
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:142:16: error: cannot find 'sigfillset' in scope
140 | static var all: Self {
141 | get throws {
142 | try Self(sigfillset)
| `- error: cannot find 'sigfillset' in scope
143 | }
144 | }
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:148:16: error: cannot find 'sigemptyset' in scope
146 | static var none: Self {
147 | get throws {
148 | try Self(sigemptyset)
| `- error: cannot find 'sigemptyset' in scope
149 | }
150 | }
/host/spi-builder-workspace/Sources/Shwift/Support/Posix Spawn.swift:153:16: error: cannot find 'sigset_t' in scope
151 |
152 | private init(_ fn: (UnsafeMutablePointer<sigset_t>) -> CInt) throws {
153 | rawValue = sigset_t()
| `- error: cannot find 'sigset_t' in scope
154 | try Errno.check(fn(&rawValue))
155 | }
BUILD FAILURE 6.2 android