Build Information
Failed to build CSProgress with Swift 6.0 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CharlesJS/CSProgress.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/CharlesJS/CSProgress
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c7b4ace Update README.md
Cloned https://github.com/CharlesJS/CSProgress.git
Revision (git rev-parse @):
c7b4ace313668de465e6828164c2296f5d01afbd
SUCCESS checkout https://github.com/CharlesJS/CSProgress.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/CharlesJS/CSProgress.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/9] Emitting module CSProgress
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1102:39: error: cannot find type 'NSKeyValueObservation' in scope
1100 | }
1101 |
1102 | private var kvoObservations: [NSKeyValueObservation] = []
| `- error: cannot find type 'NSKeyValueObservation' in scope
1103 |
1104 | private func startWatching() {
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1261:22: error: overriding non-open property outside of its defining module
1259 | }
1260 |
1261 | override var fractionCompleted: Double { return self.progress?.fractionCompleted ?? 0.0 }
| `- error: overriding non-open property outside of its defining module
1262 |
1263 | override var localizedDescription: String! {
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1263:22: error: cannot observe read-only property 'localizedDescription'; it can't change
1261 | override var fractionCompleted: Double { return self.progress?.fractionCompleted ?? 0.0 }
1262 |
1263 | override var localizedDescription: String! {
| `- error: cannot observe read-only property 'localizedDescription'; it can't change
1264 | didSet { self.progress?.localizedDescription = self.localizedDescription }
1265 | }
Foundation.Progress:12:14: note: attempt to override property here
10 | open var totalUnitCount: Int64 { get set }
11 | open var completedUnitCount: Int64 { get set }
12 | open var localizedDescription: String! { get }
| `- note: attempt to override property here
13 | open var localizedAdditionalDescription: String! { get }
14 | open var isCancellable: Bool
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1264:65: error: ambiguous use of 'localizedDescription'
1261 | override var fractionCompleted: Double { return self.progress?.fractionCompleted ?? 0.0 }
1262 |
1263 | override var localizedDescription: String! {
| `- note: found this candidate
1264 | didSet { self.progress?.localizedDescription = self.localizedDescription }
| `- error: ambiguous use of 'localizedDescription'
1265 | }
1266 |
Foundation.Progress:12:14: note: found this candidate in module 'Foundation'
10 | open var totalUnitCount: Int64 { get set }
11 | open var completedUnitCount: Int64 { get set }
12 | open var localizedDescription: String! { get }
| `- note: found this candidate in module 'Foundation'
13 | open var localizedAdditionalDescription: String! { get }
14 | open var isCancellable: Bool
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1267:22: error: cannot observe read-only property 'localizedAdditionalDescription'; it can't change
1265 | }
1266 |
1267 | override var localizedAdditionalDescription: String! {
| `- error: cannot observe read-only property 'localizedAdditionalDescription'; it can't change
1268 | didSet { self.progress?.localizedAdditionalDescription = self.localizedAdditionalDescription }
1269 | }
Foundation.Progress:13:14: note: attempt to override property here
11 | open var completedUnitCount: Int64 { get set }
12 | open var localizedDescription: String! { get }
13 | open var localizedAdditionalDescription: String! { get }
| `- note: attempt to override property here
14 | open var isCancellable: Bool
15 | open var isPausable: Bool
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1268:75: error: ambiguous use of 'localizedAdditionalDescription'
1265 | }
1266 |
1267 | override var localizedAdditionalDescription: String! {
| `- note: found this candidate
1268 | didSet { self.progress?.localizedAdditionalDescription = self.localizedAdditionalDescription }
| `- error: ambiguous use of 'localizedAdditionalDescription'
1269 | }
1270 | }
Foundation.Progress:13:14: note: found this candidate in module 'Foundation'
11 | open var completedUnitCount: Int64 { get set }
12 | open var localizedDescription: String! { get }
13 | open var localizedAdditionalDescription: String! { get }
| `- note: found this candidate in module 'Foundation'
14 | open var isCancellable: Bool
15 | open var isPausable: Bool
[5/9] Compiling CSProgress CSProgress.swift
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1102:39: error: cannot find type 'NSKeyValueObservation' in scope
1100 | }
1101 |
1102 | private var kvoObservations: [NSKeyValueObservation] = []
| `- error: cannot find type 'NSKeyValueObservation' in scope
1103 |
1104 | private func startWatching() {
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1261:22: error: overriding non-open property outside of its defining module
1259 | }
1260 |
1261 | override var fractionCompleted: Double { return self.progress?.fractionCompleted ?? 0.0 }
| `- error: overriding non-open property outside of its defining module
1262 |
1263 | override var localizedDescription: String! {
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1263:22: error: cannot observe read-only property 'localizedDescription'; it can't change
1261 | override var fractionCompleted: Double { return self.progress?.fractionCompleted ?? 0.0 }
1262 |
1263 | override var localizedDescription: String! {
| `- error: cannot observe read-only property 'localizedDescription'; it can't change
1264 | didSet { self.progress?.localizedDescription = self.localizedDescription }
1265 | }
Foundation.Progress:12:14: note: attempt to override property here
10 | open var totalUnitCount: Int64 { get set }
11 | open var completedUnitCount: Int64 { get set }
12 | open var localizedDescription: String! { get }
| `- note: attempt to override property here
13 | open var localizedAdditionalDescription: String! { get }
14 | open var isCancellable: Bool
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1264:65: error: ambiguous use of 'localizedDescription'
1261 | override var fractionCompleted: Double { return self.progress?.fractionCompleted ?? 0.0 }
1262 |
1263 | override var localizedDescription: String! {
| `- note: found this candidate
1264 | didSet { self.progress?.localizedDescription = self.localizedDescription }
| `- error: ambiguous use of 'localizedDescription'
1265 | }
1266 |
Foundation.Progress:12:14: note: found this candidate in module 'Foundation'
10 | open var totalUnitCount: Int64 { get set }
11 | open var completedUnitCount: Int64 { get set }
12 | open var localizedDescription: String! { get }
| `- note: found this candidate in module 'Foundation'
13 | open var localizedAdditionalDescription: String! { get }
14 | open var isCancellable: Bool
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1267:22: error: cannot observe read-only property 'localizedAdditionalDescription'; it can't change
1265 | }
1266 |
1267 | override var localizedAdditionalDescription: String! {
| `- error: cannot observe read-only property 'localizedAdditionalDescription'; it can't change
1268 | didSet { self.progress?.localizedAdditionalDescription = self.localizedAdditionalDescription }
1269 | }
Foundation.Progress:13:14: note: attempt to override property here
11 | open var completedUnitCount: Int64 { get set }
12 | open var localizedDescription: String! { get }
13 | open var localizedAdditionalDescription: String! { get }
| `- note: attempt to override property here
14 | open var isCancellable: Bool
15 | open var isPausable: Bool
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1268:75: error: ambiguous use of 'localizedAdditionalDescription'
1265 | }
1266 |
1267 | override var localizedAdditionalDescription: String! {
| `- note: found this candidate
1268 | didSet { self.progress?.localizedAdditionalDescription = self.localizedAdditionalDescription }
| `- error: ambiguous use of 'localizedAdditionalDescription'
1269 | }
1270 | }
Foundation.Progress:13:14: note: found this candidate in module 'Foundation'
11 | open var completedUnitCount: Int64 { get set }
12 | open var localizedDescription: String! { get }
13 | open var localizedAdditionalDescription: String! { get }
| `- note: found this candidate in module 'Foundation'
14 | open var isCancellable: Bool
15 | open var isPausable: Bool
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:973:27: error: value of optional type 'UnsafeMutableRawPointer?' must be unwrapped to refer to member 'bindMemory' of wrapped base type 'UnsafeMutableRawPointer'
971 |
972 | pthread_key_create(&self.isUpdatingKey) {
973 | let ptr = $0.bindMemory(to: Bool.self, capacity: 1)
| |- error: value of optional type 'UnsafeMutableRawPointer?' must be unwrapped to refer to member 'bindMemory' of wrapped base type 'UnsafeMutableRawPointer'
| |- note: chain the optional using '?' to access member 'bindMemory' only for non-'nil' base values
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
974 |
975 | ptr.deinitialize(count: 1)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1056:35: error: cannot assign to property: 'localizedDescription' is a get-only property
1054 |
1055 | if let localizedDescription = localizedDescription {
1056 | self.progress.localizedDescription = localizedDescription
| `- error: cannot assign to property: 'localizedDescription' is a get-only property
1057 | }
1058 |
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1108:55: error: value of type 'Progress' has no member 'observe'
1106 | // ignore the notification or we'll just keep going back and forth forever.
1107 |
1108 | self.kvoObservations.append(self.progress.observe(\.fractionCompleted) { [weak self] _, _ in
| `- error: value of type 'Progress' has no member 'observe'
1109 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.fractionCompletedUpdatedHandler {
1110 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1108:63: error: cannot infer key path type from context; consider explicitly specifying a root type
1106 | // ignore the notification or we'll just keep going back and forth forever.
1107 |
1108 | self.kvoObservations.append(self.progress.observe(\.fractionCompleted) { [weak self] _, _ in
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
1109 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.fractionCompletedUpdatedHandler {
1110 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1108:98: error: cannot infer type of closure parameter '_' without a type annotation
1106 | // ignore the notification or we'll just keep going back and forth forever.
1107 |
1108 | self.kvoObservations.append(self.progress.observe(\.fractionCompleted) { [weak self] _, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
1109 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.fractionCompletedUpdatedHandler {
1110 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1108:101: error: cannot infer type of closure parameter '_' without a type annotation
1106 | // ignore the notification or we'll just keep going back and forth forever.
1107 |
1108 | self.kvoObservations.append(self.progress.observe(\.fractionCompleted) { [weak self] _, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
1109 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.fractionCompletedUpdatedHandler {
1110 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1114:55: error: value of type 'Progress' has no member 'observe'
1112 | })
1113 |
1114 | self.kvoObservations.append(self.progress.observe(\.isIndeterminate) { [weak self] _, _ in
| `- error: value of type 'Progress' has no member 'observe'
1115 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.indeterminateHandler {
1116 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1114:63: error: cannot infer key path type from context; consider explicitly specifying a root type
1112 | })
1113 |
1114 | self.kvoObservations.append(self.progress.observe(\.isIndeterminate) { [weak self] _, _ in
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
1115 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.indeterminateHandler {
1116 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1114:96: error: cannot infer type of closure parameter '_' without a type annotation
1112 | })
1113 |
1114 | self.kvoObservations.append(self.progress.observe(\.isIndeterminate) { [weak self] _, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
1115 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.indeterminateHandler {
1116 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1114:99: error: cannot infer type of closure parameter '_' without a type annotation
1112 | })
1113 |
1114 | self.kvoObservations.append(self.progress.observe(\.isIndeterminate) { [weak self] _, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
1115 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.indeterminateHandler {
1116 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1120:55: error: value of type 'Progress' has no member 'observe'
1118 | })
1119 |
1120 | self.kvoObservations.append(self.progress.observe(\.isCancelled) { [weak self] _, _ in
| `- error: value of type 'Progress' has no member 'observe'
1121 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.cancellationHandler {
1122 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1120:63: error: cannot infer key path type from context; consider explicitly specifying a root type
1118 | })
1119 |
1120 | self.kvoObservations.append(self.progress.observe(\.isCancelled) { [weak self] _, _ in
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
1121 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.cancellationHandler {
1122 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1120:92: error: cannot infer type of closure parameter '_' without a type annotation
1118 | })
1119 |
1120 | self.kvoObservations.append(self.progress.observe(\.isCancelled) { [weak self] _, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
1121 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.cancellationHandler {
1122 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1120:95: error: cannot infer type of closure parameter '_' without a type annotation
1118 | })
1119 |
1120 | self.kvoObservations.append(self.progress.observe(\.isCancelled) { [weak self] _, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
1121 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.cancellationHandler {
1122 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1126:55: error: value of type 'Progress' has no member 'observe'
1124 | })
1125 |
1126 | self.kvoObservations.append(self.progress.observe(\.localizedDescription) { [weak self] _, _ in
| `- error: value of type 'Progress' has no member 'observe'
1127 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.descriptionUpdatedHandler {
1128 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1126:63: error: cannot infer key path type from context; consider explicitly specifying a root type
1124 | })
1125 |
1126 | self.kvoObservations.append(self.progress.observe(\.localizedDescription) { [weak self] _, _ in
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
1127 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.descriptionUpdatedHandler {
1128 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1126:101: error: cannot infer type of closure parameter '_' without a type annotation
1124 | })
1125 |
1126 | self.kvoObservations.append(self.progress.observe(\.localizedDescription) { [weak self] _, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
1127 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.descriptionUpdatedHandler {
1128 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1126:104: error: cannot infer type of closure parameter '_' without a type annotation
1124 | })
1125 |
1126 | self.kvoObservations.append(self.progress.observe(\.localizedDescription) { [weak self] _, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
1127 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.descriptionUpdatedHandler {
1128 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1132:55: error: value of type 'Progress' has no member 'observe'
1130 | })
1131 |
1132 | self.kvoObservations.append(self.progress.observe(\.localizedAdditionalDescription) { [weak self] _, _ in
| `- error: value of type 'Progress' has no member 'observe'
1133 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.descriptionUpdatedHandler {
1134 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1132:63: error: cannot infer key path type from context; consider explicitly specifying a root type
1130 | })
1131 |
1132 | self.kvoObservations.append(self.progress.observe(\.localizedAdditionalDescription) { [weak self] _, _ in
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
1133 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.descriptionUpdatedHandler {
1134 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1132:111: error: cannot infer type of closure parameter '_' without a type annotation
1130 | })
1131 |
1132 | self.kvoObservations.append(self.progress.observe(\.localizedAdditionalDescription) { [weak self] _, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
1133 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.descriptionUpdatedHandler {
1134 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1132:114: error: cannot infer type of closure parameter '_' without a type annotation
1130 | })
1131 |
1132 | self.kvoObservations.append(self.progress.observe(\.localizedAdditionalDescription) { [weak self] _, _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
1133 | if let sSelf = self, !sSelf.isUpdating, let handler = sSelf.descriptionUpdatedHandler {
1134 | sSelf.queue.addOperation(handler)
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1226:19: error: cannot assign to property: 'localizedDescription' is a get-only property
1224 | super.totalUnitCount = progress.backing.totalUnitCount
1225 | super.completedUnitCount = progress.backing.completedUnitCount
1226 | super.localizedDescription = progress.backing.localizedDescription
| | `- error: cannot assign to property: 'localizedDescription' is a get-only property
| `- note: add explicit 'self.' to refer to mutable property of 'CSProgress.BridgedNSProgress'
1227 | super.localizedAdditionalDescription = progress.backing.localizedAdditionalDescription
1228 | if progress.backing.isCancelled { super.cancel() }
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1227:19: error: cannot assign to property: 'localizedAdditionalDescription' is a get-only property
1225 | super.completedUnitCount = progress.backing.completedUnitCount
1226 | super.localizedDescription = progress.backing.localizedDescription
1227 | super.localizedAdditionalDescription = progress.backing.localizedAdditionalDescription
| | `- error: cannot assign to property: 'localizedAdditionalDescription' is a get-only property
| `- note: add explicit 'self.' to refer to mutable property of 'CSProgress.BridgedNSProgress'
1228 | if progress.backing.isCancelled { super.cancel() }
1229 |
/host/spi-builder-workspace/Sources/CSProgress/CSProgress.swift:1238:23: error: cannot assign to property: 'localizedDescription' is a get-only property
1236 |
1237 | self.descriptionIdentifier = progress._addDescriptionNotification(onQueue: queue) { desc, aDesc in
1238 | super.localizedDescription = desc
| | `- error: cannot assign to property: 'localizedDescription' is a get-only property
| `- note: add explicit 'self.' to refer to mutable property of 'CSProgress.BridgedNSProgress'
1239 | super.localizedAdditionalDescription = aDesc
1240 | }
BUILD FAILURE 6.0 linux