The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-lambda-extras, reference 0.4.0 (3d5faf), with Swift 6.1 for Wasm on 3 Sep 2025 06:51:18 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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: 0.4.0
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
 * tag               0.4.0      -> FETCH_HEAD
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 0.4.0
========================================
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-0":/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-nio.git
Fetching https://github.com/swift-server/swift-aws-lambda-events
Fetching https://github.com/apple/swift-log.git
[1/2613] Fetching swift-aws-lambda-events
[237/6516] Fetching swift-aws-lambda-events, swift-log
[5347/19920] Fetching swift-aws-lambda-events, swift-log, swift-aws-lambda-runtime
Fetched https://github.com/swift-server/swift-aws-lambda-events from cache (0.76s)
Fetched https://github.com/apple/swift-log.git from cache (0.76s)
[671/13404] Fetching swift-aws-lambda-runtime
[672/91396] Fetching swift-aws-lambda-runtime, swift-nio
Fetched https://github.com/swift-server/swift-aws-lambda-runtime from cache (4.93s)
Fetched https://github.com/apple/swift-nio.git from cache (4.97s)
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 (5.49s)
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.25s)
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.71s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (0.49s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.86.0 (0.89s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
[1/1814] Fetching swift-atomics
[1815/6755] Fetching swift-atomics, swift-system
[3841/24149] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.70s)
[9290/22335] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.87s)
Fetched https://github.com/apple/swift-collections.git from cache (1.92s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.84s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.2 (0.64s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (0.68s)
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.72s)
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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.1
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-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/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.2
[1/1] Compiling plugin AWSLambdaPackager
Building for debugging...
[1/35] Write sources
[17/35] Compiling CNIOWindows shim.c
[17/35] Compiling _AtomicsShims.c
[19/35] Compiling CNIOWASI CNIOWASI.c
[20/35] Compiling CNIOLinux shim.c
[21/35] Compiling CNIOPosix event_loop_id.c
[22/35] Compiling CNIOLinux liburing_shims.c
[23/35] Compiling CNIOWindows WSAStartup.c
[23/35] Write sources
[28/35] Compiling CNIOLLHTTP c_nio_http.c
[28/35] Compiling CNIODarwin shim.c
[30/35] Compiling CNIOLLHTTP c_nio_api.c
[31/35] Write swift-version-24593BA9C3E375BF.txt
[32/68] Compiling CNIOLLHTTP c_nio_llhttp.c
[34/86] Compiling Atomics AtomicInteger.swift
[35/86] Compiling Atomics AtomicOptionalWrappable.swift
[36/86] Compiling Atomics AtomicReference.swift
[37/88] Compiling Atomics AtomicMemoryOrderings.swift
[38/88] Compiling Atomics DoubleWord.swift
[39/88] Compiling Atomics ManagedAtomic.swift
[40/88] Compiling Atomics ManagedAtomicLazyReference.swift
[41/88] Compiling Atomics AtomicStorage.swift
[42/88] Compiling Atomics AtomicValue.swift
[43/88] Compiling Atomics UnsafeAtomic.swift
[44/88] Compiling Atomics UnsafeAtomicLazyReference.swift
[45/88] Emitting module HTTPTypes
[46/88] Compiling HTTPTypes HTTPRequest.swift
[47/88] Compiling HTTPTypes HTTPField.swift
[48/88] Compiling _NIODataStructures _TinyArray.swift
[49/89] Compiling Atomics PointerConformances.swift
[50/89] Compiling Atomics Primitives.native.swift
[51/89] Compiling Atomics AtomicBool.swift
[52/89] Compiling Atomics IntegerConformances.swift
[53/89] Emitting module InternalCollectionsUtilities
[54/89] Compiling Atomics OptionalRawRepresentable.swift
[55/89] Compiling Atomics RawRepresentable.swift
[56/89] Compiling HTTPTypes HTTPParsedFields.swift
[57/89] Emitting module Logging
[58/90] Compiling Logging Locks.swift
[60/90] Compiling c-nioatomics.c
[62/90] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[63/90] Compiling HTTPTypes ISOLatin1String.swift
[64/90] Compiling _NIODataStructures PriorityQueue.swift
[65/90] Compiling HTTPTypes HTTPResponse.swift
[66/90] Compiling _NIOBase64 Base64.swift
[67/90] Emitting module _NIOBase64
[72/91] Compiling c-atomics.c
[74/91] Compiling HTTPTypes NIOLock.swift
[75/91] Compiling Logging LogHandler.swift
[76/91] Compiling Logging Logging.swift
[77/91] Compiling Logging MetadataProvider.swift
[78/92] Compiling Atomics IntegerOperations.swift
[79/92] Compiling Atomics Unmanaged extensions.swift
[80/92] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[81/98] Emitting module _NIODataStructures
[82/98] Compiling _NIODataStructures Heap.swift
[86/100] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[87/113] Compiling NIOConcurrencyHelpers lock.swift
[88/115] Compiling DequeModule _DequeBuffer.swift
[89/115] Compiling DequeModule _DequeBufferHeader.swift
[90/117] Compiling DequeModule Deque+CustomReflectable.swift
[91/117] Compiling DequeModule Deque+Descriptions.swift
[92/117] Compiling DequeModule Deque+Extras.swift
[93/117] Compiling DequeModule Deque+Hashable.swift
[94/117] Compiling DequeModule Deque+Equatable.swift
[95/117] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[96/117] Emitting module NIOConcurrencyHelpers
[97/117] Compiling DequeModule Deque._UnsafeHandle.swift
[98/117] Compiling DequeModule Deque.swift
[99/117] Compiling DequeModule Deque+Testing.swift
[100/117] Compiling DequeModule Deque._Storage.swift
[101/117] Compiling NIOConcurrencyHelpers NIOLock.swift
[102/117] Compiling NIOConcurrencyHelpers atomics.swift
[103/117] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[105/118] Compiling DequeModule _DequeSlot.swift
[106/118] Compiling DequeModule _UnsafeWrappedBuffer.swift
[107/118] Emitting module Atomics
[108/118] Compiling DequeModule Deque+Codable.swift
[109/118] Compiling DequeModule Deque+Collection.swift
[116/119] Emitting module DequeModule
[119/181] Compiling HTTPTypes HTTPFieldName.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 NIOCore CircularBuffer.swift
[157/211] Compiling NIOCore Codec.swift
[158/211] Compiling NIOCore ConvenienceOptionSupport.swift
[159/211] Compiling NIOCore DeadChannel.swift
[160/211] Compiling NIOCore DispatchQueue+WithFuture.swift
[161/211] Compiling NIOCore EventLoop+Deprecated.swift
[162/211] Compiling NIOCore EventLoop+SerialExecutor.swift
[163/211] Compiling NIOCore EventLoop.swift
[164/211] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[165/211] Compiling AWSLambdaEvents LambdaGatewayProxyEvent.swift
[166/211] Compiling AWSLambdaEvents S3.swift
[167/211] Compiling AWSLambdaEvents APIGatewayLambdaAuthorizers.swift
[168/211] Compiling AWSLambdaEvents AWSRegion.swift
[169/211] Compiling AWSLambdaEvents AppSync.swift
[170/211] Compiling AWSLambdaEvents SES.swift
[171/211] Compiling AWSLambdaEvents SNS.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
[181/211] Compiling AWSLambdaEvents BedrockAgent.swift
[182/211] Compiling AWSLambdaEvents CloudFormation.swift
[183/211] Compiling AWSLambdaEvents Cloudwatch.swift
[185/212] Emitting module NIOCore
[188/212] Compiling NIOCore ByteBuffer-aux.swift
[189/212] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[190/212] Compiling NIOCore ByteBuffer-conversions.swift
[191/212] Compiling NIOCore ByteBuffer-core.swift
[192/212] Compiling NIOCore ByteBuffer-hex.swift
[193/212] Compiling NIOCore ByteBuffer-int.swift
[194/212] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[214/293] Compiling LambdaExtrasCore EnvironmentValueProvider.swift
[215/293] Compiling NIOEmbedded AsyncTestingEventLoop.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[216/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 |
[217/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 |
[218/293] Compiling LambdaExtrasCore LambdaCoding.swift
[219/293] Compiling LambdaExtrasCore InitializationContext.swift
[220/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.
[221/293] Compiling LambdaExtrasCore HandlerError.swift
[222/293] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[223/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 |
[224/293] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[225/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.
[226/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 }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 MetadataProvider.swift
[4/59] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[5/59] Emitting module InternalCollectionsUtilities
[6/59] Compiling Atomics AtomicValue.swift
[7/59] Compiling Atomics AtomicMemoryOrderings.swift
[8/59] Compiling Atomics AtomicReference.swift
[9/59] Compiling Atomics AtomicStorage.swift
[10/60] Compiling Logging LogHandler.swift
[11/60] Compiling Logging Locks.swift
[14/62] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[15/62] Compiling NIOConcurrencyHelpers lock.swift
[16/62] Compiling NIOConcurrencyHelpers atomics.swift
[17/62] Compiling Atomics UnsafeAtomic.swift
[18/62] Compiling Atomics UnsafeAtomicLazyReference.swift
[19/62] Compiling Atomics ManagedAtomic.swift
[20/62] Compiling Atomics ManagedAtomicLazyReference.swift
[21/62] Emitting module _NIOBase64
[22/62] Emitting module Logging
[24/62] Compiling Atomics DoubleWord.swift
[25/62] Compiling NIOConcurrencyHelpers NIOLock.swift
[26/62] Compiling Atomics OptionalRawRepresentable.swift
[27/62] Compiling Atomics RawRepresentable.swift
[28/62] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[29/62] Compiling _NIOBase64 Base64.swift
[30/63] Compiling HTTPTypes ISOLatin1String.swift
[31/63] Emitting module _NIODataStructures
[32/64] Compiling Atomics IntegerOperations.swift
[33/64] Compiling Atomics Unmanaged extensions.swift
[35/64] Emitting module NIOConcurrencyHelpers
[36/64] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[37/65] Compiling Atomics AtomicInteger.swift
[38/65] Compiling Atomics AtomicOptionalWrappable.swift
[39/65] Compiling Atomics AtomicBool.swift
[40/65] Compiling Atomics IntegerConformances.swift
[41/65] Compiling Atomics PointerConformances.swift
[42/65] Compiling Atomics Primitives.native.swift
[43/66] Compiling _NIODataStructures Heap.swift
[44/66] Compiling _NIODataStructures _TinyArray.swift
[45/66] Compiling _NIODataStructures PriorityQueue.swift
[46/66] Emitting module HTTPTypes
[50/67] Compiling HTTPTypes HTTPParsedFields.swift
[54/67] Compiling HTTPTypes NIOLock.swift
[55/67] Compiling Logging Logging.swift
[57/83] Compiling HTTPTypes HTTPResponse.swift
[58/83] Compiling HTTPTypes HTTPRequest.swift
[59/83] Compiling HTTPTypes HTTPFields.swift
[60/83] Compiling HTTPTypes HTTPField.swift
[61/83] Compiling HTTPTypes HTTPFieldName.swift
[62/84] Compiling DequeModule _DequeBuffer.swift
[63/84] Compiling DequeModule _DequeBufferHeader.swift
[64/86] Compiling DequeModule Deque+CustomReflectable.swift
[65/86] Compiling DequeModule Deque+Descriptions.swift
[67/86] Compiling DequeModule _DequeSlot.swift
[68/86] Compiling DequeModule _UnsafeWrappedBuffer.swift
[69/105] Compiling AWSLambdaEvents LambdaGatewayProxyEvent.swift
[70/105] Compiling AWSLambdaEvents S3.swift
[71/105] Compiling AWSLambdaEvents Cognito.swift
[72/105] Compiling AWSLambdaEvents DynamoDB.swift
[73/105] Compiling AWSLambdaEvents FunctionURL.swift
[74/105] Compiling AWSLambdaEvents ALB.swift
[75/105] Compiling AWSLambdaEvents CloudFormation.swift
[76/105] Compiling AWSLambdaEvents Cloudwatch.swift
[77/105] Emitting module Atomics
[78/105] Compiling AWSLambdaEvents AppSync.swift
[79/105] Compiling AWSLambdaEvents BedrockAgent.swift
[80/105] Emitting module DequeModule
[81/106] Compiling AWSLambdaEvents APIGatewayLambdaAuthorizers.swift
[82/106] Compiling AWSLambdaEvents AWSRegion.swift
[89/107] Compiling AWSLambdaEvents SQS.swift
[90/107] Compiling AWSLambdaEvents Base64.swift
[93/109] Compiling AWSLambdaEvents SES.swift
[94/109] Compiling AWSLambdaEvents SNS.swift
[95/170] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[96/170] Compiling NIOCore BSDSocketAPI.swift
[97/170] Compiling NIOCore ByteBuffer-multi-int.swift
[98/170] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[99/170] Compiling NIOCore ByteBuffer-views.swift
[100/170] Compiling NIOCore NIOAny.swift
[101/170] Compiling NIOCore NIOCloseOnErrorHandler.swift
[102/170] Compiling NIOCore NIOCoreSendableMetatype.swift
[103/170] Compiling NIOCore NIOLoopBound.swift
[104/170] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[105/170] Compiling NIOCore NIOScheduledCallback.swift
[106/170] Compiling NIOCore NIOSendable.swift
[107/170] Compiling NIOCore RecvByteBufferAllocator.swift
[108/178] Emitting module AWSLambdaEvents
[109/178] Compiling NIOCore IOData.swift
[110/178] Compiling NIOCore IPProtocol.swift
[111/178] Compiling NIOCore IntegerBitPacking.swift
[112/178] Compiling NIOCore IntegerTypes.swift
[113/178] Compiling NIOCore Interfaces.swift
[114/178] Compiling NIOCore Linux.swift
[115/178] Compiling NIOCore MarkedCircularBuffer.swift
[116/178] Compiling NIOCore MulticastChannel.swift
[117/178] Compiling NIOCore EventLoopFuture+Deprecated.swift
[118/178] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[119/178] Compiling NIOCore EventLoopFuture.swift
[120/178] Compiling NIOCore FileDescriptor.swift
[121/178] Compiling NIOCore FileHandle.swift
[122/178] Compiling NIOCore FileRegion.swift
[123/178] Compiling NIOCore GlobalSingletons.swift
[124/178] Compiling NIOCore IO.swift
[125/178] Compiling NIOCore AddressedEnvelope.swift
[126/178] Compiling NIOCore AsyncAwaitSupport.swift
[127/178] Compiling NIOCore AsyncChannel.swift
[128/178] Compiling NIOCore Channel.swift
[129/178] Compiling NIOCore ChannelHandler.swift
[130/178] Compiling NIOCore ChannelHandlers.swift
[131/178] Compiling NIOCore ChannelInvoker.swift
[132/178] Compiling NIOCore ChannelOption.swift
[133/178] Compiling NIOCore ChannelPipeline.swift
[135/179] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[136/179] Compiling NIOCore SocketAddresses.swift
[137/179] Compiling NIOCore SocketOptionProvider.swift
[138/179] Compiling NIOCore SystemCallHelpers.swift
[139/179] Compiling NIOCore TimeAmount+Duration.swift
[140/179] Compiling NIOCore TypeAssistedChannelHandler.swift
[141/179] Compiling NIOCore UniversalBootstrapSupport.swift
[142/179] Compiling NIOCore Utilities.swift
[143/179] Compiling NIOCore CircularBuffer.swift
[144/179] Compiling NIOCore Codec.swift
[145/179] Compiling NIOCore ConvenienceOptionSupport.swift
[146/179] Compiling NIOCore DeadChannel.swift
[147/179] Compiling NIOCore DispatchQueue+WithFuture.swift
[148/179] Compiling NIOCore EventLoop+Deprecated.swift
[149/179] Compiling NIOCore EventLoop+SerialExecutor.swift
[150/179] Compiling NIOCore EventLoop.swift
[151/179] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[152/179] Emitting module NIOCore
[156/179] Compiling NIOCore AsyncChannelHandler.swift
[157/179] Compiling NIOCore AsyncChannelInboundStream.swift
[158/179] Compiling NIOCore AsyncChannelOutboundWriter.swift
[159/179] Compiling NIOCore NIOAsyncSequenceProducer.swift
[160/179] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[161/179] Compiling NIOCore NIOAsyncWriter.swift
[164/179] Compiling NIOCore ByteBuffer-aux.swift
[165/179] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[166/179] Compiling NIOCore ByteBuffer-conversions.swift
[167/179] Compiling NIOCore ByteBuffer-core.swift
[168/179] Compiling NIOCore ByteBuffer-hex.swift
[169/179] Compiling NIOCore ByteBuffer-int.swift
[170/179] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[181/260] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[182/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 |
[183/260] Compiling LambdaExtrasCore InitializationContext.swift
[184/260] Compiling NIOPosix BaseSocket.swift
[185/260] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[186/260] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[187/262] Compiling LambdaExtrasCore EnvironmentValueProvider.swift
[188/262] Compiling LambdaExtrasCore LambdaCoding.swift
[189/262] 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.
[190/262] Compiling LambdaExtrasCore HandlerError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[191/262] 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 }
[192/262] 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.
[193/262] Compiling NIOEmbedded AsyncTestingEventLoop.swift
BUILD FAILURE 6.1 wasm