The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Regulate with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sideeffect-io/Regulate.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/sideeffect-io/Regulate
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3dbaf34 Merge pull request #1 from sideeffect-io/feature/task-extensions
Cloned https://github.com/sideeffect-io/Regulate.git
Revision (git rev-parse @):
3dbaf34cf489792e9b944be5a3aaa31e20ff5b03
SUCCESS checkout https://github.com/sideeffect-io/Regulate.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/sideeffect-io/Regulate.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling Regulate RegulatedButtonStyle.swift
[4/10] Compiling Regulate Button+Regulated.swift
[5/10] 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)
            ^~~~~~~~~~~~~~~~~~~~~
[6/10] Compiling Regulate Binding+Regulate.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/10] Compiling Regulate DispatchTimeInterval+Nanoseconds.swift
[8/10] 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 {
                                                          ^~~~~~~~~~~~~~~~
[9/10] 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)
        ^~~~~~~~~~~~~~~~~~~~~
[10/10] 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 {
                                             ^~~~~~~~~~~~~~~~
error: fatalError
[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 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 {
                                                          ^~~~~~~~~~~~~~~~
[3/5] 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 {
                                             ^~~~~~~~~~~~~~~~
[4/5] 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)
            ^~~~~~~~~~~~~~~~~~~~~
[5/5] 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.10 linux

Build Machine: Linux 1