Build Information
Failed to build AdvancedOperation with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-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/alemar11/AdvancedOperation.git
Reference: 6.3.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/alemar11/AdvancedOperation
* tag 6.3.0 -> FETCH_HEAD
HEAD is now at ff87b8e docs
Cloned https://github.com/alemar11/AdvancedOperation.git
Revision (git rev-parse @):
ff87b8e2aea6b8e3a8a9234fdefefbfc5e5d73ee
SUCCESS checkout https://github.com/alemar11/AdvancedOperation.git at 6.3.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/alemar11/AdvancedOperation.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-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/11] Compiling AdvancedOperation AsynchronousBlockOperation.swift
[4/12] Compiling AdvancedOperation GroupOperation.swift
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:32:25: error: cannot find 'NSKeyValueObservation' in scope
private var tokens = [NSKeyValueObservation]()
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:32:24: error: cannot call value of non-function type '[Any]'
private var tokens = [NSKeyValueObservation]()
^ ~~
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:132:37: error: value of type 'Operation' has no member 'observe'
let finishToken = operation.observe(\.isFinished, options: [.old, .new]) { [weak self] (_, changes) in
~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:132:45: error: cannot infer key path type from context; consider explicitly specifying a root type
let finishToken = operation.observe(\.isFinished, options: [.old, .new]) { [weak self] (_, changes) in
^
<#Root#>
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:132:97: error: cannot infer type of closure parameter '_' without a type annotation
let finishToken = operation.observe(\.isFinished, options: [.old, .new]) { [weak self] (_, changes) in
^
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:132:100: error: cannot infer type of closure parameter 'changes' without a type annotation
let finishToken = operation.observe(\.isFinished, options: [.old, .new]) { [weak self] (_, changes) in
^
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:132:76: error: reference to member 'new' cannot be resolved without a contextual type
let finishToken = operation.observe(\.isFinished, options: [.old, .new]) { [weak self] (_, changes) in
^
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:132:70: error: reference to member 'old' cannot be resolved without a contextual type
let finishToken = operation.observe(\.isFinished, options: [.old, .new]) { [weak self] (_, changes) in
^
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:149:47: error: cannot infer key path type from context; consider explicitly specifying a root type
let cancelToken = operation.observe(\.isCancelled, options: [.old, .new]) { [weak self] (operation, changes) in
^
<#Root#>
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:149:73: error: reference to member 'old' cannot be resolved without a contextual type
let cancelToken = operation.observe(\.isCancelled, options: [.old, .new]) { [weak self] (operation, changes) in
^
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:149:79: error: reference to member 'new' cannot be resolved without a contextual type
let cancelToken = operation.observe(\.isCancelled, options: [.old, .new]) { [weak self] (operation, changes) in
^
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:149:100: error: cannot infer type of closure parameter 'operation' without a type annotation
let cancelToken = operation.observe(\.isCancelled, options: [.old, .new]) { [weak self] (operation, changes) in
^
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:149:111: error: cannot infer type of closure parameter 'changes' without a type annotation
let cancelToken = operation.observe(\.isCancelled, options: [.old, .new]) { [weak self] (operation, changes) in
^
[5/12] Compiling AdvancedOperation FailableAsyncOperation.swift
[6/12] Compiling AdvancedOperation ResultOperation.swift
[7/12] Compiling AdvancedOperation KVOCrashWorkaround.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/12] Compiling AdvancedOperation Operation+Utils.swift
[9/12] Emitting module AdvancedOperation
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:14:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:35:29: error: property does not override any property from its superclass
public final override var isConcurrent: Bool { true }
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Core/Atomic.swift:44:27: error: cannot find type 'os_unfair_lock_t' in scope
private var unfairLock: os_unfair_lock_t
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:32:25: error: cannot find 'NSKeyValueObservation' in scope
private var tokens = [NSKeyValueObservation]()
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:32:24: error: cannot call value of non-function type '[Any]'
private var tokens = [NSKeyValueObservation]()
^ ~~
[10/12] Compiling AdvancedOperation Atomic.swift
/host/spi-builder-workspace/Sources/Core/Atomic.swift:44:27: error: cannot find type 'os_unfair_lock_t' in scope
private var unfairLock: os_unfair_lock_t
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Atomic.swift:47:19: error: cannot infer contextual base in reference to member 'allocate'
unfairLock = .allocate(capacity: 1)
~^~~~~~~~
/host/spi-builder-workspace/Sources/Core/Atomic.swift:48:31: error: cannot find 'os_unfair_lock' in scope
unfairLock.initialize(to: os_unfair_lock())
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Atomic.swift:52:5: error: cannot find 'os_unfair_lock_lock' in scope
os_unfair_lock_lock(unfairLock)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Atomic.swift:56:5: error: cannot find 'os_unfair_lock_unlock' in scope
os_unfair_lock_unlock(unfairLock)
^~~~~~~~~~~~~~~~~~~~~
[11/12] Compiling AdvancedOperation AdvancedOperation.swift
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:14:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:35:29: error: property does not override any property from its superclass
public final override var isConcurrent: Bool { true }
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:190:27: error: '#keyPath' can only be used with the Objective-C runtime
case .ready: return #keyPath(isReady)
^
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:191:31: error: '#keyPath' can only be used with the Objective-C runtime
case .executing: return #keyPath(isExecuting)
^
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:192:30: error: '#keyPath' can only be used with the Objective-C runtime
case .finished: return #keyPath(isFinished)
^
[12/12] Compiling AdvancedOperation AsynchronousOperation.swift
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:14:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:35:29: error: property does not override any property from its superclass
public final override var isConcurrent: Bool { true }
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:190:27: error: '#keyPath' can only be used with the Objective-C runtime
case .ready: return #keyPath(isReady)
^
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:191:31: error: '#keyPath' can only be used with the Objective-C runtime
case .executing: return #keyPath(isExecuting)
^
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:192:30: error: '#keyPath' can only be used with the Objective-C runtime
case .finished: return #keyPath(isFinished)
^
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling AdvancedOperation GroupOperation.swift
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:32:25: error: cannot find 'NSKeyValueObservation' in scope
private var tokens = [NSKeyValueObservation]()
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:32:24: error: cannot call value of non-function type '[Any]'
private var tokens = [NSKeyValueObservation]()
^ ~~
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:132:37: error: value of type 'Operation' has no member 'observe'
let finishToken = operation.observe(\.isFinished, options: [.old, .new]) { [weak self] (_, changes) in
~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:132:45: error: cannot infer key path type from context; consider explicitly specifying a root type
let finishToken = operation.observe(\.isFinished, options: [.old, .new]) { [weak self] (_, changes) in
^
<#Root#>
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:132:97: error: cannot infer type of closure parameter '_' without a type annotation
let finishToken = operation.observe(\.isFinished, options: [.old, .new]) { [weak self] (_, changes) in
^
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:132:100: error: cannot infer type of closure parameter 'changes' without a type annotation
let finishToken = operation.observe(\.isFinished, options: [.old, .new]) { [weak self] (_, changes) in
^
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:132:76: error: reference to member 'new' cannot be resolved without a contextual type
let finishToken = operation.observe(\.isFinished, options: [.old, .new]) { [weak self] (_, changes) in
^
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:132:70: error: reference to member 'old' cannot be resolved without a contextual type
let finishToken = operation.observe(\.isFinished, options: [.old, .new]) { [weak self] (_, changes) in
^
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:149:47: error: cannot infer key path type from context; consider explicitly specifying a root type
let cancelToken = operation.observe(\.isCancelled, options: [.old, .new]) { [weak self] (operation, changes) in
^
<#Root#>
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:149:73: error: reference to member 'old' cannot be resolved without a contextual type
let cancelToken = operation.observe(\.isCancelled, options: [.old, .new]) { [weak self] (operation, changes) in
^
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:149:79: error: reference to member 'new' cannot be resolved without a contextual type
let cancelToken = operation.observe(\.isCancelled, options: [.old, .new]) { [weak self] (operation, changes) in
^
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:149:100: error: cannot infer type of closure parameter 'operation' without a type annotation
let cancelToken = operation.observe(\.isCancelled, options: [.old, .new]) { [weak self] (operation, changes) in
^
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:149:111: error: cannot infer type of closure parameter 'changes' without a type annotation
let cancelToken = operation.observe(\.isCancelled, options: [.old, .new]) { [weak self] (operation, changes) in
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Compiling AdvancedOperation AdvancedOperation.swift
[4/6] Compiling AdvancedOperation Atomic.swift
/host/spi-builder-workspace/Sources/Core/Atomic.swift:44:27: error: cannot find type 'os_unfair_lock_t' in scope
private var unfairLock: os_unfair_lock_t
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Atomic.swift:47:19: error: cannot infer contextual base in reference to member 'allocate'
unfairLock = .allocate(capacity: 1)
~^~~~~~~~
/host/spi-builder-workspace/Sources/Core/Atomic.swift:48:31: error: cannot find 'os_unfair_lock' in scope
unfairLock.initialize(to: os_unfair_lock())
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Atomic.swift:52:5: error: cannot find 'os_unfair_lock_lock' in scope
os_unfair_lock_lock(unfairLock)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Core/Atomic.swift:56:5: error: cannot find 'os_unfair_lock_unlock' in scope
os_unfair_lock_unlock(unfairLock)
^~~~~~~~~~~~~~~~~~~~~
[5/6] Emitting module AdvancedOperation
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:14:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:35:29: error: property does not override any property from its superclass
public final override var isConcurrent: Bool { true }
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Core/Atomic.swift:44:27: error: cannot find type 'os_unfair_lock_t' in scope
private var unfairLock: os_unfair_lock_t
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:32:25: error: cannot find 'NSKeyValueObservation' in scope
private var tokens = [NSKeyValueObservation]()
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Operations/GroupOperation.swift:32:24: error: cannot call value of non-function type '[Any]'
private var tokens = [NSKeyValueObservation]()
^ ~~
[6/6] Compiling AdvancedOperation AsynchronousOperation.swift
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:14:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:35:29: error: property does not override any property from its superclass
public final override var isConcurrent: Bool { true }
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:190:27: error: '#keyPath' can only be used with the Objective-C runtime
case .ready: return #keyPath(isReady)
^
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:191:31: error: '#keyPath' can only be used with the Objective-C runtime
case .executing: return #keyPath(isExecuting)
^
/host/spi-builder-workspace/Sources/Core/AsynchronousOperation.swift:192:30: error: '#keyPath' can only be used with the Objective-C runtime
case .finished: return #keyPath(isFinished)
^
[7/9] Compiling AdvancedOperation FailableAsyncOperation.swift
[8/9] Compiling AdvancedOperation AsynchronousBlockOperation.swift
[9/9] Compiling AdvancedOperation ResultOperation.swift
error: fatalError
BUILD FAILURE 5.10 linux
Build Machine: Linux 2