Build Information
Failed to build swift-lambda-extras, reference main (3d5faf
), with Swift 6.1 for Wasm on 3 Sep 2025 06:49:54 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mgacy/swift-lambda-extras.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/mgacy/swift-lambda-extras
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3d5faf8 Strict Concurrency Support (#15)
Cloned https://github.com/mgacy/swift-lambda-extras.git
Revision (git rev-parse @):
3d5faf85e10db1ffe69fe6c20389f2099c12245f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mgacy/swift-lambda-extras.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/mgacy/swift-lambda-extras.git
https://github.com/mgacy/swift-lambda-extras.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.43.1",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-aws-lambda-events",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-server/swift-aws-lambda-events"
},
{
"identity" : "swift-aws-lambda-runtime",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0-alpha.3",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-server/swift-aws-lambda-runtime"
}
],
"manifest_display_name" : "swift-lambda-extras",
"name" : "swift-lambda-extras",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "LambdaExtras",
"targets" : [
"LambdaExtras"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "LambdaExtrasCore",
"targets" : [
"LambdaExtrasCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "LambdaMocks",
"targets" : [
"LambdaMocks"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LambdaMocks",
"module_type" : "SwiftTarget",
"name" : "LambdaMocks",
"path" : "Sources/LambdaMocks",
"product_dependencies" : [
"AWSLambdaEvents",
"NIO"
],
"product_memberships" : [
"LambdaMocks"
],
"sources" : [
"ContextProvider.swift",
"Extensions/APIGatewayV2+Utils.swift",
"Extensions/Dispatch+Utils.swift",
"Extensions/Logger+Utils.swift",
"MockContext.swift",
"MockInitializationContext.swift",
"Mocked.swift"
],
"target_dependencies" : [
"LambdaExtrasCore"
],
"type" : "library"
},
{
"c99name" : "LambdaExtrasTests",
"module_type" : "SwiftTarget",
"name" : "LambdaExtrasTests",
"path" : "Tests/LambdaExtrasTests",
"sources" : [
"APIGatewayCoderTests.swift",
"LambdaExtrasTests.swift",
"Support/Helpers.swift",
"Support/Mock.swift"
],
"target_dependencies" : [
"LambdaExtras",
"LambdaMocks"
],
"type" : "test"
},
{
"c99name" : "LambdaExtrasCore",
"module_type" : "SwiftTarget",
"name" : "LambdaExtrasCore",
"path" : "Sources/LambdaExtrasCore",
"product_dependencies" : [
"Logging",
"NIOCore"
],
"product_memberships" : [
"LambdaExtras",
"LambdaExtrasCore",
"LambdaMocks"
],
"sources" : [
"Extensions.swift",
"HandlerError.swift",
"Protocols/EnvironmentValueProvider.swift",
"Protocols/InitializationContext.swift",
"Protocols/LambdaCoding.swift",
"Protocols/RuntimeContext.swift"
],
"type" : "library"
},
{
"c99name" : "LambdaExtras",
"module_type" : "SwiftTarget",
"name" : "LambdaExtras",
"path" : "Sources/LambdaExtras",
"product_dependencies" : [
"AWSLambdaRuntime",
"AWSLambdaEvents"
],
"product_memberships" : [
"LambdaExtras"
],
"sources" : [
"APIGatewayCoder.swift",
"DefaultEnvironment.swift",
"Exports.swift",
"Extensions.swift"
],
"target_dependencies" : [
"LambdaExtrasCore"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/swift-server/swift-aws-lambda-runtime
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/swift-server/swift-aws-lambda-events
Fetching https://github.com/apple/swift-nio.git
[1/2613] Fetching swift-aws-lambda-events
[994/16017] Fetching swift-aws-lambda-events, swift-aws-lambda-runtime
[3151/19920] Fetching swift-aws-lambda-events, swift-aws-lambda-runtime, swift-log
Fetched https://github.com/swift-server/swift-aws-lambda-events from cache (0.32s)
[4574/17307] Fetching swift-aws-lambda-runtime, swift-log
[8060/95299] Fetching swift-aws-lambda-runtime, swift-log, swift-nio
Fetched https://github.com/swift-server/swift-aws-lambda-runtime from cache (1.30s)
[53038/81895] Fetching swift-log, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (4.25s)
Fetched https://github.com/apple/swift-nio.git from cache (4.33s)
Computing version for https://github.com/swift-server/swift-aws-lambda-events
Computed https://github.com/swift-server/swift-aws-lambda-events at 0.5.0 (4.82s)
Fetching https://github.com/apple/swift-http-types.git
[1/917] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types.git from cache (0.21s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.4.0 (0.65s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (0.45s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.86.0 (0.67s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/1814] Fetching swift-atomics
[1815/6755] Fetching swift-atomics, swift-system
[6707/24149] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.39s)
Fetched https://github.com/apple/swift-system.git from cache (0.39s)
[2088/17394] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.05s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.48s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.2 (0.48s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (0.55s)
Computing version for https://github.com/swift-server/swift-aws-lambda-runtime
Computed https://github.com/swift-server/swift-aws-lambda-runtime at 1.0.0-alpha.3 (0.44s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.4
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.86.0
Creating working copy for https://github.com/swift-server/swift-aws-lambda-events
Working copy of https://github.com/swift-server/swift-aws-lambda-events resolved at 0.5.0
Creating working copy for https://github.com/swift-server/swift-aws-lambda-runtime
Working copy of https://github.com/swift-server/swift-aws-lambda-runtime resolved at 1.0.0-alpha.3
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.2
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.1
[1/1] Compiling plugin AWSLambdaPackager
Building for debugging...
[1/35] Write sources
[19/35] Compiling CNIOLinux shim.c
[19/35] Compiling _AtomicsShims.c
[21/35] Compiling CNIOLinux liburing_shims.c
[21/35] Compiling CNIOPosix event_loop_id.c
[21/35] Compiling CNIOWASI CNIOWASI.c
[24/35] Compiling CNIOWindows WSAStartup.c
[25/35] Compiling CNIOWindows shim.c
[25/35] Write sources
[28/35] Compiling CNIODarwin shim.c
[29/35] Compiling CNIOLLHTTP c_nio_http.c
[30/35] Compiling CNIOLLHTTP c_nio_api.c
[31/35] Write swift-version-24593BA9C3E375BF.txt
[33/78] Emitting module _NIOBase64
[34/78] Emitting module _NIODataStructures
[34/78] Compiling CNIOLLHTTP c_nio_llhttp.c
[35/86] Compiling c-nioatomics.c
[37/86] Compiling _NIODataStructures _TinyArray.swift
[38/86] Compiling HTTPTypes ISOLatin1String.swift
[39/87] Compiling InternalCollectionsUtilities Descriptions.swift
[40/87] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[41/87] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[42/88] Compiling HTTPTypes HTTPFieldName.swift
[43/88] Compiling Logging Locks.swift
[44/88] Emitting module Logging
[45/88] Compiling _NIOBase64 Base64.swift
[46/88] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[47/88] Compiling InternalCollectionsUtilities Integer rank.swift
[48/89] Compiling _NIODataStructures PriorityQueue.swift
[49/89] Emitting module HTTPTypes
[50/89] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[51/89] Compiling InternalCollectionsUtilities _SortedCollection.swift
[52/89] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[53/89] Compiling InternalCollectionsUtilities UInt+reversed.swift
[54/89] Emitting module InternalCollectionsUtilities
[55/89] Compiling Atomics UnsafeAtomic.swift
[56/89] Compiling Atomics UnsafeAtomicLazyReference.swift
[57/89] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[58/89] Compiling InternalCollectionsUtilities Debugging.swift
[59/89] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[60/89] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[61/91] Emitting module Atomics
[69/91] Compiling Atomics DoubleWord.swift
[73/91] Compiling Atomics ManagedAtomic.swift
[74/91] Compiling Atomics ManagedAtomicLazyReference.swift
[78/91] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[80/92] Compiling HTTPTypes HTTPRequest.swift
[81/92] Compiling HTTPTypes HTTPParsedFields.swift
[82/92] Compiling HTTPTypes HTTPResponse.swift
[82/92] Compiling c-atomics.c
[84/92] Compiling Atomics IntegerOperations.swift
[85/92] Compiling Atomics Unmanaged extensions.swift
[86/93] Compiling Logging MetadataProvider.swift
[87/93] Compiling HTTPTypes NIOLock.swift
[88/93] Compiling Logging LogHandler.swift
[89/93] Compiling Logging Logging.swift
[91/94] Compiling _NIODataStructures Heap.swift
[94/116] Compiling NIOConcurrencyHelpers lock.swift
[95/116] Compiling DequeModule _DequeBuffer.swift
[96/116] Compiling DequeModule _DequeBufferHeader.swift
[97/118] Compiling NIOConcurrencyHelpers NIOLock.swift
[98/118] Compiling DequeModule Deque+CustomReflectable.swift
[99/118] Compiling DequeModule Deque+Descriptions.swift
[100/118] Compiling DequeModule Deque+Equatable.swift
[101/118] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[102/118] Compiling DequeModule Deque+Extras.swift
[103/118] Compiling DequeModule Deque+Hashable.swift
[104/118] Compiling DequeModule _DequeSlot.swift
[105/118] Compiling DequeModule _UnsafeWrappedBuffer.swift
[106/118] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[107/118] Compiling NIOConcurrencyHelpers atomics.swift
[108/118] Emitting module NIOConcurrencyHelpers
[109/118] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[111/119] Compiling DequeModule Deque+Testing.swift
[112/119] Compiling DequeModule Deque._Storage.swift
[113/119] Compiling DequeModule Deque._UnsafeHandle.swift
[114/119] Compiling DequeModule Deque.swift
[115/119] Compiling DequeModule Deque+Codable.swift
[116/119] Compiling DequeModule Deque+Collection.swift
[117/119] Emitting module DequeModule
[119/181] Compiling HTTPTypes HTTPField.swift
[120/181] Compiling HTTPTypes HTTPFields.swift
[122/201] Compiling NIOCore NIOAny.swift
[123/201] Compiling NIOCore NIOCloseOnErrorHandler.swift
[124/201] Compiling NIOCore NIOCoreSendableMetatype.swift
[125/201] Compiling NIOCore NIOLoopBound.swift
[126/201] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[127/201] Compiling NIOCore NIOScheduledCallback.swift
[128/201] Compiling NIOCore NIOSendable.swift
[129/201] Compiling NIOCore RecvByteBufferAllocator.swift
[130/209] Compiling NIOCore IOData.swift
[131/209] Compiling NIOCore IPProtocol.swift
[132/209] Compiling NIOCore IntegerBitPacking.swift
[133/209] Compiling NIOCore IntegerTypes.swift
[134/209] Compiling NIOCore Interfaces.swift
[135/209] Compiling NIOCore Linux.swift
[136/209] Compiling NIOCore MarkedCircularBuffer.swift
[137/209] Compiling NIOCore MulticastChannel.swift
[138/209] Compiling NIOCore EventLoopFuture+Deprecated.swift
[139/209] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[140/209] Compiling NIOCore EventLoopFuture.swift
[141/209] Compiling NIOCore FileDescriptor.swift
[142/209] Compiling NIOCore FileHandle.swift
[143/209] Compiling NIOCore FileRegion.swift
[144/209] Compiling NIOCore GlobalSingletons.swift
[145/209] Compiling NIOCore IO.swift
[146/209] Compiling AWSLambdaEvents SQS.swift
[147/209] Compiling AWSLambdaEvents Base64.swift
[148/211] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[149/211] Compiling NIOCore SocketAddresses.swift
[150/211] Compiling NIOCore SocketOptionProvider.swift
[151/211] Compiling NIOCore SystemCallHelpers.swift
[152/211] Compiling NIOCore TimeAmount+Duration.swift
[153/211] Compiling NIOCore TypeAssistedChannelHandler.swift
[154/211] Compiling NIOCore UniversalBootstrapSupport.swift
[155/211] Compiling NIOCore Utilities.swift
[156/211] Compiling AWSLambdaEvents APIGatewayLambdaAuthorizers.swift
[157/211] Compiling AWSLambdaEvents AWSRegion.swift
[158/211] Compiling AWSLambdaEvents AppSync.swift
[159/211] Compiling AWSLambdaEvents SES.swift
[160/211] Compiling AWSLambdaEvents SNS.swift
[161/211] Compiling AWSLambdaEvents LambdaGatewayProxyEvent.swift
[162/211] Compiling AWSLambdaEvents S3.swift
[165/211] Compiling AWSLambdaEvents BedrockAgent.swift
[166/211] Compiling AWSLambdaEvents CloudFormation.swift
[167/211] Compiling AWSLambdaEvents Cloudwatch.swift
[172/211] Compiling AWSLambdaEvents DateWrappers.swift
[173/211] Compiling AWSLambdaEvents HTTP.swift
[174/211] Emitting module AWSLambdaEvents
[175/211] Compiling AWSLambdaEvents ALB.swift
[176/211] Compiling AWSLambdaEvents APIGateway+V2.swift
[177/211] Compiling AWSLambdaEvents APIGateway.swift
[178/211] Compiling AWSLambdaEvents Cognito.swift
[179/211] Compiling AWSLambdaEvents DynamoDB.swift
[180/211] Compiling AWSLambdaEvents FunctionURL.swift
[185/212] Compiling NIOCore AddressedEnvelope.swift
[186/212] Compiling NIOCore AsyncAwaitSupport.swift
[187/212] Compiling NIOCore AsyncChannel.swift
[188/212] Compiling NIOCore AsyncChannelHandler.swift
[189/212] Compiling NIOCore AsyncChannelInboundStream.swift
[190/212] Compiling NIOCore AsyncChannelOutboundWriter.swift
[191/212] Compiling NIOCore NIOAsyncSequenceProducer.swift
[192/212] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[193/212] Compiling NIOCore NIOAsyncWriter.swift
[196/212] Compiling NIOCore ByteBuffer-aux.swift
[197/212] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[198/212] Compiling NIOCore ByteBuffer-conversions.swift
[199/212] Compiling NIOCore ByteBuffer-core.swift
[200/212] Compiling NIOCore ByteBuffer-hex.swift
[201/212] Compiling NIOCore ByteBuffer-int.swift
[202/212] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[212/212] Emitting module NIOCore
[214/293] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[215/293] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOFoundationCompat/WaitSpinningRunLoop.swift:55:31: error: 'current' is unavailable: RunLoop is not available on WASI
53 | self.eventLoop._preconditionSafeToWait(file: file, line: line)
54 |
55 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
56 |
57 | let value: NIOLockedValueBox<Result<Value, any Error>?> = NIOLockedValueBox(nil)
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOFoundationCompat/WaitSpinningRunLoop.swift:65:25: error: value of type 'RunLoop' has no member 'run'
63 |
64 | while value.withLockedValue({ $0 }) == nil {
65 | _ = runLoop.run(mode: mode, before: Date().addingTimeInterval(0.01))
| `- error: value of type 'RunLoop' has no member 'run'
66 | }
67 |
[216/293] Compiling LambdaExtrasCore InitializationContext.swift
[217/293] Compiling LambdaExtrasCore LambdaCoding.swift
[218/293] Compiling LambdaExtrasCore RuntimeContext.swift
/host/spi-builder-workspace/Sources/LambdaExtrasCore/Protocols/RuntimeContext.swift:24:19: error: cannot find type 'DispatchWallTime' in scope
22 |
23 | /// The timestamp that the function times out.
24 | var deadline: DispatchWallTime { get }
| `- error: cannot find type 'DispatchWallTime' in scope
25 |
26 | /// For invocations from the AWS Mobile SDK, data about the Amazon Cognito identity provider.
[219/293] Compiling LambdaExtrasCore EnvironmentValueProvider.swift
[220/293] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[221/293] Compiling LambdaExtrasCore HandlerError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[222/293] Emitting module NIOEmbedded
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOEmbedded/AsyncTestingChannel.swift:731:11: error: cannot find type 'NIOAsyncTestingChannel' in scope
729 | // Synchronous options are never Sendable.
730 | @available(*, unavailable)
731 | extension NIOAsyncTestingChannel.SynchronousOptions: Sendable {}
| `- error: cannot find type 'NIOAsyncTestingChannel' in scope
732 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[223/293] Emitting module LambdaExtrasCore
/host/spi-builder-workspace/Sources/LambdaExtrasCore/Extensions.swift:82:1: warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
80 | }
81 |
82 | extension Swift.String: Foundation.LocalizedError {
| |- warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
83 | public var errorDescription: String? { self }
84 | public var failureReason: String? { self }
/host/spi-builder-workspace/Sources/LambdaExtrasCore/Protocols/RuntimeContext.swift:24:19: error: cannot find type 'DispatchWallTime' in scope
22 |
23 | /// The timestamp that the function times out.
24 | var deadline: DispatchWallTime { get }
| `- error: cannot find type 'DispatchWallTime' in scope
25 |
26 | /// For invocations from the AWS Mobile SDK, data about the Amazon Cognito identity provider.
[224/293] Compiling LambdaExtrasCore Extensions.swift
/host/spi-builder-workspace/Sources/LambdaExtrasCore/Extensions.swift:82:1: warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
80 | }
81 |
82 | extension Swift.String: Foundation.LocalizedError {
| |- warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
83 | public var errorDescription: String? { self }
84 | public var failureReason: String? { self }
[225/293] Compiling NIOEmbedded AsyncTestingChannel.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOEmbedded/AsyncTestingChannel.swift:731:11: error: cannot find type 'NIOAsyncTestingChannel' in scope
729 | // Synchronous options are never Sendable.
730 | @available(*, unavailable)
731 | extension NIOAsyncTestingChannel.SynchronousOptions: Sendable {}
| `- error: cannot find type 'NIOAsyncTestingChannel' in scope
732 |
[226/293] Compiling NIOEmbedded AsyncTestingEventLoop.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[227/293] Emitting module NIOFoundationCompat
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOFoundationCompat/WaitSpinningRunLoop.swift:55:31: error: 'current' is unavailable: RunLoop is not available on WASI
53 | self.eventLoop._preconditionSafeToWait(file: file, line: line)
54 |
55 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
56 |
57 | let value: NIOLockedValueBox<Result<Value, any Error>?> = NIOLockedValueBox(nil)
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOFoundationCompat/WaitSpinningRunLoop.swift:65:25: error: value of type 'RunLoop' has no member 'run'
63 |
64 | while value.withLockedValue({ $0 }) == nil {
65 | _ = runLoop.run(mode: mode, before: Date().addingTimeInterval(0.01))
| `- error: value of type 'RunLoop' has no member 'run'
66 | }
67 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin AWSLambdaPackager
Building for debugging...
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/59] Compiling Logging LogHandler.swift
[4/59] Compiling Logging Locks.swift
[5/59] Emitting module _NIOBase64
[6/59] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[7/59] Compiling InternalCollectionsUtilities _SortedCollection.swift
[8/61] Compiling Logging MetadataProvider.swift
[9/61] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[10/62] Compiling NIOConcurrencyHelpers lock.swift
[11/62] Emitting module Logging
[12/62] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[13/62] Compiling InternalCollectionsUtilities Debugging.swift
[14/62] Compiling InternalCollectionsUtilities Descriptions.swift
[15/62] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[17/62] Compiling Atomics ManagedAtomicLazyReference.swift
[18/62] Compiling Atomics UnsafeAtomic.swift
[19/62] Compiling Atomics UnsafeAtomicLazyReference.swift
[20/62] Compiling Atomics AtomicMemoryOrderings.swift
[21/62] Compiling Atomics DoubleWord.swift
[22/62] Emitting module InternalCollectionsUtilities
[23/62] Emitting module _NIODataStructures
[24/62] Compiling _NIOBase64 Base64.swift
[25/63] Compiling HTTPTypes ISOLatin1String.swift
[27/64] Compiling Atomics IntegerOperations.swift
[28/64] Compiling Atomics Unmanaged extensions.swift
[29/64] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[30/64] Compiling _NIODataStructures PriorityQueue.swift
[31/64] Compiling _NIODataStructures Heap.swift
[32/64] Compiling _NIODataStructures _TinyArray.swift
[36/65] Compiling HTTPTypes NIOLock.swift
[38/65] Emitting module NIOConcurrencyHelpers
[39/65] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[40/65] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[41/65] Compiling NIOConcurrencyHelpers NIOLock.swift
[42/65] Compiling NIOConcurrencyHelpers atomics.swift
[43/66] Compiling HTTPTypes HTTPParsedFields.swift
[44/66] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[45/66] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[46/66] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[47/66] Compiling InternalCollectionsUtilities UInt+reversed.swift
[48/66] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[49/66] Compiling InternalCollectionsUtilities Integer rank.swift
[54/67] Compiling HTTPTypes HTTPFieldName.swift
[55/67] Compiling HTTPTypes HTTPField.swift
[56/67] Compiling HTTPTypes HTTPFields.swift
[57/67] Emitting module HTTPTypes
[58/67] Compiling HTTPTypes HTTPRequest.swift
[59/67] Compiling HTTPTypes HTTPResponse.swift
[60/71] Compiling Logging Logging.swift
[63/84] Compiling DequeModule Deque+CustomReflectable.swift
[64/84] Compiling DequeModule Deque+Descriptions.swift
[65/87] Compiling DequeModule _DequeBuffer.swift
[66/87] Compiling DequeModule _DequeBufferHeader.swift
[67/105] Compiling AWSLambdaEvents Cognito.swift
[68/105] Compiling AWSLambdaEvents DynamoDB.swift
[69/105] Compiling AWSLambdaEvents AWSRegion.swift
[70/105] Compiling AWSLambdaEvents AppSync.swift
[71/105] Emitting module Atomics
[72/105] Compiling AWSLambdaEvents SES.swift
[73/105] Compiling AWSLambdaEvents SNS.swift
[74/105] Compiling AWSLambdaEvents FunctionURL.swift
[75/105] Compiling AWSLambdaEvents BedrockAgent.swift
[76/105] Compiling AWSLambdaEvents CloudFormation.swift
[77/105] Compiling AWSLambdaEvents Cloudwatch.swift
[78/105] Emitting module DequeModule
[79/105] Compiling AWSLambdaEvents APIGateway.swift
[80/105] Compiling AWSLambdaEvents APIGatewayLambdaAuthorizers.swift
[81/105] Compiling AWSLambdaEvents SQS.swift
[82/105] Compiling AWSLambdaEvents Base64.swift
[83/108] Compiling AWSLambdaEvents ALB.swift
[84/108] Compiling AWSLambdaEvents APIGateway+V2.swift
[92/109] Emitting module AWSLambdaEvents
[94/109] Compiling AWSLambdaEvents LambdaGatewayProxyEvent.swift
[95/109] Compiling AWSLambdaEvents S3.swift
[96/109] Compiling AWSLambdaEvents DateWrappers.swift
[97/109] Compiling AWSLambdaEvents HTTP.swift
[98/170] Compiling NIOCore NIOAny.swift
[99/170] Compiling NIOCore NIOCloseOnErrorHandler.swift
[100/170] Compiling NIOCore NIOCoreSendableMetatype.swift
[101/170] Compiling NIOCore NIOLoopBound.swift
[102/170] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[103/170] Compiling NIOCore NIOScheduledCallback.swift
[104/170] Compiling NIOCore NIOSendable.swift
[105/170] Compiling NIOCore RecvByteBufferAllocator.swift
[106/178] Compiling NIOCore IOData.swift
[107/178] Compiling NIOCore IPProtocol.swift
[108/178] Compiling NIOCore IntegerBitPacking.swift
[109/178] Compiling NIOCore IntegerTypes.swift
[110/178] Compiling NIOCore Interfaces.swift
[111/178] Compiling NIOCore Linux.swift
[112/178] Compiling NIOCore MarkedCircularBuffer.swift
[113/178] Compiling NIOCore MulticastChannel.swift
[114/178] Compiling NIOCore GlobalSingletons.swift
[115/178] Compiling NIOCore IO.swift
[117/178] Compiling NIOCore FileDescriptor.swift
[118/178] Compiling NIOCore FileHandle.swift
[119/178] Compiling NIOCore FileRegion.swift
[120/178] Compiling NIOCore EventLoopFuture+Deprecated.swift
[121/178] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[122/178] Compiling NIOCore EventLoopFuture.swift
[127/179] Compiling NIOCore AddressedEnvelope.swift
[128/179] Compiling NIOCore AsyncAwaitSupport.swift
[129/179] Compiling NIOCore AsyncChannel.swift
[130/179] Compiling NIOCore AsyncChannelHandler.swift
[131/179] Compiling NIOCore AsyncChannelInboundStream.swift
[132/179] Compiling NIOCore AsyncChannelOutboundWriter.swift
[133/179] Compiling NIOCore NIOAsyncSequenceProducer.swift
[134/179] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[135/179] Compiling NIOCore NIOAsyncWriter.swift
[136/179] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[137/179] Compiling NIOCore SocketAddresses.swift
[138/179] Compiling NIOCore SocketOptionProvider.swift
[139/179] Compiling NIOCore SystemCallHelpers.swift
[140/179] Compiling NIOCore TimeAmount+Duration.swift
[141/179] Compiling NIOCore TypeAssistedChannelHandler.swift
[142/179] Compiling NIOCore UniversalBootstrapSupport.swift
[143/179] Compiling NIOCore Utilities.swift
[144/179] Compiling NIOCore CircularBuffer.swift
[145/179] Compiling NIOCore Codec.swift
[146/179] Compiling NIOCore ConvenienceOptionSupport.swift
[147/179] Compiling NIOCore DeadChannel.swift
[148/179] Compiling NIOCore DispatchQueue+WithFuture.swift
[149/179] Compiling NIOCore EventLoop+Deprecated.swift
[150/179] Compiling NIOCore EventLoop+SerialExecutor.swift
[151/179] Compiling NIOCore EventLoop.swift
[152/179] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[153/179] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[154/179] Compiling NIOCore BSDSocketAPI.swift
[155/179] Compiling NIOCore ByteBuffer-aux.swift
[156/179] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[157/179] Compiling NIOCore ByteBuffer-conversions.swift
[158/179] Compiling NIOCore ByteBuffer-core.swift
[159/179] Compiling NIOCore ByteBuffer-hex.swift
[160/179] Compiling NIOCore ByteBuffer-int.swift
[161/179] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[162/179] Emitting module NIOCore
[163/179] Compiling NIOCore ByteBuffer-multi-int.swift
[164/179] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[165/179] Compiling NIOCore ByteBuffer-views.swift
[166/179] Compiling NIOCore Channel.swift
[167/179] Compiling NIOCore ChannelHandler.swift
[168/179] Compiling NIOCore ChannelHandlers.swift
[169/179] Compiling NIOCore ChannelInvoker.swift
[170/179] Compiling NIOCore ChannelOption.swift
[171/179] Compiling NIOCore ChannelPipeline.swift
[181/260] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[182/260] Compiling NIOEmbedded AsyncTestingChannel.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOEmbedded/AsyncTestingChannel.swift:731:11: error: cannot find type 'NIOAsyncTestingChannel' in scope
729 | // Synchronous options are never Sendable.
730 | @available(*, unavailable)
731 | extension NIOAsyncTestingChannel.SynchronousOptions: Sendable {}
| `- error: cannot find type 'NIOAsyncTestingChannel' in scope
732 |
[183/260] Compiling LambdaExtrasCore RuntimeContext.swift
/host/spi-builder-workspace/Sources/LambdaExtrasCore/Protocols/RuntimeContext.swift:24:19: error: cannot find type 'DispatchWallTime' in scope
22 |
23 | /// The timestamp that the function times out.
24 | var deadline: DispatchWallTime { get }
| `- error: cannot find type 'DispatchWallTime' in scope
25 |
26 | /// For invocations from the AWS Mobile SDK, data about the Amazon Cognito identity provider.
[184/260] Compiling LambdaExtrasCore EnvironmentValueProvider.swift
[185/260] Compiling LambdaExtrasCore LambdaCoding.swift
[186/260] Compiling LambdaExtrasCore InitializationContext.swift
[187/260] Compiling LambdaExtrasCore HandlerError.swift
[188/260] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[189/260] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[190/260] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOFoundationCompat/WaitSpinningRunLoop.swift:55:31: error: 'current' is unavailable: RunLoop is not available on WASI
53 | self.eventLoop._preconditionSafeToWait(file: file, line: line)
54 |
55 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
56 |
57 | let value: NIOLockedValueBox<Result<Value, any Error>?> = NIOLockedValueBox(nil)
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOFoundationCompat/WaitSpinningRunLoop.swift:65:25: error: value of type 'RunLoop' has no member 'run'
63 |
64 | while value.withLockedValue({ $0 }) == nil {
65 | _ = runLoop.run(mode: mode, before: Date().addingTimeInterval(0.01))
| `- error: value of type 'RunLoop' has no member 'run'
66 | }
67 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[191/260] Emitting module LambdaExtrasCore
/host/spi-builder-workspace/Sources/LambdaExtrasCore/Extensions.swift:82:1: warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
80 | }
81 |
82 | extension Swift.String: Foundation.LocalizedError {
| |- warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
83 | public var errorDescription: String? { self }
84 | public var failureReason: String? { self }
/host/spi-builder-workspace/Sources/LambdaExtrasCore/Protocols/RuntimeContext.swift:24:19: error: cannot find type 'DispatchWallTime' in scope
22 |
23 | /// The timestamp that the function times out.
24 | var deadline: DispatchWallTime { get }
| `- error: cannot find type 'DispatchWallTime' in scope
25 |
26 | /// For invocations from the AWS Mobile SDK, data about the Amazon Cognito identity provider.
[192/260] Compiling LambdaExtrasCore Extensions.swift
/host/spi-builder-workspace/Sources/LambdaExtrasCore/Extensions.swift:82:1: warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
80 | }
81 |
82 | extension Swift.String: Foundation.LocalizedError {
| |- warning: extension declares a conformance of imported type 'String' to imported protocols 'LocalizedError', 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
83 | public var errorDescription: String? { self }
84 | public var failureReason: String? { self }
[193/260] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[194/260] Emitting module NIOFoundationCompat
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOFoundationCompat/WaitSpinningRunLoop.swift:55:31: error: 'current' is unavailable: RunLoop is not available on WASI
53 | self.eventLoop._preconditionSafeToWait(file: file, line: line)
54 |
55 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
56 |
57 | let value: NIOLockedValueBox<Result<Value, any Error>?> = NIOLockedValueBox(nil)
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOFoundationCompat/WaitSpinningRunLoop.swift:65:25: error: value of type 'RunLoop' has no member 'run'
63 |
64 | while value.withLockedValue({ $0 }) == nil {
65 | _ = runLoop.run(mode: mode, before: Date().addingTimeInterval(0.01))
| `- error: value of type 'RunLoop' has no member 'run'
66 | }
67 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[195/260] Emitting module NIOEmbedded
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOEmbedded/AsyncTestingChannel.swift:731:11: error: cannot find type 'NIOAsyncTestingChannel' in scope
729 | // Synchronous options are never Sendable.
730 | @available(*, unavailable)
731 | extension NIOAsyncTestingChannel.SynchronousOptions: Sendable {}
| `- error: cannot find type 'NIOAsyncTestingChannel' in scope
732 |
BUILD FAILURE 6.1 wasm