The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MiniFuture 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/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:             5.10
Building package at path:  $workDir
https://github.com/tkareine/MiniFuture.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/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
  private let mutex: UnsafeMutablePointer<pthread_mutex_t>
                                          ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:7:47: error: cannot find type 'pthread_cond_t' in scope
  private let condition: UnsafeMutablePointer<pthread_cond_t>
                                              ^~~~~~~~~~~~~~
[6/11] Compiling MiniFuture Future.swift
/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?
        fatalError("Tried to complete PromiseFuture with \(value.value), but " +
                                                           ^~~~~~~~~~~
/host/spi-builder-workspace/Source/Future.swift:222:66: note: use 'String(describing:)' to silence this warning
        fatalError("Tried to complete PromiseFuture with \(value.value), but " +
                                                           ~~~~~~^~~~~
                                                           String(describing:  )
/host/spi-builder-workspace/Source/Condition.swift:6:43: error: cannot find type 'pthread_mutex_t' in scope
  private let mutex: UnsafeMutablePointer<pthread_mutex_t>
                                          ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:7:47: error: cannot find type 'pthread_cond_t' in scope
  private let condition: UnsafeMutablePointer<pthread_cond_t>
                                              ^~~~~~~~~~~~~~
[7/11] Compiling MiniFuture Condition.swift
/host/spi-builder-workspace/Source/Condition.swift:6:43: error: cannot find type 'pthread_mutex_t' in scope
  private let mutex: UnsafeMutablePointer<pthread_mutex_t>
                                          ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:7:47: error: cannot find type 'pthread_cond_t' in scope
  private let condition: UnsafeMutablePointer<pthread_cond_t>
                                              ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:12:13: error: generic parameter 'Pointee' could not be inferred
    mutex = UnsafeMutablePointer.allocate(capacity: 1)
            ^
/host/spi-builder-workspace/Source/Condition.swift:12:13: note: explicitly specify the generic arguments to fix this issue
    mutex = UnsafeMutablePointer.allocate(capacity: 1)
            ^
                                <Any>
/host/spi-builder-workspace/Source/Condition.swift:13:20: error: cannot find 'pthread_mutex_init' in scope
    let mutexRes = pthread_mutex_init(mutex, nil)
                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:13:46: error: 'nil' requires a contextual type
    let mutexRes = pthread_mutex_init(mutex, nil)
                                             ^
/host/spi-builder-workspace/Source/Condition.swift:15:17: error: generic parameter 'Pointee' could not be inferred
    condition = UnsafeMutablePointer.allocate(capacity: 1)
                ^
/host/spi-builder-workspace/Source/Condition.swift:15:17: note: explicitly specify the generic arguments to fix this issue
    condition = UnsafeMutablePointer.allocate(capacity: 1)
                ^
                                    <Any>
/host/spi-builder-workspace/Source/Condition.swift:16:19: error: cannot find 'pthread_cond_init' in scope
    let condRes = pthread_cond_init(condition, nil)
                  ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:16:48: error: 'nil' requires a contextual type
    let condRes = pthread_cond_init(condition, nil)
                                               ^
/host/spi-builder-workspace/Source/Condition.swift:21:19: error: cannot find 'pthread_cond_destroy' in scope
    let condRes = pthread_cond_destroy(condition)
                  ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:24:20: error: cannot find 'pthread_mutex_destroy' in scope
    let mutexRes = pthread_mutex_destroy(mutex)
                   ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:37:15: error: cannot find 'pthread_cond_signal' in scope
    let res = pthread_cond_signal(condition)
              ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:42:15: error: cannot find 'pthread_mutex_lock' in scope
    let res = pthread_mutex_lock(mutex)
              ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:47:15: error: cannot find 'pthread_mutex_unlock' in scope
    let res = pthread_mutex_unlock(mutex)
              ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:52:15: error: cannot find 'pthread_cond_wait' in scope
    let res = pthread_cond_wait(condition, mutex)
              ^~~~~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/8] Emitting module MiniFuture
/host/spi-builder-workspace/Source/Condition.swift:6:43: error: cannot find type 'pthread_mutex_t' in scope
  private let mutex: UnsafeMutablePointer<pthread_mutex_t>
                                          ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:7:47: error: cannot find type 'pthread_cond_t' in scope
  private let condition: UnsafeMutablePointer<pthread_cond_t>
                                              ^~~~~~~~~~~~~~
[3/8] Compiling MiniFuture Future.swift
/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?
        fatalError("Tried to complete PromiseFuture with \(value.value), but " +
                                                           ^~~~~~~~~~~
/host/spi-builder-workspace/Source/Future.swift:222:66: note: use 'String(describing:)' to silence this warning
        fatalError("Tried to complete PromiseFuture with \(value.value), but " +
                                                           ~~~~~~^~~~~
                                                           String(describing:  )
/host/spi-builder-workspace/Source/Condition.swift:6:43: error: cannot find type 'pthread_mutex_t' in scope
  private let mutex: UnsafeMutablePointer<pthread_mutex_t>
                                          ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:7:47: error: cannot find type 'pthread_cond_t' in scope
  private let condition: UnsafeMutablePointer<pthread_cond_t>
                                              ^~~~~~~~~~~~~~
[4/8] Compiling MiniFuture Condition.swift
/host/spi-builder-workspace/Source/Condition.swift:6:43: error: cannot find type 'pthread_mutex_t' in scope
  private let mutex: UnsafeMutablePointer<pthread_mutex_t>
                                          ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:7:47: error: cannot find type 'pthread_cond_t' in scope
  private let condition: UnsafeMutablePointer<pthread_cond_t>
                                              ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:12:13: error: generic parameter 'Pointee' could not be inferred
    mutex = UnsafeMutablePointer.allocate(capacity: 1)
            ^
/host/spi-builder-workspace/Source/Condition.swift:12:13: note: explicitly specify the generic arguments to fix this issue
    mutex = UnsafeMutablePointer.allocate(capacity: 1)
            ^
                                <Any>
/host/spi-builder-workspace/Source/Condition.swift:13:20: error: cannot find 'pthread_mutex_init' in scope
    let mutexRes = pthread_mutex_init(mutex, nil)
                   ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:13:46: error: 'nil' requires a contextual type
    let mutexRes = pthread_mutex_init(mutex, nil)
                                             ^
/host/spi-builder-workspace/Source/Condition.swift:15:17: error: generic parameter 'Pointee' could not be inferred
    condition = UnsafeMutablePointer.allocate(capacity: 1)
                ^
/host/spi-builder-workspace/Source/Condition.swift:15:17: note: explicitly specify the generic arguments to fix this issue
    condition = UnsafeMutablePointer.allocate(capacity: 1)
                ^
                                    <Any>
/host/spi-builder-workspace/Source/Condition.swift:16:19: error: cannot find 'pthread_cond_init' in scope
    let condRes = pthread_cond_init(condition, nil)
                  ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:16:48: error: 'nil' requires a contextual type
    let condRes = pthread_cond_init(condition, nil)
                                               ^
/host/spi-builder-workspace/Source/Condition.swift:21:19: error: cannot find 'pthread_cond_destroy' in scope
    let condRes = pthread_cond_destroy(condition)
                  ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:24:20: error: cannot find 'pthread_mutex_destroy' in scope
    let mutexRes = pthread_mutex_destroy(mutex)
                   ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:37:15: error: cannot find 'pthread_cond_signal' in scope
    let res = pthread_cond_signal(condition)
              ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:42:15: error: cannot find 'pthread_mutex_lock' in scope
    let res = pthread_mutex_lock(mutex)
              ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:47:15: error: cannot find 'pthread_mutex_unlock' in scope
    let res = pthread_mutex_unlock(mutex)
              ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Source/Condition.swift:52:15: error: cannot find 'pthread_cond_wait' in scope
    let res = pthread_cond_wait(condition, mutex)
              ^~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2