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 hummingbird-lambda, reference main (48091d), with Swift 6.1 for Wasm on 24 Jun 2025 00:00:41 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" 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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hummingbird-project/hummingbird-lambda.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/hummingbird-project/hummingbird-lambda
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 48091d0 Update from hummingbird-project-template 9f1753de24c31bae77d963d51cc52bff1d895b4e (#49)
Cloned https://github.com/hummingbird-project/hummingbird-lambda.git
Revision (git rev-parse @):
48091d0bdd269a950e56f0f6edc378d8f8e9e0ba
SUCCESS checkout https://github.com/hummingbird-project/hummingbird-lambda.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/hummingbird-project/hummingbird-lambda.git
https://github.com/hummingbird-project/hummingbird-lambda.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-aws-lambda-runtime",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0-alpha.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swift-server/swift-aws-lambda-runtime.git"
    },
    {
      "identity" : "swift-aws-lambda-events",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swift-server/swift-aws-lambda-events.git"
    },
    {
      "identity" : "swift-extras-base64",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swift-extras/swift-extras-base64.git"
    },
    {
      "identity" : "hummingbird",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/hummingbird-project/hummingbird.git"
    },
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.32.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    }
  ],
  "manifest_display_name" : "hummingbird-lambda",
  "name" : "hummingbird-lambda",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "HummingbirdLambda",
      "targets" : [
        "HummingbirdLambda"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "HummingbirdLambdaTesting",
      "targets" : [
        "HummingbirdLambdaTesting"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "HBLambdaTest",
      "targets" : [
        "HBLambdaTest"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HummingbirdLambdaTests",
      "module_type" : "SwiftTarget",
      "name" : "HummingbirdLambdaTests",
      "path" : "Tests/HummingbirdLambdaTests",
      "product_dependencies" : [
        "NIOPosix"
      ],
      "sources" : [
        "LambdaTests.swift"
      ],
      "target_dependencies" : [
        "HummingbirdLambda",
        "HummingbirdLambdaTesting"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HummingbirdLambdaTesting",
      "module_type" : "SwiftTarget",
      "name" : "HummingbirdLambdaTesting",
      "path" : "Sources/HummingbirdLambdaTesting",
      "product_memberships" : [
        "HummingbirdLambdaTesting"
      ],
      "sources" : [
        "APIGatewayLambda.swift",
        "APIGatewayV2Lambda.swift",
        "HBLambdaTestFramework.swift",
        "Lambda+Testing.swift",
        "LambdaEvent.swift"
      ],
      "target_dependencies" : [
        "HummingbirdLambda"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HummingbirdLambda",
      "module_type" : "SwiftTarget",
      "name" : "HummingbirdLambda",
      "path" : "Sources/HummingbirdLambda",
      "product_dependencies" : [
        "AWSLambdaRuntime",
        "AWSLambdaEvents",
        "ExtrasBase64",
        "Hummingbird"
      ],
      "product_memberships" : [
        "HummingbirdLambda",
        "HummingbirdLambdaTesting",
        "HBLambdaTest"
      ],
      "sources" : [
        "APIGatewayLambda.swift",
        "APIGatewayV2Lambda.swift",
        "BasicLambdaRequestContext.swift",
        "CollateResponseBodyWriter.swift",
        "Deprecations.swift",
        "Exports.swift",
        "LambdaFunction.swift",
        "LambdaHandler.swift",
        "LambdaRequestContext.swift",
        "Request+APIGateway.swift",
        "Response+APIGateway.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HBLambdaTest",
      "module_type" : "SwiftTarget",
      "name" : "HBLambdaTest",
      "path" : "Sources/HBLambdaTest",
      "product_memberships" : [
        "HBLambdaTest"
      ],
      "sources" : [
        "maths.swift"
      ],
      "target_dependencies" : [
        "HummingbirdLambda"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" 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:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
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-events.git
Fetching https://github.com/swift-server/swift-aws-lambda-runtime.git
Fetching https://github.com/hummingbird-project/hummingbird.git
Fetching https://github.com/swift-extras/swift-extras-base64.git
Fetching https://github.com/apple/swift-nio.git
[1/2436] Fetching swift-aws-lambda-events
[343/13972] Fetching swift-aws-lambda-events, swift-aws-lambda-runtime
[490/14805] Fetching swift-aws-lambda-events, swift-aws-lambda-runtime, swift-extras-base64
[3839/39582] Fetching swift-aws-lambda-events, swift-aws-lambda-runtime, swift-extras-base64, hummingbird
Fetched https://github.com/swift-extras/swift-extras-base64.git from cache (0.41s)
[5987/38749] Fetching swift-aws-lambda-events, swift-aws-lambda-runtime, hummingbird
Fetched https://github.com/swift-server/swift-aws-lambda-events.git from cache (0.42s)
[4294/36313] Fetching swift-aws-lambda-runtime, hummingbird
[5534/112652] Fetching swift-aws-lambda-runtime, hummingbird, swift-nio
Fetched https://github.com/swift-server/swift-aws-lambda-runtime.git from cache (1.70s)
[72871/101116] Fetching hummingbird, swift-nio
Fetched https://github.com/hummingbird-project/hummingbird.git from cache (5.86s)
Fetched https://github.com/apple/swift-nio.git from cache (5.93s)
Computing version for https://github.com/swift-extras/swift-extras-base64.git
Computed https://github.com/swift-extras/swift-extras-base64.git at 1.0.0 (8.31s)
Computing version for https://github.com/swift-server/swift-aws-lambda-events.git
Computed https://github.com/swift-server/swift-aws-lambda-events.git at 1.0.0 (0.77s)
Fetching https://github.com/apple/swift-http-types.git
[1/904] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types.git from cache (0.31s)
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.92s)
Computing version for https://github.com/hummingbird-project/hummingbird.git
Computed https://github.com/hummingbird-project/hummingbird.git at 2.14.1 (1.01s)
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/swift-server/async-http-client.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
[1/2667] Fetching swift-nio-transport-services
[375/8642] Fetching swift-nio-transport-services, swift-nio-extras
[515/11068] Fetching swift-nio-transport-services, swift-nio-extras, swift-service-lifecycle
[1607/22600] Fetching swift-nio-transport-services, swift-nio-extras, swift-service-lifecycle, swift-nio-http2
[12181/36614] Fetching swift-nio-transport-services, swift-nio-extras, swift-service-lifecycle, swift-nio-http2, async-http-client
[14168/51504] Fetching swift-nio-transport-services, swift-nio-extras, swift-service-lifecycle, swift-nio-http2, async-http-client, swift-nio-ssl
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.54s)
[14772/49078] Fetching swift-nio-transport-services, swift-nio-extras, swift-nio-http2, async-http-client, swift-nio-ssl
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.57s)
[13069/46411] Fetching swift-nio-extras, swift-nio-http2, async-http-client, swift-nio-ssl
Fetching https://github.com/apple/swift-metrics.git
[40456/51437] Fetching swift-nio-extras, swift-nio-http2, async-http-client, swift-nio-ssl, swift-distributed-tracing
[45713/53643] Fetching swift-nio-extras, swift-nio-http2, async-http-client, swift-nio-ssl, swift-distributed-tracing, swift-metrics
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.57s)
Fetched https://github.com/apple/swift-metrics.git from cache (0.99s)
[36034/39905] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-distributed-tracing
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-collections.git
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (1.03s)
Fetching https://github.com/apple/swift-atomics.git
[31157/34879] Fetching swift-nio-extras, async-http-client, swift-nio-ssl
[34732/36676] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-atomics
[35474/40512] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-atomics, swift-log
[36387/57152] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-atomics, swift-log, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.81s)
Fetching https://github.com/apple/swift-async-algorithms.git
Fetched https://github.com/apple/swift-nio-extras.git from cache (2.57s)
Fetched https://github.com/swift-server/async-http-client.git from cache (2.58s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.60s)
[8163/20476] Fetching swift-log, swift-collections
[11325/25461] Fetching swift-log, swift-collections, swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.44s)
[13654/20476] Fetching swift-log, swift-collections
Fetched https://github.com/apple/swift-log.git from cache (1.71s)
Fetched https://github.com/apple/swift-collections.git from cache (1.73s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (4.46s)
Fetching https://github.com/apple/swift-system.git
[1/4436] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.57s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.36.0 (1.30s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.57s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.0.4 (0.65s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.58s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.0 (0.58s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.2.1 (0.55s)
Fetching https://github.com/apple/swift-service-context.git
[1/1081] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.34s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.2.1 (0.97s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.73s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.24.0 (0.62s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.28.0 (0.72s)
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-algorithms.git
[1/1169] Fetching swift-http-structured-headers
[867/7128] Fetching swift-http-structured-headers, swift-algorithms
[868/8744] Fetching swift-http-structured-headers, swift-algorithms, swift-asn1
[1678/14943] Fetching swift-http-structured-headers, swift-algorithms, swift-asn1, swift-certificates
Fetched https://github.com/apple/swift-algorithms.git from cache (0.52s)
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.56s)
Fetched https://github.com/apple/swift-certificates.git from cache (0.56s)
Fetched https://github.com/apple/swift-asn1.git from cache (0.57s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.8.0 (1.16s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.60s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.10.0 (0.71s)
Fetching https://github.com/apple/swift-crypto.git
[1/15433] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (1.81s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.12.3 (3.70s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.3.2 (1.01s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (0.96s)
Fetching https://github.com/apple/swift-numerics.git
[1/5757] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.63s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.32.0 (1.43s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.3.0 (0.56s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (0.63s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.26.1 (0.55s)
Computing version for https://github.com/swift-server/swift-aws-lambda-runtime.git
Computed https://github.com/swift-server/swift-aws-lambda-runtime.git at 1.0.0-alpha.3 (0.63s)
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.24.0
Creating working copy for https://github.com/apple/swift-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-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.3.2
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/hummingbird-project/hummingbird.git
Working copy of https://github.com/hummingbird-project/hummingbird.git resolved at 2.14.1
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.26.1
Creating working copy for https://github.com/swift-server/swift-aws-lambda-events.git
Working copy of https://github.com/swift-server/swift-aws-lambda-events.git resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.10.0
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.36.0
Creating working copy for https://github.com/apple/swift-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-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.32.0
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.8.0
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.0.4
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.28.0
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.7.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.5.0
Creating working copy for https://github.com/swift-extras/swift-extras-base64.git
Working copy of https://github.com/swift-extras/swift-extras-base64.git resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.12.3
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/swift-server/swift-aws-lambda-runtime.git
Working copy of https://github.com/swift-server/swift-aws-lambda-runtime.git resolved at 1.0.0-alpha.3
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
[1/1] Compiling plugin AWSLambdaPackager
Building for debugging...
[1/97] Write sources
[4/97] Compiling CNIODarwin shim.c
[5/97] Write sources
[37/97] Compiling CNIOLLHTTP c_nio_http.c
[38/97] Compiling _AtomicsShims.c
[39/97] Compiling CNIOWindows shim.c
[40/97] Compiling CNIOWindows WSAStartup.c
[41/97] Compiling CNIOWASI CNIOWASI.c
[41/97] Write sources
[48/97] Compiling CNIOLinux shim.c
[49/97] Compiling CNIOLLHTTP c_nio_api.c
[50/97] Compiling CNIOLinux liburing_shims.c
[51/97] Write swift-version-24593BA9C3E375BF.txt
[53/125] Emitting module ServiceContextModule
[53/125] Compiling CNIOLLHTTP c_nio_llhttp.c
[54/133] Compiling c-nioatomics.c
[56/136] Compiling Logging LogHandler.swift
[57/136] Emitting module _NIOBase64
[58/136] Compiling _NIOBase64 Base64.swift
[59/136] Compiling ServiceContextModule ServiceContextKey.swift
[60/136] Compiling ServiceContextModule ServiceContext.swift
[61/136] Emitting module Logging
[62/136] Compiling Logging Locks.swift
[63/137] Compiling _NIODataStructures _TinyArray.swift
[64/138] Compiling _NIODataStructures PriorityQueue.swift
[65/138] Compiling InternalCollectionsUtilities Descriptions.swift
[66/138] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[67/138] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[68/138] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[69/138] Compiling InternalCollectionsUtilities Debugging.swift
[70/138] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[71/138] Compiling InternalCollectionsUtilities _SortedCollection.swift
[72/138] Compiling HTTPTypes ISOLatin1String.swift
[73/139] Compiling HTTPTypes HTTPResponse.swift
[74/140] Compiling HTTPTypes HTTPParsedFields.swift
[74/140] Compiling c-atomics.c
[76/140] Compiling HTTPTypes HTTPRequest.swift
[77/140] Emitting module InternalCollectionsUtilities
[78/140] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[79/140] Compiling InternalCollectionsUtilities UInt+reversed.swift
[80/140] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[81/140] Compiling InternalCollectionsUtilities Integer rank.swift
[82/140] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[83/140] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[86/140] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[88/156] Compiling Instrumentation NoOpInstrument.swift
[89/156] Compiling Instrumentation MultiplexInstrument.swift
[90/156] Compiling Instrumentation Locks.swift
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:38:8: error: Unsupported runtime
 36 | import Musl
 37 | #else
 38 | #error("Unsupported runtime")
    |        `- error: Unsupported runtime
 39 | #endif
 40 |
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:48:46: error: cannot find type 'pthread_rwlock_t' in scope
 46 | @_spi(Locking)  // Use the `package` access modifier once min Swift version is increased.
 47 | public final class ReadWriteLock {
 48 |     private let rwlock: UnsafeMutablePointer<pthread_rwlock_t> = UnsafeMutablePointer.allocate(capacity: 1)
    |                                              `- error: cannot find type 'pthread_rwlock_t' in scope
 49 |
 50 |     /// Create a new lock.
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:52:19: error: cannot find 'pthread_rwlock_init' in scope
 50 |     /// Create a new lock.
 51 |     public init() {
 52 |         let err = pthread_rwlock_init(self.rwlock, nil)
    |                   `- error: cannot find 'pthread_rwlock_init' in scope
 53 |         precondition(err == 0, "pthread_rwlock_init failed with error \(err)")
 54 |     }
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:52:52: error: 'nil' requires a contextual type
 50 |     /// Create a new lock.
 51 |     public init() {
 52 |         let err = pthread_rwlock_init(self.rwlock, nil)
    |                                                    `- error: 'nil' requires a contextual type
 53 |         precondition(err == 0, "pthread_rwlock_init failed with error \(err)")
 54 |     }
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:57:19: error: cannot find 'pthread_rwlock_destroy' in scope
 55 |
 56 |     deinit {
 57 |         let err = pthread_rwlock_destroy(self.rwlock)
    |                   `- error: cannot find 'pthread_rwlock_destroy' in scope
 58 |         precondition(err == 0, "pthread_rwlock_destroy failed with error \(err)")
 59 |         self.rwlock.deallocate()
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:67:19: error: cannot find 'pthread_rwlock_rdlock' in scope
 65 |     /// `unlock`, to simplify lock handling.
 66 |     public func lockRead() {
 67 |         let err = pthread_rwlock_rdlock(self.rwlock)
    |                   `- error: cannot find 'pthread_rwlock_rdlock' in scope
 68 |         precondition(err == 0, "pthread_rwlock_rdlock failed with error \(err)")
 69 |     }
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:76:19: error: cannot find 'pthread_rwlock_wrlock' in scope
 74 |     /// `unlock`, to simplify lock handling.
 75 |     public func lockWrite() {
 76 |         let err = pthread_rwlock_wrlock(self.rwlock)
    |                   `- error: cannot find 'pthread_rwlock_wrlock' in scope
 77 |         precondition(err == 0, "pthread_rwlock_wrlock failed with error \(err)")
 78 |     }
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:85:19: error: cannot find 'pthread_rwlock_unlock' in scope
 83 |     /// `lock`, to simplify lock handling.
 84 |     public func unlock() {
 85 |         let err = pthread_rwlock_unlock(self.rwlock)
    |                   `- error: cannot find 'pthread_rwlock_unlock' in scope
 86 |         precondition(err == 0, "pthread_rwlock_unlock failed with error \(err)")
 87 |     }
[91/156] Emitting module _NIODataStructures
[92/156] Compiling _NIODataStructures Heap.swift
[93/160] Compiling Logging Logging.swift
[94/160] Compiling Logging MetadataProvider.swift
[95/160] Compiling HTTPTypes NIOLock.swift
[96/161] Compiling NIOConcurrencyHelpers lock.swift
[98/161] Compiling NIOConcurrencyHelpers NIOLock.swift
[99/161] Compiling Instrumentation Instrument.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[100/161] Emitting module Instrumentation
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:38:8: error: Unsupported runtime
 36 | import Musl
 37 | #else
 38 | #error("Unsupported runtime")
    |        `- error: Unsupported runtime
 39 | #endif
 40 |
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:48:46: error: cannot find type 'pthread_rwlock_t' in scope
 46 | @_spi(Locking)  // Use the `package` access modifier once min Swift version is increased.
 47 | public final class ReadWriteLock {
 48 |     private let rwlock: UnsafeMutablePointer<pthread_rwlock_t> = UnsafeMutablePointer.allocate(capacity: 1)
    |                                              `- error: cannot find type 'pthread_rwlock_t' in scope
 49 |
 50 |     /// Create a new lock.
[101/161] Compiling Instrumentation InstrumentationSystem.swift
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:48:46: error: cannot find type 'pthread_rwlock_t' in scope
 46 | @_spi(Locking)  // Use the `package` access modifier once min Swift version is increased.
 47 | public final class ReadWriteLock {
 48 |     private let rwlock: UnsafeMutablePointer<pthread_rwlock_t> = UnsafeMutablePointer.allocate(capacity: 1)
    |                                              `- error: cannot find type 'pthread_rwlock_t' in scope
 49 |
 50 |     /// Create a new lock.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[103/161] Emitting module CoreMetrics
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:56:49: error: cannot find type 'pthread_mutex_t' in scope
 54 |         UnsafeMutablePointer.allocate(capacity: 1)
 55 |     #else
 56 |     fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
    |                                                 `- error: cannot find type 'pthread_mutex_t' in scope
 57 |         UnsafeMutablePointer.allocate(capacity: 1)
 58 |     #endif
[104/161] Compiling ConcurrencyHelpers LockedValueBox.swift
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:47:27: error: cannot find type 'pthread_mutex_t' in scope
 45 | #else
 46 | @usableFromInline
 47 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 48 | #endif
 49 |
[105/161] Compiling ConcurrencyHelpers Lock.swift
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:47:27: error: cannot find type 'pthread_mutex_t' in scope
 45 | #else
 46 | @usableFromInline
 47 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 48 | #endif
 49 |
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:61:20: error: cannot find 'pthread_mutexattr_t' in scope
 59 |         InitializeSRWLock(mutex)
 60 |         #else
 61 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 62 |         pthread_mutexattr_init(&attr)
 63 |
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:62:9: error: cannot find 'pthread_mutexattr_init' in scope
 60 |         #else
 61 |         var attr = pthread_mutexattr_t()
 62 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 63 |
 64 |         let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:64:19: error: cannot find 'pthread_mutex_init' in scope
 62 |         pthread_mutexattr_init(&attr)
 63 |
 64 |         let err = pthread_mutex_init(mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 65 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 66 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:76:19: error: cannot find 'pthread_mutex_destroy' in scope
 74 |         // SRWLOCK does not need to be free'd
 75 |         #else
 76 |         let err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 77 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 78 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:88:19: error: cannot find 'pthread_mutex_lock' in scope
 86 |         AcquireSRWLockExclusive(mutex)
 87 |         #else
 88 |         let err = pthread_mutex_lock(mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
 89 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 90 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:100:19: error: cannot find 'pthread_mutex_unlock' in scope
 98 |         ReleaseSRWLockExclusive(mutex)
 99 |         #else
100 |         let err = pthread_mutex_unlock(mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
101 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
102 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:138:27: error: type of expression is ambiguous without a type annotation
136 |     @inlinable
137 |     static func create(value: Value) -> Self {
138 |         let buffer = Self.create(minimumCapacity: 1) { _ in
    |                           `- error: type of expression is ambiguous without a type annotation
139 |             return value
140 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:153:14: error: type of expression is ambiguous without a type annotation
151 |     @inlinable
152 |     func lock() {
153 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
154 |             LockOperations.lock(lockPtr)
155 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:160:14: error: type of expression is ambiguous without a type annotation
158 |     @inlinable
159 |     func unlock() {
160 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
161 |             LockOperations.unlock(lockPtr)
162 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:167:14: error: type of expression is ambiguous without a type annotation
165 |     @inlinable
166 |     deinit {
167 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
168 |             LockOperations.destroy(lockPtr)
169 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:174:18: error: type of expression is ambiguous without a type annotation
172 |     @inlinable
173 |     func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
174 |         try self.withUnsafeMutablePointerToElements { lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
175 |             return try body(lockPtr)
176 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:181:18: error: type of expression is ambiguous without a type annotation
179 |     @inlinable
180 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
181 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
182 |             LockOperations.lock(lockPtr)
183 |             defer { LockOperations.unlock(lockPtr) }
[106/161] Compiling NIOConcurrencyHelpers atomics.swift
[107/161] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[108/161] Compiling NIOConcurrencyHelpers NIOAtomic.swift
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:47:27: error: cannot find type 'pthread_mutex_t' in scope
 45 | #else
 46 | @usableFromInline
 47 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 48 | #endif
 49 |
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:61:20: error: cannot find 'pthread_mutexattr_t' in scope
 59 |         InitializeSRWLock(mutex)
 60 |         #else
 61 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 62 |         pthread_mutexattr_init(&attr)
 63 |
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:62:9: error: cannot find 'pthread_mutexattr_init' in scope
 60 |         #else
 61 |         var attr = pthread_mutexattr_t()
 62 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 63 |
 64 |         let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:64:19: error: cannot find 'pthread_mutex_init' in scope
 62 |         pthread_mutexattr_init(&attr)
 63 |
 64 |         let err = pthread_mutex_init(mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 65 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 66 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:76:19: error: cannot find 'pthread_mutex_destroy' in scope
 74 |         // SRWLOCK does not need to be free'd
 75 |         #else
 76 |         let err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 77 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 78 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:88:19: error: cannot find 'pthread_mutex_lock' in scope
 86 |         AcquireSRWLockExclusive(mutex)
 87 |         #else
 88 |         let err = pthread_mutex_lock(mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
 89 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 90 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:100:19: error: cannot find 'pthread_mutex_unlock' in scope
 98 |         ReleaseSRWLockExclusive(mutex)
 99 |         #else
100 |         let err = pthread_mutex_unlock(mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
101 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
102 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:138:27: error: type of expression is ambiguous without a type annotation
136 |     @inlinable
137 |     static func create(value: Value) -> Self {
138 |         let buffer = Self.create(minimumCapacity: 1) { _ in
    |                           `- error: type of expression is ambiguous without a type annotation
139 |             return value
140 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:153:14: error: type of expression is ambiguous without a type annotation
151 |     @inlinable
152 |     func lock() {
153 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
154 |             LockOperations.lock(lockPtr)
155 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:160:14: error: type of expression is ambiguous without a type annotation
158 |     @inlinable
159 |     func unlock() {
160 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
161 |             LockOperations.unlock(lockPtr)
162 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:167:14: error: type of expression is ambiguous without a type annotation
165 |     @inlinable
166 |     deinit {
167 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
168 |             LockOperations.destroy(lockPtr)
169 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:174:18: error: type of expression is ambiguous without a type annotation
172 |     @inlinable
173 |     func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
174 |         try self.withUnsafeMutablePointerToElements { lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
175 |             return try body(lockPtr)
176 |         }
/host/spi-builder-workspace/.build/checkouts/swift-service-lifecycle/Sources/ConcurrencyHelpers/Lock.swift:181:18: error: type of expression is ambiguous without a type annotation
179 |     @inlinable
180 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
181 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
182 |             LockOperations.lock(lockPtr)
183 |             defer { LockOperations.unlock(lockPtr) }
[109/161] Compiling HTTPTypes HTTPFieldName.swift
[110/161] Compiling HTTPTypes HTTPField.swift
[111/161] Emitting module HTTPTypes
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" 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:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
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/44] Write swift-version-24593BA9C3E375BF.txt
[3/89] Compiling Logging MetadataProvider.swift
[4/89] Compiling NIOConcurrencyHelpers lock.swift
[5/89] Compiling ServiceContextModule ServiceContextKey.swift
[6/89] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[7/90] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[8/90] Compiling InternalCollectionsUtilities Debugging.swift
[9/90] Compiling InternalCollectionsUtilities Descriptions.swift
[10/90] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[11/90] Emitting module ServiceContextModule
[12/90] Compiling ServiceContextModule ServiceContext.swift
[13/91] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[14/91] Compiling InternalCollectionsUtilities UInt+reversed.swift
[15/91] Emitting module Logging
[17/91] Emitting module HTTPTypes
[18/92] Compiling HTTPTypes ISOLatin1String.swift
[19/92] Compiling HTTPTypes HTTPField.swift
[20/92] Compiling _NIODataStructures Heap.swift
[21/92] Compiling _NIODataStructures PriorityQueue.swift
[22/92] Compiling _NIODataStructures _TinyArray.swift
[23/92] Emitting module _NIODataStructures
[24/93] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[25/93] Compiling InternalCollectionsUtilities Integer rank.swift
[26/93] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[27/93] Emitting module _NIOBase64
[28/93] Compiling _NIOBase64 Base64.swift
[29/97] Compiling HTTPTypes NIOLock.swift
[31/97] Compiling NIOConcurrencyHelpers NIOLock.swift
[32/97] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[33/97] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[34/97] Emitting module NIOConcurrencyHelpers
[35/97] Compiling NIOConcurrencyHelpers atomics.swift
[36/97] Compiling HTTPTypes HTTPParsedFields.swift
[37/98] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[38/98] Compiling InternalCollectionsUtilities _SortedCollection.swift
[41/98] Compiling HTTPTypes HTTPRequest.swift
[42/98] Compiling HTTPTypes HTTPResponse.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[43/98] Emitting module CoreMetrics
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:56:49: error: cannot find type 'pthread_mutex_t' in scope
 54 |         UnsafeMutablePointer.allocate(capacity: 1)
 55 |     #else
 56 |     fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
    |                                                 `- error: cannot find type 'pthread_mutex_t' in scope
 57 |         UnsafeMutablePointer.allocate(capacity: 1)
 58 |     #endif
[44/98] Emitting module InternalCollectionsUtilities
[45/98] Compiling CoreMetrics Metrics.swift
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:56:49: error: cannot find type 'pthread_mutex_t' in scope
 54 |         UnsafeMutablePointer.allocate(capacity: 1)
 55 |     #else
 56 |     fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
    |                                                 `- error: cannot find type 'pthread_mutex_t' in scope
 57 |         UnsafeMutablePointer.allocate(capacity: 1)
 58 |     #endif
[46/98] Compiling CoreMetrics Locks.swift
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:56:49: error: cannot find type 'pthread_mutex_t' in scope
 54 |         UnsafeMutablePointer.allocate(capacity: 1)
 55 |     #else
 56 |     fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
    |                                                 `- error: cannot find type 'pthread_mutex_t' in scope
 57 |         UnsafeMutablePointer.allocate(capacity: 1)
 58 |     #endif
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:65:20: error: cannot find 'pthread_mutexattr_t' in scope
 63 |         InitializeSRWLock(self.mutex)
 64 |         #else
 65 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 66 |         pthread_mutexattr_init(&attr)
 67 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:66:9: error: cannot find 'pthread_mutexattr_init' in scope
 64 |         #else
 65 |         var attr = pthread_mutexattr_t()
 66 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 67 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
 68 |
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:67:9: error: cannot find 'pthread_mutexattr_settype' in scope
 65 |         var attr = pthread_mutexattr_t()
 66 |         pthread_mutexattr_init(&attr)
 67 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |         `- error: cannot find 'pthread_mutexattr_settype' in scope
 68 |
 69 |         let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:67:48: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 65 |         var attr = pthread_mutexattr_t()
 66 |         pthread_mutexattr_init(&attr)
 67 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 68 |
 69 |         let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:67:43: error: cannot infer contextual base in reference to member 'init'
 65 |         var attr = pthread_mutexattr_t()
 66 |         pthread_mutexattr_init(&attr)
 67 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                           `- error: cannot infer contextual base in reference to member 'init'
 68 |
 69 |         let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:69:19: error: cannot find 'pthread_mutex_init' in scope
 67 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
 68 |
 69 |         let err = pthread_mutex_init(self.mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 70 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 71 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:78:19: error: cannot find 'pthread_mutex_destroy' in scope
 76 |         // SRWLOCK does not need to be free'd
 77 |         #else
 78 |         let err = pthread_mutex_destroy(self.mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 79 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 80 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:92:19: error: cannot find 'pthread_mutex_lock' in scope
 90 |         AcquireSRWLockExclusive(self.mutex)
 91 |         #else
 92 |         let err = pthread_mutex_lock(self.mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
 93 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 94 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:105:19: error: cannot find 'pthread_mutex_unlock' in scope
103 |         ReleaseSRWLockExclusive(self.mutex)
104 |         #else
105 |         let err = pthread_mutex_unlock(self.mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
106 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
107 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:177:14: error: value of type 'ReadWriteLock' has no member 'rwlock'
175 |         precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
176 |         #endif
177 |         self.rwlock.deallocate()
    |              `- error: value of type 'ReadWriteLock' has no member 'rwlock'
178 |     }
179 |
[47/98] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[48/98] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[50/105] Emitting module Instrumentation
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:38:8: error: Unsupported runtime
 36 | import Musl
 37 | #else
 38 | #error("Unsupported runtime")
    |        `- error: Unsupported runtime
 39 | #endif
 40 |
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:48:46: error: cannot find type 'pthread_rwlock_t' in scope
 46 | @_spi(Locking)  // Use the `package` access modifier once min Swift version is increased.
 47 | public final class ReadWriteLock {
 48 |     private let rwlock: UnsafeMutablePointer<pthread_rwlock_t> = UnsafeMutablePointer.allocate(capacity: 1)
    |                                              `- error: cannot find type 'pthread_rwlock_t' in scope
 49 |
 50 |     /// Create a new lock.
[51/108] Compiling Instrumentation NoOpInstrument.swift
[52/108] Compiling Logging Locks.swift
[53/108] Compiling Instrumentation Instrument.swift
[54/108] Compiling Instrumentation InstrumentationSystem.swift
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:48:46: error: cannot find type 'pthread_rwlock_t' in scope
 46 | @_spi(Locking)  // Use the `package` access modifier once min Swift version is increased.
 47 | public final class ReadWriteLock {
 48 |     private let rwlock: UnsafeMutablePointer<pthread_rwlock_t> = UnsafeMutablePointer.allocate(capacity: 1)
    |                                              `- error: cannot find type 'pthread_rwlock_t' in scope
 49 |
 50 |     /// Create a new lock.
[55/108] Compiling Logging LogHandler.swift
[56/108] Compiling HTTPTypes HTTPFieldName.swift
BUILD FAILURE 6.1 wasm