The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AwsLambda 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/nikola-mladenovic/AwsSwiftLambdaSdk.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/nikola-mladenovic/AwsSwiftLambdaSdk
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 8aec1f4 Update AwsLambdaSDK.podspec
Cloned https://github.com/nikola-mladenovic/AwsSwiftLambdaSdk.git
Revision (git rev-parse @):
8aec1f415b5d3e85d1987f987e93e1d06f8bda01
SUCCESS checkout https://github.com/nikola-mladenovic/AwsSwiftLambdaSdk.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/nikola-mladenovic/AwsSwiftLambdaSdk.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/nikola-mladenovic/AwsSwiftSign.git
[1/54] Fetching awsswiftsign
Fetched https://github.com/nikola-mladenovic/AwsSwiftSign.git from cache (0.20s)
Computing version for https://github.com/nikola-mladenovic/AwsSwiftSign.git
Computed https://github.com/nikola-mladenovic/AwsSwiftSign.git at 0.4.0 (1.27s)
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
[1/12556] Fetching cryptoswift
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (1.39s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.8.1 (0.48s)
Creating working copy for https://github.com/nikola-mladenovic/AwsSwiftSign.git
Working copy of https://github.com/nikola-mladenovic/AwsSwiftSign.git resolved at 0.4.0
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.8.1
Building for debugging...
[0/5] Write sources
[2/5] Copying PrivacyInfo.xcprivacy
[2/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/106] Compiling CryptoSwift CompactMap.swift
[7/106] Compiling CryptoSwift Cryptor.swift
[8/106] Compiling CryptoSwift Cryptors.swift
[9/106] Compiling CryptoSwift Digest.swift
[10/106] Compiling CryptoSwift DigestType.swift
[11/106] Compiling CryptoSwift AES+Foundation.swift
[12/106] Compiling CryptoSwift Array+Foundation.swift
[13/106] Compiling CryptoSwift Blowfish+Foundation.swift
[14/106] Compiling CryptoSwift ChaCha20+Foundation.swift
[15/106] Compiling CryptoSwift Data+Extension.swift
[16/106] Compiling CryptoSwift HMAC+Foundation.swift
[17/106] Compiling CryptoSwift Rabbit+Foundation.swift
[18/106] Compiling CryptoSwift String+FoundationExtension.swift
[19/106] Compiling CryptoSwift Utils+Foundation.swift
[20/106] Compiling CryptoSwift XChaCha20+Foundation.swift
[21/106] Compiling CryptoSwift Generics.swift
[22/106] Compiling CryptoSwift HKDF.swift
[23/106] Compiling CryptoSwift HMAC.swift
[24/106] Compiling CryptoSwift ISO10126Padding.swift
[25/106] Compiling CryptoSwift ISO78164Padding.swift
[26/106] Compiling CryptoSwift Int+Extension.swift
[27/106] Compiling CryptoSwift MD5.swift
[28/106] Compiling CryptoSwift NoPadding.swift
[29/106] Compiling CryptoSwift Operators.swift
[30/106] Compiling CryptoSwift DER.swift
[31/106] Compiling CryptoSwift PBKDF1.swift
[32/106] Compiling CryptoSwift PBKDF2.swift
[33/106] Compiling CryptoSwift PKCS1v15.swift
[34/120] Compiling CryptoSwift CMAC.swift
[35/120] Compiling CryptoSwift Addition.swift
[36/120] Compiling CryptoSwift BigInt.swift
[37/120] Compiling CryptoSwift BigUInt.swift
[38/120] Compiling CryptoSwift Bitwise Ops.swift
[39/120] Compiling CryptoSwift CS.swift
[40/120] Compiling CryptoSwift Codable.swift
[41/120] Compiling CryptoSwift Comparable.swift
[42/120] Compiling CryptoSwift Data Conversion.swift
[43/120] Compiling CryptoSwift Division.swift
[44/120] Compiling CryptoSwift Exponentiation.swift
[45/120] Compiling CryptoSwift Floating Point Conversion.swift
[46/120] Compiling CryptoSwift GCD.swift
[47/120] Compiling CryptoSwift Hashable.swift
[48/120] Emitting module CryptoSwift
[49/120] Compiling CryptoSwift AEAD.swift
[50/120] Compiling CryptoSwift AEADChaCha20Poly1305.swift
[51/120] Compiling CryptoSwift AEADXChaCha20Poly1305.swift
[52/120] Compiling CryptoSwift AES.Cryptors.swift
[53/120] Compiling CryptoSwift AES.swift
[54/120] Compiling CryptoSwift ASN1.swift
[55/120] Compiling CryptoSwift ASN1Decoder.swift
[56/120] Compiling CryptoSwift ASN1Encoder.swift
[57/120] Compiling CryptoSwift ASN1Scanner.swift
[58/120] Compiling CryptoSwift Array+Extension.swift
[59/120] Compiling CryptoSwift Authenticator.swift
[60/120] Compiling CryptoSwift BatchedCollection.swift
[61/120] Compiling CryptoSwift Bit.swift
[62/120] Compiling CryptoSwift BlockCipher.swift
[63/120] Compiling CryptoSwift BlockDecryptor.swift
[64/120] Compiling CryptoSwift BlockEncryptor.swift
[65/120] Compiling CryptoSwift BlockMode.swift
[66/120] Compiling CryptoSwift BlockModeOptions.swift
[67/120] Compiling CryptoSwift CBC.swift
[68/120] Compiling CryptoSwift CCM.swift
[69/120] Compiling CryptoSwift CFB.swift
[70/120] Compiling CryptoSwift CTR.swift
[71/120] Compiling CryptoSwift CipherModeWorker.swift
[72/120] Compiling CryptoSwift ECB.swift
[73/120] Compiling CryptoSwift GCM.swift
[74/120] Compiling CryptoSwift OCB.swift
[75/120] Compiling CryptoSwift OFB.swift
[76/120] Compiling CryptoSwift PCBC.swift
[77/120] Compiling CryptoSwift Blowfish.swift
[78/120] Compiling CryptoSwift CBCMAC.swift
[79/120] Compiling CryptoSwift Signature.swift
[80/120] Compiling CryptoSwift StreamDecryptor.swift
[81/120] Compiling CryptoSwift StreamEncryptor.swift
[82/120] Compiling CryptoSwift String+Extension.swift
[83/120] Compiling CryptoSwift UInt128.swift
[84/120] Compiling CryptoSwift UInt16+Extension.swift
[85/120] Compiling CryptoSwift UInt32+Extension.swift
[86/120] Compiling CryptoSwift UInt64+Extension.swift
[87/120] Compiling CryptoSwift UInt8+Extension.swift
[88/120] Compiling CryptoSwift Updatable.swift
[89/120] Compiling CryptoSwift Utils.swift
[90/120] Compiling CryptoSwift XChaCha20.swift
[91/120] Compiling CryptoSwift ZeroPadding.swift
[92/120] Compiling CryptoSwift resource_bundle_accessor.swift
[93/120] Compiling CryptoSwift Integer Conversion.swift
[94/120] Compiling CryptoSwift Multiplication.swift
[95/120] Compiling CryptoSwift Prime Test.swift
[96/120] Compiling CryptoSwift Random.swift
[97/120] Compiling CryptoSwift Shifts.swift
[98/120] Compiling CryptoSwift Square Root.swift
[99/120] Compiling CryptoSwift Strideable.swift
[100/120] Compiling CryptoSwift String Conversion.swift
[101/120] Compiling CryptoSwift Subtraction.swift
[102/120] Compiling CryptoSwift Words and Bits.swift
[103/120] Compiling CryptoSwift ChaCha20.swift
[104/120] Compiling CryptoSwift Checksum.swift
[105/120] Compiling CryptoSwift Cipher.swift
[106/120] Compiling CryptoSwift Collection+Extension.swift
[107/120] Compiling CryptoSwift PKCS5.swift
[108/120] Compiling CryptoSwift PKCS7.swift
[109/120] Compiling CryptoSwift PKCS7Padding.swift
[110/120] Compiling CryptoSwift Padding.swift
[111/120] Compiling CryptoSwift Poly1305.swift
[112/120] Compiling CryptoSwift RSA+Cipher.swift
[113/120] Compiling CryptoSwift RSA+Signature.swift
[114/120] Compiling CryptoSwift RSA.swift
[115/120] Compiling CryptoSwift Rabbit.swift
[116/120] Compiling CryptoSwift SHA1.swift
[117/120] Compiling CryptoSwift SHA2.swift
[118/120] Compiling CryptoSwift SHA3.swift
[119/120] Compiling CryptoSwift Scrypt.swift
[120/120] Compiling CryptoSwift SecureBytes.swift
[122/123] Compiling AwsSign AwsSign.swift
[123/123] Emitting module AwsSign
error: emit-module command failed with exit code 1 (use -v to see invocation)
[125/127] Compiling AwsLambda Models.swift
[126/127] Emitting module AwsLambda
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:10:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
                                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:53: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:80: error: cannot infer contextual base in reference to member 'default'
    public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
                                                                              ~^~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:130:150: error: cannot find type 'URLRequest' in scope
    private func request(path: String, urlParams: [String : String?] = [:], headerFields: [String : String] = [:], body: Encodable? = nil) throws -> URLRequest {
                                                                                                                                                     ^~~~~~~~~~
[127/127] Compiling AwsLambda AwsLambda.swift
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:10:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
                                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:53: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:80: error: cannot infer contextual base in reference to member 'default'
    public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
                                                                              ~^~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:130:150: error: cannot find type 'URLRequest' in scope
    private func request(path: String, urlParams: [String : String?] = [:], headerFields: [String : String] = [:], body: Encodable? = nil) throws -> URLRequest {
                                                                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:24:46: warning: 'init(encodedOffset:)' is deprecated: encodedOffset has been deprecated as most common usage is incorrect. Use String.Index(utf16Offset:in:) to achieve the same behavior.
            normalizedHost.remove(at: String.Index(encodedOffset: normalizedHost.count - 1))
                                             ^
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:66:22: error: cannot find type 'URLRequest' in scope
        let request: URLRequest
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:74:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        awsLambda.session.dataTask(with: request, completionHandler: { data, response, error in
        ~~~~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:75:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            guard let response = response as? HTTPURLResponse, response.statusCode <= 299, error == nil else {
                                                               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:133:45: warning: 'init(encodedOffset:)' is deprecated: encodedOffset has been deprecated as most common usage is incorrect. Use String.Index(utf16Offset:in:) to achieve the same behavior.
            formattedPath.remove(at: String.Index(encodedOffset: path.count - 1))
                                            ^
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:139:26: error: cannot find 'URLRequest' in scope
        var urlRequest = URLRequest(url: urlComponents.url!)
                         ^~~~~~~~~~
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/3] Emitting module AwsLambda
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:10:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
                                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:53: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:80: error: cannot infer contextual base in reference to member 'default'
    public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
                                                                              ~^~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:130:150: error: cannot find type 'URLRequest' in scope
    private func request(path: String, urlParams: [String : String?] = [:], headerFields: [String : String] = [:], body: Encodable? = nil) throws -> URLRequest {
                                                                                                                                                     ^~~~~~~~~~
[3/3] Compiling AwsLambda AwsLambda.swift
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:10:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    fileprivate let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
                                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:53: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:80: error: cannot infer contextual base in reference to member 'default'
    public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
                                                                              ~^~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:130:150: error: cannot find type 'URLRequest' in scope
    private func request(path: String, urlParams: [String : String?] = [:], headerFields: [String : String] = [:], body: Encodable? = nil) throws -> URLRequest {
                                                                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:24:46: warning: 'init(encodedOffset:)' is deprecated: encodedOffset has been deprecated as most common usage is incorrect. Use String.Index(utf16Offset:in:) to achieve the same behavior.
            normalizedHost.remove(at: String.Index(encodedOffset: normalizedHost.count - 1))
                                             ^
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:66:22: error: cannot find type 'URLRequest' in scope
        let request: URLRequest
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:74:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        awsLambda.session.dataTask(with: request, completionHandler: { data, response, error in
        ~~~~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:75:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            guard let response = response as? HTTPURLResponse, response.statusCode <= 299, error == nil else {
                                                               ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:133:45: warning: 'init(encodedOffset:)' is deprecated: encodedOffset has been deprecated as most common usage is incorrect. Use String.Index(utf16Offset:in:) to achieve the same behavior.
            formattedPath.remove(at: String.Index(encodedOffset: path.count - 1))
                                            ^
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:139:26: error: cannot find 'URLRequest' in scope
        var urlRequest = URLRequest(url: urlComponents.url!)
                         ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2