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 0.4.0 (9c6ae1), with Swift 6.2 (beta) for Wasm on 19 Jun 2025 03:17:51 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-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: 0.4.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/hummingbird-project/hummingbird-lambda
 * tag               0.4.0      -> FETCH_HEAD
HEAD is now at 9c6ae15 Update to hummingbird v0.13.0
Cloned https://github.com/hummingbird-project/hummingbird-lambda.git
Revision (git rev-parse @):
9c6ae150a9f39922645d76474a35d228b34f68c6
SUCCESS checkout https://github.com/hummingbird-project/hummingbird-lambda.git at 0.4.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/hummingbird-project/hummingbird-lambda.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/hummingbird-project/hummingbird.git
Fetching https://github.com/swift-extras/swift-extras-base64.git
[1/833] Fetching swift-extras-base64
Fetched https://github.com/swift-extras/swift-extras-base64.git from cache (0.37s)
[1/24572] Fetching hummingbird
[5162/100899] Fetching hummingbird, swift-nio
Fetched https://github.com/hummingbird-project/hummingbird.git from cache (1.84s)
[41980/76327] Fetching swift-nio
Fetching https://github.com/swift-server/swift-aws-lambda-runtime.git
Fetched https://github.com/apple/swift-nio.git from cache (8.33s)
[1/11536] Fetching swift-aws-lambda-runtime
Fetched https://github.com/swift-server/swift-aws-lambda-runtime.git from cache (2.05s)
Computing version for https://github.com/swift-extras/swift-extras-base64.git
Computed https://github.com/swift-extras/swift-extras-base64.git at 0.7.0 (10.88s)
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 0.5.2 (0.80s)
Fetching https://github.com/swift-server/swift-backtrace.git
Fetching https://github.com/apple/swift-log.git
[1/631] Fetching swift-backtrace
[632/4467] Fetching swift-backtrace, swift-log
Fetched https://github.com/swift-server/swift-backtrace.git from cache (0.42s)
[2877/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.59s)
Computing version for https://github.com/swift-server/swift-backtrace.git
Computed https://github.com/swift-server/swift-backtrace.git at 1.3.5 (1.36s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (5.19s)
Computing version for https://github.com/hummingbird-project/hummingbird.git
Computed https://github.com/hummingbird-project/hummingbird.git at 0.16.3 (0.81s)
Fetching https://github.com/hummingbird-project/hummingbird-core.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-metrics.git
[1/2213] Fetching hummingbird-core
[90/4419] Fetching hummingbird-core, swift-metrics
[842/6845] Fetching hummingbird-core, swift-metrics, swift-service-lifecycle
Fetched https://github.com/hummingbird-project/hummingbird-core.git from cache (1.63s)
Fetched https://github.com/apple/swift-metrics.git from cache (1.63s)
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (1.64s)
Computing version for https://github.com/hummingbird-project/hummingbird-core.git
Computed https://github.com/hummingbird-project/hummingbird-core.git at 0.14.0 (2.39s)
Fetching https://github.com/apple/swift-nio-extras.git
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
[1/2667] Fetching swift-nio-transport-services
[1255/8609] Fetching swift-nio-transport-services, swift-nio-extras
[8610/20141] Fetching swift-nio-transport-services, swift-nio-extras, swift-nio-http2
[11148/35031] Fetching swift-nio-transport-services, swift-nio-extras, swift-nio-http2, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (1.65s)
Fetched https://github.com/apple/swift-nio-extras.git from cache (1.65s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.67s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.68s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.0 (2.04s)
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.59s)
Fetching https://github.com/apple/swift-atomics.git
[1/1797] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.59s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.87s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/4436] Fetching swift-system
[356/21076] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.76s)
Fetched https://github.com/apple/swift-collections.git from cache (1.80s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.40s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.60s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.94s)
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.67s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.26.0 (0.50s)
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-http-structured-headers.git
[1/1152] Fetching swift-http-structured-headers
[71/2056] Fetching swift-http-structured-headers, swift-http-types
[1577/8015] Fetching swift-http-structured-headers, swift-http-types, swift-algorithms
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.35s)
Fetched https://github.com/apple/swift-http-types.git from cache (0.44s)
Fetched https://github.com/apple/swift-algorithms.git from cache (0.44s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (0.84s)
Fetching https://github.com/apple/swift-numerics.git
[1/5757] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.43s)
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.91s)
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.73s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (0.66s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.32.0 (0.80s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 1.0.0-alpha.11 (0.59s)
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/swift-server/swift-backtrace.git
Working copy of https://github.com/swift-server/swift-backtrace.git resolved at 1.3.5
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/swift-server/swift-aws-lambda-runtime.git
Working copy of https://github.com/swift-server/swift-aws-lambda-runtime.git resolved at 0.5.2
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-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.26.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-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/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/hummingbird-project/hummingbird-core.git
Working copy of https://github.com/hummingbird-project/hummingbird-core.git resolved at 0.14.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/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 1.0.0-alpha.11
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/hummingbird-project/hummingbird.git
Working copy of https://github.com/hummingbird-project/hummingbird.git resolved at 0.16.3
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 0.7.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-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-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-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Building for debugging...
[0/89] Compiling CBacktrace backtrace.c
[1/89] Compiling CBacktrace atomic.c
[2/89] Compiling CBacktrace dwarf.c
[3/89] Write sources
[29/89] Compiling CBacktrace simple.c
[30/89] Compiling CBacktrace print.c
[31/89] Compiling CBacktrace fileline.c
[32/89] Compiling CNIOLinux shim.c
[32/89] Compiling CBacktrace mmap.c
[34/89] Compiling CNIOWindows shim.c
[35/89] Compiling CNIOWindows WSAStartup.c
[36/89] Compiling CNIOWASI CNIOWASI.c
[37/89] Compiling _AtomicsShims.c
[38/89] Compiling CNIOLinux liburing_shims.c
[39/89] Compiling CNIODarwin shim.c
[40/89] Compiling CNIOLLHTTP c_nio_http.c
[41/89] Compiling CBacktrace state.c
[42/89] Write swift-version-24593BA9C3E375BF.txt
[43/89] Compiling CBacktrace sort.c
[44/89] Compiling CBacktrace posix.c
[45/89] Compiling CBacktrace elf.c
[46/89] Compiling CBacktrace mmapio.c
[47/89] Compiling CNIOLLHTTP c_nio_api.c
[49/117] Emitting module _NIOBase64
[49/117] Compiling CNIOLLHTTP c_nio_llhttp.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[51/120] 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
[51/120] Compiling c-nioatomics.c
[52/120] Write sources
[54/123] Compiling c-atomics.c
[56/141] Compiling Backtrace Demangle.swift
[57/141] Emitting module Backtrace
[58/141] Compiling Atomics UnsafeAtomic.swift
[59/141] Compiling Atomics UnsafeAtomicLazyReference.swift
[60/141] Compiling Atomics AtomicMemoryOrderings.swift
[61/141] Compiling Atomics DoubleWord.swift
[62/141] Compiling Atomics RawRepresentable.swift
[63/141] Compiling Atomics AtomicBool.swift
[64/141] Compiling Atomics AtomicValue.swift
[65/141] Compiling Atomics OptionalRawRepresentable.swift
[68/142] Compiling Backtrace Backtrace.swift
[69/144] Compiling Atomics ManagedAtomic.swift
[70/144] Compiling Atomics ManagedAtomicLazyReference.swift
[71/144] Compiling Atomics AtomicInteger.swift
[72/144] Compiling Atomics AtomicOptionalWrappable.swift
[73/144] Compiling Atomics AtomicReference.swift
[74/144] Compiling Atomics AtomicStorage.swift
[76/145] Compiling Atomics IntegerConformances.swift
[77/145] Compiling Atomics PointerConformances.swift
[78/145] Emitting module InternalCollectionsUtilities
[79/145] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[82/145] Compiling Atomics Primitives.native.swift
[84/145] 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 |
[85/145] 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
[86/145] Emitting module Logging
[87/145] Compiling Logging Locks.swift
[89/145] Compiling Logging LogHandler.swift
[90/145] Compiling _NIOBase64 Base64.swift
[91/145] Compiling ExtrasBase64 Base32.swift
BUILD FAILURE 6.2 wasm