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 pulse, reference main (5d95a3), with Swift 6.0 for Linux on 28 Jan 2025 20:11:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/space-code/pulse.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/space-code/pulse
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5d95a31 Bump actions/checkout from 3 to 4 (#2)
Cloned https://github.com/space-code/pulse.git
Revision (git rev-parse @):
5d95a31b08522ac807db72ff944ee813a0bd4651
SUCCESS checkout https://github.com/space-code/pulse.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
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-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/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.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling Pulse StateMachine.swift
[5/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.
[6/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 |     }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-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] 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.
[3/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.
[4/5] Compiling Pulse StateMachine.swift
[5/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 |     }
BUILD FAILURE 6.0 linux