The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SKRTMAPI with Swift 5.8 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-1":/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/SKRTMAPI.git
Reference: 4.1.2
Cloned https://github.com/pvzig/SKRTMAPI.git into spi-builder-workspace
SUCCESS checkout https://github.com/pvzig/SKRTMAPI.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-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Fetching https://github.com/vapor/engine
Fetching https://github.com/SlackKit/SKWebAPI
Fetching https://github.com/SlackKit/SKCore
[1/288] Fetching skcore
[289/582] Fetching skcore, skwebapi
[583/26049] Fetching skcore, skwebapi, engine
Fetched https://github.com/SlackKit/SKCore (0.22s)
[1313/25761] Fetching skwebapi, engine
Fetched https://github.com/SlackKit/SKWebAPI (0.90s)
Fetched https://github.com/vapor/engine (0.92s)
Computing version for https://github.com/vapor/engine
Computed https://github.com/vapor/engine at 2.2.5 (0.33s)
Fetching https://github.com/vapor/random.git
Fetching https://github.com/vapor/sockets.git
Fetching https://github.com/vapor/core.git
[1/148] Fetching random
[149/3460] Fetching random, sockets
[150/23603] Fetching random, sockets, core
Fetched https://github.com/vapor/random.git (0.79s)
Fetching https://github.com/vapor/tls.git
Fetched https://github.com/vapor/sockets.git (0.80s)
Fetching https://github.com/vapor/crypto.git
Fetched https://github.com/vapor/core.git (0.81s)
[1/2786] Fetching crypto
[2/3930] Fetching crypto, tls
Fetched https://github.com/vapor/tls.git (0.30s)
Fetched https://github.com/vapor/crypto.git (0.31s)
Computing version for https://github.com/vapor/random.git
Computed https://github.com/vapor/random.git at 1.2.0 (0.32s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.2.1 (0.35s)
Fetching https://github.com/vapor/debugging.git
Fetching https://github.com/vapor/bits.git
[1/260] Fetching debugging
[95/618] Fetching debugging, bits
Fetched https://github.com/vapor/bits.git (0.24s)
Fetched https://github.com/vapor/debugging.git (0.24s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.1 (0.33s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.1 (0.32s)
Computing version for https://github.com/vapor/tls.git
Computed https://github.com/vapor/tls.git at 2.1.3 (0.35s)
Fetching https://github.com/vapor/ctls.git
Fetched https://github.com/vapor/ctls.git (0.21s)
Computing version for https://github.com/vapor/crypto.git
Computed https://github.com/vapor/crypto.git at 2.1.3 (0.31s)
Computing version for https://github.com/vapor/ctls.git
Computed https://github.com/vapor/ctls.git at 1.1.3 (0.35s)
Computing version for https://github.com/vapor/sockets.git
Computed https://github.com/vapor/sockets.git at 2.2.3 (0.31s)
Computing version for https://github.com/SlackKit/SKCore
Computed https://github.com/SlackKit/SKCore at 4.1.3 (0.31s)
Computing version for https://github.com/SlackKit/SKWebAPI
Computed https://github.com/SlackKit/SKWebAPI at 4.1.3 (0.32s)
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/SlackKit/SKCore
Working copy of https://github.com/SlackKit/SKCore resolved at 4.1.3
Creating working copy for https://github.com/vapor/tls.git
Working copy of https://github.com/vapor/tls.git resolved at 2.1.3
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 2.2.1
Creating working copy for https://github.com/vapor/debugging.git
Working copy of https://github.com/vapor/debugging.git resolved at 1.1.1
Creating working copy for https://github.com/vapor/engine
Working copy of https://github.com/vapor/engine resolved at 2.2.5
Creating working copy for https://github.com/vapor/crypto.git
Working copy of https://github.com/vapor/crypto.git resolved at 2.1.3
Creating working copy for https://github.com/vapor/ctls.git
Working copy of https://github.com/vapor/ctls.git resolved at 1.1.3
Creating working copy for https://github.com/vapor/sockets.git
Working copy of https://github.com/vapor/sockets.git resolved at 2.2.3
Creating working copy for https://github.com/vapor/random.git
Working copy of https://github.com/vapor/random.git resolved at 1.2.0
Creating working copy for https://github.com/vapor/bits.git
Working copy of https://github.com/vapor/bits.git resolved at 1.1.1
warning: 'ctls': ignoring declared target(s) 'CTLS' in the system package
warning: you may be able to install ctls using your system-packager:
    apt-get install libssl-dev
Building for debugging...
[0/1] Compiling CHTTP http_parser.c
[2/48] Emitting module libc
[3/48] Emitting module Bits
[4/50] Emitting module Debugging
[5/50] Compiling Debugging Debuggable.swift
[6/50] Compiling SKCore History.swift
[7/50] Compiling SKCore Item.swift
[8/51] Compiling Bits UnsignedInteger+Shifting.swift
[9/51] Compiling SKCore Reply.swift
[10/51] Compiling SKCore Scope.swift
[13/55] Compiling SKCore Action.swift
[14/55] Compiling SKCore Attachment.swift
[15/55] Compiling SKCore AttachmentField.swift
[16/55] Compiling SKCore Bot.swift
[17/55] Compiling SKCore SlackError.swift
[18/55] Compiling SKCore Team.swift
[19/55] Compiling SKCore TeamIcon.swift
[20/55] Compiling Bits UnsignedInteger+BytesConvertible.swift
[22/55] Compiling SKCore Topic.swift
[23/55] Compiling SKCore User.swift
[24/55] Compiling SKCore UserGroup.swift
[25/55] Compiling libc libc.swift
[27/57] Compiling SKCore Comment.swift
[28/57] Compiling SKCore CustomProfile.swift
[30/57] Emitting module SKCore
[31/57] Compiling SKCore Channel.swift
[34/57] Compiling SKCore CustomProfileField.swift
[35/57] Compiling SKCore DoNotDisturbStatus.swift
[36/57] Compiling SKCore Edited.swift
[37/57] Compiling SKCore Event.swift
[38/57] Compiling SKCore Extensions.swift
[39/57] Compiling SKCore File.swift
[42/57] Compiling SKCore Message.swift
[43/57] Compiling SKCore OAuthConfig.swift
[62/87] Emitting module Core
[63/89] Compiling Core Extendable.swift
[64/89] Compiling Core FileProtocol.swift
[65/89] Compiling Core Int+Hex.swift
[66/89] Compiling Core DispatchTime+Utilities.swift
[67/89] Compiling Core EmptyInitializable.swift
[68/89] Compiling Core Exports.swift
[69/89] Compiling Core String.swift
[70/89] Compiling Core WorkingDirectory.swift
[71/89] Compiling Core Result.swift
[72/89] Compiling Core Semaphore.swift
[73/89] Compiling Core Sequence.swift
[74/89] Compiling Core StaticDataBuffer.swift
[75/89] Compiling Core String+CaseInsensitiveCompare.swift
[76/89] Compiling Core String+Polymorphic.swift
[77/89] Compiling Core Lock.swift
[78/89] Compiling Core Portal.swift
[79/89] Compiling Core RFC1123.swift
[80/89] Compiling Core Collection+Safe.swift
[81/89] Compiling Core DataFile.swift
[82/89] Compiling Core Dispatch.swift
[83/89] Compiling Core Array.swift
[84/89] Compiling Core Bits.swift
[85/89] Compiling Core Cache.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[88/91] Compiling SKWebAPI Endpoint.swift
[89/91] 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
                 ^
[90/91] 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 {
                   ~~~~~~~~ ^~~~~~~~~~
[91/91] 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)
                                                    ~^~~~~~~
BUILD FAILURE 5.8 linux

Build Machine: Linux 2