The Swift Package Index logo.Swift Package Index

Build Information

Failed to build pulse, reference 1.0.0 (3c97bb), with Swift 6.1 for Wasm on 30 May 2025 06:52:19 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/space-code/pulse.git
Reference: 1.0.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/space-code/pulse
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 3c97bbc Implement the `Pulse` package (#1)
Cloned https://github.com/space-code/pulse.git
Revision (git rev-parse @):
3c97bbcff63e3de18b3ecd3afddda4718277da48
SUCCESS checkout https://github.com/space-code/pulse.git at 1.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/space-code/pulse.git
https://github.com/space-code/pulse.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "pulse",
  "name" : "pulse",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "Pulse",
      "targets" : [
        "Pulse"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PulseTests",
      "module_type" : "SwiftTarget",
      "name" : "PulseTests",
      "path" : "Tests/PulseTests",
      "sources" : [
        "Helpers/Storage.swift",
        "Helpers/TestExpectation.swift",
        "PulseTests.swift"
      ],
      "target_dependencies" : [
        "Pulse"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Pulse",
      "module_type" : "SwiftTarget",
      "name" : "Pulse",
      "path" : "Sources/Pulse",
      "product_memberships" : [
        "Pulse"
      ],
      "sources" : [
        "Classes/Core/SafeStorage.swift",
        "Classes/Core/StateMachine.swift",
        "Classes/Debouncer.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Compiling Pulse StateMachine.swift
[4/6] Emitting module Pulse
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:16:29: error: cannot find type 'os_unfair_lock_t' in scope
14 |
15 |     /// A pointer to an `os_unfair_lock`, used for efficient thread synchronization.
16 |     private let unfairLock: os_unfair_lock_t
   |                             `- error: cannot find type 'os_unfair_lock_t' in scope
17 |
18 |     /// The value being safely stored and accessed.
[5/6] Compiling Pulse SafeStorage.swift
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:16:29: error: cannot find type 'os_unfair_lock_t' in scope
14 |
15 |     /// A pointer to an `os_unfair_lock`, used for efficient thread synchronization.
16 |     private let unfairLock: os_unfair_lock_t
   |                             `- error: cannot find type 'os_unfair_lock_t' in scope
17 |
18 |     /// The value being safely stored and accessed.
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:28:23: error: cannot infer contextual base in reference to member 'allocate'
26 |     init(value: T) {
27 |         // Allocate memory for the unfair lock and initialize it.
28 |         unfairLock = .allocate(capacity: 1)
   |                       `- error: cannot infer contextual base in reference to member 'allocate'
29 |         unfairLock.initialize(to: os_unfair_lock())
30 |         self.value = value
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:29:35: error: cannot find 'os_unfair_lock' in scope
27 |         // Allocate memory for the unfair lock and initialize it.
28 |         unfairLock = .allocate(capacity: 1)
29 |         unfairLock.initialize(to: os_unfair_lock())
   |                                   `- error: cannot find 'os_unfair_lock' in scope
30 |         self.value = value
31 |     }
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:46:9: error: cannot find 'os_unfair_lock_lock' in scope
44 |     /// - Returns: The current value.
45 |     func get() -> T {
46 |         os_unfair_lock_lock(unfairLock)
   |         `- error: cannot find 'os_unfair_lock_lock' in scope
47 |         defer { os_unfair_lock_unlock(unfairLock) }
48 |         return value
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:47:17: error: cannot find 'os_unfair_lock_unlock' in scope
45 |     func get() -> T {
46 |         os_unfair_lock_lock(unfairLock)
47 |         defer { os_unfair_lock_unlock(unfairLock) }
   |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
48 |         return value
49 |     }
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:54:9: error: cannot find 'os_unfair_lock_lock' in scope
52 |     /// - Parameter value: The new value to store.
53 |     func set(value: T) {
54 |         os_unfair_lock_lock(unfairLock)
   |         `- error: cannot find 'os_unfair_lock_lock' in scope
55 |         defer { os_unfair_lock_unlock(unfairLock) }
56 |         self.value = value
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:55:17: error: cannot find 'os_unfair_lock_unlock' in scope
53 |     func set(value: T) {
54 |         os_unfair_lock_lock(unfairLock)
55 |         defer { os_unfair_lock_unlock(unfairLock) }
   |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
56 |         self.value = value
57 |     }
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:64:9: error: cannot find 'os_unfair_lock_lock' in scope
62 |     /// - Returns: The result of the closure.
63 |     func apply<R>(block: (inout T) -> R) -> R {
64 |         os_unfair_lock_lock(unfairLock)
   |         `- error: cannot find 'os_unfair_lock_lock' in scope
65 |         defer { os_unfair_lock_unlock(unfairLock) }
66 |         return block(&value)
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:65:17: error: cannot find 'os_unfair_lock_unlock' in scope
63 |     func apply<R>(block: (inout T) -> R) -> R {
64 |         os_unfair_lock_lock(unfairLock)
65 |         defer { os_unfair_lock_unlock(unfairLock) }
   |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
66 |         return block(&value)
67 |     }
[6/6] Compiling Pulse Debouncer.swift
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:16:29: error: cannot find type 'os_unfair_lock_t' in scope
14 |
15 |     /// A pointer to an `os_unfair_lock`, used for efficient thread synchronization.
16 |     private let unfairLock: os_unfair_lock_t
   |                             `- error: cannot find type 'os_unfair_lock_t' in scope
17 |
18 |     /// The value being safely stored and accessed.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/5] Compiling Pulse StateMachine.swift
[3/5] Emitting module Pulse
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:16:29: error: cannot find type 'os_unfair_lock_t' in scope
14 |
15 |     /// A pointer to an `os_unfair_lock`, used for efficient thread synchronization.
16 |     private let unfairLock: os_unfair_lock_t
   |                             `- error: cannot find type 'os_unfair_lock_t' in scope
17 |
18 |     /// The value being safely stored and accessed.
[4/5] Compiling Pulse SafeStorage.swift
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:16:29: error: cannot find type 'os_unfair_lock_t' in scope
14 |
15 |     /// A pointer to an `os_unfair_lock`, used for efficient thread synchronization.
16 |     private let unfairLock: os_unfair_lock_t
   |                             `- error: cannot find type 'os_unfair_lock_t' in scope
17 |
18 |     /// The value being safely stored and accessed.
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:28:23: error: cannot infer contextual base in reference to member 'allocate'
26 |     init(value: T) {
27 |         // Allocate memory for the unfair lock and initialize it.
28 |         unfairLock = .allocate(capacity: 1)
   |                       `- error: cannot infer contextual base in reference to member 'allocate'
29 |         unfairLock.initialize(to: os_unfair_lock())
30 |         self.value = value
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:29:35: error: cannot find 'os_unfair_lock' in scope
27 |         // Allocate memory for the unfair lock and initialize it.
28 |         unfairLock = .allocate(capacity: 1)
29 |         unfairLock.initialize(to: os_unfair_lock())
   |                                   `- error: cannot find 'os_unfair_lock' in scope
30 |         self.value = value
31 |     }
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:46:9: error: cannot find 'os_unfair_lock_lock' in scope
44 |     /// - Returns: The current value.
45 |     func get() -> T {
46 |         os_unfair_lock_lock(unfairLock)
   |         `- error: cannot find 'os_unfair_lock_lock' in scope
47 |         defer { os_unfair_lock_unlock(unfairLock) }
48 |         return value
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:47:17: error: cannot find 'os_unfair_lock_unlock' in scope
45 |     func get() -> T {
46 |         os_unfair_lock_lock(unfairLock)
47 |         defer { os_unfair_lock_unlock(unfairLock) }
   |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
48 |         return value
49 |     }
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:54:9: error: cannot find 'os_unfair_lock_lock' in scope
52 |     /// - Parameter value: The new value to store.
53 |     func set(value: T) {
54 |         os_unfair_lock_lock(unfairLock)
   |         `- error: cannot find 'os_unfair_lock_lock' in scope
55 |         defer { os_unfair_lock_unlock(unfairLock) }
56 |         self.value = value
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:55:17: error: cannot find 'os_unfair_lock_unlock' in scope
53 |     func set(value: T) {
54 |         os_unfair_lock_lock(unfairLock)
55 |         defer { os_unfair_lock_unlock(unfairLock) }
   |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
56 |         self.value = value
57 |     }
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:64:9: error: cannot find 'os_unfair_lock_lock' in scope
62 |     /// - Returns: The result of the closure.
63 |     func apply<R>(block: (inout T) -> R) -> R {
64 |         os_unfair_lock_lock(unfairLock)
   |         `- error: cannot find 'os_unfair_lock_lock' in scope
65 |         defer { os_unfair_lock_unlock(unfairLock) }
66 |         return block(&value)
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:65:17: error: cannot find 'os_unfair_lock_unlock' in scope
63 |     func apply<R>(block: (inout T) -> R) -> R {
64 |         os_unfair_lock_lock(unfairLock)
65 |         defer { os_unfair_lock_unlock(unfairLock) }
   |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
66 |         return block(&value)
67 |     }
[5/5] Compiling Pulse Debouncer.swift
/host/spi-builder-workspace/Sources/Pulse/Classes/Core/SafeStorage.swift:16:29: error: cannot find type 'os_unfair_lock_t' in scope
14 |
15 |     /// A pointer to an `os_unfair_lock`, used for efficient thread synchronization.
16 |     private let unfairLock: os_unfair_lock_t
   |                             `- error: cannot find type 'os_unfair_lock_t' in scope
17 |
18 |     /// The value being safely stored and accessed.
BUILD FAILURE 6.1 wasm