Build Information
Failed to build MiniFuture, reference master (894ed0
), with Swift 6.0 for Linux on 26 Nov 2024 16:34:23 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.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tkareine/MiniFuture.git
Reference: master
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/tkareine/MiniFuture
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 894ed0c Update readme
Cloned https://github.com/tkareine/MiniFuture.git
Revision (git rev-parse @):
894ed0cf7c1bb8aeafe0a8fa5fa48a9a403ecdf6
SUCCESS checkout https://github.com/tkareine/MiniFuture.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/tkareine/MiniFuture.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.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
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/11] Compiling MiniFuture Try.swift
[5/11] Emitting module MiniFuture
/host/spi-builder-workspace/Source/Condition.swift:6:43: error: cannot find type 'pthread_mutex_t' in scope
4 | public typealias WaitCallback = () -> Void
5 |
6 | private let mutex: UnsafeMutablePointer<pthread_mutex_t>
| `- error: cannot find type 'pthread_mutex_t' in scope
7 | private let condition: UnsafeMutablePointer<pthread_cond_t>
8 |
/host/spi-builder-workspace/Source/Condition.swift:7:47: error: cannot find type 'pthread_cond_t' in scope
5 |
6 | private let mutex: UnsafeMutablePointer<pthread_mutex_t>
7 | private let condition: UnsafeMutablePointer<pthread_cond_t>
| `- error: cannot find type 'pthread_cond_t' in scope
8 |
9 | private lazy var waitCallback: WaitCallback = { [unowned self] in self.wait() }
[6/11] Compiling MiniFuture Future.swift
/host/spi-builder-workspace/Source/Future.swift:13:32: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
10 | }
11 |
12 | static func async(_ block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
13 | sharedQueue.async(execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
14 | }
15 |
/host/spi-builder-workspace/Source/Future.swift:17:46: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
14 | }
15 |
16 | static func async(_ group: Group, block: @escaping () -> Void) {
| `- note: parameter 'block' is implicitly non-sendable
17 | sharedQueue.async(group: group, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
18 | }
19 |
/host/spi-builder-workspace/Source/Future.swift:222:60: warning: string interpolation produces a debug description for a function value; did you mean to make this explicit?
220 | let callbacks: [CompletionCallback] = condition.synchronized { _ in
221 | if result != nil {
222 | fatalError("Tried to complete PromiseFuture with \(value.value), but " +
| | `- note: use 'String(describing:)' to silence this warning
| `- warning: string interpolation produces a debug description for a function value; did you mean to make this explicit?
223 | "the future is already completed with \(result!)")
224 | }
/host/spi-builder-workspace/Source/Condition.swift:6:43: error: cannot find type 'pthread_mutex_t' in scope
4 | public typealias WaitCallback = () -> Void
5 |
6 | private let mutex: UnsafeMutablePointer<pthread_mutex_t>
| `- error: cannot find type 'pthread_mutex_t' in scope
7 | private let condition: UnsafeMutablePointer<pthread_cond_t>
8 |
/host/spi-builder-workspace/Source/Condition.swift:7:47: error: cannot find type 'pthread_cond_t' in scope
5 |
6 | private let mutex: UnsafeMutablePointer<pthread_mutex_t>
7 | private let condition: UnsafeMutablePointer<pthread_cond_t>
| `- error: cannot find type 'pthread_cond_t' in scope
8 |
9 | private lazy var waitCallback: WaitCallback = { [unowned self] in self.wait() }
[7/11] Compiling MiniFuture Condition.swift
/host/spi-builder-workspace/Source/Condition.swift:6:43: error: cannot find type 'pthread_mutex_t' in scope
4 | public typealias WaitCallback = () -> Void
5 |
6 | private let mutex: UnsafeMutablePointer<pthread_mutex_t>
| `- error: cannot find type 'pthread_mutex_t' in scope
7 | private let condition: UnsafeMutablePointer<pthread_cond_t>
8 |
/host/spi-builder-workspace/Source/Condition.swift:7:47: error: cannot find type 'pthread_cond_t' in scope
5 |
6 | private let mutex: UnsafeMutablePointer<pthread_mutex_t>
7 | private let condition: UnsafeMutablePointer<pthread_cond_t>
| `- error: cannot find type 'pthread_cond_t' in scope
8 |
9 | private lazy var waitCallback: WaitCallback = { [unowned self] in self.wait() }
/host/spi-builder-workspace/Source/Condition.swift:12:13: error: generic parameter 'Pointee' could not be inferred
10 |
11 | init() {
12 | mutex = UnsafeMutablePointer.allocate(capacity: 1)
| |- error: generic parameter 'Pointee' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
13 | let mutexRes = pthread_mutex_init(mutex, nil)
14 | assert(mutexRes == 0)
/host/spi-builder-workspace/Source/Condition.swift:13:20: error: cannot find 'pthread_mutex_init' in scope
11 | init() {
12 | mutex = UnsafeMutablePointer.allocate(capacity: 1)
13 | let mutexRes = pthread_mutex_init(mutex, nil)
| `- error: cannot find 'pthread_mutex_init' in scope
14 | assert(mutexRes == 0)
15 | condition = UnsafeMutablePointer.allocate(capacity: 1)
/host/spi-builder-workspace/Source/Condition.swift:13:46: error: 'nil' requires a contextual type
11 | init() {
12 | mutex = UnsafeMutablePointer.allocate(capacity: 1)
13 | let mutexRes = pthread_mutex_init(mutex, nil)
| `- error: 'nil' requires a contextual type
14 | assert(mutexRes == 0)
15 | condition = UnsafeMutablePointer.allocate(capacity: 1)
/host/spi-builder-workspace/Source/Condition.swift:15:17: error: generic parameter 'Pointee' could not be inferred
13 | let mutexRes = pthread_mutex_init(mutex, nil)
14 | assert(mutexRes == 0)
15 | condition = UnsafeMutablePointer.allocate(capacity: 1)
| |- error: generic parameter 'Pointee' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
16 | let condRes = pthread_cond_init(condition, nil)
17 | assert(condRes == 0)
/host/spi-builder-workspace/Source/Condition.swift:16:19: error: cannot find 'pthread_cond_init' in scope
14 | assert(mutexRes == 0)
15 | condition = UnsafeMutablePointer.allocate(capacity: 1)
16 | let condRes = pthread_cond_init(condition, nil)
| `- error: cannot find 'pthread_cond_init' in scope
17 | assert(condRes == 0)
18 | }
/host/spi-builder-workspace/Source/Condition.swift:16:48: error: 'nil' requires a contextual type
14 | assert(mutexRes == 0)
15 | condition = UnsafeMutablePointer.allocate(capacity: 1)
16 | let condRes = pthread_cond_init(condition, nil)
| `- error: 'nil' requires a contextual type
17 | assert(condRes == 0)
18 | }
/host/spi-builder-workspace/Source/Condition.swift:21:19: error: cannot find 'pthread_cond_destroy' in scope
19 |
20 | deinit {
21 | let condRes = pthread_cond_destroy(condition)
| `- error: cannot find 'pthread_cond_destroy' in scope
22 | assert(condRes == 0)
23 | condition.deallocate(capacity: 1)
/host/spi-builder-workspace/Source/Condition.swift:24:20: error: cannot find 'pthread_mutex_destroy' in scope
22 | assert(condRes == 0)
23 | condition.deallocate(capacity: 1)
24 | let mutexRes = pthread_mutex_destroy(mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
25 | assert(mutexRes == 0)
26 | mutex.deallocate(capacity: 1)
/host/spi-builder-workspace/Source/Condition.swift:37:15: error: cannot find 'pthread_cond_signal' in scope
35 |
36 | public func signal() {
37 | let res = pthread_cond_signal(condition)
| `- error: cannot find 'pthread_cond_signal' in scope
38 | assert(res == 0)
39 | }
/host/spi-builder-workspace/Source/Condition.swift:42:15: error: cannot find 'pthread_mutex_lock' in scope
40 |
41 | private func lock() {
42 | let res = pthread_mutex_lock(mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
43 | assert(res == 0)
44 | }
/host/spi-builder-workspace/Source/Condition.swift:47:15: error: cannot find 'pthread_mutex_unlock' in scope
45 |
46 | private func unlock() {
47 | let res = pthread_mutex_unlock(mutex)
| `- error: cannot find 'pthread_mutex_unlock' in scope
48 | assert(res == 0)
49 | }
/host/spi-builder-workspace/Source/Condition.swift:52:15: error: cannot find 'pthread_cond_wait' in scope
50 |
51 | private func wait() {
52 | let res = pthread_cond_wait(condition, mutex)
| `- error: cannot find 'pthread_cond_wait' in scope
53 | assert(res == 0)
54 | }
BUILD FAILURE 6.0 linux