Build Information
Failed to build Shwift, reference 3.1.1 (d7be04), with Swift 6.1 for Android on 29 May 2025 06:31:43 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/GeorgeLyon/Shwift.git
Reference: 3.1.1
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
* tag 3.1.1 -> FETCH_HEAD
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 3.1.1
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/GeorgeLyon/Shwift.git
https://github.com/GeorgeLyon/Shwift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
},
{
"identity" : "swift-system",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-system"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
}
],
"manifest_display_name" : "Shwift",
"name" : "Shwift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "Script",
"targets" : [
"Script"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Shwift",
"targets" : [
"Shwift"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "ScriptExample",
"targets" : [
"ScriptExample"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "ShwiftTests",
"module_type" : "SwiftTarget",
"name" : "ShwiftTests",
"path" : "Tests/ShwiftTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/ShwiftTests/Cat.txt",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Recorder Tests.swift",
"Shwift Tests.swift"
],
"target_dependencies" : [
"Shwift"
],
"type" : "test"
},
{
"c99name" : "Shwift",
"module_type" : "SwiftTarget",
"name" : "Shwift",
"path" : "Sources/Shwift",
"product_dependencies" : [
"SystemPackage",
"NIO",
"_NIOConcurrency"
],
"product_memberships" : [
"Script",
"Shwift",
"ScriptExample"
],
"sources" : [
"Builtins.swift",
"Context.swift",
"Environment.swift",
"IO.swift",
"Pipe.swift",
"Process.swift",
"Support/Async Inbound Handler.swift",
"Support/File Descriptor.swift",
"Support/NIO Pipe Bootstrap.swift",
"Support/Posix Spawn.swift"
],
"type" : "library"
},
{
"c99name" : "ScriptExample",
"module_type" : "SwiftTarget",
"name" : "ScriptExample",
"path" : "Sources/ScriptExample",
"product_memberships" : [
"ScriptExample"
],
"sources" : [
"Main.swift"
],
"target_dependencies" : [
"Script"
],
"type" : "executable"
},
{
"c99name" : "Script",
"module_type" : "SwiftTarget",
"name" : "Script",
"path" : "Sources/Script",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"Script",
"ScriptExample"
],
"sources" : [
"Builtins.swift",
"Executable.swift",
"File Operations.swift",
"List Comprehensions.swift",
"Output Capture.swift",
"Pipe.swift",
"Script.swift"
],
"target_dependencies" : [
"Shwift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-system
Fetching https://github.com/apple/swift-argument-parser
[1/4391] Fetching swift-system
[4392/80484] Fetching swift-system, swift-nio
[4393/95863] Fetching swift-system, swift-nio, swift-argument-parser
Fetched https://github.com/apple/swift-system from cache (4.44s)
Fetched https://github.com/apple/swift-argument-parser from cache (4.45s)
Fetched https://github.com/apple/swift-nio.git from cache (4.53s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.5.0 (5.49s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.54s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (0.93s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[1/1710] Fetching swift-atomics
[1711/18301] Fetching swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.46s)
[1494/16591] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.31s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (2.26s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.76s)
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-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
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
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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/48] Write sources
[17/48] Compiling CNIOWindows shim.c
[17/48] Compiling CNIOWindows WSAStartup.c
[19/48] Compiling CNIOWASI CNIOWASI.c
[19/48] Compiling _AtomicsShims.c
[20/48] Write sources
[22/48] Compiling CNIOLinux liburing_shims.c
[23/48] Compiling CSystem shims.c
[24/48] Compiling CNIODarwin shim.c
[25/48] Compiling CNIOLinux shim.c
[26/48] Compiling c-nioatomics.c
[27/48] Write swift-version-24593BA9C3E375BF.txt
[28/48] Compiling c-atomics.c
[30/123] Emitting module _NIODataStructures
[31/123] Emitting module Atomics
[32/125] Emitting module _NIOBase64
[33/125] Compiling _NIOBase64 Base64.swift
[34/125] Compiling SystemPackage FilePathComponentView.swift
[35/125] Compiling SystemPackage FilePathComponents.swift
[36/125] Compiling _NIODataStructures _TinyArray.swift
[37/127] Emitting module ArgumentParserToolInfo
[38/127] Compiling ArgumentParserToolInfo ToolInfo.swift
[39/127] Compiling _NIODataStructures PriorityQueue.swift
[40/128] Compiling Atomics UnsafeAtomic.swift
[41/128] Compiling Atomics UnsafeAtomicLazyReference.swift
[42/128] Compiling SystemPackage MachPort.swift
[43/128] Compiling SystemPackage PlatformString.swift
[44/128] Compiling SystemPackage SystemString.swift
[45/128] Compiling SystemPackage FilePath.swift
[47/131] Compiling _NIODataStructures Heap.swift
[49/132] Compiling SystemPackage FilePathSyntax.swift
[50/132] Compiling SystemPackage FilePathTemp.swift
[51/132] Compiling SystemPackage FilePathTempPosix.swift
[52/132] Compiling SystemPackage FileHelpers.swift
[53/132] Compiling SystemPackage FileOperations.swift
[55/132] Compiling SystemPackage FilePathParsing.swift
[56/132] Compiling SystemPackage FilePathString.swift
[57/132] Compiling SystemPackage FileDescriptor.swift
[61/132] Compiling SystemPackage Errno.swift
[62/132] Compiling SystemPackage ErrnoWindows.swift
[64/132] Compiling SystemPackage FilePathTempWindows.swift
[65/132] Compiling SystemPackage FilePathWindows.swift
[66/132] Compiling SystemPackage FilePermissions.swift
[67/132] Emitting module NIOConcurrencyHelpers
[68/132] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[71/132] Emitting module InternalCollectionsUtilities
[72/132] Compiling NIOConcurrencyHelpers atomics.swift
[75/132] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[76/132] Compiling NIOConcurrencyHelpers NIOLock.swift
[77/132] Compiling NIOConcurrencyHelpers lock.swift
[84/133] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[95/133] Emitting module SystemPackage
[100/133] Compiling Atomics IntegerOperations.swift
[101/133] Compiling Atomics Unmanaged extensions.swift
[102/134] Wrapping AST for ArgumentParserToolInfo for debugging
[103/134] Wrapping AST for _NIODataStructures for debugging
[105/134] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[106/134] Wrapping AST for _NIOBase64 for debugging
[107/151] Wrapping AST for NIOConcurrencyHelpers for debugging
[109/173] Wrapping AST for Atomics for debugging
[110/173] Wrapping AST for InternalCollectionsUtilities for debugging
[112/188] Compiling ArgumentParser Name.swift
[113/188] Compiling ArgumentParser Parsed.swift
[114/188] Compiling ArgumentParser ParsedValues.swift
[115/188] Compiling DequeModule Deque+CustomReflectable.swift
[116/188] Compiling DequeModule Deque+Descriptions.swift
[117/190] Compiling DequeModule _DequeBuffer.swift
[118/190] Compiling DequeModule _DequeBufferHeader.swift
[119/190] Compiling DequeModule Deque+Extras.swift
[120/190] Compiling DequeModule Deque+Hashable.swift
[121/190] Compiling DequeModule Deque+Equatable.swift
[122/190] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[123/190] Compiling DequeModule _DequeSlot.swift
[124/190] Compiling DequeModule _UnsafeWrappedBuffer.swift
[125/190] Compiling DequeModule Deque+Codable.swift
[126/190] Compiling DequeModule Deque+Collection.swift
[127/190] Compiling DequeModule Deque+Testing.swift
[128/190] Compiling DequeModule Deque._Storage.swift
[129/190] Compiling DequeModule Deque._UnsafeHandle.swift
[130/190] Compiling DequeModule Deque.swift
[131/190] Emitting module DequeModule
[132/191] Wrapping AST for DequeModule for debugging
[134/191] Compiling ArgumentParser ArgumentDecoder.swift
[135/191] Compiling ArgumentParser OptionGroup.swift
[136/191] Compiling ArgumentParser AsyncParsableCommand.swift
[137/191] Compiling ArgumentParser CommandConfiguration.swift
[138/191] Compiling ArgumentParser CommandGroup.swift
[139/191] Compiling ArgumentParser EnumerableFlag.swift
[140/191] Compiling ArgumentParser ArgumentDefinition.swift
[141/191] Compiling ArgumentParser ArgumentSet.swift
[142/252] Wrapping AST for SystemPackage for debugging
[144/252] Emitting module ArgumentParser
[145/257] Compiling NIOCore AddressedEnvelope.swift
[146/257] Compiling NIOCore AsyncAwaitSupport.swift
[147/257] Compiling NIOCore AsyncChannel.swift
[148/257] Compiling NIOCore AsyncChannelHandler.swift
[149/257] Compiling NIOCore AsyncChannelInboundStream.swift
[150/257] Compiling NIOCore AsyncChannelOutboundWriter.swift
[151/257] Compiling NIOCore CircularBuffer.swift
[152/257] Compiling NIOCore Codec.swift
[153/257] Compiling NIOCore ConvenienceOptionSupport.swift
[154/257] Compiling NIOCore DeadChannel.swift
[155/257] Compiling NIOCore DispatchQueue+WithFuture.swift
[156/257] Compiling NIOCore MulticastChannel.swift
[157/257] Compiling NIOCore NIOAny.swift
[158/257] Compiling NIOCore NIOCloseOnErrorHandler.swift
[159/257] Compiling NIOCore NIOLoopBound.swift
[160/257] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[161/257] Compiling NIOCore NIOScheduledCallback.swift
[162/257] Compiling NIOCore NIOSendable.swift
[163/257] Compiling NIOCore RecvByteBufferAllocator.swift
[164/265] Compiling NIOCore NIOAsyncSequenceProducer.swift
[165/265] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[166/265] Compiling NIOCore NIOAsyncWriter.swift
[167/265] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[168/265] Compiling NIOCore BSDSocketAPI.swift
[169/265] Compiling NIOCore ByteBuffer-aux.swift
[170/265] Compiling ArgumentParser CollectionExtensions.swift
[171/265] Compiling ArgumentParser Platform.swift
[172/265] Compiling ArgumentParser SequenceExtensions.swift
[173/265] Compiling ArgumentParser StringExtensions.swift
[174/265] Compiling ArgumentParser Tree.swift
[175/265] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[176/265] Compiling NIOCore ByteBuffer-conversions.swift
[177/265] Compiling NIOCore ByteBuffer-core.swift
[178/265] Compiling NIOCore ByteBuffer-hex.swift
[179/265] Compiling NIOCore ByteBuffer-int.swift
[180/265] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[181/265] Compiling NIOCore ByteBuffer-multi-int.swift
[182/265] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[183/265] Compiling NIOCore ByteBuffer-views.swift
[184/265] Compiling NIOCore Channel.swift
[185/265] Compiling NIOCore ChannelHandler.swift
[186/265] Compiling NIOCore ChannelHandlers.swift
[187/265] Compiling NIOCore ChannelInvoker.swift
[188/265] Compiling NIOCore ChannelOption.swift
[189/265] Compiling NIOCore ChannelPipeline.swift
[190/265] Compiling NIOCore IO.swift
[191/265] Compiling NIOCore IOData.swift
[192/265] Compiling NIOCore IPProtocol.swift
[193/265] Compiling NIOCore IntegerBitPacking.swift
[194/265] Compiling NIOCore IntegerTypes.swift
[195/265] Compiling NIOCore Interfaces.swift
[196/265] Compiling NIOCore Linux.swift
[197/265] Compiling NIOCore MarkedCircularBuffer.swift
[198/265] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[199/265] Compiling NIOCore EventLoopFuture+Deprecated.swift
[205/265] Compiling NIOCore GlobalSingletons.swift
[206/265] Compiling NIOCore EventLoop+Deprecated.swift
[207/265] Compiling NIOCore EventLoop+SerialExecutor.swift
[208/265] Compiling NIOCore EventLoop.swift
[219/266] Wrapping AST for ArgumentParser for debugging
[221/266] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[222/266] Compiling NIOCore SocketAddresses.swift
[223/266] Compiling NIOCore SocketOptionProvider.swift
[224/266] Compiling NIOCore SystemCallHelpers.swift
[225/266] Compiling NIOCore TimeAmount+Duration.swift
[226/266] Compiling NIOCore TypeAssistedChannelHandler.swift
[227/266] Compiling NIOCore UniversalBootstrapSupport.swift
[228/266] Compiling NIOCore Utilities.swift
[256/266] Emitting module NIOCore
[257/267] Wrapping AST for NIOCore for debugging
[259/317] Emitting module NIOEmbedded
[260/317] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[261/317] Compiling NIOEmbedded AsyncTestingChannel.swift
[262/317] Compiling NIOEmbedded Embedded.swift
[263/317] Compiling NIOPosix Pool.swift
[264/317] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[265/317] Compiling NIOPosix PosixSingletons.swift
[266/317] Compiling NIOPosix RawSocketBootstrap.swift
[267/317] Compiling NIOPosix Resolver.swift
[268/317] Compiling NIOPosix Selectable.swift
[269/324] Wrapping AST for NIOEmbedded for debugging
[271/324] Emitting module NIOPosix
[272/324] Compiling NIOPosix ThreadPosix.swift
[273/324] Compiling NIOPosix ThreadWindows.swift
[274/324] Compiling NIOPosix UnsafeTransfer.swift
[275/324] Compiling NIOPosix Utilities.swift
[276/324] Compiling NIOPosix VsockAddress.swift
[277/324] Compiling NIOPosix VsockChannelEvents.swift
[278/324] Compiling NIOPosix SelectableChannel.swift
[279/324] Compiling NIOPosix SelectableEventLoop.swift
[280/324] Compiling NIOPosix SelectorEpoll.swift
[281/324] Compiling NIOPosix SelectorGeneric.swift
[282/324] Compiling NIOPosix SelectorKqueue.swift
[283/324] Compiling NIOPosix SelectorUring.swift
[284/324] Compiling NIOPosix ServerSocket.swift
[285/324] Compiling NIOPosix Socket.swift
[286/324] Compiling NIOPosix SocketChannel.swift
[287/324] Compiling NIOPosix SocketProtocols.swift
[288/324] Compiling NIOPosix System.swift
[289/324] Compiling NIOPosix Thread.swift
[290/324] Compiling NIOPosix IO.swift
[291/324] Compiling NIOPosix IntegerBitPacking.swift
[292/324] Compiling NIOPosix IntegerTypes.swift
[293/324] Compiling NIOPosix Linux.swift
[294/324] Compiling NIOPosix LinuxCPUSet.swift
[295/324] Compiling NIOPosix LinuxUring.swift
[296/324] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[297/324] Compiling NIOPosix NIOThreadPool.swift
[298/324] Compiling NIOPosix NonBlockingFileIO.swift
[299/324] Compiling NIOPosix PendingDatagramWritesManager.swift
[300/324] Compiling NIOPosix PendingWritesManager.swift
[301/324] Compiling NIOPosix PipeChannel.swift
[302/324] Compiling NIOPosix PipePair.swift
[303/324] Compiling NIOPosix BSDSocketAPICommon.swift
[304/324] Compiling NIOPosix BSDSocketAPIPosix.swift
[305/324] Compiling NIOPosix BSDSocketAPIWindows.swift
[306/324] Compiling NIOPosix BaseSocket.swift
[307/324] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[308/324] Compiling NIOPosix BaseSocketChannel.swift
[309/324] Compiling NIOPosix BaseStreamSocketChannel.swift
[310/324] Compiling NIOPosix Bootstrap.swift
[311/324] Compiling NIOPosix ControlMessage.swift
[312/324] Compiling NIOPosix DatagramVectorReadManager.swift
[313/324] Compiling NIOPosix Errors+Any.swift
[314/324] Compiling NIOPosix FileDescriptor.swift
[315/324] Compiling NIOPosix GetaddrinfoResolver.swift
[316/324] Compiling NIOPosix HappyEyeballs.swift
[317/325] Wrapping AST for NIOPosix for debugging
[319/327] Compiling NIO Exports.swift
[320/327] Emitting module NIO
[321/328] Wrapping AST for NIO for debugging
[323/330] Compiling _NIOConcurrency Empty.swift
[324/330] Emitting module _NIOConcurrency
[325/331] Wrapping AST for _NIOConcurrency for debugging
[327/341] 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/NIO Pipe Bootstrap.swift:17:26: warning: 'withPipes(inputDescriptor:outputDescriptor:)' is deprecated: renamed to 'takingOwnershipOfDescriptors(input:output:)'
15 | let output = try outputDescriptor.duplicate()
16 | do {
17 | return try await withPipes(
| |- warning: 'withPipes(inputDescriptor:outputDescriptor:)' is deprecated: renamed to 'takingOwnershipOfDescriptors(input:output:)'
| `- note: use 'takingOwnershipOfDescriptors(input:output:)' instead
18 | inputDescriptor: input.rawValue,
19 | outputDescriptor: output.rawValue
[328/342] Compiling Shwift Pipe.swift
/host/spi-builder-workspace/Sources/Shwift/Pipe.swift:16:24: warning: sending 'source' risks causing data races; this is an error in the Swift 6 language mode
14 | async let sourceOutcome: SourceOutcome = {
15 | defer { try! pipe.writeEnd.close() }
16 | return try await source(pipe.writeEnd)
| |- warning: sending 'source' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'source' into async let risks causing data races between nonisolated and task-isolated uses
17 | }()
18 |
/host/spi-builder-workspace/Sources/Shwift/Pipe.swift:21:24: warning: sending 'destination' risks causing data races; this is an error in the Swift 6 language mode
19 | async let destinationOutcome: DestinationOutcome = {
20 | defer { try! pipe.readEnd.close() }
21 | return try await destination(pipe.readEnd)
| |- warning: sending 'destination' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'destination' into async let risks causing data races between nonisolated and task-isolated uses
22 | }()
23 |
[329/342] 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/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) }
/host/spi-builder-workspace/Sources/Shwift/IO.swift:11:21: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
4 | A value representing the input to a shell command
5 | */
6 | public struct Input {
| `- note: consider making struct 'Input' conform to the 'Sendable' protocol
7 |
8 | /**
9 | An `Input` corresponding to `stdin`
10 | */
11 | public static let standardInput = Input(kind: .standardInput)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standardInput' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:16:21: warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
4 | A value representing the input to a shell command
5 | */
6 | public struct Input {
| `- note: consider making struct 'Input' conform to the 'Sendable' protocol
7 |
8 | /**
:
14 | An input roughly analogous to using the null device (`/dev/null`).
15 | */
16 | public static let nullDevice = Input(kind: .nullDevice)
| |- warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nullDevice' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:70:21: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
68 | An `Output` correpsonding to `stdout`
69 | */
70 | public static let standardOutput = Output(kind: .standardOutput)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standardOutput' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:75:21: warning: static property 'standardError' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
73 | An `Output` correpsonding to `stderr`
74 | */
75 | public static let standardError = Output(kind: .standardError)
| |- warning: static property 'standardError' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standardError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:80:21: warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
78 | An `Output` correpsonding to a null output device which drops any output it receives
79 | */
80 | public static let nullDevice = Output(kind: .nullDevice)
| |- warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nullDevice' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 |
82 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:85:21: warning: static property 'fatalDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
83 | A special `Output` which aborts if any input is read.
84 | */
85 | public static let fatalDevice = Output(kind: .fatalDevice)
| |- warning: static property 'fatalDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fatalDevice' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:112:48: warning: non-sendable type '[(Output.Recorder.Source, String)]' of property 'strings' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
110 | public struct Recording {
111 | public func write<T: TextOutputStream>(to stream: inout T) async {
112 | for (source, buffer) in await recorder.strings {
| `- warning: non-sendable type '[(Output.Recorder.Source, String)]' of property 'strings' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
113 | if source == self.source {
114 | buffer.write(to: &stream)
:
141 | Which source to record data to
142 | */
143 | public enum Source {
| `- note: consider making enum 'Source' conform to the 'Sendable' protocol
144 | case output, error
145 | }
[330/342] 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/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) }
/host/spi-builder-workspace/Sources/Shwift/IO.swift:11:21: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
4 | A value representing the input to a shell command
5 | */
6 | public struct Input {
| `- note: consider making struct 'Input' conform to the 'Sendable' protocol
7 |
8 | /**
9 | An `Input` corresponding to `stdin`
10 | */
11 | public static let standardInput = Input(kind: .standardInput)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standardInput' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:16:21: warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
4 | A value representing the input to a shell command
5 | */
6 | public struct Input {
| `- note: consider making struct 'Input' conform to the 'Sendable' protocol
7 |
8 | /**
:
14 | An input roughly analogous to using the null device (`/dev/null`).
15 | */
16 | public static let nullDevice = Input(kind: .nullDevice)
| |- warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nullDevice' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:70:21: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
68 | An `Output` correpsonding to `stdout`
69 | */
70 | public static let standardOutput = Output(kind: .standardOutput)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standardOutput' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:75:21: warning: static property 'standardError' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
73 | An `Output` correpsonding to `stderr`
74 | */
75 | public static let standardError = Output(kind: .standardError)
| |- warning: static property 'standardError' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standardError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:80:21: warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
78 | An `Output` correpsonding to a null output device which drops any output it receives
79 | */
80 | public static let nullDevice = Output(kind: .nullDevice)
| |- warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nullDevice' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 |
82 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:85:21: warning: static property 'fatalDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
83 | A special `Output` which aborts if any input is read.
84 | */
85 | public static let fatalDevice = Output(kind: .fatalDevice)
| |- warning: static property 'fatalDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fatalDevice' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:112:48: warning: non-sendable type '[(Output.Recorder.Source, String)]' of property 'strings' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
110 | public struct Recording {
111 | public func write<T: TextOutputStream>(to stream: inout T) async {
112 | for (source, buffer) in await recorder.strings {
| `- warning: non-sendable type '[(Output.Recorder.Source, String)]' of property 'strings' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
113 | if source == self.source {
114 | buffer.write(to: &stream)
:
141 | Which source to record data to
142 | */
143 | public enum Source {
| `- note: consider making enum 'Source' conform to the 'Sendable' protocol
144 | case output, error
145 | }
[331/342] Compiling Shwift File Descriptor.swift
[332/342] Compiling Shwift Async Inbound Handler.swift
/host/spi-builder-workspace/Sources/Shwift/Support/Async Inbound Handler.swift:14:18: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
12 | }
13 | private func yield(_ event: Element) {
14 | continuation.yield(event)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
15 | }
16 |
[333/342] Compiling Shwift Process.swift
/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/Process.swift:83:9: warning: capture of 'process' with non-sendable type 'Process' in a '@Sendable' closure; this is an error in the Swift 6 language mode
5 | A value which represents a child process
6 | */
7 | public struct Process {
| `- note: consider making struct 'Process' conform to the 'Sendable' protocol
8 |
9 | /**
:
81 | }
82 | } onCancel: {
83 | process.terminate()
| `- warning: capture of 'process' with non-sendable type 'Process' in a '@Sendable' closure; this is an error in the Swift 6 language mode
84 | }
85 | }
/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/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: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: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()
/host/spi-builder-workspace/Sources/Shwift/Process.swift:349:41: warning: type 'FileDescriptorMonitor.Handler' does not conform to the 'Sendable' protocol
347 | try await NIOPipeBootstrap(group: context.eventLoopGroup)
348 | .channelInitializer { channel in
349 | channel.pipeline.addHandler(Handler())
| `- warning: type 'FileDescriptorMonitor.Handler' does not conform to the 'Sendable' protocol
350 | }
351 | .duplicating(
:
365 | private let future: EventLoopFuture<Void>
366 |
367 | private final class Handler: ChannelInboundHandler {
| `- note: class 'Handler' does not conform to the 'Sendable' protocol
368 | typealias InboundIn = ByteBuffer
369 | func channelRead(context: ChannelHandlerContext, data: NIOAny) {
[334/342] 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 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[335/342] 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/Builtins.swift:29:44: warning: type 'AsyncInboundHandler<ByteBuffer>' does not conform to the 'Sendable' protocol
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: type 'AsyncInboundHandler<ByteBuffer>' does not conform to the 'Sendable' protocol
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:29:44: warning: capture of 'handler' with non-sendable type 'AsyncInboundHandler<ByteBuffer>' in a '@Sendable' closure
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
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:48:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
46 | /// Call `read` only if we access the byte buffers
47 | context.eventLoop.execute {
48 | context.read()
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
49 | }
50 | return nil
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:55:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
53 | case .channelReadComplete(let context):
54 | context.eventLoop.execute {
55 | context.read()
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
56 | }
57 | return nil
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/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.
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.
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.
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.
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
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
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.
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.
265 | path: filePath.string,
266 | mode: .write,
/host/spi-builder-workspace/Sources/Shwift/Context.swift:93:48: warning: type 'Handler' does not conform to the 'Sendable' protocol
72 | }
73 |
74 | private actor ChannelOutputDevice<Handler: ChannelInboundHandler> {
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
75 | init(handler: Handler) {
76 | self.handler = handler
:
91 | let channel = try await NIOPipeBootstrap(group: group)
92 | .channelInitializer { channel in
93 | return channel.pipeline.addHandler(handler)
| `- warning: type 'Handler' does not conform to the 'Sendable' protocol
94 | }
95 | .duplicating(
/host/spi-builder-workspace/Sources/Shwift/Context.swift:93:48: warning: capture of 'handler' with non-sendable type 'Handler' in a '@Sendable' closure
72 | }
73 |
74 | private actor ChannelOutputDevice<Handler: ChannelInboundHandler> {
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
75 | init(handler: Handler) {
76 | self.handler = handler
:
91 | let channel = try await NIOPipeBootstrap(group: group)
92 | .channelInitializer { channel in
93 | return channel.pipeline.addHandler(handler)
| `- warning: capture of 'handler' with non-sendable type 'Handler' in a '@Sendable' closure
94 | }
95 | .duplicating(
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:119:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
117 | public func makeAsyncIterator() -> AsyncIterator {
118 | let stream = AsyncThrowingStream<String, Error> { continuation in
119 | Task<Void, Never> {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
120 | do {
121 | var remainder: String = ""
122 | for try await buffer in byteBuffers {
| `- note: closure captures 'self' which is accessible to code in the current task
123 | let readString = buffer.getString(
124 | at: buffer.readerIndex,
/host/spi-builder-workspace/Sources/Shwift/Context.swift:89:74: warning: sending value of non-Sendable type '((readEnd: FileDescriptor, writeEnd: FileDescriptor)) async throws -> (any Channel, FileDescriptor)' risks causing data races; this is an error in the Swift 6 language mode
87 | let channel: Channel
88 | let fileDescriptor: SystemPackage.FileDescriptor
89 | (channel, fileDescriptor) = try await SystemPackage.FileDescriptor.withPipe {
| |- warning: sending value of non-Sendable type '((readEnd: FileDescriptor, writeEnd: FileDescriptor)) async throws -> (any Channel, FileDescriptor)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type '((readEnd: FileDescriptor, writeEnd: FileDescriptor)) async throws -> (any Channel, FileDescriptor)' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
90 | [handler] pipe in
91 | let channel = try await NIOPipeBootstrap(group: group)
[336/342] 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/Builtins.swift:29:44: warning: type 'AsyncInboundHandler<ByteBuffer>' does not conform to the 'Sendable' protocol
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: type 'AsyncInboundHandler<ByteBuffer>' does not conform to the 'Sendable' protocol
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:29:44: warning: capture of 'handler' with non-sendable type 'AsyncInboundHandler<ByteBuffer>' in a '@Sendable' closure
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
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:48:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
46 | /// Call `read` only if we access the byte buffers
47 | context.eventLoop.execute {
48 | context.read()
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
49 | }
50 | return nil
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:55:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
53 | case .channelReadComplete(let context):
54 | context.eventLoop.execute {
55 | context.read()
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
56 | }
57 | return nil
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/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.
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.
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.
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.
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
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
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.
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.
265 | path: filePath.string,
266 | mode: .write,
/host/spi-builder-workspace/Sources/Shwift/Context.swift:93:48: warning: type 'Handler' does not conform to the 'Sendable' protocol
72 | }
73 |
74 | private actor ChannelOutputDevice<Handler: ChannelInboundHandler> {
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
75 | init(handler: Handler) {
76 | self.handler = handler
:
91 | let channel = try await NIOPipeBootstrap(group: group)
92 | .channelInitializer { channel in
93 | return channel.pipeline.addHandler(handler)
| `- warning: type 'Handler' does not conform to the 'Sendable' protocol
94 | }
95 | .duplicating(
/host/spi-builder-workspace/Sources/Shwift/Context.swift:93:48: warning: capture of 'handler' with non-sendable type 'Handler' in a '@Sendable' closure
72 | }
73 |
74 | private actor ChannelOutputDevice<Handler: ChannelInboundHandler> {
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
75 | init(handler: Handler) {
76 | self.handler = handler
:
91 | let channel = try await NIOPipeBootstrap(group: group)
92 | .channelInitializer { channel in
93 | return channel.pipeline.addHandler(handler)
| `- warning: capture of 'handler' with non-sendable type 'Handler' in a '@Sendable' closure
94 | }
95 | .duplicating(
/host/spi-builder-workspace/Sources/Shwift/Builtins.swift:119:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
117 | public func makeAsyncIterator() -> AsyncIterator {
118 | let stream = AsyncThrowingStream<String, Error> { continuation in
119 | Task<Void, Never> {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
120 | do {
121 | var remainder: String = ""
122 | for try await buffer in byteBuffers {
| `- note: closure captures 'self' which is accessible to code in the current task
123 | let readString = buffer.getString(
124 | at: buffer.readerIndex,
/host/spi-builder-workspace/Sources/Shwift/Context.swift:89:74: warning: sending value of non-Sendable type '((readEnd: FileDescriptor, writeEnd: FileDescriptor)) async throws -> (any Channel, FileDescriptor)' risks causing data races; this is an error in the Swift 6 language mode
87 | let channel: Channel
88 | let fileDescriptor: SystemPackage.FileDescriptor
89 | (channel, fileDescriptor) = try await SystemPackage.FileDescriptor.withPipe {
| |- warning: sending value of non-Sendable type '((readEnd: FileDescriptor, writeEnd: FileDescriptor)) async throws -> (any Channel, FileDescriptor)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated value of non-Sendable type '((readEnd: FileDescriptor, writeEnd: FileDescriptor)) async throws -> (any Channel, FileDescriptor)' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
90 | [handler] pipe in
91 | let channel = try await NIOPipeBootstrap(group: group)
[337/342] 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/IO.swift:11:21: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
4 | A value representing the input to a shell command
5 | */
6 | public struct Input {
| `- note: consider making struct 'Input' conform to the 'Sendable' protocol
7 |
8 | /**
9 | An `Input` corresponding to `stdin`
10 | */
11 | public static let standardInput = Input(kind: .standardInput)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standardInput' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:16:21: warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
4 | A value representing the input to a shell command
5 | */
6 | public struct Input {
| `- note: consider making struct 'Input' conform to the 'Sendable' protocol
7 |
8 | /**
:
14 | An input roughly analogous to using the null device (`/dev/null`).
15 | */
16 | public static let nullDevice = Input(kind: .nullDevice)
| |- warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nullDevice' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:70:21: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
68 | An `Output` correpsonding to `stdout`
69 | */
70 | public static let standardOutput = Output(kind: .standardOutput)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standardOutput' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:75:21: warning: static property 'standardError' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
73 | An `Output` correpsonding to `stderr`
74 | */
75 | public static let standardError = Output(kind: .standardError)
| |- warning: static property 'standardError' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standardError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:80:21: warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
78 | An `Output` correpsonding to a null output device which drops any output it receives
79 | */
80 | public static let nullDevice = Output(kind: .nullDevice)
| |- warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nullDevice' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 |
82 | /**
/host/spi-builder-workspace/Sources/Shwift/IO.swift:85:21: warning: static property 'fatalDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
83 | A special `Output` which aborts if any input is read.
84 | */
85 | public static let fatalDevice = Output(kind: .fatalDevice)
| |- warning: static property 'fatalDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'fatalDevice' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 |
87 | /**
/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 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/21] Write swift-version-24593BA9C3E375BF.txt
[3/96] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[4/97] Compiling SystemPackage FilePathTempPosix.swift
[5/97] Compiling SystemPackage FilePathTempWindows.swift
[6/97] Compiling SystemPackage FilePathString.swift
[7/97] Compiling SystemPackage FilePathSyntax.swift
[8/97] Compiling SystemPackage FilePathComponentView.swift
[9/97] Compiling SystemPackage FilePathComponents.swift
[12/99] Compiling SystemPackage FileDescriptor.swift
[13/99] Compiling SystemPackage FileHelpers.swift
[14/99] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[15/99] Emitting module InternalCollectionsUtilities
[16/99] Emitting module _NIOBase64
[19/99] Emitting module SystemPackage
[20/102] Compiling _NIOBase64 Base64.swift
[21/103] Compiling _NIODataStructures PriorityQueue.swift
[22/103] Compiling _NIODataStructures Heap.swift
[23/103] Compiling _NIODataStructures _TinyArray.swift
[24/103] Compiling NIOConcurrencyHelpers atomics.swift
[25/103] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[26/103] Compiling NIOConcurrencyHelpers NIOLock.swift
[27/103] Compiling NIOConcurrencyHelpers lock.swift
[29/103] Compiling SystemPackage FileOperations.swift
[30/103] Compiling SystemPackage FilePath.swift
[31/103] Compiling SystemPackage Errno.swift
[32/103] Compiling SystemPackage ErrnoWindows.swift
[34/103] Compiling Atomics IntegerOperations.swift
[35/103] Compiling Atomics Unmanaged extensions.swift
[37/103] Compiling SystemPackage MachPort.swift
[38/103] Compiling SystemPackage PlatformString.swift
[39/103] Compiling SystemPackage SystemString.swift
[40/103] Emitting module NIOConcurrencyHelpers
[41/103] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[42/104] Emitting module _NIODataStructures
[45/103] Compiling SystemPackage Mocking.swift
[46/103] Compiling SystemPackage RawBuffer.swift
[47/103] Compiling SystemPackage Syscalls.swift
[48/103] Compiling SystemPackage WindowsSyscallAdapters.swift
[49/103] Compiling SystemPackage Backcompat.swift
[50/103] Compiling SystemPackage CInterop.swift
[53/102] Compiling SystemPackage Util+StringArray.swift
[54/102] Compiling SystemPackage Util.swift
[55/102] Compiling SystemPackage UtilConsumers.swift
[60/102] Compiling SystemPackage FilePathWindows.swift
[61/102] Compiling SystemPackage FilePermissions.swift
[66/103] Compiling ArgumentParserToolInfo ToolInfo.swift
[67/103] Emitting module ArgumentParserToolInfo
[69/103] Wrapping AST for InternalCollectionsUtilities for debugging
[71/103] Compiling SystemPackage FilePathParsing.swift
[74/103] Compiling SystemPackage FilePathTemp.swift
[75/118] Compiling DequeModule Deque+Codable.swift
[76/118] Compiling DequeModule Deque+Collection.swift
[77/118] Compiling DequeModule Deque+CustomReflectable.swift
[78/118] Compiling DequeModule Deque+Descriptions.swift
[79/118] Compiling DequeModule Deque+Equatable.swift
[80/118] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[81/118] Compiling DequeModule Deque+Extras.swift
[82/118] Compiling DequeModule Deque+Hashable.swift
[84/157] Compiling ArgumentParser Errors.swift
[85/157] Compiling ArgumentParser Flag.swift
[85/159] Wrapping AST for SystemPackage for debugging
[87/159] Compiling ArgumentParser ExpressibleByArgument.swift
[88/159] Compiling ArgumentParser ParsableArguments.swift
[89/159] Emitting module Atomics
[90/159] Compiling ArgumentParser NameSpecification.swift
[91/159] Compiling ArgumentParser Option.swift
[92/159] Compiling ArgumentParser BashCompletionsGenerator.swift
[93/159] Compiling ArgumentParser CompletionsGenerator.swift
[94/159] Compiling ArgumentParser FishCompletionsGenerator.swift
[95/159] Compiling ArgumentParser ZshCompletionsGenerator.swift
[96/159] Compiling ArgumentParser Argument.swift
[97/159] Compiling ArgumentParser ArgumentHelp.swift
[98/159] Compiling DequeModule _DequeSlot.swift
[99/159] Compiling DequeModule _UnsafeWrappedBuffer.swift
[104/159] Compiling ArgumentParser ArgumentDecoder.swift
[105/159] Compiling ArgumentParser OptionGroup.swift
[107/160] Emitting module DequeModule
[108/160] Compiling ArgumentParser ArgumentVisibility.swift
[109/160] Compiling ArgumentParser CompletionKind.swift
[109/161] Wrapping AST for Atomics for debugging
[111/161] Wrapping AST for DequeModule for debugging
[113/221] Compiling NIOCore IO.swift
[114/221] Compiling NIOCore IOData.swift
[115/221] Compiling NIOCore IPProtocol.swift
[116/221] Compiling NIOCore IntegerBitPacking.swift
[117/221] Compiling NIOCore IntegerTypes.swift
[118/221] Compiling NIOCore Interfaces.swift
[119/221] Emitting module ArgumentParser
[120/226] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[121/226] Compiling NIOCore EventLoopFuture.swift
[122/226] Compiling NIOCore FileDescriptor.swift
[123/226] Compiling NIOCore FileHandle.swift
[124/226] Compiling NIOCore FileRegion.swift
[125/226] Compiling NIOCore GlobalSingletons.swift
[126/226] Compiling NIOCore MulticastChannel.swift
[127/226] Compiling NIOCore NIOAny.swift
[128/226] Compiling NIOCore NIOCloseOnErrorHandler.swift
[129/226] Compiling NIOCore NIOLoopBound.swift
[130/226] Compiling NIOCore CircularBuffer.swift
[131/226] Compiling NIOCore Codec.swift
[132/226] Compiling NIOCore ConvenienceOptionSupport.swift
[133/226] Compiling NIOCore DeadChannel.swift
[134/226] Compiling NIOCore DispatchQueue+WithFuture.swift
[135/226] Compiling NIOCore Linux.swift
[136/226] Compiling NIOCore MarkedCircularBuffer.swift
[137/226] Compiling NIOCore AddressedEnvelope.swift
[138/226] Compiling NIOCore AsyncAwaitSupport.swift
[139/226] Compiling NIOCore AsyncChannel.swift
[140/226] Compiling NIOCore AsyncChannelHandler.swift
[141/226] Compiling NIOCore AsyncChannelInboundStream.swift
[142/226] Compiling NIOCore AsyncChannelOutboundWriter.swift
[143/226] Compiling NIOCore NIOAsyncSequenceProducer.swift
[144/226] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[145/226] Compiling NIOCore NIOAsyncWriter.swift
[146/226] Compiling NIOCore EventLoop+Deprecated.swift
[147/226] Compiling NIOCore EventLoop+SerialExecutor.swift
[148/226] Compiling NIOCore EventLoop.swift
[149/226] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[150/226] Compiling NIOCore EventLoopFuture+Deprecated.swift
[151/226] Compiling ArgumentParser CollectionExtensions.swift
[152/226] Compiling ArgumentParser Platform.swift
[153/226] Compiling ArgumentParser SequenceExtensions.swift
[154/226] Compiling ArgumentParser StringExtensions.swift
[155/226] Compiling ArgumentParser Tree.swift
[157/226] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[158/226] Compiling NIOCore BSDSocketAPI.swift
[159/226] Compiling NIOCore ByteBuffer-aux.swift
[160/226] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[161/226] Compiling NIOCore ByteBuffer-conversions.swift
[162/226] Compiling NIOCore ByteBuffer-core.swift
[163/226] Compiling NIOCore ByteBuffer-hex.swift
[164/226] Compiling NIOCore ByteBuffer-int.swift
[165/226] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[166/234] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[167/234] Compiling NIOCore SocketAddresses.swift
[168/234] Compiling NIOCore SocketOptionProvider.swift
[169/234] Compiling NIOCore SystemCallHelpers.swift
[170/234] Compiling NIOCore TimeAmount+Duration.swift
[171/234] Compiling NIOCore TypeAssistedChannelHandler.swift
[172/234] Compiling NIOCore UniversalBootstrapSupport.swift
[173/234] Compiling NIOCore Utilities.swift
[216/234] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[217/234] Compiling NIOCore ByteBuffer-views.swift
[218/234] Compiling NIOCore Channel.swift
[219/234] Compiling NIOCore ChannelHandler.swift
[220/234] Compiling NIOCore ChannelHandlers.swift
[221/234] Compiling NIOCore ChannelInvoker.swift
[222/234] Compiling NIOCore ChannelOption.swift
[223/234] Compiling NIOCore ChannelPipeline.swift
[224/234] Emitting module NIOCore
[226/284] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[227/284] Compiling NIOEmbedded AsyncTestingChannel.swift
[228/284] Emitting module NIOEmbedded
[229/284] Compiling NIOEmbedded Embedded.swift
[231/284] Compiling NIOPosix SelectableChannel.swift
[232/284] Compiling NIOPosix SelectableEventLoop.swift
[233/284] Compiling NIOPosix SelectorEpoll.swift
[234/284] Compiling NIOPosix SelectorGeneric.swift
[235/284] Compiling NIOPosix SelectorKqueue.swift
[236/284] Compiling NIOPosix SelectorUring.swift
[237/290] Emitting module NIOPosix
[238/290] Compiling NIOPosix Pool.swift
[239/290] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[240/290] Compiling NIOPosix PosixSingletons.swift
[241/290] Compiling NIOPosix RawSocketBootstrap.swift
[242/290] Compiling NIOPosix Resolver.swift
[243/290] Compiling NIOPosix Selectable.swift
[244/290] Compiling NIOPosix ServerSocket.swift
[245/290] Compiling NIOPosix Socket.swift
[246/290] Compiling NIOPosix SocketChannel.swift
[247/290] Compiling NIOPosix SocketProtocols.swift
[248/290] Compiling NIOPosix System.swift
[249/290] Compiling NIOPosix Thread.swift
[250/290] Compiling NIOPosix IO.swift
[251/290] Compiling NIOPosix IntegerBitPacking.swift
[252/290] Compiling NIOPosix IntegerTypes.swift
[253/290] Compiling NIOPosix Linux.swift
[254/290] Compiling NIOPosix LinuxCPUSet.swift
[255/290] Compiling NIOPosix LinuxUring.swift
[256/290] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[257/290] Compiling NIOPosix BSDSocketAPICommon.swift
[258/290] Compiling NIOPosix BSDSocketAPIPosix.swift
[259/290] Compiling NIOPosix BSDSocketAPIWindows.swift
[260/290] Compiling NIOPosix BaseSocket.swift
[261/290] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[262/290] Compiling NIOPosix BaseSocketChannel.swift
[263/290] Compiling NIOPosix BaseStreamSocketChannel.swift
[264/290] Compiling NIOPosix NIOThreadPool.swift
[265/290] Compiling NIOPosix NonBlockingFileIO.swift
[266/290] Compiling NIOPosix PendingDatagramWritesManager.swift
[267/290] Compiling NIOPosix PendingWritesManager.swift
[268/290] Compiling NIOPosix PipeChannel.swift
[269/290] Compiling NIOPosix PipePair.swift
[270/290] Compiling NIOPosix Bootstrap.swift
[271/290] Compiling NIOPosix ControlMessage.swift
[272/290] Compiling NIOPosix DatagramVectorReadManager.swift
[273/290] Compiling NIOPosix Errors+Any.swift
[274/290] Compiling NIOPosix FileDescriptor.swift
[275/290] Compiling NIOPosix GetaddrinfoResolver.swift
[276/290] Compiling NIOPosix HappyEyeballs.swift
[277/290] Compiling NIOPosix ThreadPosix.swift
[278/290] Compiling NIOPosix ThreadWindows.swift
[279/290] Compiling NIOPosix UnsafeTransfer.swift
[280/290] Compiling NIOPosix Utilities.swift
[281/290] Compiling NIOPosix VsockAddress.swift
[282/290] Compiling NIOPosix VsockChannelEvents.swift
[284/292] Emitting module NIO
[285/292] Compiling NIO Exports.swift
[287/294] Compiling _NIOConcurrency Empty.swift
[288/294] Emitting module _NIOConcurrency
[290/304] Compiling Shwift File Descriptor.swift
[291/305] Compiling Shwift Async Inbound Handler.swift
[292/305] 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/NIO Pipe Bootstrap.swift:17:26: warning: 'withPipes(inputDescriptor:outputDescriptor:)' is deprecated: renamed to 'takingOwnershipOfDescriptors(input:output:)'
15 | let output = try outputDescriptor.duplicate()
16 | do {
17 | return try await withPipes(
| |- warning: 'withPipes(inputDescriptor:outputDescriptor:)' is deprecated: renamed to 'takingOwnershipOfDescriptors(input:output:)'
| `- note: use 'takingOwnershipOfDescriptors(input:output:)' instead
18 | inputDescriptor: input.rawValue,
19 | outputDescriptor: output.rawValue
[293/305] Compiling Shwift Pipe.swift
[294/305] Compiling Shwift Process.swift
/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/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/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: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: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()
[295/305] 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/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) }
[296/305] 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/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) }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[297/305] 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/Builtins.swift:29:44: warning: capture of 'handler' with non-sendable type 'AsyncInboundHandler<ByteBuffer>' in a '@Sendable' closure
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
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.
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.
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.
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.
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
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
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.
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.
265 | path: filePath.string,
266 | mode: .write,
[298/305] 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/Builtins.swift:29:44: warning: capture of 'handler' with non-sendable type 'AsyncInboundHandler<ByteBuffer>' in a '@Sendable' closure
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
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.
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.
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.
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.
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
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
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.
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.
265 | path: filePath.string,
266 | mode: .write,
[299/305] 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 |
[300/305] 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.1 android