The Swift Package Index logo.Swift Package Index

Build Information

Failed to build o with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/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/0xOpenBytes/o.git
Reference: main
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/0xOpenBytes/o
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2c8dc28 Remove tvOS Notifications (#9)
Cloned https://github.com/0xOpenBytes/o.git
Revision (git rev-parse @):
2c8dc280528428f684f250f88dbc513f4c65504e
SUCCESS checkout https://github.com/0xOpenBytes/o.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/0xOpenBytes/o.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/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
[3/13] Compiling o o+notification.swift
[4/13] Compiling o NotificationDelete.swift
[5/13] Compiling o NotificationGet.swift
[6/13] Compiling o NotificationUpdate.swift
[7/13] Compiling o NotificationAuthorization.swift
[8/13] Compiling o NotificationDelegate.swift
[9/13] Compiling o NotificationPost.swift
[10/13] Compiling o o+url.swift
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:15:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            public let response: URLResponse?
                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:17:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            init(data: Data?, response: URLResponse?) {
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:22:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            init(_ tuple: (Data?, URLResponse?)) {
                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:44:14: error: cannot find type 'URLRequest' in scope
        ) -> URLRequest {
             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:45:27: error: cannot find 'URLRequest' in scope
            var request = URLRequest(url: url)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:66:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:69:30: error: cannot infer contextual base in reference to member 'GET'
                    method: .GET,
                            ~^~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:84:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:87:30: error: cannot infer contextual base in reference to member 'HEAD'
                    method: .HEAD,
                            ~^~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:102:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:105:30: error: cannot infer contextual base in reference to member 'CONNECT'
                    method: .CONNECT,
                            ~^~~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:120:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:123:30: error: cannot infer contextual base in reference to member 'OPTIONS'
                    method: .OPTIONS,
                            ~^~~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:138:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:141:30: error: cannot infer contextual base in reference to member 'TRACE'
                    method: .TRACE,
                            ~^~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:158:22: error: cannot infer contextual base in reference to member 'POST'
            method: .POST,
                    ~^~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:165:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:181:22: error: cannot infer contextual base in reference to member 'PUT'
            method: .PUT,
                    ~^~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:188:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:204:22: error: cannot infer contextual base in reference to member 'PATCH'
            method: .PATCH,
                    ~^~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:211:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:227:22: error: cannot infer contextual base in reference to member 'DELETE'
            method: .DELETE,
                    ~^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:234:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
[11/14] Compiling o o.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/14] Emitting module o
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:15:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            public let response: URLResponse?
                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:17:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            init(data: Data?, response: URLResponse?) {
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:22:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            init(_ tuple: (Data?, URLResponse?)) {
                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:44:14: error: cannot find type 'URLRequest' in scope
        ) -> URLRequest {
             ^~~~~~~~~~
[13/14] Compiling o o+console.swift
/host/spi-builder-workspace/Sources/o/File/o+file.swift:260:20: error: no exact matches in call to initializer
            return URL(filePath: filePath)
                   ^
Foundation.URL:8:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileURLWithPath:)')
    public init(fileURLWithPath path: String)
           ^
Foundation.URL:2:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileReferenceLiteralResourceName:)')
    public init(fileReferenceLiteralResourceName name: String)
           ^
[14/14] Compiling o o+file.swift
/host/spi-builder-workspace/Sources/o/File/o+file.swift:260:20: error: no exact matches in call to initializer
            return URL(filePath: filePath)
                   ^
Foundation.URL:8:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileURLWithPath:)')
    public init(fileURLWithPath path: String)
           ^
Foundation.URL:2:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileReferenceLiteralResourceName:)')
    public init(fileReferenceLiteralResourceName name: String)
           ^
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] Compiling o o+console.swift
[3/5] Emitting module o
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:15:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            public let response: URLResponse?
                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:17:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            init(data: Data?, response: URLResponse?) {
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:22:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            init(_ tuple: (Data?, URLResponse?)) {
                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:44:14: error: cannot find type 'URLRequest' in scope
        ) -> URLRequest {
             ^~~~~~~~~~
[4/5] Compiling o o+url.swift
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:15:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            public let response: URLResponse?
                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:17:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            init(data: Data?, response: URLResponse?) {
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:22:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            init(_ tuple: (Data?, URLResponse?)) {
                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:44:14: error: cannot find type 'URLRequest' in scope
        ) -> URLRequest {
             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:45:27: error: cannot find 'URLRequest' in scope
            var request = URLRequest(url: url)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:66:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:69:30: error: cannot infer contextual base in reference to member 'GET'
                    method: .GET,
                            ~^~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:84:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:87:30: error: cannot infer contextual base in reference to member 'HEAD'
                    method: .HEAD,
                            ~^~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:102:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:105:30: error: cannot infer contextual base in reference to member 'CONNECT'
                    method: .CONNECT,
                            ~^~~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:120:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:123:30: error: cannot infer contextual base in reference to member 'OPTIONS'
                    method: .OPTIONS,
                            ~^~~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:138:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:141:30: error: cannot infer contextual base in reference to member 'TRACE'
                    method: .TRACE,
                            ~^~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:158:22: error: cannot infer contextual base in reference to member 'POST'
            method: .POST,
                    ~^~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:165:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:181:22: error: cannot infer contextual base in reference to member 'PUT'
            method: .PUT,
                    ~^~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:188:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:204:22: error: cannot infer contextual base in reference to member 'PATCH'
            method: .PATCH,
                    ~^~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:211:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:227:22: error: cannot infer contextual base in reference to member 'DELETE'
            method: .DELETE,
                    ~^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:234:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
[5/5] Compiling o o+file.swift
/host/spi-builder-workspace/Sources/o/File/o+file.swift:260:20: error: no exact matches in call to initializer
            return URL(filePath: filePath)
                   ^
Foundation.URL:8:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileURLWithPath:)')
    public init(fileURLWithPath path: String)
           ^
Foundation.URL:2:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileReferenceLiteralResourceName:)')
    public init(fileReferenceLiteralResourceName name: String)
           ^
[6/6] Compiling o o.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1