Build Information
Failed to build KinUtil, reference 0.1.0 (783a57), with Swift 6.2 for Linux on 18 Jun 2025 12:19:48 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.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kinecosystem/kin-util-ios.git
Reference: 0.1.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/kinecosystem/kin-util-ios
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at 783a57e removed unsupported pdf license file
Cloned https://github.com/kinecosystem/kin-util-ios.git
Revision (git rev-parse @):
783a57e03e55438fa6e51d84ae79ac62b515109f
SUCCESS checkout https://github.com/kinecosystem/kin-util-ios.git at 0.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/kinecosystem/kin-util-ios.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling KinUtil Data+extensions.swift
[4/10] Compiling KinUtil Array+extensions.swift
[5/10] Compiling KinUtil Utility.swift
[6/11] Compiling KinUtil Promise.swift
/host/spi-builder-workspace/Sources/KinUtil/Promise.swift:226:29: warning: reference to captured var 'attempt2' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
224 | if attempts < tries {
225 | DispatchQueue.global().asyncAfter(deadline: .now() + retryIntervals[attempts - 1]) {
226 | attempt2()
| `- warning: reference to captured var 'attempt2' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
227 | }
228 |
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[7/11] Compiling KinUtil Observables.swift
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:98:80: error: cannot find type 'NSKeyValueObservingOptions' in scope
96 | private let keyPath: String
97 |
98 | init(object: NSObject, keyPath: WritableKeyPath<Type, ValueType>, options: NSKeyValueObservingOptions = [.new]) throws {
| `- error: cannot find type 'NSKeyValueObservingOptions' in scope
99 | guard let stringPath = keyPath._kvcKeyPathString else {
100 | throw Errors.invalidKeyPath
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:70:51: error: cannot find type 'NSKeyValueChangeKey' in scope
68 | @objc override func observeValue(forKeyPath keyPath: String?,
69 | of object: Any?,
70 | change: [NSKeyValueChangeKey : Any]?,
| `- error: cannot find type 'NSKeyValueChangeKey' in scope
71 | context: UnsafeMutableRawPointer?) {
72 | let new = change?[NSKeyValueChangeKey.newKey]
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:68:10: error: Objective-C interoperability is disabled
66 | fileprivate weak var kvoObserver: KVOObserver?
67 |
68 | @objc override func observeValue(forKeyPath keyPath: String?,
| `- error: Objective-C interoperability is disabled
69 | of object: Any?,
70 | change: [NSKeyValueChangeKey : Any]?,
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:72:31: error: cannot find 'NSKeyValueChangeKey' in scope
70 | change: [NSKeyValueChangeKey : Any]?,
71 | context: UnsafeMutableRawPointer?) {
72 | let new = change?[NSKeyValueChangeKey.newKey]
| `- error: cannot find 'NSKeyValueChangeKey' in scope
73 | let old = change?[NSKeyValueChangeKey.oldKey]
74 |
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:72:30: error: type of expression is ambiguous without a type annotation
70 | change: [NSKeyValueChangeKey : Any]?,
71 | context: UnsafeMutableRawPointer?) {
72 | let new = change?[NSKeyValueChangeKey.newKey]
| `- error: type of expression is ambiguous without a type annotation
73 | let old = change?[NSKeyValueChangeKey.oldKey]
74 |
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:73:31: error: cannot find 'NSKeyValueChangeKey' in scope
71 | context: UnsafeMutableRawPointer?) {
72 | let new = change?[NSKeyValueChangeKey.newKey]
73 | let old = change?[NSKeyValueChangeKey.oldKey]
| `- error: cannot find 'NSKeyValueChangeKey' in scope
74 |
75 | if let new = new as? ValueType {
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:73:30: error: type of expression is ambiguous without a type annotation
71 | context: UnsafeMutableRawPointer?) {
72 | let new = change?[NSKeyValueChangeKey.newKey]
73 | let old = change?[NSKeyValueChangeKey.oldKey]
| `- error: type of expression is ambiguous without a type annotation
74 |
75 | if let new = new as? ValueType {
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:110:16: error: value of type 'NSObject' has no member 'addObserver'
108 |
109 | observer.kvoObserver = self
110 | object.addObserver(observer, forKeyPath: self.keyPath, options: options.union([.new]), context: nil)
| `- error: value of type 'NSObject' has no member 'addObserver'
111 |
112 | let deletion = OnDelete { [weak self] in self?.cancel() }
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:110:89: error: reference to member 'new' cannot be resolved without a contextual type
108 |
109 | observer.kvoObserver = self
110 | object.addObserver(observer, forKeyPath: self.keyPath, options: options.union([.new]), context: nil)
| `- error: reference to member 'new' cannot be resolved without a contextual type
111 |
112 | let deletion = OnDelete { [weak self] in self?.cancel() }
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:110:105: error: 'nil' requires a contextual type
108 |
109 | observer.kvoObserver = self
110 | object.addObserver(observer, forKeyPath: self.keyPath, options: options.union([.new]), context: nil)
| `- error: 'nil' requires a contextual type
111 |
112 | let deletion = OnDelete { [weak self] in self?.cancel() }
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:113:9: error: cannot find 'objc_setAssociatedObject' in scope
111 |
112 | let deletion = OnDelete { [weak self] in self?.cancel() }
113 | objc_setAssociatedObject(object,
| `- error: cannot find 'objc_setAssociatedObject' in scope
114 | Unmanaged.passUnretained(self).toOpaque(),
115 | deletion,
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:116:35: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
114 | Unmanaged.passUnretained(self).toOpaque(),
115 | deletion,
116 | .OBJC_ASSOCIATION_RETAIN)
| `- error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
117 | }
118 |
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:120:39: error: value of type 'NSObject' has no member 'removeObserver'
118 |
119 | private func cancel() {
120 | object?.takeUnretainedValue().removeObserver(observer, forKeyPath: keyPath)
| `- error: value of type 'NSObject' has no member 'removeObserver'
121 | object = nil
122 | }
[8/11] Compiling KinUtil Observable.swift
/host/spi-builder-workspace/Sources/KinUtil/Observable.swift:67:34: warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
63 | }
64 |
65 | private func enqueue(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-Sendable
66 | if let queue = queue {
67 | queue.async(execute: block)
| `- warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
68 | }
69 | else {
[9/11] Compiling KinUtil String+extensions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/11] Compiling KinUtil Curry.swift
[11/11] Emitting module KinUtil
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:98:80: error: cannot find type 'NSKeyValueObservingOptions' in scope
96 | private let keyPath: String
97 |
98 | init(object: NSObject, keyPath: WritableKeyPath<Type, ValueType>, options: NSKeyValueObservingOptions = [.new]) throws {
| `- error: cannot find type 'NSKeyValueObservingOptions' in scope
99 | guard let stringPath = keyPath._kvcKeyPathString else {
100 | throw Errors.invalidKeyPath
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:70:51: error: cannot find type 'NSKeyValueChangeKey' in scope
68 | @objc override func observeValue(forKeyPath keyPath: String?,
69 | of object: Any?,
70 | change: [NSKeyValueChangeKey : Any]?,
| `- error: cannot find type 'NSKeyValueChangeKey' in scope
71 | context: UnsafeMutableRawPointer?) {
72 | let new = change?[NSKeyValueChangeKey.newKey]
/host/spi-builder-workspace/Sources/KinUtil/Observables.swift:68:10: error: Objective-C interoperability is disabled
66 | fileprivate weak var kvoObserver: KVOObserver?
67 |
68 | @objc override func observeValue(forKeyPath keyPath: String?,
| `- error: Objective-C interoperability is disabled
69 | of object: Any?,
70 | change: [NSKeyValueChangeKey : Any]?,
BUILD FAILURE 6.2 linux