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: 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/shareup/phoenix-apple
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/shareup/json-apple.git
Fetching https://github.com/shareup/dispatch-timer.git
Fetching https://github.com/shareup/synchronized.git
[1/105] Fetching dispatch-timer
[106/206] Fetching dispatch-timer, json-apple
[207/411] Fetching dispatch-timer, json-apple, synchronized
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/shareup/async-extensions.git
Fetched https://github.com/shareup/json-apple.git (0.25s)
Fetched https://github.com/shareup/dispatch-timer.git (0.25s)
Fetched https://github.com/shareup/synchronized.git (0.25s)
Fetching https://github.com/shareup/websocket-apple.git
[1/668] Fetching websocket-apple
[669/1136] Fetching websocket-apple, async-extensions
[1137/13570] Fetching websocket-apple, async-extensions, swift-collections
Fetched https://github.com/shareup/websocket-apple.git (0.65s)
[10664/12902] Fetching async-extensions, swift-collections
Fetched https://github.com/shareup/async-extensions.git (1.17s)
Fetched https://github.com/apple/swift-collections.git (1.20s)
Computing version for https://github.com/shareup/websocket-apple.git
Computed https://github.com/shareup/websocket-apple.git at 4.0.3 (0.29s)
Computing version for https://github.com/shareup/synchronized.git
Computed https://github.com/shareup/synchronized.git at 4.0.1 (1.00s)
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.39s)
Computing version for https://github.com/shareup/dispatch-timer.git
Computed https://github.com/shareup/dispatch-timer.git at 3.0.1 (0.35s)
Computing version for https://github.com/shareup/async-extensions.git
Computed https://github.com/shareup/async-extensions.git at 4.3.0 (0.31s)
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/shareup/json-apple.git
Working copy of https://github.com/shareup/json-apple.git resolved at 1.3.0
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/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
Building for debugging...
[1/70] Emitting module DequeModule
[2/70] Compiling OrderedCollections _Hashtable+Header.swift
[3/70] Compiling OrderedCollections OrderedDictionary+Codable.swift
[4/70] Compiling OrderedCollections OrderedDictionary+CustomDebugStringConvertible.swift
[5/72] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[6/72] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Operations.swift
[7/72] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Predicates.swift
[8/72] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[9/72] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[10/72] Compiling OrderedCollections OrderedSet+SubSequence.swift
[11/72] Compiling OrderedCollections OrderedSet+Hashable.swift
[12/72] Compiling OrderedCollections OrderedSet+Initializers.swift
[13/72] Compiling OrderedCollections OrderedSet+Insertions.swift
[14/72] Compiling OrderedCollections OrderedSet+Invariants.swift
[15/72] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[16/72] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[20/72] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[21/72] Compiling OrderedCollections OrderedDictionary+CustomStringConvertible.swift
[22/72] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[23/72] Compiling OrderedCollections OrderedDictionary+Elements+SubSequence.swift
[24/72] Emitting module OrderedCollections
[29/78] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[30/78] Compiling OrderedCollections OrderedDictionary.swift
[31/78] Compiling OrderedCollections OrderedSet+Codable.swift
[32/78] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[33/78] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[34/78] Compiling OrderedCollections OrderedDictionary+Values.swift
[35/78] Compiling OrderedCollections OrderedSet+CustomDebugStringConvertible.swift
[36/78] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[37/78] Compiling OrderedCollections OrderedSet+CustomStringConvertible.swift
[38/78] Compiling OrderedCollections OrderedSet+Diffing.swift
[45/78] Compiling OrderedCollections OrderedDictionary+Elements.swift
[46/78] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[47/78] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[48/78] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[49/78] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[50/78] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[51/78] Compiling OrderedCollections _HashTable+Bucket.swift
[52/78] Compiling OrderedCollections _HashTable+BucketIterator.swift
[53/78] Compiling OrderedCollections _HashTable+Constants.swift
[54/78] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[55/78] Compiling OrderedCollections _HashTable+Testing.swift
[56/78] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[57/78] Compiling OrderedCollections _HashTable.swift
[62/78] Compiling DequeModule _DequeSlot.swift
[63/78] Compiling DequeModule _UnsafeWrappedBuffer.swift
[68/80] Compiling OrderedCollections OrderedSet+Testing.swift
[69/80] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[70/80] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[71/80] Compiling OrderedCollections OrderedSet.swift
[72/80] Compiling OrderedCollections RandomAccessCollection+Offsets.swift
[73/80] Compiling OrderedCollections _UnsafeBitset.swift
[76/82] 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)
                                ^~~~~~~~~~~
[77/82] 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)
                                ^~~~~~~~~~~
[78/82] Emitting module JSON
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] Compiling Collections Collections.swift
[2/9] Emitting module Collections
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(                 )
error: fatalError
[9/11] Emitting module JSON
/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)
                                ^~~~~~~~~~~
BUILD FAILURE 5.9 linux

Build Machine: Linux 1