The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Phoenix with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/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/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.10
Building package at path:  $workDir
https://github.com/shareup/phoenix-apple.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/shareup/synchronized.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/shareup/async-extensions.git
Fetching https://github.com/shareup/json-apple.git
Fetching https://github.com/shareup/websocket-apple.git
Fetching https://github.com/shareup/dispatch-timer.git
[5/468] Fetching async-extensions
[469/576] Fetching async-extensions, json-apple
[577/681] Fetching async-extensions, json-apple, dispatch-timer
[681/1349] Fetching async-extensions, json-apple, dispatch-timer, websocket-apple
[1349/1554] Fetching async-extensions, json-apple, dispatch-timer, websocket-apple, synchronized
Fetched https://github.com/shareup/dispatch-timer.git from cache (0.27s)
Fetched https://github.com/shareup/json-apple.git from cache (0.28s)
Fetched https://github.com/shareup/websocket-apple.git from cache (0.28s)
[1/13746] Fetching swift-collections
Fetched https://github.com/shareup/synchronized.git from cache (1.17s)
Fetched https://github.com/shareup/async-extensions.git from cache (1.18s)
Fetched https://github.com/apple/swift-collections.git from cache (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.48s)
Computing version for https://github.com/shareup/synchronized.git
Computed https://github.com/shareup/synchronized.git at 4.0.1 (1.30s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.0.4 (0.50s)
Computing version for https://github.com/shareup/json-apple.git
Computed https://github.com/shareup/json-apple.git at 1.3.0 (0.45s)
Computing version for https://github.com/shareup/dispatch-timer.git
Computed https://github.com/shareup/dispatch-timer.git at 3.0.1 (0.49s)
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/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/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/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/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/json-apple.git
Working copy of https://github.com/shareup/json-apple.git resolved at 1.3.0
Building for debugging...
[0/10] Write sources
[9/10] Write swift-version-24593BA9C3E375BF.txt
[11/80] Emitting module OrderedCollections
[12/86] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[13/86] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Operations.swift
[14/86] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Predicates.swift
[15/86] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[16/86] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[17/86] Compiling OrderedCollections OrderedSet+SubSequence.swift
[18/86] Compiling OrderedCollections OrderedSet+Hashable.swift
[19/86] Compiling OrderedCollections OrderedSet+Initializers.swift
[20/86] Compiling OrderedCollections OrderedSet+Insertions.swift
[21/86] Compiling OrderedCollections OrderedSet+Invariants.swift
[22/86] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[23/86] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[24/86] Compiling OrderedCollections _Hashtable+Header.swift
[25/86] Compiling OrderedCollections OrderedDictionary+Codable.swift
[26/86] Compiling OrderedCollections OrderedDictionary+CustomDebugStringConvertible.swift
[27/86] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[28/86] Compiling OrderedCollections OrderedDictionary+CustomStringConvertible.swift
[29/86] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[30/86] Compiling OrderedCollections OrderedDictionary+Elements+SubSequence.swift
[31/86] Compiling OrderedCollections OrderedSet+CustomDebugStringConvertible.swift
[32/86] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[33/86] Compiling OrderedCollections OrderedSet+CustomStringConvertible.swift
[34/86] Compiling OrderedCollections OrderedSet+Diffing.swift
[35/86] Compiling OrderedCollections OrderedSet+Equatable.swift
[36/86] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[37/86] Emitting module DequeModule
[41/88] Compiling OrderedCollections _HashTable+Bucket.swift
[42/88] Compiling OrderedCollections _HashTable+BucketIterator.swift
[43/88] Compiling OrderedCollections _HashTable+Constants.swift
[44/88] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[45/88] Compiling OrderedCollections _HashTable+Testing.swift
[46/88] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[47/88] Compiling OrderedCollections _HashTable.swift
[48/88] Compiling OrderedCollections OrderedDictionary+Elements.swift
[49/88] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[50/88] Compiling OrderedCollections OrderedDictionary.swift
[51/88] Compiling OrderedCollections OrderedSet+Codable.swift
[52/88] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[53/88] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[56/88] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[63/88] Compiling DequeModule _DequeSlot.swift
[64/88] Compiling DequeModule _UnsafeWrappedBuffer.swift
[66/88] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[67/88] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[68/88] Compiling OrderedCollections OrderedDictionary+Values.swift
[77/89] Compiling OrderedCollections OrderedSet+Testing.swift
[78/89] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[79/89] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[80/89] Compiling OrderedCollections OrderedSet.swift
[81/89] Compiling OrderedCollections RandomAccessCollection+Offsets.swift
[82/89] Compiling OrderedCollections _UnsafeBitset.swift
[84/92] Compiling Collections Collections.swift
[85/92] Emitting module Collections
[87/93] 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)
                                ^~~~~~~~~~~
[88/93] 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(                 )
[89/93] Emitting module JSON
[90/93] 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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[91/93] 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>
                                               ^~~~~~~~~~~~~~
/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) }
                    ^~~~~~~~~~~~~~~~~~~~~
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/8] 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>
                                               ^~~~~~~~~~~~~~
[3/8] 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) }
                    ^~~~~~~~~~~~~~~~~~~~~
[4/8] 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(                 )
[5/8] 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)
            ^~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2