Build Information
Failed to build Regulate with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.28.9
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sideeffect-io/Regulate.git
Reference: 0.2.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/sideeffect-io/Regulate
* tag 0.2.0 -> FETCH_HEAD
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 0.2.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: $workDir
https://github.com/sideeffect-io/Regulate.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/8] Compiling Regulate RegulatedButtonStyle.swift
[2/8] Compiling Regulate Button+Regulated.swift
[3/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)
^~~~~~~~~~~~~~~~~~~~~
[4/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: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Compiling Regulate Binding+Regulate.swift
[6/8] Compiling Regulate DispatchTimeInterval+Nanoseconds.swift
[7/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 {
^~~~~~~~~~~~~~~~
[8/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 {
^~~~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/4] 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 {
^~~~~~~~~~~~~~~~
[2/4] 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)
^~~~~~~~~~~~~~~~~~~~~
[3/4] 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/4] 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