The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SKRTMAPI with Swift 5.7 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.7-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.7
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.7-latest swift build 2>&1
Fetching https://github.com/vapor/engine
Fetching https://github.com/SlackKit/SKCore
Fetching https://github.com/SlackKit/SKWebAPI
[1/294] Fetching skwebapi
[90/25761] Fetching skwebapi, engine
[5898/26049] Fetching skwebapi, engine, skcore
Fetched https://github.com/SlackKit/SKCore (0.31s)
[11245/25761] Fetching skwebapi, engine
Fetched https://github.com/SlackKit/SKWebAPI (0.91s)
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.32s)
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
[249/23603] Fetching random, sockets, core
Fetched https://github.com/vapor/random.git (0.85s)
Fetching https://github.com/vapor/tls.git
Fetched https://github.com/vapor/sockets.git (0.85s)
Fetching https://github.com/vapor/crypto.git
Fetched https://github.com/vapor/core.git (0.87s)
[1/1144] Fetching tls
[127/3930] Fetching tls, crypto
Fetched https://github.com/vapor/tls.git (0.25s)
Fetched https://github.com/vapor/crypto.git (0.25s)
Computing version for https://github.com/vapor/random.git
Computed https://github.com/vapor/random.git at 1.2.0 (0.30s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.2.1 (0.30s)
Fetching https://github.com/vapor/debugging.git
Fetching https://github.com/vapor/bits.git
[1/358] Fetching bits
[359/618] Fetching bits, debugging
Fetched https://github.com/vapor/debugging.git (0.20s)
Fetched https://github.com/vapor/bits.git (0.20s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.1 (0.29s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.1 (0.28s)
Computing version for https://github.com/vapor/tls.git
Computed https://github.com/vapor/tls.git at 2.1.3 (0.30s)
Fetching https://github.com/vapor/ctls.git
Fetched https://github.com/vapor/ctls.git (0.19s)
Computing version for https://github.com/vapor/crypto.git
Computed https://github.com/vapor/crypto.git at 2.1.3 (0.28s)
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.40s)
Computing version for https://github.com/SlackKit/SKCore
Computed https://github.com/SlackKit/SKCore at 4.1.3 (0.32s)
Computing version for https://github.com/SlackKit/SKWebAPI
Computed https://github.com/SlackKit/SKWebAPI at 4.1.3 (0.33s)
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/bits.git
Working copy of https://github.com/vapor/bits.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/core.git
Working copy of https://github.com/vapor/core.git resolved at 2.2.1
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/crypto.git
Working copy of https://github.com/vapor/crypto.git resolved at 2.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/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/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/debugging.git
Working copy of https://github.com/vapor/debugging.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 Debugging
[3/48] Compiling Debugging Debuggable.swift
[6/50] Compiling Bits Operators.swift
[7/50] Compiling Bits String+BytesConvertible.swift
[8/50] Compiling SKCore SlackError.swift
[9/50] Compiling SKCore Team.swift
[10/50] Compiling SKCore TeamIcon.swift
[11/55] Emitting module Bits
[12/55] Compiling Bits ByteSequence+Conversions.swift
[13/55] Compiling Bits Data+BytesConvertible.swift
[14/55] Compiling Bits HexEncoder.swift
[15/55] Compiling Bits Aliases.swift
[16/55] Compiling Bits Base64Encoder.swift
[17/55] Compiling Bits Byte+Alphabet.swift
[18/55] Compiling Bits UnsignedInteger+BytesConvertible.swift
[19/55] Compiling Bits UnsignedInteger+Shifting.swift
[20/55] Compiling SKCore Topic.swift
[21/55] Compiling SKCore User.swift
[22/55] Compiling SKCore UserGroup.swift
[23/55] Compiling Bits Byte+ControlCharacters.swift
[24/55] Compiling Bits Byte+Convenience.swift
[25/55] Compiling Bits Byte+PatternMatching.swift
[26/55] Emitting module libc
[27/55] Compiling libc libc.swift
[30/57] Compiling Bits Bytes+Base64.swift
[31/57] Compiling Bits Bytes+Hex.swift
[32/57] Compiling Bits Byte+Random.swift
[33/57] Compiling Bits Byte+UTF8Numbers.swift
[35/57] Compiling Bits Bytes+Percent.swift
[36/57] Compiling Bits BytesConvertible.swift
[44/81] Compiling Core RFC1123.swift
[45/81] Compiling Core Result.swift
[46/81] Compiling Core Semaphore.swift
[47/81] Compiling Core Sequence.swift
[48/81] Compiling Core String+CaseInsensitiveCompare.swift
[49/81] Compiling Core String+Polymorphic.swift
[50/81] Compiling Core Lock.swift
[51/81] Compiling Core Portal.swift
[52/81] Emitting module SKCore
[53/81] Compiling Core FileProtocol.swift
[54/81] Compiling Core Int+Hex.swift
[55/81] Compiling Core Collection+Safe.swift
[56/81] Compiling Core Array.swift
[57/81] Compiling Core Bits.swift
[58/81] Compiling Core Cache.swift
[59/81] Compiling Core Extendable.swift
[60/82] Emitting module Core
[63/85] Compiling Core DispatchTime+Utilities.swift
[64/85] Compiling Core EmptyInitializable.swift
[65/85] Compiling Core Exports.swift
[69/85] Compiling Core String.swift
[70/85] Compiling Core WorkingDirectory.swift
[75/85] Compiling Core DataFile.swift
[76/85] Compiling Core Dispatch.swift
[83/85] Compiling Core StaticDataBuffer.swift
[88/108] Compiling Random Array+Random.swift
[89/108] Emitting module Random
[90/108] Emitting module Transport
[91/108] Compiling Random EmptyInitializable.swift
[92/108] Compiling Random Exports.swift
[93/108] Compiling Random OSRandom.swift
[94/109] Compiling Random RandomProtocol.swift
[95/109] Compiling Random URandom.swift
[96/109] Compiling Transport ServerStream.swift
[97/109] Compiling Transport Stream.swift
[98/109] Compiling Transport InternetStream.swift
[99/109] Compiling Transport Port.swift
[100/109] Compiling Transport Exports.swift
[101/109] Compiling SKWebAPI Endpoint.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)[102/109] Compiling Transport ClientStream.swift
[103/109] 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 {
                   ~~~~~~~~ ^~~~~~~~~~
[104/109] 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
                 ^
[105/109] 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)
                                                    ~^~~~~~~
[106/110] Compiling Transport StreamError.swift
[109/111] Compiling Transport WriteableStream.swift
[110/111] Compiling Transport FoundationStream.swift
[111/111] Compiling Transport ReadableStream.swift
BUILD FAILURE 5.7 linux

Build Machine: Linux 2