Build Information
Failed to build GoogleCloudLogging with Swift 5.8 for Linux.
Build Command
Build command unavailable
Build Log
========================================
RunAll
========================================
Builder version: 4.27.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DnV1eX/GoogleCloudLogging.git
Reference: 1.1.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/DnV1eX/GoogleCloudLogging
* tag 1.1.2 -> FETCH_HEAD
HEAD is now at 4c0d407 Precise available OS version conditions in FileHandle throwing legacy functions.
Cloned https://github.com/DnV1eX/GoogleCloudLogging.git
Revision (git rev-parse @):
4c0d4076a7532c2177a6b3d0e964dfc36436695d
SUCCESS checkout https://github.com/DnV1eX/GoogleCloudLogging.git at 1.1.2
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Fetching https://github.com/apple/swift-log.git
[1/3152] Fetching swift-log
Fetched https://github.com/apple/swift-log.git (0.47s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.3 (0.42s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.3
Building for debugging...
[1/5] Emitting module Logging
[2/5] Compiling Logging Locks.swift
[3/5] Compiling Logging MetadataProvider.swift
[4/5] Compiling Logging LogHandler.swift
[5/5] Compiling Logging Logging.swift
[8/10] Compiling GoogleCloudLogging GoogleCloudLogging.swift
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:32:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case noDataReceived(URLResponse?)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:40:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case noDataReceived(URLResponse?)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:216:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:132:34: error: cannot find type 'CFError' in scope
var error: Unmanaged<CFError>?
^~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:31: error: cannot find 'kSecAttrKeyType' in scope
let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:48: error: cannot find 'kSecAttrKeyTypeRSA' in scope
let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:68: error: cannot find 'kSecAttrKeyClass' in scope
let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:86: error: cannot find 'kSecAttrKeyClassPrivate' in scope
let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:111: error: cannot find 'kSecAttrKeySizeInBits' in scope
let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:142: error: cannot find type 'CFDictionary' in scope
let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:134:36: error: cannot find 'SecKeyCreateWithData' in scope
guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:134:64: error: cannot find type 'CFData' in scope
guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
^~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:137:35: error: cannot find 'SecKeyCreateSignature' in scope
guard let signature = SecKeyCreateSignature(privateKey, .rsaSignatureMessagePKCS1v15SHA256, data as CFData, &error) as Data? else {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:137:113: error: cannot find type 'CFData' in scope
guard let signature = SecKeyCreateSignature(privateKey, .rsaSignatureMessagePKCS1v15SHA256, data as CFData, &error) as Data? else {
^~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:137:70: error: cannot infer contextual base in reference to member 'rsaSignatureMessagePKCS1v15SHA256'
guard let signature = SecKeyCreateSignature(privateKey, .rsaSignatureMessagePKCS1v15SHA256, data as CFData, &error) as Data? else {
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:229:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
session = URLSession(configuration: .ephemeral, delegate: nil, delegateQueue: operationQueue)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:229:46: error: cannot infer contextual base in reference to member 'ephemeral'
session = URLSession(configuration: .ephemeral, delegate: nil, delegateQueue: operationQueue)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:229:67: error: 'nil' requires a contextual type
session = URLSession(configuration: .ephemeral, delegate: nil, delegateQueue: operationQueue)
^
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:240:27: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:305:27: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:387:29: error: cannot find 'applyingTransform' in scope
let logId = String((applyingTransform(.toLatin, reverse: false) ?? self)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:387:48: error: cannot infer contextual base in reference to member 'toLatin'
let logId = String((applyingTransform(.toLatin, reverse: false) ?? self)
~^~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/10] Compiling GoogleCloudLogging GoogleCloudLogHandler.swift
[10/10] Emitting module GoogleCloudLogging
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:32:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case noDataReceived(URLResponse?)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:40:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case noDataReceived(URLResponse?)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:216:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
[0/1] Planning build
Building for debugging...
[1/1] Emitting module Logging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module GoogleCloudLogging
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:32:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case noDataReceived(URLResponse?)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:40:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case noDataReceived(URLResponse?)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:216:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
[5/5] Compiling GoogleCloudLogging GoogleCloudLogging.swift
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:32:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case noDataReceived(URLResponse?)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:40:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case noDataReceived(URLResponse?)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:216:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:132:34: error: cannot find type 'CFError' in scope
var error: Unmanaged<CFError>?
^~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:31: error: cannot find 'kSecAttrKeyType' in scope
let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:48: error: cannot find 'kSecAttrKeyTypeRSA' in scope
let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:68: error: cannot find 'kSecAttrKeyClass' in scope
let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:86: error: cannot find 'kSecAttrKeyClassPrivate' in scope
let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:111: error: cannot find 'kSecAttrKeySizeInBits' in scope
let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:133:142: error: cannot find type 'CFDictionary' in scope
let attributes = [kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: 256] as CFDictionary
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:134:36: error: cannot find 'SecKeyCreateWithData' in scope
guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:134:64: error: cannot find type 'CFData' in scope
guard let privateKey = SecKeyCreateWithData(key as CFData, attributes, &error) else {
^~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:137:35: error: cannot find 'SecKeyCreateSignature' in scope
guard let signature = SecKeyCreateSignature(privateKey, .rsaSignatureMessagePKCS1v15SHA256, data as CFData, &error) as Data? else {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:137:113: error: cannot find type 'CFData' in scope
guard let signature = SecKeyCreateSignature(privateKey, .rsaSignatureMessagePKCS1v15SHA256, data as CFData, &error) as Data? else {
^~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:137:70: error: cannot infer contextual base in reference to member 'rsaSignatureMessagePKCS1v15SHA256'
guard let signature = SecKeyCreateSignature(privateKey, .rsaSignatureMessagePKCS1v15SHA256, data as CFData, &error) as Data? else {
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:229:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
session = URLSession(configuration: .ephemeral, delegate: nil, delegateQueue: operationQueue)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:229:46: error: cannot infer contextual base in reference to member 'ephemeral'
session = URLSession(configuration: .ephemeral, delegate: nil, delegateQueue: operationQueue)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:229:67: error: 'nil' requires a contextual type
session = URLSession(configuration: .ephemeral, delegate: nil, delegateQueue: operationQueue)
^
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:240:27: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:305:27: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:387:29: error: cannot find 'applyingTransform' in scope
let logId = String((applyingTransform(.toLatin, reverse: false) ?? self)
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/GoogleCloudLogging/GoogleCloudLogging.swift:387:48: error: cannot infer contextual base in reference to member 'toLatin'
let logId = String((applyingTransform(.toLatin, reverse: false) ?? self)
~^~~~~~~
BUILD FAILURE 5.8 linux