The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SKRTMAPI with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-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/SKRTMAPI.git
Reference: master
Cloned https://github.com/pvzig/SKRTMAPI.git into spi-builder-workspace
SUCCESS checkout https://github.com/pvzig/SKRTMAPI.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-4606859-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/vapor/engine
Fetching https://github.com/pvzig/SKWebAPI
Fetching https://github.com/pvzig/SKCore
[1/294] Fetching skwebapi
[295/582] Fetching skwebapi, skcore
[583/26049] Fetching skwebapi, skcore, engine
[3605/25761] Fetching skwebapi, engine
Fetched https://github.com/pvzig/SKCore (0.22s)
Fetched https://github.com/pvzig/SKWebAPI (0.75s)
Fetched https://github.com/vapor/engine (0.77s)
Computing version for https://github.com/vapor/engine
Computed https://github.com/vapor/engine at 2.2.5 (0.29s)
Fetching https://github.com/vapor/random.git
Fetching https://github.com/vapor/core.git
Fetching https://github.com/vapor/sockets.git
[1/148] Fetching random
[149/20291] Fetching random, core
[2567/23603] Fetching random, core, sockets
Fetched https://github.com/vapor/random.git (0.26s)
Fetching https://github.com/vapor/tls.git
[14794/23455] Fetching core, sockets
Fetched https://github.com/vapor/sockets.git (0.27s)
Fetching https://github.com/vapor/crypto.git
[11885/20143] Fetching core
[18332/22929] Fetching core, crypto
[22930/24073] Fetching core, crypto, tls
Fetched https://github.com/vapor/crypto.git (0.28s)
Fetched https://github.com/vapor/tls.git (0.31s)
Fetched https://github.com/vapor/core.git (0.75s)
Computing version for https://github.com/vapor/random.git
Computed https://github.com/vapor/random.git at 1.2.0 (0.26s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.2.1 (0.27s)
Fetching https://github.com/vapor/debugging.git
Fetching https://github.com/vapor/bits.git
[1/260] Fetching debugging
[261/618] Fetching debugging, bits
Fetched https://github.com/vapor/bits.git (0.22s)
Fetched https://github.com/vapor/debugging.git (0.22s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.1 (0.25s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.1 (0.26s)
Computing version for https://github.com/vapor/tls.git
Computed https://github.com/vapor/tls.git at 2.1.3 (0.27s)
Fetching https://github.com/vapor/ctls.git
Fetched https://github.com/vapor/ctls.git (0.18s)
Computing version for https://github.com/vapor/crypto.git
Computed https://github.com/vapor/crypto.git at 2.1.3 (0.29s)
Computing version for https://github.com/vapor/ctls.git
Computed https://github.com/vapor/ctls.git at 1.1.3 (0.25s)
Computing version for https://github.com/vapor/sockets.git
Computed https://github.com/vapor/sockets.git at 2.2.3 (0.27s)
Computing version for https://github.com/pvzig/SKCore
Computed https://github.com/pvzig/SKCore at 4.1.3 (0.26s)
Computing version for https://github.com/pvzig/SKWebAPI
Computed https://github.com/pvzig/SKWebAPI at 4.1.3 (0.26s)
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/pvzig/SKCore
Working copy of https://github.com/pvzig/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/sockets.git
Working copy of https://github.com/vapor/sockets.git resolved at 2.2.3
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/engine
Working copy of https://github.com/vapor/engine resolved at 2.2.5
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/pvzig/SKWebAPI
Working copy of https://github.com/pvzig/SKWebAPI resolved at 4.1.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/debugging.git
Working copy of https://github.com/vapor/debugging.git resolved at 1.1.1
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: '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.
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] Compiling SKCore SlackError.swift
[3/48] Compiling SKCore Team.swift
[4/48] Compiling SKCore TeamIcon.swift
[5/51] Emitting module Debugging
[6/51] Compiling Debugging Debuggable.swift
[7/52] Compiling SKCore Action.swift
[8/52] Compiling SKCore Attachment.swift
[9/52] Compiling SKCore AttachmentField.swift
[10/54] Compiling SKCore CustomProfile.swift
[11/54] Compiling SKCore CustomProfileField.swift
[14/55] Compiling Bits UnsignedInteger+Shifting.swift
[15/55] Compiling SKCore Reply.swift
[16/55] Compiling SKCore Scope.swift
[17/55] Emitting module SKCore
[21/55] Compiling SKCore Bot.swift
[22/55] Compiling Bits UnsignedInteger+BytesConvertible.swift
[24/55] Compiling SKCore Topic.swift
[25/55] Compiling SKCore User.swift
[26/55] Compiling SKCore UserGroup.swift
[27/55] Compiling SKCore Channel.swift
[28/55] Compiling SKCore Comment.swift
[31/55] Compiling SKCore Message.swift
[32/55] Compiling SKCore OAuthConfig.swift
[33/55] Compiling SKCore File.swift
[34/55] Compiling SKCore History.swift
[35/55] Compiling SKCore Item.swift
[39/55] Compiling SKCore DoNotDisturbStatus.swift
[40/55] Compiling SKCore Edited.swift
[41/55] Compiling SKCore Event.swift
[42/55] Compiling SKCore Extensions.swift
[45/57] Emitting module libc
[46/57] Compiling libc libc.swift
[54/59] Emitting module Bits
[62/87] Emitting module Core
[63/89] Compiling Core String.swift
[64/89] Compiling Core WorkingDirectory.swift
[65/89] Compiling Core Result.swift
[66/89] Compiling Core Semaphore.swift
[67/89] Compiling Core Sequence.swift
[68/89] Compiling Core StaticDataBuffer.swift
[69/89] Compiling Core String+CaseInsensitiveCompare.swift
[70/89] Compiling Core String+Polymorphic.swift
[71/89] Compiling Core Array.swift
[72/89] Compiling Core Bits.swift
[73/89] Compiling Core Cache.swift
[74/89] Compiling Core Extendable.swift
[75/89] Compiling Core FileProtocol.swift
[76/89] Compiling Core Int+Hex.swift
[77/89] Compiling Core Lock.swift
[78/89] Compiling Core Portal.swift
[79/89] Compiling Core RFC1123.swift
[80/89] Compiling Core DispatchTime+Utilities.swift
[81/89] Compiling Core EmptyInitializable.swift
[82/89] Compiling Core Exports.swift
[83/89] Compiling Core Collection+Safe.swift
[84/89] Compiling Core DataFile.swift
[85/89] Compiling Core Dispatch.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 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)
                                                    ~^~~~~~~
[91/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 {
                   ~~~~~~~~ ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1