The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AwsLambda with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nikola-mladenovic/AwsSwiftLambdaSdk.git
Reference: 0.2.0
Cloned https://github.com/nikola-mladenovic/AwsSwiftLambdaSdk.git into spi-builder-workspace
SUCCESS checkout https://github.com/nikola-mladenovic/AwsSwiftLambdaSdk.git at 0.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/nikola-mladenovic/AwsSwiftSign.git
Fetched https://github.com/nikola-mladenovic/AwsSwiftSign.git (0.18s)
Computing version for https://github.com/nikola-mladenovic/AwsSwiftSign.git
Computed https://github.com/nikola-mladenovic/AwsSwiftSign.git at 0.4.0 (0.98s)
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
[1/12427] Fetching cryptoswift
Fetched https://github.com/krzyzanowskim/CryptoSwift.git (1.29s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.7.2 (0.29s)
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.7.2
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
Building for debugging...
[1/98] Compiling CryptoSwift Utils+Foundation.swift
[2/98] Compiling CryptoSwift Generics.swift
[3/98] Compiling CryptoSwift HKDF.swift
[4/98] Compiling CryptoSwift HMAC.swift
[5/98] Compiling CryptoSwift ISO10126Padding.swift
[6/98] Compiling CryptoSwift ISO78164Padding.swift
[7/98] Compiling CryptoSwift Int+Extension.swift
[8/98] Compiling CryptoSwift MD5.swift
[9/98] Compiling CryptoSwift NoPadding.swift
[10/98] Compiling CryptoSwift Operators.swift
[11/98] Compiling CryptoSwift DER.swift
[12/98] Compiling CryptoSwift PBKDF1.swift
[13/98] Compiling CryptoSwift PBKDF2.swift
[14/98] Compiling CryptoSwift PKCS1v15.swift
[15/111] Compiling CryptoSwift CBCMAC.swift
[16/111] Compiling CryptoSwift CMAC.swift
[17/111] Compiling CryptoSwift Addition.swift
[18/111] Compiling CryptoSwift BigInt.swift
[19/111] Compiling CryptoSwift BigUInt.swift
[20/111] Compiling CryptoSwift Bitwise Ops.swift
[21/111] Compiling CryptoSwift CS.swift
[22/111] Compiling CryptoSwift Codable.swift
[23/111] Compiling CryptoSwift Comparable.swift
[24/111] Compiling CryptoSwift Data Conversion.swift
[25/111] Compiling CryptoSwift Division.swift
[26/111] Compiling CryptoSwift Exponentiation.swift
[27/111] Compiling CryptoSwift Floating Point Conversion.swift
[28/111] Compiling CryptoSwift GCD.swift
[29/111] Compiling CryptoSwift Collection+Extension.swift
[30/111] Compiling CryptoSwift CompactMap.swift
[31/111] Compiling CryptoSwift Cryptor.swift
[32/111] Compiling CryptoSwift Cryptors.swift
[33/111] Compiling CryptoSwift Digest.swift
[34/111] Compiling CryptoSwift DigestType.swift
[35/111] Compiling CryptoSwift AES+Foundation.swift
[36/111] Compiling CryptoSwift Array+Foundation.swift
[37/111] Compiling CryptoSwift Blowfish+Foundation.swift
[38/111] Compiling CryptoSwift ChaCha20+Foundation.swift
[39/111] Compiling CryptoSwift Data+Extension.swift
[40/111] Compiling CryptoSwift HMAC+Foundation.swift
[41/111] Compiling CryptoSwift Rabbit+Foundation.swift
[42/111] Compiling CryptoSwift String+FoundationExtension.swift
[43/111] Compiling CryptoSwift Hashable.swift
[44/111] Compiling CryptoSwift Integer Conversion.swift
[45/111] Compiling CryptoSwift Multiplication.swift
[46/111] Compiling CryptoSwift Prime Test.swift
[47/111] Compiling CryptoSwift Random.swift
[48/111] Compiling CryptoSwift Shifts.swift
[49/111] Compiling CryptoSwift Square Root.swift
[50/111] Compiling CryptoSwift Strideable.swift
[51/111] Compiling CryptoSwift String Conversion.swift
[52/111] Compiling CryptoSwift Subtraction.swift
[53/111] Compiling CryptoSwift Words and Bits.swift
[54/111] Compiling CryptoSwift ChaCha20.swift
[55/111] Compiling CryptoSwift Checksum.swift
[56/111] Compiling CryptoSwift Cipher.swift
[57/111] Compiling CryptoSwift BlockEncryptor.swift
[58/111] Compiling CryptoSwift BlockMode.swift
[59/111] Compiling CryptoSwift BlockModeOptions.swift
[60/111] Compiling CryptoSwift CBC.swift
[61/111] Compiling CryptoSwift CCM.swift
[62/111] Compiling CryptoSwift CFB.swift
[63/111] Compiling CryptoSwift CTR.swift
[64/111] Compiling CryptoSwift CipherModeWorker.swift
[65/111] Compiling CryptoSwift ECB.swift
[66/111] Compiling CryptoSwift GCM.swift
[67/111] Compiling CryptoSwift OCB.swift
[68/111] Compiling CryptoSwift OFB.swift
[69/111] Compiling CryptoSwift PCBC.swift
[70/111] Compiling CryptoSwift Blowfish.swift
[71/111] Compiling CryptoSwift SecureBytes.swift
[72/111] Compiling CryptoSwift Signature.swift
[73/111] Compiling CryptoSwift StreamDecryptor.swift
[74/111] Compiling CryptoSwift StreamEncryptor.swift
[75/111] Compiling CryptoSwift String+Extension.swift
[76/111] Compiling CryptoSwift UInt128.swift
[77/111] Compiling CryptoSwift UInt16+Extension.swift
[78/111] Compiling CryptoSwift UInt32+Extension.swift
[79/111] Compiling CryptoSwift UInt64+Extension.swift
[80/111] Compiling CryptoSwift UInt8+Extension.swift
[81/111] Compiling CryptoSwift Updatable.swift
[82/111] Compiling CryptoSwift Utils.swift
[83/111] Compiling CryptoSwift ZeroPadding.swift
[84/111] Emitting module CryptoSwift
[85/111] Compiling CryptoSwift AEAD.swift
[86/111] Compiling CryptoSwift AEADChaCha20Poly1305.swift
[87/111] Compiling CryptoSwift AES.Cryptors.swift
[88/111] Compiling CryptoSwift AES.swift
[89/111] Compiling CryptoSwift ASN1.swift
[90/111] Compiling CryptoSwift ASN1Decoder.swift
[91/111] Compiling CryptoSwift ASN1Encoder.swift
[92/111] Compiling CryptoSwift ASN1Scanner.swift
[93/111] Compiling CryptoSwift Array+Extension.swift
[94/111] Compiling CryptoSwift Authenticator.swift
[95/111] Compiling CryptoSwift BatchedCollection.swift
[96/111] Compiling CryptoSwift Bit.swift
[97/111] Compiling CryptoSwift BlockCipher.swift
[98/111] Compiling CryptoSwift BlockDecryptor.swift
[99/111] Compiling CryptoSwift PKCS5.swift
[100/111] Compiling CryptoSwift PKCS7.swift
[101/111] Compiling CryptoSwift PKCS7Padding.swift
[102/111] Compiling CryptoSwift Padding.swift
[103/111] Compiling CryptoSwift Poly1305.swift
[104/111] Compiling CryptoSwift RSA+Cipher.swift
[105/111] Compiling CryptoSwift RSA+Signature.swift
[106/111] Compiling CryptoSwift RSA.swift
[107/111] Compiling CryptoSwift Rabbit.swift
[108/111] Compiling CryptoSwift SHA1.swift
[109/111] Compiling CryptoSwift SHA2.swift
[110/111] Compiling CryptoSwift SHA3.swift
[111/111] Compiling CryptoSwift Scrypt.swift
[114/115] Emitting module AwsSign
[115/115] Compiling AwsSign AwsSign.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[118/120] Compiling AwsLambda Models.swift
[119/120] 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 {
                                                                                                                                                     ^~~~~~~~~~
[120/120] 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.9 linux

Build Machine: Linux 1