The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WebSocket 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/websocket-apple.git
Reference: v4.0.3
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/websocket-apple
 * tag               v4.0.3     -> FETCH_HEAD
HEAD is now at 32de0d7 Update Swift version and dependencies (#16)
Cloned https://github.com/shareup/websocket-apple.git
Revision (git rev-parse @):
32de0d7733ded57f1b052ab5dddf36708b0ab1dc
SUCCESS checkout https://github.com/shareup/websocket-apple.git at v4.0.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/shareup/websocket-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/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio-http2.git
[1/4792] Fetching swift-nio-extras
[1535/6856] Fetching swift-nio-extras, swift-nio-transport-services
[6857/17021] Fetching swift-nio-extras, swift-nio-transport-services, swift-nio-http2
[8789/30767] Fetching swift-nio-extras, swift-nio-transport-services, swift-nio-http2, swift-collections
[13176/42914] Fetching swift-nio-extras, swift-nio-transport-services, swift-nio-http2, swift-collections, swift-nio-ssl
[29554/107437] Fetching swift-nio-extras, swift-nio-transport-services, swift-nio-http2, swift-collections, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (1.11s)
[46688/105373] Fetching swift-nio-extras, swift-nio-http2, swift-collections, swift-nio-ssl, swift-nio
Fetching https://github.com/shareup/synchronized.git
[54401/105578] Fetching swift-nio-extras, swift-nio-http2, swift-collections, swift-nio-ssl, swift-nio, synchronized
Fetched https://github.com/apple/swift-nio-extras.git from cache (1.38s)
Fetching https://github.com/shareup/dispatch-timer.git
[50459/100786] Fetching swift-nio-http2, swift-collections, swift-nio-ssl, swift-nio, synchronized
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.40s)
Fetching https://github.com/apple/swift-atomics.git
Fetched https://github.com/apple/swift-collections.git from cache (1.42s)
Fetching https://github.com/apple/swift-http-types
[27193/76875] Fetching swift-nio-ssl, swift-nio, synchronized
Fetched https://github.com/shareup/synchronized.git from cache (0.31s)
Fetching https://github.com/vapor/websocket-kit.git
[27633/76670] Fetching swift-nio-ssl, swift-nio
[28279/76775] Fetching swift-nio-ssl, swift-nio, dispatch-timer
[28384/77129] Fetching swift-nio-ssl, swift-nio, dispatch-timer, swift-http-types
[28583/79540] Fetching swift-nio-ssl, swift-nio, dispatch-timer, swift-http-types, websocket-kit
Fetched https://github.com/shareup/dispatch-timer.git from cache (0.32s)
[29773/79435] Fetching swift-nio-ssl, swift-nio, swift-http-types, websocket-kit
Fetching https://github.com/shareup/async-extensions.git
[30667/80998] Fetching swift-nio-ssl, swift-nio, swift-http-types, websocket-kit, swift-atomics
Fetched https://github.com/apple/swift-http-types from cache (0.34s)
[31991/80644] Fetching swift-nio-ssl, swift-nio, websocket-kit, swift-atomics
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.77s)
[20454/68497] Fetching swift-nio, websocket-kit, swift-atomics
Fetched https://github.com/vapor/websocket-kit.git from cache (0.35s)
[18089/66086] Fetching swift-nio, swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.46s)
[18712/64523] Fetching swift-nio
[18713/64991] Fetching swift-nio, async-extensions
Fetched https://github.com/shareup/async-extensions.git from cache (0.25s)
[20648/64523] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (4.80s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.62.0 (1.50s)
Computing version for https://github.com/vapor/websocket-kit.git
Computed https://github.com/vapor/websocket-kit.git at 2.14.0 (0.49s)
Computing version for https://github.com/shareup/dispatch-timer.git
Computed https://github.com/shareup/dispatch-timer.git at 3.0.1 (0.47s)
Computing version for https://github.com/shareup/async-extensions.git
Computed https://github.com/shareup/async-extensions.git at 4.3.0 (0.42s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.0.5 (0.47s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.43s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.20.0 (0.48s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.25.0 (0.52s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.20.0 (0.57s)
Computing version for https://github.com/shareup/synchronized.git
Computed https://github.com/shareup/synchronized.git at 4.0.1 (0.46s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.0.2 (0.46s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.29.0 (0.50s)
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.20.0
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.20.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/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-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.0.2
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.5
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.29.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.25.0
Creating working copy for https://github.com/vapor/websocket-kit.git
Working copy of https://github.com/vapor/websocket-kit.git resolved at 2.14.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.62.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
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/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>
                                               ^~~~~~~~~~~~~~
[7/9] 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) }
                    ^~~~~~~~~~~~~~~~~~~~~
[8/9] 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/9] 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
[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/5] 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/5] 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)
            ^~~~~~~~~~~~~~~~~~~
[4/5] 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/5] 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) }
                    ^~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2