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-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/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.10
Building package at path:  $workDir
https://github.com/shareup/phoenix-apple.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
Fetching https://github.com/shareup/websocket-apple.git
Fetching https://github.com/shareup/synchronized.git
Fetching https://github.com/shareup/dispatch-timer.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/shareup/json-apple.git
Fetching https://github.com/shareup/async-extensions.git
[1/205] Fetching synchronized
[206/873] Fetching synchronized, websocket-apple
[874/978] Fetching synchronized, websocket-apple, dispatch-timer
[886/1086] Fetching synchronized, websocket-apple, dispatch-timer, json-apple
[1087/1554] Fetching synchronized, websocket-apple, dispatch-timer, json-apple, async-extensions
Fetched https://github.com/shareup/synchronized.git from cache (0.28s)
Fetched https://github.com/shareup/async-extensions.git from cache (0.30s)
[1/13746] Fetching swift-collections
Fetched https://github.com/shareup/dispatch-timer.git from cache (1.15s)
Fetched https://github.com/shareup/json-apple.git from cache (1.15s)
Fetched https://github.com/shareup/websocket-apple.git from cache (1.15s)
Fetched https://github.com/apple/swift-collections.git from cache (1.18s)
Computing version for https://github.com/shareup/websocket-apple.git
Computed https://github.com/shareup/websocket-apple.git at 4.0.3 (0.42s)
Computing version for https://github.com/shareup/synchronized.git
Computed https://github.com/shareup/synchronized.git at 4.0.1 (1.31s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.0.4 (0.47s)
Computing version for https://github.com/shareup/json-apple.git
Computed https://github.com/shareup/json-apple.git at 1.3.0 (0.54s)
Computing version for https://github.com/shareup/dispatch-timer.git
Computed https://github.com/shareup/dispatch-timer.git at 3.0.1 (0.60s)
Computing version for https://github.com/shareup/async-extensions.git
Computed https://github.com/shareup/async-extensions.git at 4.3.0 (0.49s)
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/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/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/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/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/synchronized.git
Working copy of https://github.com/shareup/synchronized.git resolved at 4.0.1
Building for debugging...
[0/10] Write sources
[9/10] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/80] 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>
                                               ^~~~~~~~~~~~~~
[12/80] Compiling DequeModule Deque+CustomDebugStringConvertible.swift
[13/80] Compiling DequeModule Deque+CustomReflectable.swift
[14/80] Compiling DequeModule Deque+CustomStringConvertible.swift
[18/80] Compiling DequeModule Compatibility.swift
[19/80] Compiling DequeModule Deque+Codable.swift
[20/80] Compiling DequeModule Deque+Collection.swift
[21/80] Compiling DequeModule Deque+Hashable.swift
[23/88] Compiling DequeModule Deque+Testing.swift
[24/88] Emitting module OrderedCollections
[26/88] Compiling DequeModule Deque+Equatable.swift
[27/88] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[28/88] Compiling DequeModule Deque+Extras.swift
[29/88] Compiling DequeModule Deque._Storage.swift
[30/88] Compiling DequeModule Deque._UnsafeHandle.swift
[31/88] Compiling DequeModule Deque.swift
[32/88] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[33/88] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[34/88] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[35/88] Compiling OrderedCollections OrderedDictionary+Values.swift
[36/88] Compiling OrderedCollections OrderedDictionary.swift
[37/88] Compiling OrderedCollections OrderedSet+Codable.swift
[39/88] Compiling DequeModule UnsafeMutableBufferPointer+Utilities.swift
[40/88] Compiling DequeModule _DequeBuffer.swift
[41/88] Compiling DequeModule _DequeBufferHeader.swift
[45/88] Emitting module DequeModule
[49/88] Compiling DequeModule _DequeSlot.swift
[50/88] Compiling DequeModule _UnsafeWrappedBuffer.swift
[51/88] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[52/88] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[53/88] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Operations.swift
[54/88] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Predicates.swift
[55/88] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[56/88] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[57/88] Compiling OrderedCollections OrderedSet+SubSequence.swift
[58/88] Compiling OrderedCollections OrderedSet+Hashable.swift
[59/88] Compiling OrderedCollections OrderedSet+Initializers.swift
[60/88] Compiling OrderedCollections OrderedSet+Insertions.swift
[61/88] Compiling OrderedCollections OrderedSet+Invariants.swift
[62/88] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[63/88] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[64/88] Compiling OrderedCollections OrderedSet+CustomDebugStringConvertible.swift
[65/88] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[66/88] Compiling OrderedCollections OrderedSet+CustomStringConvertible.swift
[67/88] Compiling OrderedCollections OrderedSet+Diffing.swift
[68/88] Compiling OrderedCollections OrderedSet+Equatable.swift
[69/88] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[78/89] Compiling OrderedCollections OrderedSet+Testing.swift
[79/89] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[80/89] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[81/89] Compiling OrderedCollections OrderedSet.swift
[82/89] Compiling OrderedCollections RandomAccessCollection+Offsets.swift
[83/89] Compiling OrderedCollections _UnsafeBitset.swift
[85/90] Emitting module JSON
[86/90] 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)
                                ^~~~~~~~~~~
[87/90] 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/90] 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) }
                    ^~~~~~~~~~~~~~~~~~~~~
[89/90] 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(                 )
[90/90] 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)
            ^~~~~~~~~~~~~~~~~~~
[91/92] Compiling Collections Collections.swift
[92/92] Emitting module Collections
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Emitting module Collections
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/9] 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>
                                               ^~~~~~~~~~~~~~
[5/10] 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)
                                ^~~~~~~~~~~
[6/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) }
                    ^~~~~~~~~~~~~~~~~~~~~
[7/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(                 )
[8/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)
            ^~~~~~~~~~~~~~~~~~~
[9/10] Emitting module JSON
[10/10] 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)
                                ^~~~~~~~~~~
error: fatalError
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2