The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MiniFuture with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tkareine/MiniFuture.git
Reference: master
Cloned https://github.com/tkareine/MiniFuture.git into spi-builder-workspace
SUCCESS checkout https://github.com/tkareine/MiniFuture.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/7] Compiling MiniFuture Try.swift
[2/7] 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/7] 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/7] 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.9 linux

Build Machine: Linux 2