The Swift Package Index logo.Swift Package Index

Build Information

Failed to build postgres-event-store, reference main (4a6649), with Swift 6.2 for Wasm on 1 Sep 2026 13:55:29 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/akbashev/postgres-event-store.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/akbashev/postgres-event-store
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4a66492 Updated readme
Cloned https://github.com/akbashev/postgres-event-store.git
Revision (git rev-parse @):
4a66492da853150d9c7da9d5b13a7cf3c9ad5f5d
SUCCESS checkout https://github.com/akbashev/postgres-event-store.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/akbashev/postgres-event-store.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:70428a4f4110aef5b17a27427e965f31cf3855e8cf1dfdc416ed61c780337965
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/akbashev/cluster-event-sourcing.git
[1/193] Fetching cluster-event-sourcing
Fetched https://github.com/akbashev/cluster-event-sourcing.git from cache (0.50s)
Fetching https://github.com/apple/swift-distributed-actors.git
[1/55443] Fetching swift-distributed-actors
Fetched https://github.com/apple/swift-distributed-actors.git from cache (1.52s)
Fetching https://github.com/apple/swift-log
Fetching https://github.com/apple/swift-metrics
Fetching https://github.com/apple/swift-service-discovery
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/apple/swift-collections
Fetching https://github.com/apple/swift-async-algorithms
[1/1264] Fetching swift-service-discovery
[381/4758] Fetching swift-service-discovery, swift-metrics
[1775/12728] Fetching swift-service-discovery, swift-metrics, swift-log
[9223/19432] Fetching swift-service-discovery, swift-metrics, swift-log, swift-async-algorithms
[19433/46468] Fetching swift-service-discovery, swift-metrics, swift-log, swift-async-algorithms, swift-collections
Fetched https://github.com/apple/swift-async-algorithms from cache (0.66s)
Fetching https://github.com/vapor/postgres-nio.git
[13540/39764] Fetching swift-service-discovery, swift-metrics, swift-log, swift-collections
[39765/119152] Fetching swift-service-discovery, swift-metrics, swift-log, swift-collections, swift-syntax
Fetched https://github.com/apple/swift-service-discovery from cache (1.14s)
Fetching https://github.com/apple/swift-nio-ssl
[39294/117888] Fetching swift-metrics, swift-log, swift-collections, swift-syntax
Fetched https://github.com/apple/swift-collections from cache (1.15s)
Fetching https://github.com/apple/swift-nio-extras
[13052/90852] Fetching swift-metrics, swift-log, swift-syntax
[24168/105622] Fetching swift-metrics, swift-log, swift-syntax, postgres-nio
Fetched https://github.com/vapor/postgres-nio.git from cache (0.83s)
Fetching https://github.com/swift-server/swift-backtrace
[42426/90852] Fetching swift-metrics, swift-log, swift-syntax
[63068/97513] Fetching swift-metrics, swift-log, swift-syntax, swift-nio-extras
Fetched https://github.com/apple/swift-nio-extras from cache (0.56s)
Fetching https://github.com/apple/swift-atomics
[74181/90852] Fetching swift-metrics, swift-log, swift-syntax
[90853/106864] Fetching swift-metrics, swift-log, swift-syntax, swift-nio-ssl
[94856/107495] Fetching swift-metrics, swift-log, swift-syntax, swift-nio-ssl, swift-backtrace
Fetched https://github.com/swift-server/swift-backtrace from cache (0.64s)
[95816/106864] Fetching swift-metrics, swift-log, swift-syntax, swift-nio-ssl
Fetching https://github.com/apple/swift-cluster-membership
[100301/108739] Fetching swift-metrics, swift-log, swift-syntax, swift-nio-ssl, swift-atomics
Fetched https://github.com/apple/swift-atomics from cache (0.64s)
Fetching https://github.com/apple/swift-protobuf
[106384/106864] Fetching swift-metrics, swift-log, swift-syntax, swift-nio-ssl
[106865/110163] Fetching swift-metrics, swift-log, swift-syntax, swift-nio-ssl, swift-cluster-membership
Fetched https://github.com/apple/swift-nio-ssl from cache (1.54s)
Fetching https://github.com/apple/swift-nio
Fetched https://github.com/apple/swift-cluster-membership from cache (0.58s)
Fetched https://github.com/apple/swift-metrics from cache (3.19s)
Fetched https://github.com/apple/swift-log from cache (3.19s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (3.21s)
[1/53997] Fetching swift-protobuf
[4321/139680] Fetching swift-protobuf, swift-nio
Fetched https://github.com/apple/swift-nio from cache (3.57s)
Fetched https://github.com/apple/swift-protobuf from cache (4.30s)
Computing version for https://github.com/apple/swift-cluster-membership
Computed https://github.com/apple/swift-cluster-membership at 0.4.0 (6.86s)
Fetching https://github.com/swift-server/swift-service-lifecycle.git
[1/2822] Fetching swift-service-lifecycle
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.48s)
Computing version for https://github.com/apple/swift-metrics
Computed https://github.com/apple/swift-metrics at 2.11.0 (0.64s)
Computing version for https://github.com/apple/swift-service-discovery
Computed https://github.com/apple/swift-service-discovery at 1.5.0 (0.15s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.3.1 (0.16s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.15.0 (0.16s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.102.0 (0.35s)
Fetching https://github.com/apple/swift-system.git
[1/6854] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.72s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.12.0 (0.87s)
Computing version for https://github.com/apple/swift-async-algorithms
Computed https://github.com/apple/swift-async-algorithms at 1.1.5 (0.21s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.6.0 (0.24s)
Computing version for https://github.com/swift-server/swift-backtrace
Computed https://github.com/swift-server/swift-backtrace at 1.3.5 (0.86s)
Computing version for https://github.com/vapor/postgres-nio.git
Computed https://github.com/vapor/postgres-nio.git at 1.33.1 (0.16s)
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-nio-transport-services.git
[1/2860] Fetching swift-nio-transport-services
[2061/21307] Fetching swift-nio-transport-services, swift-crypto
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (1.16s)
Fetched https://github.com/apple/swift-crypto.git from cache (1.17s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (1.33s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.2 (0.26s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.18s)
Computing version for https://github.com/apple/swift-nio-ssl
Computed https://github.com/apple/swift-nio-ssl at 2.37.3 (0.19s)
Computing version for https://github.com/apple/swift-nio-extras
Computed https://github.com/apple/swift-nio-extras at 1.35.0 (0.27s)
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-asn1.git
[1/1865] Fetching swift-http-types
[1699/7999] Fetching swift-http-types, swift-algorithms
[8000/15503] Fetching swift-http-types, swift-algorithms, swift-certificates
Fetched https://github.com/apple/swift-certificates.git from cache (0.65s)
[1/12249] Fetching swift-nio-http2
[1716/13502] Fetching swift-nio-http2, swift-http-structured-headers
[13503/15441] Fetching swift-nio-http2, swift-http-structured-headers, swift-asn1
Fetched https://github.com/apple/swift-http-types.git from cache (1.09s)
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (1.09s)
Fetched https://github.com/apple/swift-asn1.git from cache (1.09s)
Fetched https://github.com/apple/swift-algorithms.git from cache (1.09s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.09s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (1.27s)
Fetching https://github.com/apple/swift-numerics.git
[1/6553] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.62s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.6.0 (0.79s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.15s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.7.0 (0.16s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.2 (0.19s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.20.0 (0.22s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.1 (0.48s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.46.0 (0.17s)
Computing version for https://github.com/apple/swift-protobuf
Computed https://github.com/apple/swift-protobuf at 1.38.1 (0.19s)
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.6.0
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.15.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.28.0
Creating working copy for https://github.com/apple/swift-cluster-membership
Working copy of https://github.com/apple/swift-cluster-membership resolved at 0.4.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.46.0
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.6.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 603.0.2
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.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.20.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.7.2
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
Creating working copy for https://github.com/apple/swift-metrics
Working copy of https://github.com/apple/swift-metrics resolved at 2.11.0
Creating working copy for https://github.com/apple/swift-distributed-actors.git
Working copy of https://github.com/apple/swift-distributed-actors.git resolved at main (50e789f)
Creating working copy for https://github.com/apple/swift-service-discovery
Working copy of https://github.com/apple/swift-service-discovery resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-protobuf
Working copy of https://github.com/apple/swift-protobuf resolved at 1.38.1
Creating working copy for https://github.com/akbashev/cluster-event-sourcing.git
Working copy of https://github.com/akbashev/cluster-event-sourcing.git resolved at main (8aa779a)
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.102.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.1
Creating working copy for https://github.com/vapor/postgres-nio.git
Working copy of https://github.com/vapor/postgres-nio.git resolved at 1.33.1
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.12.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-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.3.1
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.7.0
Creating working copy for https://github.com/apple/swift-nio-extras
Working copy of https://github.com/apple/swift-nio-extras resolved at 1.35.0
Creating working copy for https://github.com/apple/swift-nio-ssl
Working copy of https://github.com/apple/swift-nio-ssl resolved at 2.37.3
Creating working copy for https://github.com/swift-server/swift-backtrace
Working copy of https://github.com/swift-server/swift-backtrace resolved at 1.3.5
Creating working copy for https://github.com/apple/swift-async-algorithms
Working copy of https://github.com/apple/swift-async-algorithms resolved at 1.1.5
[1/1] Compiling plugin SwiftProtobufPlugin
Building for debugging...
[1/886] Write sources
[20/886] Compiling _AtomicsShims.c
[21/886] Compiling sha1-586-linux.S
[21/886] Write sources
[55/886] Compiling sha1-586-apple.S
[55/886] Write sources
[62/886] Compiling sha1-armv8-win.S
[62/886] Compiling sha1-armv4-large-linux.S
[62/886] Compiling sha1-armv8-apple.S
[65/886] Compiling sha1-armv8-linux.S
[66/886] Compiling CXKCPShims shims.c
[67/886] Compiling SimpleFIPS202.c
[68/886] Compiling _SwiftSyntaxCShims PlatformMutex.c
[68/886] Compiling KeccakSponge.c
[70/886] Compiling CNIOWindows shim.c
[70/886] Compiling KeccakHash.c
[72/886] Compiling CNIOWASI CNIOWASI.c
[73/886] Compiling CNIOWindows WSAStartup.c
[74/886] Compiling CNIOLinux shim.c
[75/886] Compiling CNIOOpenBSD shim.c
[75/886] Compiling CNIOPosix event_loop_id.c
[77/886] Write swift-version-24593BA9C3E375BF.txt
[78/886] Compiling CNIOLinux liburing_shims.c
[79/886] Compiling CNIOFreeBSD shim.c
[80/886] Compiling CNIODarwin shim.c
[81/886] Compiling CNIOLLHTTP c_nio_http.c
[82/890] Compiling CNIOLLHTTP c_nio_api.c
[83/898] Compiling CNIOBoringSSLShims shims.c
[85/900] Emitting module SwiftSyntax600
[86/900] Emitting module _NIODataStructures
[86/900] Compiling CNIOLLHTTP c_nio_llhttp.c
[88/902] Compiling SwiftSyntax510 Empty.swift
[89/902] Emitting module SwiftSyntax510
[90/903] Emitting module SwiftSyntax602
[91/903] Compiling SwiftSyntax602 Empty.swift
[94/906] Emitting module SwiftSyntax509
[95/906] Compiling SwiftSyntax509 Empty.swift
[97/1008] Compiling SwiftSyntax603 Empty.swift
[98/1008] Emitting module SwiftSyntax603
[99/1009] Compiling SwiftSyntax600 Empty.swift
[102/1010] Compiling SwiftSyntax601 Empty.swift
[103/1010] Emitting module SwiftSyntax601
error: emit-module command failed with exit code 1 (use -v to see invocation)
[105/1042] Emitting module DistributedActorsConcurrencyHelpers
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:42:49: error: cannot find type 'pthread_mutex_t' in scope
 40 | @available(*, noasync, message: "Locks are bad in async code; If you truly must, use DispatchSemaphore")
 41 | public final class Lock {
 42 |     fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> = UnsafeMutablePointer.allocate(capacity: 1)
    |                                                 `- error: cannot find type 'pthread_mutex_t' in scope
 43 |
 44 |     /// Create a new lock.
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:113:44: error: cannot find type 'pthread_cond_t' in scope
111 |     private var _value: T
112 |     private let mutex: Lock
113 |     private let cond: UnsafeMutablePointer<pthread_cond_t> = UnsafeMutablePointer.allocate(capacity: 1)
    |                                            `- error: cannot find type 'pthread_cond_t' in scope
114 |
115 |     /// Create the lock, and initialize the state variable to `value`.
[106/1042] Compiling _NIODataStructures _TinyArray.swift
[107/1042] Compiling _NIODataStructures PriorityQueue.swift
[108/1042] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[109/1042] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[110/1042] Compiling InternalCollectionsUtilities Debugging.swift
[111/1042] Compiling InternalCollectionsUtilities Descriptions.swift
[112/1042] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[113/1044] Compiling DistributedActorsConcurrencyHelpers lock.swift
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:42:49: error: cannot find type 'pthread_mutex_t' in scope
 40 | @available(*, noasync, message: "Locks are bad in async code; If you truly must, use DispatchSemaphore")
 41 | public final class Lock {
 42 |     fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> = UnsafeMutablePointer.allocate(capacity: 1)
    |                                                 `- error: cannot find type 'pthread_mutex_t' in scope
 43 |
 44 |     /// Create a new lock.
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:113:44: error: cannot find type 'pthread_cond_t' in scope
111 |     private var _value: T
112 |     private let mutex: Lock
113 |     private let cond: UnsafeMutablePointer<pthread_cond_t> = UnsafeMutablePointer.allocate(capacity: 1)
    |                                            `- error: cannot find type 'pthread_cond_t' in scope
114 |
115 |     /// Create the lock, and initialize the state variable to `value`.
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:46:20: error: cannot find 'pthread_mutexattr_t' in scope
 44 |     /// Create a new lock.
 45 |     public init() {
 46 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 47 |         pthread_mutexattr_init(&attr)
 48 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:47:9: error: cannot find 'pthread_mutexattr_init' in scope
 45 |     public init() {
 46 |         var attr = pthread_mutexattr_t()
 47 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 48 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
 49 |
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:48:9: error: cannot find 'pthread_mutexattr_settype' in scope
 46 |         var attr = pthread_mutexattr_t()
 47 |         pthread_mutexattr_init(&attr)
 48 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |         `- error: cannot find 'pthread_mutexattr_settype' in scope
 49 |
 50 |         let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:48:48: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 46 |         var attr = pthread_mutexattr_t()
 47 |         pthread_mutexattr_init(&attr)
 48 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 49 |
 50 |         let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:48:43: error: cannot infer contextual base in reference to member 'init'
 46 |         var attr = pthread_mutexattr_t()
 47 |         pthread_mutexattr_init(&attr)
 48 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                           `- error: cannot infer contextual base in reference to member 'init'
 49 |
 50 |         let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:50:19: error: cannot find 'pthread_mutex_init' in scope
 48 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
 49 |
 50 |         let err = pthread_mutex_init(self.mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 51 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 52 |     }
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:55:19: error: cannot find 'pthread_mutex_destroy' in scope
 53 |
 54 |     deinit {
 55 |         let err = pthread_mutex_destroy(self.mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 56 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 57 |         mutex.deallocate()
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:65:19: error: cannot find 'pthread_mutex_lock' in scope
 63 |     /// `unlock`, to simplify lock handling.
 64 |     public func lock() {
 65 |         let err = pthread_mutex_lock(self.mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
 66 |         if err != 0 {
 67 |             fatalError("\(#function) failed in pthread_mutex with error \(err)")
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:76:19: error: cannot find 'pthread_mutex_unlock' in scope
 74 |     /// `lock`, to simplify lock handling.
 75 |     public func unlock() {
 76 |         let err = pthread_mutex_unlock(self.mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
 77 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 78 |     }
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:121:19: error: cannot find 'pthread_cond_init' in scope
119 |         self._value = value
120 |         self.mutex = Lock()
121 |         let err = pthread_cond_init(self.cond, nil)
    |                   `- error: cannot find 'pthread_cond_init' in scope
122 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
123 |     }
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:121:48: error: 'nil' requires a contextual type
119 |         self._value = value
120 |         self.mutex = Lock()
121 |         let err = pthread_cond_init(self.cond, nil)
    |                                                `- error: 'nil' requires a contextual type
122 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
123 |     }
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:126:19: error: cannot find 'pthread_cond_destroy' in scope
124 |
125 |     deinit {
126 |         let err = pthread_cond_destroy(self.cond)
    |                   `- error: cannot find 'pthread_cond_destroy' in scope
127 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
128 |         self.cond.deallocate()
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:164:23: error: cannot find 'pthread_cond_wait' in scope
162 |                 break
163 |             }
164 |             let err = pthread_cond_wait(self.cond, self.mutex.mutex)
    |                       `- error: cannot find 'pthread_cond_wait' in scope
165 |             precondition(err == 0, "\(#function) failed in pthread_cond with error \(err)")
166 |         }
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:185:23: error: cannot find 'timeval' in scope
183 |         let timeoutNS = Int64(timeoutSeconds * Double(nsecPerSec))
184 |
185 |         var curTime = timeval()
    |                       `- error: cannot find 'timeval' in scope
186 |         gettimeofday(&curTime, nil)
187 |
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:186:9: error: cannot find 'gettimeofday' in scope
184 |
185 |         var curTime = timeval()
186 |         gettimeofday(&curTime, nil)
    |         `- error: cannot find 'gettimeofday' in scope
187 |
188 |         let allNSecs: Int64 = timeoutNS + Int64(curTime.tv_usec) * 1000
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:186:32: error: 'nil' requires a contextual type
184 |
185 |         var curTime = timeval()
186 |         gettimeofday(&curTime, nil)
    |                                `- error: 'nil' requires a contextual type
187 |
188 |         let allNSecs: Int64 = timeoutNS + Int64(curTime.tv_usec) * 1000
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:189:26: error: cannot find 'timespec' in scope
187 |
188 |         let allNSecs: Int64 = timeoutNS + Int64(curTime.tv_usec) * 1000
189 |         var timeoutAbs = timespec(
    |                          `- error: cannot find 'timespec' in scope
190 |             tv_sec: curTime.tv_sec + Int(allNSecs / nsecPerSec),
191 |             tv_nsec: Int(allNSecs % nsecPerSec)
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:199:20: error: cannot find 'pthread_cond_timedwait' in scope
197 |                 return true
198 |             }
199 |             switch pthread_cond_timedwait(self.cond, self.mutex.mutex, &timeoutAbs) {
    |                    `- error: cannot find 'pthread_cond_timedwait' in scope
200 |             case 0:
201 |                 continue
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:202:18: error: cannot find 'ETIMEDOUT' in scope
200 |             case 0:
201 |                 continue
202 |             case ETIMEDOUT:
    |                  `- error: cannot find 'ETIMEDOUT' in scope
203 |                 self.unlock()
204 |                 return false
/host/spi-builder-workspace/.build/checkouts/swift-distributed-actors/Sources/DistributedActorsConcurrencyHelpers/lock.swift:218:19: error: cannot find 'pthread_cond_broadcast' in scope
216 |         self._value = newValue
217 |         self.unlock()
218 |         let err = pthread_cond_broadcast(self.cond)
    |                   `- error: cannot find 'pthread_cond_broadcast' in scope
219 |         precondition(err == 0, "\(#function) failed in pthread_cond with error \(err)")
220 |     }
[114/1044] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[115/1044] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[116/1044] Compiling InternalCollectionsUtilities Span+Extras.swift
[116/1044] Compiling KeccakP-1600-opt64.c
BUILD FAILURE 6.2 wasm