Build Information
Failed to build SKServer with Swift 5.9 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.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pvzig/SKServer.git
Reference: master
Cloned https://github.com/pvzig/SKServer.git into spi-builder-workspace
SUCCESS checkout https://github.com/pvzig/SKServer.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
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.9-latest swift build 2>&1
Fetching https://github.com/httpswift/swifter.git
Fetching https://github.com/pvzig/SKWebAPI
Fetching https://github.com/pvzig/SKCore
[1/288] Fetching skcore
[289/6247] Fetching skcore, swifter
[1839/6541] Fetching skcore, swifter, skwebapi
Fetched https://github.com/pvzig/SKWebAPI (1.43s)
Fetched https://github.com/pvzig/SKCore (1.43s)
Fetched https://github.com/httpswift/swifter.git (1.47s)
Computing version for https://github.com/pvzig/SKWebAPI
Computed https://github.com/pvzig/SKWebAPI at 4.1.3 (0.56s)
Computing version for https://github.com/pvzig/SKCore
Computed https://github.com/pvzig/SKCore at 4.1.3 (0.62s)
Computing version for https://github.com/httpswift/swifter.git
Computed https://github.com/httpswift/swifter.git at 1.4.7 (2.11s)
Creating working copy for https://github.com/pvzig/SKWebAPI
Working copy of https://github.com/pvzig/SKWebAPI resolved at 4.1.3
Creating working copy for https://github.com/pvzig/SKCore
Working copy of https://github.com/pvzig/SKCore 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
warning: 'skwebapi': 'skwebapi' dependency on 'https://github.com/SlackKit/SKCore' conflicts with dependency on 'https://github.com/pvzig/SKCore' which has the same identity 'skcore'. this will be escalated to an error in future versions of SwiftPM.
Building for debugging...
[1/44] Compiling Swifter DemoServer.swift
[2/44] Compiling Swifter Errno.swift
[3/44] Compiling Swifter Files.swift
[4/44] Compiling Swifter HttpParser.swift
[5/44] Emitting module SKCore
[6/47] Compiling SKCore SlackError.swift
[7/47] Compiling SKCore Team.swift
[8/47] Compiling SKCore TeamIcon.swift
[9/47] Compiling SKCore Reaction.swift
[10/47] Compiling SKCore Reply.swift
[11/47] Compiling SKCore Scope.swift
[12/47] Compiling SKCore Topic.swift
[13/47] Compiling SKCore User.swift
[14/47] Compiling SKCore UserGroup.swift
[17/47] 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))
^
[18/47] Compiling Swifter Socket+Server.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))
^
[19/47] Compiling Swifter Socket.swift
[21/49] Compiling SKCore Event.swift
[22/49] Compiling SKCore Extensions.swift
[23/49] Compiling SKCore File.swift
[24/49] Emitting module Swifter
[28/49] Compiling SKCore DoNotDisturbStatus.swift
[29/49] Compiling SKCore Edited.swift
[32/49] Compiling SKCore Channel.swift
[37/49] Compiling SKCore History.swift
[38/49] Compiling SKCore Item.swift
[39/49] Compiling Swifter String+SHA1.swift
[40/49] Compiling Swifter WebSockets.swift
[41/49] Compiling SKCore RTMOptions.swift
[50/55] Compiling SKWebAPI NetworkInterface.swift
/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:47:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:51:68: error: cannot convert value of type '_' to expected argument type 'Data?'
successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
^
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:51:84: error: argument type '_' expected to be an instance of a class or class-constrained type
successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
^
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:63:23: error: cannot find 'URLRequest' in scope
let request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var response: URLResponse? = nil
^~~~~~~~~~~
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:69:20: error: cannot assign value of type '_' to type 'Data'
data = reqData
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:89:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url:url)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:117:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url:url)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:126:68: error: cannot convert value of type '_' to expected argument type 'Data?'
successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
^
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:126:84: error: argument type '_' expected to be an instance of a class or class-constrained type
successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
^
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:134:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
guard let data = data, let response = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/SKWebAPI/Sources/NetworkInterface.swift:142:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
switch response.statusCode {
~~~~~~~~ ^~~~~~~~~~
[51/55] Compiling SKWebAPI Endpoint.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[52/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
^
[53/55] Compiling SKWebAPI WebAPI.swift
/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)
~^~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2