The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SKServer with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-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/pvzig/SKServer.git
Reference: 4.1.2
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/pvzig/SKServer
 * tag               4.1.2      -> FETCH_HEAD
HEAD is now at ee058e1 Merge pull request #5 from MrLotU/patch-1
Cloned https://github.com/pvzig/SKServer.git
Revision (git rev-parse @):
ee058e13e7bc0ef76b7f9abfd8182e806eb158b9
SUCCESS checkout https://github.com/pvzig/SKServer.git at 4.1.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/pvzig/SKServer.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/httpswift/swifter.git
Fetching https://github.com/SlackKit/SKCore
Fetching https://github.com/SlackKit/SKWebAPI
[1/288] Fetching skcore
[289/582] Fetching skcore, skwebapi
[583/6573] Fetching skcore, skwebapi, swifter
Fetched https://github.com/SlackKit/SKWebAPI from cache (0.24s)
[1127/6279] Fetching skcore, swifter
Fetched https://github.com/SlackKit/SKCore from cache (0.67s)
Fetched https://github.com/httpswift/swifter.git from cache (0.69s)
Computing version for https://github.com/SlackKit/SKWebAPI
Computed https://github.com/SlackKit/SKWebAPI at 4.1.3 (0.64s)
Computing version for https://github.com/SlackKit/SKCore
Computed https://github.com/SlackKit/SKCore at 4.1.3 (0.70s)
Computing version for https://github.com/httpswift/swifter.git
Computed https://github.com/httpswift/swifter.git at 1.4.7 (1.80s)
Creating working copy for https://github.com/SlackKit/SKWebAPI
Working copy of https://github.com/SlackKit/SKWebAPI resolved at 4.1.3
Creating working copy for https://github.com/httpswift/swifter.git
Working copy of https://github.com/httpswift/swifter.git resolved at 1.4.7
Creating working copy for https://github.com/SlackKit/SKCore
Working copy of https://github.com/SlackKit/SKCore resolved at 4.1.3
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/49] Emitting module Swifter
[7/51] Emitting module SKCore
[8/54] Compiling SKCore Topic.swift
[9/54] Compiling SKCore User.swift
[10/54] Compiling SKCore UserGroup.swift
[11/54] Compiling Swifter Process.swift
[12/54] Compiling Swifter Scopes.swift
[13/54] Compiling Swifter String+File.swift
[14/54] Compiling Swifter String+Misc.swift
[15/54] Compiling Swifter String+SHA1.swift
[16/54] Compiling Swifter WebSockets.swift
[17/54] Compiling SKCore Channel.swift
[18/54] Compiling SKCore Comment.swift
[19/54] Compiling SKCore CustomProfile.swift
[20/54] Compiling SKCore CustomProfileField.swift
[21/54] Compiling Swifter HttpParser.swift
[22/54] Compiling Swifter HttpRequest.swift
[23/54] Compiling Swifter HttpResponse.swift
[26/54] Compiling SKCore File.swift
[27/54] Compiling SKCore History.swift
[28/54] Compiling SKCore Item.swift
[29/54] Compiling SKCore DoNotDisturbStatus.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+File.swift:24:60: error: generic parameter 'Element' could not be inferred
                    let writeResult = send(target, &buffer + writeCounter, readResult - writeCounter, Int32(MSG_NOSIGNAL))
                                                           ^
[30/54] Compiling SKCore Edited.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+File.swift:24:60: error: generic parameter 'Element' could not be inferred
                    let writeResult = send(target, &buffer + writeCounter, readResult - writeCounter, Int32(MSG_NOSIGNAL))
                                                           ^
[31/54] Compiling Swifter HttpRouter.swift
[32/54] Compiling SKCore OAuthConfig.swift
[33/54] Compiling SKCore RTMOptions.swift
[34/54] Compiling Swifter MimeTypes.swift
[37/54] Compiling SKCore Event.swift
[38/54] Compiling SKCore Extensions.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling SKCore RTMOptions.swift
[3/12] Compiling SKCore Extensions.swift
[4/18] Compiling SKCore OAuthConfig.swift
[5/21] Compiling Swifter Socket+Server.swift
[6/21] Compiling Swifter Socket+File.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+File.swift:24:60: error: generic parameter 'Element' could not be inferred
                    let writeResult = send(target, &buffer + writeCounter, readResult - writeCounter, Int32(MSG_NOSIGNAL))
                                                           ^
[7/26] Compiling SKCore Message.swift
[8/30] Emitting module Swifter
[9/30] Compiling SKCore Edited.swift
[10/30] Compiling SKCore Event.swift
[11/30] Compiling SKCore DoNotDisturbStatus.swift
[12/36] Emitting module SKCore
[13/38] Compiling SKCore Bot.swift
[14/38] Compiling SKCore Channel.swift
[15/38] Compiling SKCore Comment.swift
[16/38] Compiling Swifter HttpParser.swift
[17/38] Compiling SKCore TeamIcon.swift
[18/38] Compiling SKCore Topic.swift
[19/38] Compiling SKCore Action.swift
[20/38] Compiling SKCore Attachment.swift
[21/38] Compiling SKCore AttachmentField.swift
[22/38] Compiling SKCore CustomProfile.swift
[23/38] Compiling SKCore CustomProfileField.swift
[24/38] Compiling SKCore File.swift
[25/38] Compiling Swifter DemoServer.swift
[26/38] Compiling SKCore Reply.swift
[27/38] Compiling SKCore Scope.swift
[28/38] Compiling SKCore SlackError.swift
[29/38] Compiling SKCore Team.swift
[30/38] Compiling Swifter HttpServerIO.swift
[31/38] Compiling Swifter HttpServer.swift
[32/38] Compiling Swifter Socket.swift
[33/38] Compiling SKCore History.swift
[34/38] Compiling SKCore Item.swift
[35/38] Compiling SKCore Reaction.swift
[36/38] Compiling SKCore User.swift
[37/38] Compiling SKCore UserGroup.swift
[39/43] Compiling Swifter WebSockets.swift
error: fatalError
error: emit-module command failed with exit code 1 (use -v to see invocation)
[40/43] Compiling SKWebAPI Endpoint.swift
[41/43] Emitting module SKWebAPI
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let session = URLSession(configuration: .default)
                          ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
    private let session = URLSession(configuration: .default)
                                                    ~^~~~~~~
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:133:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
                                                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let session = URLSession(configuration: .default)
                          ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
    private let session = URLSession(configuration: .default)
                                                    ~^~~~~~~
BUILD FAILURE 5.10 linux

Build Machine: Linux 1