Build Information
Failed to build PromiseQ with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-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/ikhvorost/PromiseQ.git
Reference: master
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/ikhvorost/PromiseQ
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 539a987 Readme: added isCancelled, new await
Cloned https://github.com/ikhvorost/PromiseQ.git
Revision (git rev-parse @):
539a987b5a74da758d1a4d245af5551ee1e35282
SUCCESS checkout https://github.com/ikhvorost/PromiseQ.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/ikhvorost/PromiseQ.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Emitting module PromiseQ
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:65:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: Asyncable {
^ ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:68:1: error: non-nominal type 'URLSessionDownloadTask' (aka 'AnyObject') cannot be extended
extension URLSessionDownloadTask: Asyncable {
^ ~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:160:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:96:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:142:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
fileprivate init(response: HTTPURLResponse, result: ResponseResult) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:307:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias Progress = (_ task: URLSessionTask, _ bytes: Int64, _ totalBytes: Int64) -> Void
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:321:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:321:55: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:325:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:325:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:333:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:333:55: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:309:50: error: cannot find type 'URLSessionDownloadDelegate' in scope
private class SessionDownloadDelegate: NSObject, URLSessionDownloadDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:400:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:400:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:392:46: error: cannot find type 'URLSessionTaskDelegate' in scope
private class SessionTaskDelegate: NSObject, URLSessionTaskDelegate {
^~~~~~~~~~~~~~~~~~~~~~
[4/6] Compiling PromiseQ Monitor.swift
/host/spi-builder-workspace/Sources/PromiseQ/Monitor.swift:39:2: error: cannot find 'objc_sync_enter' in scope
objc_sync_enter(obj)
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Monitor.swift:41:3: error: cannot find 'objc_sync_exit' in scope
objc_sync_exit(obj)
^~~~~~~~~~~~~~
[5/6] Compiling PromiseQ Fetch.swift
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:65:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: Asyncable {
^ ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:68:1: error: non-nominal type 'URLSessionDownloadTask' (aka 'AnyObject') cannot be extended
extension URLSessionDownloadTask: Asyncable {
^ ~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:160:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:96:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:142:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
fileprivate init(response: HTTPURLResponse, result: ResponseResult) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:307:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias Progress = (_ task: URLSessionTask, _ bytes: Int64, _ totalBytes: Int64) -> Void
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:321:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:321:55: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:325:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:325:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:333:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:333:55: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:309:50: error: cannot find type 'URLSessionDownloadDelegate' in scope
private class SessionDownloadDelegate: NSObject, URLSessionDownloadDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:400:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:400:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:392:46: error: cannot find type 'URLSessionTaskDelegate' in scope
private class SessionTaskDelegate: NSObject, URLSessionTaskDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:102:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
(200...299).contains(response.statusCode)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:107:54: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
"HTTP \(response.statusCode) - " + HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:107:94: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
"HTTP \(response.statusCode) - " + HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:107:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
"HTTP \(response.statusCode) - " + HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:295:13: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
URLSession.shared.fetch(path, method: method, headers: headers, body: body, retry: retry)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:326:11: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
session.invalidateAndCancel()
~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:334:11: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
session.invalidateAndCancel()
~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:344:54: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
let response = HTTPResponse(response: downloadTask.response as! HTTPURLResponse, result: .location(url))
~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:375:18: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:382:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:382:51: error: cannot infer contextual base in reference to member 'default'
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:382:95: error: 'nil' requires a contextual type
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:412:18: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:418:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:418:51: error: cannot infer contextual base in reference to member 'default'
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:418:95: error: 'nil' requires a contextual type
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:184:24: error: cannot find type 'URLRequest' in scope
func fetch(_ request: URLRequest, retry: Int = 0) -> Promise<HTTPResponse> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:382:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:382:51: error: cannot infer contextual base in reference to member 'default'
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:382:95: error: 'nil' requires a contextual type
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:418:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:418:51: error: cannot infer contextual base in reference to member 'default'
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:418:95: error: 'nil' requires a contextual type
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
^
[6/6] Compiling PromiseQ PromiseQ.swift
/host/spi-builder-workspace/Sources/PromiseQ/PromiseQ.swift:52:36: error: cannot find '__dispatch_queue_get_label' in scope
if queue.label == String(cString: __dispatch_queue_get_label(nil)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/PromiseQ.swift:52:63: error: 'nil' requires a contextual type
if queue.label == String(cString: __dispatch_queue_get_label(nil)) {
^
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/5] Emitting module PromiseQ
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:65:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: Asyncable {
^ ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:68:1: error: non-nominal type 'URLSessionDownloadTask' (aka 'AnyObject') cannot be extended
extension URLSessionDownloadTask: Asyncable {
^ ~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:160:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:96:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:142:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
fileprivate init(response: HTTPURLResponse, result: ResponseResult) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:307:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias Progress = (_ task: URLSessionTask, _ bytes: Int64, _ totalBytes: Int64) -> Void
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:321:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:321:55: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:325:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:325:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:333:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:333:55: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:309:50: error: cannot find type 'URLSessionDownloadDelegate' in scope
private class SessionDownloadDelegate: NSObject, URLSessionDownloadDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:400:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:400:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:392:46: error: cannot find type 'URLSessionTaskDelegate' in scope
private class SessionTaskDelegate: NSObject, URLSessionTaskDelegate {
^~~~~~~~~~~~~~~~~~~~~~
[3/5] Compiling PromiseQ Monitor.swift
/host/spi-builder-workspace/Sources/PromiseQ/Monitor.swift:39:2: error: cannot find 'objc_sync_enter' in scope
objc_sync_enter(obj)
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Monitor.swift:41:3: error: cannot find 'objc_sync_exit' in scope
objc_sync_exit(obj)
^~~~~~~~~~~~~~
[4/5] Compiling PromiseQ PromiseQ.swift
/host/spi-builder-workspace/Sources/PromiseQ/PromiseQ.swift:52:36: error: cannot find '__dispatch_queue_get_label' in scope
if queue.label == String(cString: __dispatch_queue_get_label(nil)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/PromiseQ.swift:52:63: error: 'nil' requires a contextual type
if queue.label == String(cString: __dispatch_queue_get_label(nil)) {
^
[5/5] Compiling PromiseQ Fetch.swift
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:65:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: Asyncable {
^ ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:68:1: error: non-nominal type 'URLSessionDownloadTask' (aka 'AnyObject') cannot be extended
extension URLSessionDownloadTask: Asyncable {
^ ~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:160:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:96:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public let response: HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:142:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
fileprivate init(response: HTTPURLResponse, result: ResponseResult) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:307:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias Progress = (_ task: URLSessionTask, _ bytes: Int64, _ totalBytes: Int64) -> Void
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:321:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:321:55: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:325:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:325:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:333:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:333:55: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
^~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
public typealias URLSessionDownloadTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:309:50: error: cannot find type 'URLSessionDownloadDelegate' in scope
private class SessionDownloadDelegate: NSObject, URLSessionDownloadDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:400:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:400:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:392:46: error: cannot find type 'URLSessionTaskDelegate' in scope
private class SessionTaskDelegate: NSObject, URLSessionTaskDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:102:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
(200...299).contains(response.statusCode)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:107:54: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
"HTTP \(response.statusCode) - " + HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:107:94: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
"HTTP \(response.statusCode) - " + HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:107:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
"HTTP \(response.statusCode) - " + HTTPURLResponse.localizedString(forStatusCode: response.statusCode)
~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:295:13: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
URLSession.shared.fetch(path, method: method, headers: headers, body: body, retry: retry)
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:326:11: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
session.invalidateAndCancel()
~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:334:11: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
session.invalidateAndCancel()
~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:344:54: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
let response = HTTPResponse(response: downloadTask.response as! HTTPURLResponse, result: .location(url))
~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:375:18: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:382:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:382:51: error: cannot infer contextual base in reference to member 'default'
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:382:95: error: 'nil' requires a contextual type
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:412:18: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:418:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:418:51: error: cannot infer contextual base in reference to member 'default'
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:418:95: error: 'nil' requires a contextual type
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:184:24: error: cannot find type 'URLRequest' in scope
func fetch(_ request: URLRequest, retry: Int = 0) -> Promise<HTTPResponse> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:382:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:382:51: error: cannot infer contextual base in reference to member 'default'
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:382:95: error: 'nil' requires a contextual type
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:418:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:418:51: error: cannot infer contextual base in reference to member 'default'
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/Sources/PromiseQ/Fetch.swift:418:95: error: 'nil' requires a contextual type
let session = URLSession.init(configuration: .default, delegate: delegate, delegateQueue: nil)
^
error: fatalError
BUILD FAILURE 5.10 linux
Build Machine: Linux 1