The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-debounce, reference 1.0.1 (e89185), with Swift 6.1 for Wasm on 14 Oct 2026 19:56:41 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-2":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ivan-magda/swift-debounce.git
Reference: 1.0.1
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/ivan-magda/swift-debounce
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at e891854 Push the covering screen only after the field has seen the change
Cloned https://github.com/ivan-magda/swift-debounce.git
Revision (git rev-parse @):
e89185404e8db6cfa797c8b20677fa3ca83f5e3e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ivan-magda/swift-debounce.git at 1.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ivan-magda/swift-debounce.git
https://github.com/ivan-magda/swift-debounce.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-2":/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.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 saguaro1/spi-images
Digest: sha256:8209621f35c5a12749e7df75bbcb99eccb508d0196da99f6ac3bcf5f4827df31
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/11] Emitting module Debounce
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:26:57: error: cannot find type '_PlatformLock' in scope
24 | /// to the state goes through ``withLock(_:)``.
25 | @usableFromInline
26 | final class _LockedStorage<State>: ManagedBuffer<State, _PlatformLock> {
   |                                                         `- error: cannot find type '_PlatformLock' in scope
27 |     @inlinable @inline(__always)
28 |     static var lockIndex: Int {
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:62:51: error: cannot find type '_PlatformLock' in scope
60 |
61 | @inlinable @inline(__always)
62 | func _initializeLock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                                   `- error: cannot find type '_PlatformLock' in scope
63 |     #if canImport(os)
64 |     lock.initialize(to: os_unfair_lock_s())
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:72:41: error: cannot find type '_PlatformLock' in scope
70 |
71 | @inlinable @inline(__always)
72 | func _lock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                         `- error: cannot find type '_PlatformLock' in scope
73 |     #if canImport(os)
74 |     os_unfair_lock_lock(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:81:43: error: cannot find type '_PlatformLock' in scope
79 |
80 | @inlinable @inline(__always)
81 | func _unlock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                           `- error: cannot find type '_PlatformLock' in scope
82 |     #if canImport(os)
83 |     os_unfair_lock_unlock(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:90:48: error: cannot find type '_PlatformLock' in scope
88 |
89 | @usableFromInline
90 | func _destroyLock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                                `- error: cannot find type '_PlatformLock' in scope
91 |     #if !canImport(os)
92 |     pthread_mutex_destroy(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:29:35: error: cannot find type '_PlatformLock' in scope
27 |     @inlinable @inline(__always)
28 |     static var lockIndex: Int {
29 |         let stride = MemoryLayout<_PlatformLock>.stride
   |                                   `- error: cannot find type '_PlatformLock' in scope
30 |         return (128 + stride - 1) / stride
31 |     }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:35:22: error: type of expression is ambiguous without a type annotation
33 |     @inlinable
34 |     static func create(_ initial: sending State) -> _LockedStorage {
35 |         let buffer = create(minimumCapacity: lockIndex + 1) { buffer in
   |                      `- error: type of expression is ambiguous without a type annotation
36 |             buffer.withUnsafeMutablePointerToElements {
37 |               _initializeLock($0 + lockIndex)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:46:9: error: type of expression is ambiguous without a type annotation
44 |     @inlinable @inline(__always)
45 |     func withLock<R>(_ body: (inout State) -> R) -> R {
46 |         withUnsafeMutablePointers { state, elements in
   |         `- error: type of expression is ambiguous without a type annotation
47 |             let lock = elements + Self.lockIndex
48 |             _lock(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:66:25: error: cannot find 'pthread_mutex_t' in scope
64 |     lock.initialize(to: os_unfair_lock_s())
65 |     #else
66 |     lock.initialize(to: pthread_mutex_t())
   |                         `- error: cannot find 'pthread_mutex_t' in scope
67 |     pthread_mutex_init(lock, nil)
68 |     #endif
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:67:5: error: cannot find 'pthread_mutex_init' in scope
65 |     #else
66 |     lock.initialize(to: pthread_mutex_t())
67 |     pthread_mutex_init(lock, nil)
   |     `- error: cannot find 'pthread_mutex_init' in scope
68 |     #endif
69 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:67:30: error: 'nil' requires a contextual type
65 |     #else
66 |     lock.initialize(to: pthread_mutex_t())
67 |     pthread_mutex_init(lock, nil)
   |                              `- error: 'nil' requires a contextual type
68 |     #endif
69 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:76:5: error: cannot find 'pthread_mutex_lock' in scope
74 |     os_unfair_lock_lock(lock)
75 |     #else
76 |     pthread_mutex_lock(lock)
   |     `- error: cannot find 'pthread_mutex_lock' in scope
77 |     #endif
78 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:85:5: error: cannot find 'pthread_mutex_unlock' in scope
83 |     os_unfair_lock_unlock(lock)
84 |     #else
85 |     pthread_mutex_unlock(lock)
   |     `- error: cannot find 'pthread_mutex_unlock' in scope
86 |     #endif
87 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/MonotonicClock.swift:21:20: error: cannot find 'timespec' in scope
19 |         return mach_continuous_time()
20 |         #else
21 |         var time = timespec()
   |                    `- error: cannot find 'timespec' in scope
22 |         clock_gettime(CLOCK_BOOTTIME, &time)
23 |         return UInt64(time.tv_sec) &* 1_000_000_000 &+ UInt64(time.tv_nsec)
/host/spi-builder-workspace/Sources/Debounce/Internal/MonotonicClock.swift:22:9: error: cannot find 'clock_gettime' in scope
20 |         #else
21 |         var time = timespec()
22 |         clock_gettime(CLOCK_BOOTTIME, &time)
   |         `- error: cannot find 'clock_gettime' in scope
23 |         return UInt64(time.tv_sec) &* 1_000_000_000 &+ UInt64(time.tv_nsec)
24 |         #endif
/host/spi-builder-workspace/Sources/Debounce/Internal/MonotonicClock.swift:22:23: error: cannot find 'CLOCK_BOOTTIME' in scope
20 |         #else
21 |         var time = timespec()
22 |         clock_gettime(CLOCK_BOOTTIME, &time)
   |                       `- error: cannot find 'CLOCK_BOOTTIME' in scope
23 |         return UInt64(time.tv_sec) &* 1_000_000_000 &+ UInt64(time.tv_nsec)
24 |         #endif
[5/11] Compiling Debounce TriggerEdges.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[6/11] Compiling Debounce PacingMachine.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[7/11] Compiling Debounce Pacer.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:26:57: error: cannot find type '_PlatformLock' in scope
24 | /// to the state goes through ``withLock(_:)``.
25 | @usableFromInline
26 | final class _LockedStorage<State>: ManagedBuffer<State, _PlatformLock> {
   |                                                         `- error: cannot find type '_PlatformLock' in scope
27 |     @inlinable @inline(__always)
28 |     static var lockIndex: Int {
[8/11] Compiling Debounce Throttler.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:26:57: error: cannot find type '_PlatformLock' in scope
24 | /// to the state goes through ``withLock(_:)``.
25 | @usableFromInline
26 | final class _LockedStorage<State>: ManagedBuffer<State, _PlatformLock> {
   |                                                         `- error: cannot find type '_PlatformLock' in scope
27 |     @inlinable @inline(__always)
28 |     static var lockIndex: Int {
[9/11] Compiling Debounce MonotonicClock.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Debounce/Internal/MonotonicClock.swift:21:20: error: cannot find 'timespec' in scope
19 |         return mach_continuous_time()
20 |         #else
21 |         var time = timespec()
   |                    `- error: cannot find 'timespec' in scope
22 |         clock_gettime(CLOCK_BOOTTIME, &time)
23 |         return UInt64(time.tv_sec) &* 1_000_000_000 &+ UInt64(time.tv_nsec)
/host/spi-builder-workspace/Sources/Debounce/Internal/MonotonicClock.swift:22:9: error: cannot find 'clock_gettime' in scope
20 |         #else
21 |         var time = timespec()
22 |         clock_gettime(CLOCK_BOOTTIME, &time)
   |         `- error: cannot find 'clock_gettime' in scope
23 |         return UInt64(time.tv_sec) &* 1_000_000_000 &+ UInt64(time.tv_nsec)
24 |         #endif
/host/spi-builder-workspace/Sources/Debounce/Internal/MonotonicClock.swift:22:23: error: cannot find 'CLOCK_BOOTTIME' in scope
20 |         #else
21 |         var time = timespec()
22 |         clock_gettime(CLOCK_BOOTTIME, &time)
   |                       `- error: cannot find 'CLOCK_BOOTTIME' in scope
23 |         return UInt64(time.tv_sec) &* 1_000_000_000 &+ UInt64(time.tv_nsec)
24 |         #endif
[10/11] Compiling Debounce LockedStorage.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:26:57: error: cannot find type '_PlatformLock' in scope
24 | /// to the state goes through ``withLock(_:)``.
25 | @usableFromInline
26 | final class _LockedStorage<State>: ManagedBuffer<State, _PlatformLock> {
   |                                                         `- error: cannot find type '_PlatformLock' in scope
27 |     @inlinable @inline(__always)
28 |     static var lockIndex: Int {
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:62:51: error: cannot find type '_PlatformLock' in scope
60 |
61 | @inlinable @inline(__always)
62 | func _initializeLock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                                   `- error: cannot find type '_PlatformLock' in scope
63 |     #if canImport(os)
64 |     lock.initialize(to: os_unfair_lock_s())
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:72:41: error: cannot find type '_PlatformLock' in scope
70 |
71 | @inlinable @inline(__always)
72 | func _lock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                         `- error: cannot find type '_PlatformLock' in scope
73 |     #if canImport(os)
74 |     os_unfair_lock_lock(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:81:43: error: cannot find type '_PlatformLock' in scope
79 |
80 | @inlinable @inline(__always)
81 | func _unlock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                           `- error: cannot find type '_PlatformLock' in scope
82 |     #if canImport(os)
83 |     os_unfair_lock_unlock(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:90:48: error: cannot find type '_PlatformLock' in scope
88 |
89 | @usableFromInline
90 | func _destroyLock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                                `- error: cannot find type '_PlatformLock' in scope
91 |     #if !canImport(os)
92 |     pthread_mutex_destroy(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:29:35: error: cannot find type '_PlatformLock' in scope
27 |     @inlinable @inline(__always)
28 |     static var lockIndex: Int {
29 |         let stride = MemoryLayout<_PlatformLock>.stride
   |                                   `- error: cannot find type '_PlatformLock' in scope
30 |         return (128 + stride - 1) / stride
31 |     }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:35:22: error: type of expression is ambiguous without a type annotation
33 |     @inlinable
34 |     static func create(_ initial: sending State) -> _LockedStorage {
35 |         let buffer = create(minimumCapacity: lockIndex + 1) { buffer in
   |                      `- error: type of expression is ambiguous without a type annotation
36 |             buffer.withUnsafeMutablePointerToElements {
37 |               _initializeLock($0 + lockIndex)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:46:9: error: type of expression is ambiguous without a type annotation
44 |     @inlinable @inline(__always)
45 |     func withLock<R>(_ body: (inout State) -> R) -> R {
46 |         withUnsafeMutablePointers { state, elements in
   |         `- error: type of expression is ambiguous without a type annotation
47 |             let lock = elements + Self.lockIndex
48 |             _lock(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:55:9: error: type of expression is ambiguous without a type annotation
53 |
54 |     deinit {
55 |         withUnsafeMutablePointerToElements {
   |         `- error: type of expression is ambiguous without a type annotation
56 |           _destroyLock($0 + Self.lockIndex)
57 |         }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:66:25: error: cannot find 'pthread_mutex_t' in scope
64 |     lock.initialize(to: os_unfair_lock_s())
65 |     #else
66 |     lock.initialize(to: pthread_mutex_t())
   |                         `- error: cannot find 'pthread_mutex_t' in scope
67 |     pthread_mutex_init(lock, nil)
68 |     #endif
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:67:5: error: cannot find 'pthread_mutex_init' in scope
65 |     #else
66 |     lock.initialize(to: pthread_mutex_t())
67 |     pthread_mutex_init(lock, nil)
   |     `- error: cannot find 'pthread_mutex_init' in scope
68 |     #endif
69 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:67:30: error: 'nil' requires a contextual type
65 |     #else
66 |     lock.initialize(to: pthread_mutex_t())
67 |     pthread_mutex_init(lock, nil)
   |                              `- error: 'nil' requires a contextual type
68 |     #endif
69 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:76:5: error: cannot find 'pthread_mutex_lock' in scope
74 |     os_unfair_lock_lock(lock)
75 |     #else
76 |     pthread_mutex_lock(lock)
   |     `- error: cannot find 'pthread_mutex_lock' in scope
77 |     #endif
78 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:85:5: error: cannot find 'pthread_mutex_unlock' in scope
83 |     os_unfair_lock_unlock(lock)
84 |     #else
85 |     pthread_mutex_unlock(lock)
   |     `- error: cannot find 'pthread_mutex_unlock' in scope
86 |     #endif
87 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:92:5: error: cannot find 'pthread_mutex_destroy' in scope
90 | func _destroyLock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
91 |     #if !canImport(os)
92 |     pthread_mutex_destroy(lock)
   |     `- error: cannot find 'pthread_mutex_destroy' in scope
93 |     #endif
94 |     lock.deinitialize(count: 1)
[11/11] Compiling Debounce Debouncer.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:26:57: error: cannot find type '_PlatformLock' in scope
24 | /// to the state goes through ``withLock(_:)``.
25 | @usableFromInline
26 | final class _LockedStorage<State>: ManagedBuffer<State, _PlatformLock> {
   |                                                         `- error: cannot find type '_PlatformLock' in scope
27 |     @inlinable @inline(__always)
28 |     static var lockIndex: Int {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-2":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:8209621f35c5a12749e7df75bbcb99eccb508d0196da99f6ac3bcf5f4827df31
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling Debounce TriggerEdges.swift
[3/9] Compiling Debounce Throttler.swift
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:26:57: error: cannot find type '_PlatformLock' in scope
24 | /// to the state goes through ``withLock(_:)``.
25 | @usableFromInline
26 | final class _LockedStorage<State>: ManagedBuffer<State, _PlatformLock> {
   |                                                         `- error: cannot find type '_PlatformLock' in scope
27 |     @inlinable @inline(__always)
28 |     static var lockIndex: Int {
[4/9] Compiling Debounce Pacer.swift
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:26:57: error: cannot find type '_PlatformLock' in scope
24 | /// to the state goes through ``withLock(_:)``.
25 | @usableFromInline
26 | final class _LockedStorage<State>: ManagedBuffer<State, _PlatformLock> {
   |                                                         `- error: cannot find type '_PlatformLock' in scope
27 |     @inlinable @inline(__always)
28 |     static var lockIndex: Int {
[5/9] Compiling Debounce PacingMachine.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/9] Emitting module Debounce
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:26:57: error: cannot find type '_PlatformLock' in scope
24 | /// to the state goes through ``withLock(_:)``.
25 | @usableFromInline
26 | final class _LockedStorage<State>: ManagedBuffer<State, _PlatformLock> {
   |                                                         `- error: cannot find type '_PlatformLock' in scope
27 |     @inlinable @inline(__always)
28 |     static var lockIndex: Int {
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:62:51: error: cannot find type '_PlatformLock' in scope
60 |
61 | @inlinable @inline(__always)
62 | func _initializeLock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                                   `- error: cannot find type '_PlatformLock' in scope
63 |     #if canImport(os)
64 |     lock.initialize(to: os_unfair_lock_s())
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:72:41: error: cannot find type '_PlatformLock' in scope
70 |
71 | @inlinable @inline(__always)
72 | func _lock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                         `- error: cannot find type '_PlatformLock' in scope
73 |     #if canImport(os)
74 |     os_unfair_lock_lock(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:81:43: error: cannot find type '_PlatformLock' in scope
79 |
80 | @inlinable @inline(__always)
81 | func _unlock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                           `- error: cannot find type '_PlatformLock' in scope
82 |     #if canImport(os)
83 |     os_unfair_lock_unlock(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:90:48: error: cannot find type '_PlatformLock' in scope
88 |
89 | @usableFromInline
90 | func _destroyLock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                                `- error: cannot find type '_PlatformLock' in scope
91 |     #if !canImport(os)
92 |     pthread_mutex_destroy(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:29:35: error: cannot find type '_PlatformLock' in scope
27 |     @inlinable @inline(__always)
28 |     static var lockIndex: Int {
29 |         let stride = MemoryLayout<_PlatformLock>.stride
   |                                   `- error: cannot find type '_PlatformLock' in scope
30 |         return (128 + stride - 1) / stride
31 |     }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:35:22: error: type of expression is ambiguous without a type annotation
33 |     @inlinable
34 |     static func create(_ initial: sending State) -> _LockedStorage {
35 |         let buffer = create(minimumCapacity: lockIndex + 1) { buffer in
   |                      `- error: type of expression is ambiguous without a type annotation
36 |             buffer.withUnsafeMutablePointerToElements {
37 |               _initializeLock($0 + lockIndex)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:46:9: error: type of expression is ambiguous without a type annotation
44 |     @inlinable @inline(__always)
45 |     func withLock<R>(_ body: (inout State) -> R) -> R {
46 |         withUnsafeMutablePointers { state, elements in
   |         `- error: type of expression is ambiguous without a type annotation
47 |             let lock = elements + Self.lockIndex
48 |             _lock(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:66:25: error: cannot find 'pthread_mutex_t' in scope
64 |     lock.initialize(to: os_unfair_lock_s())
65 |     #else
66 |     lock.initialize(to: pthread_mutex_t())
   |                         `- error: cannot find 'pthread_mutex_t' in scope
67 |     pthread_mutex_init(lock, nil)
68 |     #endif
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:67:5: error: cannot find 'pthread_mutex_init' in scope
65 |     #else
66 |     lock.initialize(to: pthread_mutex_t())
67 |     pthread_mutex_init(lock, nil)
   |     `- error: cannot find 'pthread_mutex_init' in scope
68 |     #endif
69 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:67:30: error: 'nil' requires a contextual type
65 |     #else
66 |     lock.initialize(to: pthread_mutex_t())
67 |     pthread_mutex_init(lock, nil)
   |                              `- error: 'nil' requires a contextual type
68 |     #endif
69 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:76:5: error: cannot find 'pthread_mutex_lock' in scope
74 |     os_unfair_lock_lock(lock)
75 |     #else
76 |     pthread_mutex_lock(lock)
   |     `- error: cannot find 'pthread_mutex_lock' in scope
77 |     #endif
78 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:85:5: error: cannot find 'pthread_mutex_unlock' in scope
83 |     os_unfair_lock_unlock(lock)
84 |     #else
85 |     pthread_mutex_unlock(lock)
   |     `- error: cannot find 'pthread_mutex_unlock' in scope
86 |     #endif
87 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/MonotonicClock.swift:21:20: error: cannot find 'timespec' in scope
19 |         return mach_continuous_time()
20 |         #else
21 |         var time = timespec()
   |                    `- error: cannot find 'timespec' in scope
22 |         clock_gettime(CLOCK_BOOTTIME, &time)
23 |         return UInt64(time.tv_sec) &* 1_000_000_000 &+ UInt64(time.tv_nsec)
/host/spi-builder-workspace/Sources/Debounce/Internal/MonotonicClock.swift:22:9: error: cannot find 'clock_gettime' in scope
20 |         #else
21 |         var time = timespec()
22 |         clock_gettime(CLOCK_BOOTTIME, &time)
   |         `- error: cannot find 'clock_gettime' in scope
23 |         return UInt64(time.tv_sec) &* 1_000_000_000 &+ UInt64(time.tv_nsec)
24 |         #endif
/host/spi-builder-workspace/Sources/Debounce/Internal/MonotonicClock.swift:22:23: error: cannot find 'CLOCK_BOOTTIME' in scope
20 |         #else
21 |         var time = timespec()
22 |         clock_gettime(CLOCK_BOOTTIME, &time)
   |                       `- error: cannot find 'CLOCK_BOOTTIME' in scope
23 |         return UInt64(time.tv_sec) &* 1_000_000_000 &+ UInt64(time.tv_nsec)
24 |         #endif
[7/9] Compiling Debounce Debouncer.swift
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:26:57: error: cannot find type '_PlatformLock' in scope
24 | /// to the state goes through ``withLock(_:)``.
25 | @usableFromInline
26 | final class _LockedStorage<State>: ManagedBuffer<State, _PlatformLock> {
   |                                                         `- error: cannot find type '_PlatformLock' in scope
27 |     @inlinable @inline(__always)
28 |     static var lockIndex: Int {
[8/9] Compiling Debounce LockedStorage.swift
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:26:57: error: cannot find type '_PlatformLock' in scope
24 | /// to the state goes through ``withLock(_:)``.
25 | @usableFromInline
26 | final class _LockedStorage<State>: ManagedBuffer<State, _PlatformLock> {
   |                                                         `- error: cannot find type '_PlatformLock' in scope
27 |     @inlinable @inline(__always)
28 |     static var lockIndex: Int {
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:62:51: error: cannot find type '_PlatformLock' in scope
60 |
61 | @inlinable @inline(__always)
62 | func _initializeLock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                                   `- error: cannot find type '_PlatformLock' in scope
63 |     #if canImport(os)
64 |     lock.initialize(to: os_unfair_lock_s())
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:72:41: error: cannot find type '_PlatformLock' in scope
70 |
71 | @inlinable @inline(__always)
72 | func _lock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                         `- error: cannot find type '_PlatformLock' in scope
73 |     #if canImport(os)
74 |     os_unfair_lock_lock(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:81:43: error: cannot find type '_PlatformLock' in scope
79 |
80 | @inlinable @inline(__always)
81 | func _unlock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                           `- error: cannot find type '_PlatformLock' in scope
82 |     #if canImport(os)
83 |     os_unfair_lock_unlock(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:90:48: error: cannot find type '_PlatformLock' in scope
88 |
89 | @usableFromInline
90 | func _destroyLock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
   |                                                `- error: cannot find type '_PlatformLock' in scope
91 |     #if !canImport(os)
92 |     pthread_mutex_destroy(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:29:35: error: cannot find type '_PlatformLock' in scope
27 |     @inlinable @inline(__always)
28 |     static var lockIndex: Int {
29 |         let stride = MemoryLayout<_PlatformLock>.stride
   |                                   `- error: cannot find type '_PlatformLock' in scope
30 |         return (128 + stride - 1) / stride
31 |     }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:35:22: error: type of expression is ambiguous without a type annotation
33 |     @inlinable
34 |     static func create(_ initial: sending State) -> _LockedStorage {
35 |         let buffer = create(minimumCapacity: lockIndex + 1) { buffer in
   |                      `- error: type of expression is ambiguous without a type annotation
36 |             buffer.withUnsafeMutablePointerToElements {
37 |               _initializeLock($0 + lockIndex)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:46:9: error: type of expression is ambiguous without a type annotation
44 |     @inlinable @inline(__always)
45 |     func withLock<R>(_ body: (inout State) -> R) -> R {
46 |         withUnsafeMutablePointers { state, elements in
   |         `- error: type of expression is ambiguous without a type annotation
47 |             let lock = elements + Self.lockIndex
48 |             _lock(lock)
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:55:9: error: type of expression is ambiguous without a type annotation
53 |
54 |     deinit {
55 |         withUnsafeMutablePointerToElements {
   |         `- error: type of expression is ambiguous without a type annotation
56 |           _destroyLock($0 + Self.lockIndex)
57 |         }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:66:25: error: cannot find 'pthread_mutex_t' in scope
64 |     lock.initialize(to: os_unfair_lock_s())
65 |     #else
66 |     lock.initialize(to: pthread_mutex_t())
   |                         `- error: cannot find 'pthread_mutex_t' in scope
67 |     pthread_mutex_init(lock, nil)
68 |     #endif
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:67:5: error: cannot find 'pthread_mutex_init' in scope
65 |     #else
66 |     lock.initialize(to: pthread_mutex_t())
67 |     pthread_mutex_init(lock, nil)
   |     `- error: cannot find 'pthread_mutex_init' in scope
68 |     #endif
69 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:67:30: error: 'nil' requires a contextual type
65 |     #else
66 |     lock.initialize(to: pthread_mutex_t())
67 |     pthread_mutex_init(lock, nil)
   |                              `- error: 'nil' requires a contextual type
68 |     #endif
69 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:76:5: error: cannot find 'pthread_mutex_lock' in scope
74 |     os_unfair_lock_lock(lock)
75 |     #else
76 |     pthread_mutex_lock(lock)
   |     `- error: cannot find 'pthread_mutex_lock' in scope
77 |     #endif
78 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:85:5: error: cannot find 'pthread_mutex_unlock' in scope
83 |     os_unfair_lock_unlock(lock)
84 |     #else
85 |     pthread_mutex_unlock(lock)
   |     `- error: cannot find 'pthread_mutex_unlock' in scope
86 |     #endif
87 | }
/host/spi-builder-workspace/Sources/Debounce/Internal/LockedStorage.swift:92:5: error: cannot find 'pthread_mutex_destroy' in scope
90 | func _destroyLock(_ lock: UnsafeMutablePointer<_PlatformLock>) {
91 |     #if !canImport(os)
92 |     pthread_mutex_destroy(lock)
   |     `- error: cannot find 'pthread_mutex_destroy' in scope
93 |     #endif
94 |     lock.deinitialize(count: 1)
[9/9] Compiling Debounce MonotonicClock.swift
/host/spi-builder-workspace/Sources/Debounce/Internal/MonotonicClock.swift:21:20: error: cannot find 'timespec' in scope
19 |         return mach_continuous_time()
20 |         #else
21 |         var time = timespec()
   |                    `- error: cannot find 'timespec' in scope
22 |         clock_gettime(CLOCK_BOOTTIME, &time)
23 |         return UInt64(time.tv_sec) &* 1_000_000_000 &+ UInt64(time.tv_nsec)
/host/spi-builder-workspace/Sources/Debounce/Internal/MonotonicClock.swift:22:9: error: cannot find 'clock_gettime' in scope
20 |         #else
21 |         var time = timespec()
22 |         clock_gettime(CLOCK_BOOTTIME, &time)
   |         `- error: cannot find 'clock_gettime' in scope
23 |         return UInt64(time.tv_sec) &* 1_000_000_000 &+ UInt64(time.tv_nsec)
24 |         #endif
/host/spi-builder-workspace/Sources/Debounce/Internal/MonotonicClock.swift:22:23: error: cannot find 'CLOCK_BOOTTIME' in scope
20 |         #else
21 |         var time = timespec()
22 |         clock_gettime(CLOCK_BOOTTIME, &time)
   |                       `- error: cannot find 'CLOCK_BOOTTIME' in scope
23 |         return UInt64(time.tv_sec) &* 1_000_000_000 &+ UInt64(time.tv_nsec)
24 |         #endif
BUILD FAILURE 6.1 wasm