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 SwiftkubeClient, reference 0.23.0 (b049bb), with Swift 6.1 for Wasm on 30 May 2025 19:30:59 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftkube/client.git
Reference: 0.23.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/swiftkube/client
 * tag               0.23.0     -> FETCH_HEAD
HEAD is now at b049bbc Update Readme and Changelog
Cloned https://github.com/swiftkube/client.git
Revision (git rev-parse @):
b049bbce693cda9fbfd2c5c1110d00592f364159
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swiftkube/client.git at 0.23.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/swiftkube/client.git
https://github.com/swiftkube/client.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "swift-metrics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.5.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-metrics.git"
    },
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.80.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio"
    },
    {
      "identity" : "yams",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.1.3",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jpsim/Yams.git"
    },
    {
      "identity" : "model",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.17.0",
            "upper_bound" : "0.18.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftkube/model.git"
    },
    {
      "identity" : "async-http-client",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.24.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swift-server/async-http-client.git"
    }
  ],
  "manifest_display_name" : "SwiftkubeClient",
  "name" : "SwiftkubeClient",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftkubeClient",
      "targets" : [
        "SwiftkubeClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5",
    "6"
  ],
  "targets" : [
    {
      "c99name" : "SwiftkubeClientTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftkubeClientTests",
      "path" : "Tests/SwiftkubeClientTests",
      "sources" : [
        "K8sCRDTests.swift",
        "K8sConfigMapTests.swift",
        "K8sNamespaceTests.swift",
        "K8sNodeTests.swift",
        "K8sServiceTests.swift",
        "K8sTestCase.swift",
        "RequestBuilderTests.swift",
        "RetryStrategyTests.swift"
      ],
      "target_dependencies" : [
        "SwiftkubeClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftkubeClient",
      "module_type" : "SwiftTarget",
      "name" : "SwiftkubeClient",
      "path" : "Sources/SwiftkubeClient",
      "product_dependencies" : [
        "AsyncHTTPClient",
        "Logging",
        "Metrics",
        "NIO",
        "NIOFoundationCompat",
        "SwiftkubeModel",
        "Yams"
      ],
      "product_memberships" : [
        "SwiftkubeClient"
      ],
      "sources" : [
        "API Groups/KubernetesClient+admissionregistration.v1.swift",
        "API Groups/KubernetesClient+admissionregistration.v1alpha1.swift",
        "API Groups/KubernetesClient+admissionregistration.v1beta1.swift",
        "API Groups/KubernetesClient+apiextensions.v1.swift",
        "API Groups/KubernetesClient+apiregistration.v1.swift",
        "API Groups/KubernetesClient+apps.v1.swift",
        "API Groups/KubernetesClient+authentication.v1.swift",
        "API Groups/KubernetesClient+authentication.v1beta1.swift",
        "API Groups/KubernetesClient+authorization.v1.swift",
        "API Groups/KubernetesClient+autoscaling.v1.swift",
        "API Groups/KubernetesClient+autoscaling.v2.swift",
        "API Groups/KubernetesClient+batch.v1.swift",
        "API Groups/KubernetesClient+certificates.v1.swift",
        "API Groups/KubernetesClient+certificates.v1alpha1.swift",
        "API Groups/KubernetesClient+coordination.v1.swift",
        "API Groups/KubernetesClient+coordination.v1alpha2.swift",
        "API Groups/KubernetesClient+discovery.v1.swift",
        "API Groups/KubernetesClient+events.v1.swift",
        "API Groups/KubernetesClient+flowcontrol.v1.swift",
        "API Groups/KubernetesClient+internal.v1alpha1.swift",
        "API Groups/KubernetesClient+networking.v1.swift",
        "API Groups/KubernetesClient+networking.v1beta1.swift",
        "API Groups/KubernetesClient+node.v1.swift",
        "API Groups/KubernetesClient+policy.v1.swift",
        "API Groups/KubernetesClient+rbac.v1.swift",
        "API Groups/KubernetesClient+resource.v1alpha3.swift",
        "API Groups/KubernetesClient+resource.v1beta1.swift",
        "API Groups/KubernetesClient+scheduling.v1.swift",
        "API Groups/KubernetesClient+storage.v1.swift",
        "API Groups/KubernetesClient+storage.v1alpha1.swift",
        "API Groups/KubernetesClient+storage.v1beta1.swift",
        "API Groups/KubernetesClient+storagemigration.v1alpha1.swift",
        "Client/ClusterScopedGenericKubernetesClient.swift",
        "Client/GenericKubernetesClient.swift",
        "Client/KubernetesClient.swift",
        "Client/KubernetesRequest.swift",
        "Client/NamespacedGenericKubernetesClient+Pod.swift",
        "Client/NamespacedGenericKubernetesClient.swift",
        "Client/RequestBuilder.swift",
        "Client/RequestHandlerType.swift",
        "Client/Selectors.swift",
        "Config/Authentication.swift",
        "Config/KubeConfig.swift",
        "Config/KubernetesClientConfig.swift",
        "Discovery/DiscoveryRequestBuilder.swift",
        "Discovery/KubernetesClient+Discovery.swift",
        "Metrics/KubernetesClient+Metrics.swift",
        "Model/UnstructuredResource+YAML.swift",
        "SwiftkubeClient.swift",
        "Watch/AnyDataStreamerTransformer.swift",
        "Watch/DataStreamer.swift",
        "Watch/IdentityTransfomer.swift",
        "Watch/ResourceEventTransformer.swift",
        "Watch/RetryStrategy.swift",
        "Watch/SwiftkubeClientTask.swift",
        "Watch/WatchEvent.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-metrics.git
Fetching https://github.com/swiftkube/model.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/apple/swift-nio
Fetching https://github.com/apple/swift-log.git
[1/2206] Fetching swift-metrics
[1810/21105] Fetching swift-metrics, model
[2585/24941] Fetching swift-metrics, model, swift-log
[3879/35598] Fetching swift-metrics, model, swift-log, yams
[22820/111721] Fetching swift-metrics, model, swift-log, yams, swift-nio
Fetching https://github.com/swift-server/async-http-client.git
[66384/125735] Fetching swift-metrics, model, swift-log, yams, swift-nio, async-http-client
Fetched https://github.com/apple/swift-log.git from cache (3.27s)
[90689/121899] Fetching swift-metrics, model, yams, swift-nio, async-http-client
Fetched https://github.com/jpsim/Yams.git from cache (3.40s)
[81555/111242] Fetching swift-metrics, model, swift-nio, async-http-client
Fetched https://github.com/swift-server/async-http-client.git from cache (2.25s)
[72108/97228] Fetching swift-metrics, model, swift-nio
Fetched https://github.com/apple/swift-metrics.git from cache (8.39s)
Fetched https://github.com/swiftkube/model.git from cache (8.39s)
Fetched https://github.com/apple/swift-nio from cache (8.49s)
Computing version for https://github.com/swiftkube/model.git
Computed https://github.com/swiftkube/model.git at 0.17.0 (11.15s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.56s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.0 (0.59s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.4.0 (0.74s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.83.0 (0.94s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[1/4391] Fetching swift-system
[221/6108] Fetching swift-system, swift-atomics
[6109/22699] Fetching swift-system, swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.54s)
Fetched https://github.com/apple/swift-system.git from cache (0.54s)
[2821/16591] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.32s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (1.90s)
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/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.26.1 (0.64s)
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-algorithms.git
[1/5923] Fetching swift-nio-extras
[475/17450] Fetching swift-nio-extras, swift-nio-http2
[3662/20117] Fetching swift-nio-extras, swift-nio-http2, swift-nio-transport-services
[4731/26076] Fetching swift-nio-extras, swift-nio-http2, swift-nio-transport-services, swift-algorithms
[17663/40919] Fetching swift-nio-extras, swift-nio-http2, swift-nio-transport-services, swift-algorithms, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-extras.git from cache (0.66s)
Fetched https://github.com/apple/swift-algorithms.git from cache (0.66s)
[9801/29037] Fetching swift-nio-http2, swift-nio-transport-services, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (2.06s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (2.09s)
[10836/14843] Fetching swift-nio-ssl
Fetched https://github.com/apple/swift-nio-ssl.git from cache (3.45s)
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 (4.53s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.36.0 (4.12s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.31.0 (1.93s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.27.1 (1.17s)
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-http-types.git
[1/1590] Fetching swift-asn1
[1289/7745] Fetching swift-asn1, swift-certificates
[1791/8886] Fetching swift-asn1, swift-certificates, swift-http-structured-headers
[1953/13871] Fetching swift-asn1, swift-certificates, swift-http-structured-headers, swift-async-algorithms
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.78s)
[12361/12730] Fetching swift-asn1, swift-certificates, swift-async-algorithms
[12731/13634] Fetching swift-asn1, swift-certificates, swift-async-algorithms, swift-http-types
[12750/16060] Fetching swift-asn1, swift-certificates, swift-async-algorithms, swift-http-types, swift-service-lifecycle
Fetched https://github.com/apple/swift-http-types.git from cache (1.10s)
Fetched https://github.com/apple/swift-asn1.git from cache (1.21s)
Fetched https://github.com/apple/swift-certificates.git from cache (1.21s)
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (1.21s)
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.22s)
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 (2.31s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.0.4 (1.15s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.10.0 (1.28s)
Fetching https://github.com/apple/swift-crypto.git
[1/13936] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (2.56s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.12.3 (5.80s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (1.09s)
Fetching https://github.com/apple/swift-numerics.git
[1/5706] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.84s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.3.2 (1.92s)
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/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.3.0 (1.23s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (1.14s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.27s)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.4.0
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-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.27.1
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.31.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/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
Working copy of https://github.com/apple/swift-nio resolved at 2.83.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-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/swiftkube/model.git
Working copy of https://github.com/swiftkube/model.git resolved at 0.17.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-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-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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-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-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-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.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/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/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/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.12.3
Building for debugging...
[0/450] Write sources
[25/450] Compiling _AtomicsShims.c
[26/450] Compiling _NumericsShims _NumericsShims.c
[27/450] Compiling reader.c
[28/450] Compiling writer.c
[29/450] Compiling CNIOWindows shim.c
[30/450] Compiling CNIOWASI CNIOWASI.c
[31/450] Compiling CNIOWindows WSAStartup.c
[32/450] Compiling parser.c
[33/450] Compiling CNIOLinux shim.c
[34/450] Compiling CNIOLinux liburing_shims.c
[35/450] Compiling CNIOLLHTTP c_nio_http.c
[36/450] Compiling api.c
[37/450] Compiling CNIODarwin shim.c
[38/450] Write swift-version-24593BA9C3E375BF.txt
[39/450] Compiling CNIOExtrasZlib empty.c
[40/450] Compiling fiat_p256_adx_mul.S
[41/450] Compiling CNIOLLHTTP c_nio_api.c
[41/450] Compiling fiat_p256_adx_sqr.S
[43/450] Compiling emitter.c
[44/466] Compiling CNIOBoringSSLShims shims.c
[45/468] Compiling scanner.c
[47/488] Emitting module Logging
[47/664] Compiling CNIOLLHTTP c_nio_llhttp.c
[49/684] Emitting module RealModule
[50/684] Compiling RealModule Real.swift
[51/685] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[52/686] Emitting module _NIOBase64
[53/686] Compiling _NIOBase64 Base64.swift
[54/687] 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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[55/687] 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
[56/687] 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 |
[57/687] Compiling Yams Decoder.swift
[58/687] Compiling Yams Emitter.swift
[59/687] Compiling RealModule RealFunctions.swift
[61/687] Compiling RealModule Float+Real.swift
[62/687] Compiling Yams Anchor.swift
[63/687] Compiling Yams Constructor.swift
[64/687] Compiling Yams Encoder.swift
[65/687] Compiling Yams AliasDereferencingStrategy.swift
[66/687] Compiling RealModule Float80+Real.swift
[69/687] Emitting module InternalCollectionsUtilities
[70/687] Compiling Yams Node.Mapping.swift
[71/687] Compiling Yams Tag.swift
[72/687] Compiling Yams Mark.swift
[73/687] Compiling Yams Node.Alias.swift
[74/687] Compiling Yams YamlAnchorProviding.swift
[75/687] Compiling Yams Parser.swift
[76/687] Compiling _NIODataStructures _TinyArray.swift
[77/687] Compiling _NIODataStructures PriorityQueue.swift
[80/687] Compiling RealModule ElementaryFunctions.swift
[81/687] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[82/688] Compiling Logging Locks.swift
[83/688] Compiling RealModule Float16+Real.swift
[85/689] Compiling Logging Logging.swift
[86/689] Compiling Logging LogHandler.swift
[87/689] Compiling Logging MetadataProvider.swift
[88/690] Emitting module _NIODataStructures
[89/690] Compiling _NIODataStructures Heap.swift
[92/691] Compiling fiat_curve25519_adx_square.S
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/403] Write sources
[2/404] Compiling fiat_curve25519_adx_square.S
[3/404] Compiling fiat_curve25519_adx_mul.S
[4/404] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/t1_enc.cc:28:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[5/404] Compiling t1_enc.cc
[5/404] Compiling ssl_x509.cc
[5/404] Compiling tls13_server.cc
[5/404] Compiling tls_method.cc
[5/404] Compiling tls13_both.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_record.cc:19:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_enc.cc:34:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
[5/404] Compiling tls_record.cc
[5/404] Compiling tls13_enc.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_client.cc:30:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
[5/404] Compiling tls13_client.cc
BUILD FAILURE 6.1 wasm