The Swift Package Index logo.Swift Package Index

Build Information

Failed to build VIZ with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/viz-blockchain/viz-swift-lib.git
Reference: 0.0.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/viz-blockchain/viz-swift-lib
 * tag               0.0.2      -> FETCH_HEAD
HEAD is now at b5d4c0a Update crypto libraries
Cloned https://github.com/viz-blockchain/viz-swift-lib.git
Revision (git rev-parse @):
b5d4c0a7637777b29c281ffddd7127bcbddf576a
SUCCESS checkout https://github.com/viz-blockchain/viz-swift-lib.git at 0.0.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/viz-blockchain/viz-swift-lib.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/greymass/secp256k1.git
[1/7003] Fetching secp256k1
Fetched https://github.com/greymass/secp256k1.git from cache (0.60s)
Fetching https://github.com/lukaskubanek/OrderedDictionary.git
Fetching https://github.com/Flight-School/AnyCodable.git
[1/1700] Fetching ordereddictionary
[1021/2456] Fetching ordereddictionary, anycodable
Fetched https://github.com/Flight-School/AnyCodable.git from cache (0.53s)
Fetched https://github.com/lukaskubanek/OrderedDictionary.git from cache (0.53s)
Computing version for https://github.com/lukaskubanek/OrderedDictionary.git
Computed https://github.com/lukaskubanek/OrderedDictionary.git at 4.0.2 (0.44s)
Computing version for https://github.com/Flight-School/AnyCodable.git
Computed https://github.com/Flight-School/AnyCodable.git at 0.6.7 (0.48s)
Creating working copy for https://github.com/greymass/secp256k1.git
Working copy of https://github.com/greymass/secp256k1.git resolved at master (f5babfb)
Creating working copy for https://github.com/lukaskubanek/OrderedDictionary.git
Working copy of https://github.com/lukaskubanek/OrderedDictionary.git resolved at 4.0.2
Creating working copy for https://github.com/Flight-School/AnyCodable.git
Working copy of https://github.com/Flight-School/AnyCodable.git resolved at 0.6.7
Building for debugging...
[0/9] Write sources
[3/9] Compiling Crypto memzero.c
[4/9] Compiling Crypto base58.c
[5/9] Compiling Crypto ripemd160.c
[6/9] Compiling Crypto sha2.c
[6/9] Write swift-version-24593BA9C3E375BF.txt
[8/20] Compiling secp256k1.c
[10/20] Emitting module OrderedDictionary
[11/20] Compiling OrderedDictionary OrderedDictionarySlice.swift
[12/20] Compiling OrderedDictionary OrderedDictionary+Codable.swift
[13/20] Compiling OrderedDictionary Dictionary+OrderedDictionary.swift
[14/20] Compiling OrderedDictionary OrderedDictionary+Deprecated.swift
[15/20] Compiling OrderedDictionary OrderedDictionary+Description.swift
[16/20] Compiling OrderedDictionary OrderedDictionary.swift
[18/21] Emitting module AnyCodable
[19/21] Compiling AnyCodable AnyCodable.swift
[20/21] Compiling AnyCodable AnyEncodable.swift
[21/21] Compiling AnyCodable AnyDecodable.swift
[23/42] Compiling VIZ Data+Base58Encoding.swift
[24/42] Compiling VIZ Data+RIPEMD160.swift
[25/42] Compiling VIZ Data+Random.swift
[26/44] Compiling VIZ Block.swift
/host/spi-builder-workspace/Sources/VIZ/Client.swift:189:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: SessionDataTask {}
^         ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:190:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: SessionAdapter {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:182:33: error: cannot find type 'URLRequest' in scope
    func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:182:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask
                                                                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(address: URL, session: URLSession = URLSession.shared) {
                                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(address: URL, session: URLSession = URLSession.shared) {
                                                    ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:256:84: error: cannot find type 'URLRequest' in scope
    internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
                                                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:268:102: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func resolveResponse<T: Request>(for payload: RequestPayload<T>, data: Data?, response: URLResponse?) throws -> T.Response? {
                                                                                                     ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:409:21: warning: constant 'WARNING' inferred to have type '()', which may be unexpected
    fileprivate let WARNING = print(
                    ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:409:21: note: add an explicit type annotation to silence this warning
    fileprivate let WARNING = print(
                    ^
                           : ()
/host/spi-builder-workspace/Sources/VIZ/Client.swift:252:24: error: cannot convert value of type 'URLSession' (aka 'AnyObject') to type 'any SessionAdapter' in coercion
        self.session = session as SessionAdapter
                       ^~~~~~~
                               as! any SessionAdapter
/host/spi-builder-workspace/Sources/VIZ/Client.swift:258:26: error: cannot find 'URLRequest' in scope
        var urlRequest = URLRequest(url: self.address)
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:272:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
        guard let httpResponse = response as? HTTPURLResponse else {
                                          ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:272:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let httpResponse = response as? HTTPURLResponse else {
                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:275:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if httpResponse.statusCode != 200 {
           ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:276:90: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
                                                                            ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:311:25: error: cannot find type 'URLRequest' in scope
        let urlRequest: URLRequest
                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:323:67: error: cannot convert value of type '_' to expected argument type 'Data?'
                rv = try self.resolveResponse(for: payload, data: data, response: response)
                                                                  ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:323:83: error: argument type '_' expected to be an instance of a class or class-constrained type
                rv = try self.resolveResponse(for: payload, data: data, response: response)
                                                                                  ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:191:42: error: cannot find type 'URLRequest' in scope
    internal func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask {
                                         ^~~~~~~~~~
[27/44] Compiling VIZ ChainId.swift
/host/spi-builder-workspace/Sources/VIZ/Client.swift:189:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: SessionDataTask {}
^         ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:190:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: SessionAdapter {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:182:33: error: cannot find type 'URLRequest' in scope
    func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:182:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask
                                                                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(address: URL, session: URLSession = URLSession.shared) {
                                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(address: URL, session: URLSession = URLSession.shared) {
                                                    ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:256:84: error: cannot find type 'URLRequest' in scope
    internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
                                                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:268:102: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func resolveResponse<T: Request>(for payload: RequestPayload<T>, data: Data?, response: URLResponse?) throws -> T.Response? {
                                                                                                     ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:409:21: warning: constant 'WARNING' inferred to have type '()', which may be unexpected
    fileprivate let WARNING = print(
                    ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:409:21: note: add an explicit type annotation to silence this warning
    fileprivate let WARNING = print(
                    ^
                           : ()
/host/spi-builder-workspace/Sources/VIZ/Client.swift:252:24: error: cannot convert value of type 'URLSession' (aka 'AnyObject') to type 'any SessionAdapter' in coercion
        self.session = session as SessionAdapter
                       ^~~~~~~
                               as! any SessionAdapter
/host/spi-builder-workspace/Sources/VIZ/Client.swift:258:26: error: cannot find 'URLRequest' in scope
        var urlRequest = URLRequest(url: self.address)
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:272:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
        guard let httpResponse = response as? HTTPURLResponse else {
                                          ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:272:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let httpResponse = response as? HTTPURLResponse else {
                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:275:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if httpResponse.statusCode != 200 {
           ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:276:90: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
                                                                            ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:311:25: error: cannot find type 'URLRequest' in scope
        let urlRequest: URLRequest
                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:323:67: error: cannot convert value of type '_' to expected argument type 'Data?'
                rv = try self.resolveResponse(for: payload, data: data, response: response)
                                                                  ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:323:83: error: argument type '_' expected to be an instance of a class or class-constrained type
                rv = try self.resolveResponse(for: payload, data: data, response: response)
                                                                                  ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:191:42: error: cannot find type 'URLRequest' in scope
    internal func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask {
                                         ^~~~~~~~~~
[28/44] Compiling VIZ Client.swift
/host/spi-builder-workspace/Sources/VIZ/Client.swift:189:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: SessionDataTask {}
^         ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:190:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: SessionAdapter {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:182:33: error: cannot find type 'URLRequest' in scope
    func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:182:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask
                                                                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(address: URL, session: URLSession = URLSession.shared) {
                                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(address: URL, session: URLSession = URLSession.shared) {
                                                    ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:256:84: error: cannot find type 'URLRequest' in scope
    internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
                                                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:268:102: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func resolveResponse<T: Request>(for payload: RequestPayload<T>, data: Data?, response: URLResponse?) throws -> T.Response? {
                                                                                                     ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:409:21: warning: constant 'WARNING' inferred to have type '()', which may be unexpected
    fileprivate let WARNING = print(
                    ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:409:21: note: add an explicit type annotation to silence this warning
    fileprivate let WARNING = print(
                    ^
                           : ()
/host/spi-builder-workspace/Sources/VIZ/Client.swift:252:24: error: cannot convert value of type 'URLSession' (aka 'AnyObject') to type 'any SessionAdapter' in coercion
        self.session = session as SessionAdapter
                       ^~~~~~~
                               as! any SessionAdapter
/host/spi-builder-workspace/Sources/VIZ/Client.swift:258:26: error: cannot find 'URLRequest' in scope
        var urlRequest = URLRequest(url: self.address)
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:272:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
        guard let httpResponse = response as? HTTPURLResponse else {
                                          ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:272:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let httpResponse = response as? HTTPURLResponse else {
                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:275:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if httpResponse.statusCode != 200 {
           ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:276:90: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
                                                                            ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:311:25: error: cannot find type 'URLRequest' in scope
        let urlRequest: URLRequest
                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:323:67: error: cannot convert value of type '_' to expected argument type 'Data?'
                rv = try self.resolveResponse(for: payload, data: data, response: response)
                                                                  ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:323:83: error: argument type '_' expected to be an instance of a class or class-constrained type
                rv = try self.resolveResponse(for: payload, data: data, response: response)
                                                                                  ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:191:42: error: cannot find type 'URLRequest' in scope
    internal func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask {
                                         ^~~~~~~~~~
[29/44] Compiling VIZ API.swift
/host/spi-builder-workspace/Sources/VIZ/Client.swift:189:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: SessionDataTask {}
^         ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:190:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: SessionAdapter {
^         ~~~~~~~~~~
[30/44] Compiling VIZ Asset.swift
/host/spi-builder-workspace/Sources/VIZ/Client.swift:189:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: SessionDataTask {}
^         ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:190:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: SessionAdapter {
^         ~~~~~~~~~~
[31/44] Compiling VIZ Authority.swift
/host/spi-builder-workspace/Sources/VIZ/Client.swift:189:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: SessionDataTask {}
^         ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:190:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: SessionAdapter {
^         ~~~~~~~~~~
[32/44] Compiling VIZ Data+SHA2.swift
[33/44] Compiling VIZ Pointers+Convenience.swift
[34/44] Compiling VIZ Hex.swift
[35/44] Compiling VIZ Signature.swift
[36/44] Compiling VIZ Transaction.swift
[37/44] Compiling VIZ PublicKey.swift
[38/44] Compiling VIZ Secp256k1.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[39/44] Emitting module VIZ
/host/spi-builder-workspace/Sources/VIZ/Client.swift:189:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: SessionDataTask {}
^         ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:190:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: SessionAdapter {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:182:33: error: cannot find type 'URLRequest' in scope
    func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:182:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask
                                                                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(address: URL, session: URLSession = URLSession.shared) {
                                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(address: URL, session: URLSession = URLSession.shared) {
                                                    ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:256:84: error: cannot find type 'URLRequest' in scope
    internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
                                                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:268:102: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func resolveResponse<T: Request>(for payload: RequestPayload<T>, data: Data?, response: URLResponse?) throws -> T.Response? {
                                                                                                     ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:409:21: warning: constant 'WARNING' inferred to have type '()', which may be unexpected
    fileprivate let WARNING = print(
                    ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:409:21: note: add an explicit type annotation to silence this warning
    fileprivate let WARNING = print(
                    ^
                           : ()
[40/44] Compiling VIZ VIZEncoder.swift
[41/44] Compiling VIZ VIZURL.swift
[42/44] Compiling VIZ Misc.swift
[43/44] Compiling VIZ Operation.swift
[44/44] Compiling VIZ PrivateKey.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling VIZ ChainId.swift
[3/9] Compiling VIZ Client.swift
/host/spi-builder-workspace/Sources/VIZ/Client.swift:189:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: SessionDataTask {}
^         ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:190:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: SessionAdapter {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:182:33: error: cannot find type 'URLRequest' in scope
    func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:182:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask
                                                                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(address: URL, session: URLSession = URLSession.shared) {
                                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(address: URL, session: URLSession = URLSession.shared) {
                                                    ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:256:84: error: cannot find type 'URLRequest' in scope
    internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
                                                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:268:102: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func resolveResponse<T: Request>(for payload: RequestPayload<T>, data: Data?, response: URLResponse?) throws -> T.Response? {
                                                                                                     ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:409:21: warning: constant 'WARNING' inferred to have type '()', which may be unexpected
    fileprivate let WARNING = print(
                    ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:409:21: note: add an explicit type annotation to silence this warning
    fileprivate let WARNING = print(
                    ^
                           : ()
/host/spi-builder-workspace/Sources/VIZ/Client.swift:252:24: error: cannot convert value of type 'URLSession' (aka 'AnyObject') to type 'any SessionAdapter' in coercion
        self.session = session as SessionAdapter
                       ^~~~~~~
                               as! any SessionAdapter
/host/spi-builder-workspace/Sources/VIZ/Client.swift:258:26: error: cannot find 'URLRequest' in scope
        var urlRequest = URLRequest(url: self.address)
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:272:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
        guard let httpResponse = response as? HTTPURLResponse else {
                                          ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:272:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let httpResponse = response as? HTTPURLResponse else {
                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:275:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        if httpResponse.statusCode != 200 {
           ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:276:90: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
                                                                            ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:311:25: error: cannot find type 'URLRequest' in scope
        let urlRequest: URLRequest
                        ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:323:67: error: cannot convert value of type '_' to expected argument type 'Data?'
                rv = try self.resolveResponse(for: payload, data: data, response: response)
                                                                  ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:323:83: error: argument type '_' expected to be an instance of a class or class-constrained type
                rv = try self.resolveResponse(for: payload, data: data, response: response)
                                                                                  ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:191:42: error: cannot find type 'URLRequest' in scope
    internal func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask {
                                         ^~~~~~~~~~
[4/9] Compiling VIZ Transaction.swift
[5/9] Compiling VIZ Authority.swift
[6/9] Compiling VIZ Block.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/10] Compiling VIZ Asset.swift
[8/10] Emitting module VIZ
/host/spi-builder-workspace/Sources/VIZ/Client.swift:189:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: SessionDataTask {}
^         ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:190:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: SessionAdapter {
^         ~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:182:33: error: cannot find type 'URLRequest' in scope
    func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask
                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:182:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask
                                                                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(address: URL, session: URLSession = URLSession.shared) {
                                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(address: URL, session: URLSession = URLSession.shared) {
                                                    ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:256:84: error: cannot find type 'URLRequest' in scope
    internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
                                                                                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:268:102: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal func resolveResponse<T: Request>(for payload: RequestPayload<T>, data: Data?, response: URLResponse?) throws -> T.Response? {
                                                                                                     ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:409:21: warning: constant 'WARNING' inferred to have type '()', which may be unexpected
    fileprivate let WARNING = print(
                    ^
/host/spi-builder-workspace/Sources/VIZ/Client.swift:409:21: note: add an explicit type annotation to silence this warning
    fileprivate let WARNING = print(
                    ^
                           : ()
[9/10] Compiling VIZ API.swift
/host/spi-builder-workspace/Sources/VIZ/Client.swift:189:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: SessionDataTask {}
^         ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/VIZ/Client.swift:190:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: SessionAdapter {
^         ~~~~~~~~~~
[10/10] Compiling VIZ Operation.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2