The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Regulate with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sideeffect-io/Regulate.git
Reference: 0.2.0
Cloned https://github.com/sideeffect-io/Regulate.git into spi-builder-workspace
SUCCESS checkout https://github.com/sideeffect-io/Regulate.git at 0.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/8] Compiling Regulate Binding+Regulate.swift
[2/8] Compiling Regulate Button+Regulated.swift
[3/8] Compiling Regulate RegulatedButtonStyle.swift
[4/8] Compiling Regulate Throttler.swift
/host/spi-builder-workspace/Sources/Regulator.swift:10:46: error: cannot find type 'ObservableObject' in scope
public protocol Regulator<Value>: AnyObject, ObservableObject {
                                             ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Throttler.swift:91:21: error: cannot find type 'os_unfair_lock_t' in scope
  private let lock: os_unfair_lock_t = UnsafeMutablePointer<os_unfair_lock_s>.allocate(capacity: 1)
                    ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Throttler.swift:40:59: error: cannot find type 'ObservableObject' in scope
public final class Throttler<Value>: @unchecked Sendable, ObservableObject, Regulator {
                                                          ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Throttler.swift:109:30: error: cannot find 'os_unfair_lock' in scope
    self.lock.initialize(to: os_unfair_lock())
                             ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Throttler.swift:118:5: error: cannot find 'os_unfair_lock_lock' in scope
    os_unfair_lock_lock(self.lock)
    ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Throttler.swift:120:5: error: cannot find 'os_unfair_lock_unlock' in scope
    os_unfair_lock_unlock(self.lock)
    ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Throttler.swift:132:13: error: cannot find 'os_unfair_lock_lock' in scope
            os_unfair_lock_lock(self.lock)
            ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Throttler.swift:134:13: error: cannot find 'os_unfair_lock_unlock' in scope
            os_unfair_lock_unlock(self.lock)
            ^~~~~~~~~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Compiling Regulate DispatchTimeInterval+Nanoseconds.swift
[6/8] Emitting module Regulate
/host/spi-builder-workspace/Sources/Regulator.swift:10:46: error: cannot find type 'ObservableObject' in scope
public protocol Regulator<Value>: AnyObject, ObservableObject {
                                             ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Debouncer.swift:85:21: error: cannot find type 'os_unfair_lock_t' in scope
  private let lock: os_unfair_lock_t = UnsafeMutablePointer<os_unfair_lock_s>.allocate(capacity: 1)
                    ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Debouncer.swift:38:59: error: cannot find type 'ObservableObject' in scope
public final class Debouncer<Value>: @unchecked Sendable, ObservableObject, Regulator {
                                                          ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Throttler.swift:91:21: error: cannot find type 'os_unfair_lock_t' in scope
  private let lock: os_unfair_lock_t = UnsafeMutablePointer<os_unfair_lock_s>.allocate(capacity: 1)
                    ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Throttler.swift:40:59: error: cannot find type 'ObservableObject' in scope
public final class Throttler<Value>: @unchecked Sendable, ObservableObject, Regulator {
                                                          ^~~~~~~~~~~~~~~~
[7/8] Compiling Regulate Regulator.swift
/host/spi-builder-workspace/Sources/Regulator.swift:10:46: error: cannot find type 'ObservableObject' in scope
public protocol Regulator<Value>: AnyObject, ObservableObject {
                                             ^~~~~~~~~~~~~~~~
[8/8] Compiling Regulate Debouncer.swift
/host/spi-builder-workspace/Sources/Regulator.swift:10:46: error: cannot find type 'ObservableObject' in scope
public protocol Regulator<Value>: AnyObject, ObservableObject {
                                             ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Debouncer.swift:85:21: error: cannot find type 'os_unfair_lock_t' in scope
  private let lock: os_unfair_lock_t = UnsafeMutablePointer<os_unfair_lock_s>.allocate(capacity: 1)
                    ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Debouncer.swift:38:59: error: cannot find type 'ObservableObject' in scope
public final class Debouncer<Value>: @unchecked Sendable, ObservableObject, Regulator {
                                                          ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Debouncer.swift:101:30: error: cannot find 'os_unfair_lock' in scope
    self.lock.initialize(to: os_unfair_lock())
                             ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Debouncer.swift:107:71: error: value of type 'DispatchTime' has no member 'advanced'
    let newValue = DueValue(value: value, dueTime: DispatchTime.now().advanced(by: dueTime))
                                                   ~~~~~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Debouncer.swift:110:5: error: cannot find 'os_unfair_lock_lock' in scope
    os_unfair_lock_lock(self.lock)
    ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Debouncer.swift:112:5: error: cannot find 'os_unfair_lock_unlock' in scope
    os_unfair_lock_unlock(self.lock)
    ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Debouncer.swift:125:9: error: cannot find 'os_unfair_lock_lock' in scope
        os_unfair_lock_lock(self.lock)
        ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Debouncer.swift:127:9: error: cannot find 'os_unfair_lock_unlock' in scope
        os_unfair_lock_unlock(self.lock)
        ^~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1