The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SKServer with Swift 5.8 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pvzig/SKServer.git
Reference: 4.1.2
Cloned https://github.com/pvzig/SKServer.git into spi-builder-workspace
SUCCESS checkout https://github.com/pvzig/SKServer.git at 4.1.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-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
[266/582] Fetching skcore, skwebapi
[560/6541] Fetching skcore, skwebapi, swifter
Fetched https://github.com/SlackKit/SKCore (0.77s)
Fetched https://github.com/SlackKit/SKWebAPI (0.77s)
Fetched https://github.com/httpswift/swifter.git (0.79s)
Computing version for https://github.com/SlackKit/SKWebAPI
Computed https://github.com/SlackKit/SKWebAPI at 4.1.3 (0.29s)
Computing version for https://github.com/SlackKit/SKCore
Computed https://github.com/SlackKit/SKCore at 4.1.3 (0.30s)
Computing version for https://github.com/httpswift/swifter.git
Computed https://github.com/httpswift/swifter.git at 1.4.7 (1.15s)
Creating working copy for https://github.com/SlackKit/SKCore
Working copy of https://github.com/SlackKit/SKCore resolved at 4.1.3
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
Building for debugging...
[1/44] Compiling SKCore Action.swift
[2/44] Compiling SKCore Attachment.swift
[3/44] Compiling SKCore AttachmentField.swift
[4/44] Compiling SKCore Bot.swift
[5/44] Emitting module SKCore
[6/47] Compiling SKCore Reaction.swift
[7/47] Compiling SKCore Reply.swift
[8/47] Compiling SKCore Scope.swift
[9/47] Compiling SKCore SlackError.swift
[10/47] Compiling SKCore Team.swift
[11/47] Compiling SKCore TeamIcon.swift
[12/47] Compiling SKCore Topic.swift
[13/47] Compiling SKCore User.swift
[14/47] Compiling SKCore UserGroup.swift
[15/47] Compiling SKCore Message.swift
[16/47] Compiling SKCore OAuthConfig.swift
[17/47] Compiling SKCore RTMOptions.swift
[18/47] Compiling SKCore History.swift
[19/47] Compiling SKCore Item.swift
[20/47] Emitting module Swifter
[25/49] Compiling SKCore Channel.swift
[26/49] Compiling SKCore Comment.swift
[27/49] Compiling SKCore DoNotDisturbStatus.swift
[28/49] Compiling SKCore Edited.swift
[29/49] Compiling SKCore Event.swift
[30/49] Compiling SKCore Extensions.swift
[33/49] Compiling SKCore CustomProfile.swift
[34/49] Compiling SKCore CustomProfileField.swift
[35/49] Compiling SKCore 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))
                                                           ^
/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))
                                                           ^
[50/51] Compiling Swifter String+SHA1.swift
[51/51] Compiling Swifter WebSockets.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[52/55] Compiling SKWebAPI Endpoint.swift
[53/55] 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.8 linux

Build Machine: Linux 2