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-elementary, reference main (e41590), with Swift 6.1 for Wasm on 30 May 2025 01:15:08 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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hummingbird-community/hummingbird-elementary.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-community/hummingbird-elementary
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e41590e non-sendable support for HTMLResponse (#10)
Cloned https://github.com/hummingbird-community/hummingbird-elementary.git
Revision (git rev-parse @):
e41590e49cdb60dcf62004fc15729a10c069249c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/hummingbird-community/hummingbird-elementary.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/hummingbird-community/hummingbird-elementary.git
https://github.com/hummingbird-community/hummingbird-elementary.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "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" : "elementary",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.4.3",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/sliemeobn/elementary.git"
    }
  ],
  "manifest_display_name" : "hummingbird-elementary",
  "name" : "hummingbird-elementary",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "tvos",
      "version" : "17.0"
    },
    {
      "name" : "watchos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "HummingbirdElementary",
      "targets" : [
        "HummingbirdElementary"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HummingbirdElementaryTests",
      "module_type" : "SwiftTarget",
      "name" : "HummingbirdElementaryTests",
      "path" : "Tests/HummingbirdElementaryTests",
      "product_dependencies" : [
        "Elementary",
        "HummingbirdTesting"
      ],
      "sources" : [
        "HTMLResponseTests.swift",
        "NonSendableHTMLResponseTests.swift"
      ],
      "target_dependencies" : [
        "HummingbirdElementary"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HummingbirdElementary",
      "module_type" : "SwiftTarget",
      "name" : "HummingbirdElementary",
      "path" : "Sources/HummingbirdElementary",
      "product_dependencies" : [
        "Hummingbird",
        "Elementary"
      ],
      "product_memberships" : [
        "HummingbirdElementary"
      ],
      "sources" : [
        "HTMLResponse.swift",
        "HTMLResponseBodyWriter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/sliemeobn/elementary.git
Fetching https://github.com/hummingbird-project/hummingbird.git
[1/1263] Fetching elementary
[1264/25746] Fetching elementary, hummingbird
Fetched https://github.com/sliemeobn/elementary.git from cache (2.53s)
Fetched https://github.com/hummingbird-project/hummingbird.git from cache (2.55s)
Computing version for https://github.com/sliemeobn/elementary.git
Computed https://github.com/sliemeobn/elementary.git at 0.5.2 (3.33s)
Computing version for https://github.com/hummingbird-project/hummingbird.git
Computed https://github.com/hummingbird-project/hummingbird.git at 2.14.0 (1.18s)
Fetching https://github.com/swift-server/async-http-client.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
[1/2426] Fetching swift-service-lifecycle
[2427/16440] Fetching swift-service-lifecycle, async-http-client
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.63s)
[1262/14014] Fetching async-http-client
Fetching https://github.com/apple/swift-nio.git
[14015/90122] Fetching async-http-client, swift-nio
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetched https://github.com/swift-server/async-http-client.git from cache (1.82s)
Fetching https://github.com/apple/swift-distributed-tracing.git
[6850/76108] Fetching swift-nio
[16745/82022] Fetching swift-nio, swift-nio-extras
[18394/84689] Fetching swift-nio, swift-nio-extras, swift-nio-transport-services
[23726/89663] Fetching swift-nio, swift-nio-extras, swift-nio-transport-services, swift-distributed-tracing
[29881/104506] Fetching swift-nio, swift-nio-extras, swift-nio-transport-services, swift-distributed-tracing, swift-nio-ssl
[38799/116033] Fetching swift-nio, swift-nio-extras, swift-nio-transport-services, swift-distributed-tracing, swift-nio-ssl, swift-nio-http2
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.86s)
[42594/113366] Fetching swift-nio, swift-nio-extras, swift-distributed-tracing, swift-nio-ssl, swift-nio-http2
Fetching https://github.com/apple/swift-metrics.git
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (1.07s)
Fetching https://github.com/apple/swift-http-types.git
[43256/108392] Fetching swift-nio, swift-nio-extras, swift-nio-ssl, swift-nio-http2
[54779/110598] Fetching swift-nio, swift-nio-extras, swift-nio-ssl, swift-nio-http2, swift-metrics
[65874/111502] Fetching swift-nio, swift-nio-extras, swift-nio-ssl, swift-nio-http2, swift-metrics, swift-http-types
Fetched https://github.com/apple/swift-http-types.git from cache (0.64s)
Fetched https://github.com/apple/swift-metrics.git from cache (0.90s)
Fetching https://github.com/apple/swift-collections.git
[67856/108392] Fetching swift-nio, swift-nio-extras, swift-nio-ssl, swift-nio-http2
Fetching https://github.com/apple/swift-log.git
[71922/112228] Fetching swift-nio, swift-nio-extras, swift-nio-ssl, swift-nio-http2, swift-log
[74409/128819] Fetching swift-nio, swift-nio-extras, swift-nio-ssl, swift-nio-http2, swift-log, swift-collections
Fetched https://github.com/apple/swift-log.git from cache (2.16s)
Fetching https://github.com/apple/swift-atomics.git
[109001/124983] Fetching swift-nio, swift-nio-extras, swift-nio-ssl, swift-nio-http2, swift-collections
Fetched https://github.com/apple/swift-nio-extras.git from cache (4.44s)
[115264/119069] Fetching swift-nio, swift-nio-ssl, swift-nio-http2, swift-collections
Fetched https://github.com/apple/swift-nio-http2.git from cache (4.45s)
[105259/107542] Fetching swift-nio, swift-nio-ssl, swift-collections
Fetching https://github.com/apple/swift-async-algorithms.git
Fetched https://github.com/apple/swift-nio-ssl.git from cache (4.47s)
[91938/92699] Fetching swift-nio, swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.67s)
[75409/76108] Fetching swift-nio
[76109/77818] Fetching swift-nio, swift-atomics
[77819/82803] Fetching swift-nio, swift-atomics, swift-async-algorithms
Fetched https://github.com/apple/swift-atomics.git from cache (1.23s)
[78152/81093] Fetching swift-nio, swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.14s)
Fetched https://github.com/apple/swift-nio.git from cache (8.11s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (12.17s)
Fetching https://github.com/apple/swift-system.git
[1/4391] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.46s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (1.15s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.36.0 (0.78s)
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.82s)
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-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.2.0 (0.57s)
Fetching https://github.com/apple/swift-service-context.git
[1/1063] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.36s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.2.0 (1.01s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.0 (0.57s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.77s)
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.75s)
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.90s)
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.07s)
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-algorithms.git
[1/6155] Fetching swift-certificates
[248/7745] Fetching swift-certificates, swift-asn1
[4361/13704] Fetching swift-certificates, swift-asn1, swift-algorithms
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetched https://github.com/apple/swift-certificates.git from cache (0.50s)
Fetched https://github.com/apple/swift-asn1.git from cache (0.50s)
Fetched https://github.com/apple/swift-algorithms.git from cache (0.57s)
[1/1141] Fetching swift-http-structured-headers
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.29s)
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.34s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.61s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.10.0 (0.74s)
Fetching https://github.com/apple/swift-crypto.git
[1/13936] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (1.57s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.12.3 (3.90s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.3.2 (0.82s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (0.77s)
Fetching https://github.com/apple/swift-numerics.git
[1/5706] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.61s)
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.42s)
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.60s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (0.73s)
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.80s)
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-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-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-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.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/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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.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.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-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-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/sliemeobn/elementary.git
Working copy of https://github.com/sliemeobn/elementary.git resolved at 0.5.2
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-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-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-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-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.31.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-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.2.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/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-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.3.2
Building for debugging...
[0/48] Write sources
[34/48] Compiling _AtomicsShims.c
[35/48] Compiling CNIOWindows WSAStartup.c
[36/48] Compiling CNIOWindows shim.c
[36/48] Compiling CNIOWASI CNIOWASI.c
[38/48] Compiling CNIOLinux liburing_shims.c
[39/48] Compiling CNIOLinux shim.c
[39/48] Write sources
[39/48] Compiling CNIODarwin shim.c
[42/48] Compiling CNIOLLHTTP c_nio_http.c
[43/48] Compiling CNIOLLHTTP c_nio_api.c
[44/48] Write swift-version-24593BA9C3E375BF.txt
[46/74] Emitting module ServiceContextModule
error: emit-module command failed with exit code 1 (use -v to see invocation)
[47/74] 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
[48/74] Emitting module InternalCollectionsUtilities
[48/75] Compiling CNIOLLHTTP c_nio_llhttp.c
[49/80] Compiling c-nioatomics.c
[51/88] Compiling _NIODataStructures _TinyArray.swift
[52/88] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[53/88] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[54/88] Compiling InternalCollectionsUtilities _SortedCollection.swift
[55/88] Compiling Logging Locks.swift
[56/88] Emitting module Logging
[57/88] 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
[58/88] Compiling ServiceContextModule ServiceContextKey.swift
[59/88] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[60/88] Compiling InternalCollectionsUtilities UInt+reversed.swift
[61/88] 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 |
[62/88] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[63/88] Compiling InternalCollectionsUtilities Integer rank.swift
[64/88] Emitting module _NIOBase64
[65/88] Compiling _NIOBase64 Base64.swift
[66/88] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[67/88] Compiling InternalCollectionsUtilities Debugging.swift
[68/88] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[69/88] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[70/88] Emitting module _NIODataStructures
[70/88] Compiling c-atomics.c
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: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/2] Write swift-version-24593BA9C3E375BF.txt
[2/41] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[3/42] Compiling Logging LogHandler.swift
[4/42] Compiling ServiceContextModule ServiceContextKey.swift
[5/42] Compiling InternalCollectionsUtilities Descriptions.swift
[6/42] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[7/42] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[8/42] Compiling InternalCollectionsUtilities Debugging.swift
[9/42] Emitting module ServiceContextModule
[10/42] Compiling ServiceContextModule ServiceContext.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/43] 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
[13/43] Compiling HTTPTypes ISOLatin1String.swift
[14/44] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[15/44] Compiling _NIODataStructures _TinyArray.swift
[16/44] Compiling _NIODataStructures PriorityQueue.swift
[17/44] Emitting module _NIOBase64
[18/44] Compiling _NIOBase64 Base64.swift
[19/45] Emitting module HTTPTypes
[20/45] Compiling HTTPTypes HTTPField.swift
[22/51] Emitting module InternalCollectionsUtilities
[23/51] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[24/51] Compiling InternalCollectionsUtilities _SortedCollection.swift
[25/51] Compiling Logging MetadataProvider.swift
[26/51] Compiling Instrumentation Instrument.swift
[27/51] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[28/51] Compiling InternalCollectionsUtilities UInt+reversed.swift
[29/51] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[30/51] Compiling InternalCollectionsUtilities Integer rank.swift
[31/51] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[32/51] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[33/52] Compiling Instrumentation NoOpInstrument.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[34/52] 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.
[35/52] Compiling HTTPTypes NIOLock.swift
[36/52] 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.
[37/52] Compiling Instrumentation MultiplexInstrument.swift
[38/52] 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 |     }
[39/71] Emitting module _NIODataStructures
[40/71] Compiling _NIODataStructures Heap.swift
[41/74] 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 |
[42/74] Compiling HTTPTypes HTTPParsedFields.swift
[43/74] Compiling HTTPTypes HTTPFieldName.swift
[44/74] Compiling Logging Locks.swift
[45/74] Emitting module Logging
[45/74] Compiling c-atomics.c
BUILD FAILURE 6.1 wasm