The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Phoenix with Swift 5.9 for Linux.

Build Command

Build command unavailable

Build Log

========================================
RunAll
========================================
Builder version: 4.27.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shareup/phoenix-apple.git
Reference: v9.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/shareup/phoenix-apple
 * tag               v9.1.0     -> FETCH_HEAD
HEAD is now at 0e7be7b Introduction of isConnected Publisher (#47)
Cloned https://github.com/shareup/phoenix-apple.git
Revision (git rev-parse @):
0e7be7b0d4d2d748507a6338a8eb0d3d631468a3
SUCCESS checkout https://github.com/shareup/phoenix-apple.git at v9.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/shareup/dispatch-timer.git
Fetching https://github.com/shareup/async-extensions.git
[1/468] Fetching async-extensions
[469/573] Fetching async-extensions, dispatch-timer
[574/13007] Fetching async-extensions, dispatch-timer, swift-collections
Fetching https://github.com/shareup/json-apple.git
Fetched https://github.com/shareup/async-extensions.git (0.92s)
Fetched https://github.com/shareup/dispatch-timer.git (0.92s)
Fetching https://github.com/shareup/synchronized.git
Fetched https://github.com/apple/swift-collections.git (0.94s)
Fetching https://github.com/shareup/websocket-apple.git
[1/205] Fetching synchronized
[206/306] Fetching synchronized, json-apple
[307/974] Fetching synchronized, json-apple, websocket-apple
Fetched https://github.com/shareup/synchronized.git (0.26s)
Fetched https://github.com/shareup/json-apple.git (0.26s)
Fetched https://github.com/shareup/websocket-apple.git (0.25s)
Computing version for https://github.com/shareup/websocket-apple.git
Computed https://github.com/shareup/websocket-apple.git at 4.0.3 (0.30s)
Computing version for https://github.com/shareup/synchronized.git
Computed https://github.com/shareup/synchronized.git at 4.0.1 (1.14s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.0.4 (0.38s)
Computing version for https://github.com/shareup/json-apple.git
Computed https://github.com/shareup/json-apple.git at 1.3.0 (0.33s)
Computing version for https://github.com/shareup/dispatch-timer.git
Computed https://github.com/shareup/dispatch-timer.git at 3.0.1 (0.36s)
Computing version for https://github.com/shareup/async-extensions.git
Computed https://github.com/shareup/async-extensions.git at 4.3.0 (0.43s)
Creating working copy for https://github.com/shareup/synchronized.git
Working copy of https://github.com/shareup/synchronized.git resolved at 4.0.1
Creating working copy for https://github.com/shareup/websocket-apple.git
Working copy of https://github.com/shareup/websocket-apple.git resolved at 4.0.3
Creating working copy for https://github.com/shareup/async-extensions.git
Working copy of https://github.com/shareup/async-extensions.git resolved at 4.3.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.0.4
Creating working copy for https://github.com/shareup/dispatch-timer.git
Working copy of https://github.com/shareup/dispatch-timer.git resolved at 3.0.1
Creating working copy for https://github.com/shareup/json-apple.git
Working copy of https://github.com/shareup/json-apple.git resolved at 1.3.0
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/70] Emitting module Synchronized
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:4:47: error: cannot find type 'os_unfair_lock' in scope
    private var backing: UnsafeMutablePointer<os_unfair_lock>
                                              ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:4:54: error: cannot find type 'os_unfair_lock' in scope
    private final class Lock: ManagedBuffer<Element, os_unfair_lock> {
                                                     ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:12:48: error: cannot find type 'os_unfair_lock' in scope
    private let buffer: ManagedBuffer<Element, os_unfair_lock>
                                               ^~~~~~~~~~~~~~
[2/70] Emitting module JSON
[3/70] Compiling OrderedCollections OrderedSet+Hashable.swift
[4/70] Compiling OrderedCollections OrderedSet+Initializers.swift
[5/70] Compiling OrderedCollections OrderedSet+Insertions.swift
[6/70] Compiling OrderedCollections OrderedSet+Invariants.swift
[7/70] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[8/70] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[9/76] Compiling OrderedCollections OrderedSet+CustomDebugStringConvertible.swift
[10/76] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[11/76] Compiling OrderedCollections OrderedSet+CustomStringConvertible.swift
[12/76] Compiling OrderedCollections OrderedSet+Diffing.swift
[13/76] Compiling OrderedCollections OrderedSet+Equatable.swift
[14/76] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[15/76] Compiling OrderedCollections _Hashtable+Header.swift
[16/76] Compiling OrderedCollections OrderedDictionary+Codable.swift
[17/76] Compiling OrderedCollections OrderedDictionary+CustomDebugStringConvertible.swift
[18/76] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[19/76] Compiling OrderedCollections OrderedDictionary+CustomStringConvertible.swift
[20/76] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[21/76] Compiling OrderedCollections OrderedDictionary+Elements+SubSequence.swift
[23/76] Compiling OrderedCollections OrderedDictionary+Elements.swift
[26/76] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[27/76] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[31/76] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[32/76] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[33/76] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[34/76] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[35/76] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[36/76] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[37/76] Compiling OrderedCollections OrderedDictionary+Values.swift
[38/76] Compiling OrderedCollections OrderedDictionary.swift
[39/76] Compiling OrderedCollections OrderedSet+Codable.swift
[40/76] Compiling OrderedCollections _HashTable+Bucket.swift
[41/76] Compiling OrderedCollections _HashTable+BucketIterator.swift
[42/76] Compiling OrderedCollections _HashTable+Constants.swift
[43/78] Emitting module OrderedCollections
[47/78] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[48/78] Compiling OrderedCollections _HashTable+Testing.swift
[49/78] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[50/78] Compiling OrderedCollections _HashTable.swift
[51/78] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[52/78] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Operations.swift
[53/78] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Predicates.swift
[54/78] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[55/78] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[56/78] Compiling OrderedCollections OrderedSet+SubSequence.swift
[65/78] Emitting module DequeModule
[66/78] Compiling DequeModule _DequeSlot.swift
[67/78] Compiling DequeModule _UnsafeWrappedBuffer.swift
[70/80] Compiling OrderedCollections OrderedSet+Testing.swift
[71/80] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[72/80] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[73/80] Compiling OrderedCollections OrderedSet.swift
[74/80] Compiling OrderedCollections RandomAccessCollection+Offsets.swift
[75/80] Compiling OrderedCollections _UnsafeBitset.swift
[78/84] Compiling JSON JSON.swift
/host/spi-builder-workspace/.build/checkouts/json-apple/Sources/JSON/JSON.swift:595:9: error: cannot find 'CFBooleanGetTypeID' in scope
        CFBooleanGetTypeID() == CFGetTypeID(self)
        ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/json-apple/Sources/JSON/JSON.swift:595:33: error: cannot find 'CFGetTypeID' in scope
        CFBooleanGetTypeID() == CFGetTypeID(self)
                                ^~~~~~~~~~~
[79/84] Compiling JSON Dictionary+JSON.swift
/host/spi-builder-workspace/.build/checkouts/json-apple/Sources/JSON/Dictionary+JSON.swift:73:9: error: cannot find 'CFBooleanGetTypeID' in scope
        CFBooleanGetTypeID() == CFGetTypeID(self)
        ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/json-apple/Sources/JSON/Dictionary+JSON.swift:73:33: error: cannot find 'CFGetTypeID' in scope
        CFBooleanGetTypeID() == CFGetTypeID(self)
                                ^~~~~~~~~~~
error: fatalError
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:14:54: error: cannot convert value of type 'Int' to expected argument type 'Int32'
        guard pthread_mutexattr_settype(&attributes, PTHREAD_MUTEX_RECURSIVE) == 0
                                                     ^
                                                     Int32(                 )
[0/1] Planning build
Building for debugging...
[1/9] Emitting module Collections
[2/9] Compiling Collections Collections.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/10] Emitting module Synchronized
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:4:47: error: cannot find type 'os_unfair_lock' in scope
    private var backing: UnsafeMutablePointer<os_unfair_lock>
                                              ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:4:54: error: cannot find type 'os_unfair_lock' in scope
    private final class Lock: ManagedBuffer<Element, os_unfair_lock> {
                                                     ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:12:48: error: cannot find type 'os_unfair_lock' in scope
    private let buffer: ManagedBuffer<Element, os_unfair_lock>
                                               ^~~~~~~~~~~~~~
[4/10] Compiling Synchronized Locked.swift
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:4:54: error: cannot find type 'os_unfair_lock' in scope
    private final class Lock: ManagedBuffer<Element, os_unfair_lock> {
                                                     ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:12:48: error: cannot find type 'os_unfair_lock' in scope
    private let buffer: ManagedBuffer<Element, os_unfair_lock>
                                               ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:6:13: error: type of expression is ambiguous without a type annotation
            withUnsafeMutablePointerToElements { lock in
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:17:35: error: cannot find 'os_unfair_lock' in scope
                $0.initialize(to: os_unfair_lock())
                                  ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:15:16: error: type of expression is ambiguous without a type annotation
        buffer = Lock.create(minimumCapacity: 1) { buffer in
        ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:25:13: error: cannot find 'os_unfair_lock_lock' in scope
            os_unfair_lock_lock(lock)
            ^~~~~~~~~~~~~~~~~~~
[5/10] Compiling Synchronized Lock.swift
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:4:47: error: cannot find type 'os_unfair_lock' in scope
    private var backing: UnsafeMutablePointer<os_unfair_lock>
                                              ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:7:40: error: cannot find type 'os_unfair_lock' in scope
        backing = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
                                       ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:8:32: error: cannot find 'os_unfair_lock' in scope
        backing.initialize(to: os_unfair_lock())
                               ^~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:18:9: error: cannot find 'os_unfair_lock_lock' in scope
        os_unfair_lock_lock(backing)
        ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:19:17: error: cannot find 'os_unfair_lock_unlock' in scope
        defer { os_unfair_lock_unlock(backing) }
                ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:25:12: error: cannot find 'os_unfair_lock_trylock' in scope
        if os_unfair_lock_trylock(backing) {
           ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:26:21: error: cannot find 'os_unfair_lock_unlock' in scope
            defer { os_unfair_lock_unlock(backing) }
                    ^~~~~~~~~~~~~~~~~~~~~
[6/10] Compiling Synchronized RecursiveLock.swift
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:14:54: error: cannot convert value of type 'Int' to expected argument type 'Int32'
        guard pthread_mutexattr_settype(&attributes, PTHREAD_MUTEX_RECURSIVE) == 0
                                                     ^
                                                     Int32(                 )
[9/11] Emitting module JSON
[10/11] Compiling JSON JSON.swift
/host/spi-builder-workspace/.build/checkouts/json-apple/Sources/JSON/JSON.swift:595:9: error: cannot find 'CFBooleanGetTypeID' in scope
        CFBooleanGetTypeID() == CFGetTypeID(self)
        ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/json-apple/Sources/JSON/JSON.swift:595:33: error: cannot find 'CFGetTypeID' in scope
        CFBooleanGetTypeID() == CFGetTypeID(self)
                                ^~~~~~~~~~~
[11/11] Compiling JSON Dictionary+JSON.swift
/host/spi-builder-workspace/.build/checkouts/json-apple/Sources/JSON/Dictionary+JSON.swift:73:9: error: cannot find 'CFBooleanGetTypeID' in scope
        CFBooleanGetTypeID() == CFGetTypeID(self)
        ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/json-apple/Sources/JSON/Dictionary+JSON.swift:73:33: error: cannot find 'CFGetTypeID' in scope
        CFBooleanGetTypeID() == CFGetTypeID(self)
                                ^~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1