The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AwsLambda, reference master (8aec1f), with Swift 6.2 for Linux on 17 Jun 2025 21:33:28 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.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:             6.2
Building package at path:  $PWD
https://github.com/nikola-mladenovic/AwsSwiftLambdaSdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/nikola-mladenovic/AwsSwiftSign.git
[1/54] Fetching awsswiftsign
Fetched https://github.com/nikola-mladenovic/AwsSwiftSign.git from cache (0.19s)
Computing version for https://github.com/nikola-mladenovic/AwsSwiftSign.git
Computed https://github.com/nikola-mladenovic/AwsSwiftSign.git at 0.4.0 (3.17s)
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
[1/12941] Fetching cryptoswift
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (1.58s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.8.4 (2.71s)
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.4
Building for debugging...
[0/5] Copying PrivacyInfo.xcprivacy
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/106] Emitting module CryptoSwift
[7/120] Compiling CryptoSwift CMAC.swift
[8/120] Compiling CryptoSwift Addition.swift
[9/120] Compiling CryptoSwift BigInt.swift
[10/120] Compiling CryptoSwift BigUInt.swift
[11/120] Compiling CryptoSwift BitwiseOps.swift
[12/120] Compiling CryptoSwift CS.swift
[13/120] Compiling CryptoSwift Codable.swift
[14/120] Compiling CryptoSwift Comparable.swift
[15/120] Compiling CryptoSwift DataConversion.swift
[16/120] Compiling CryptoSwift Division.swift
[17/120] Compiling CryptoSwift Exponentiation.swift
[18/120] Compiling CryptoSwift FloatingPointConversion.swift
[19/120] Compiling CryptoSwift GCD.swift
[20/120] Compiling CryptoSwift Hashable.swift
[21/120] Compiling CryptoSwift XChaCha20+Foundation.swift
[22/120] Compiling CryptoSwift Generics.swift
[23/120] Compiling CryptoSwift HKDF.swift
[24/120] Compiling CryptoSwift HMAC.swift
[25/120] Compiling CryptoSwift ISO10126Padding.swift
[26/120] Compiling CryptoSwift ISO78164Padding.swift
[27/120] Compiling CryptoSwift Int+Extension.swift
[28/120] Compiling CryptoSwift MD5.swift
[29/120] Compiling CryptoSwift NoPadding.swift
[30/120] Compiling CryptoSwift Operators.swift
[31/120] Compiling CryptoSwift DER.swift
[32/120] Compiling CryptoSwift PBKDF1.swift
[33/120] Compiling CryptoSwift PBKDF2.swift
[34/120] Compiling CryptoSwift PKCS1v15.swift
[35/120] Compiling CryptoSwift BlockEncryptor.swift
[36/120] Compiling CryptoSwift BlockMode.swift
[37/120] Compiling CryptoSwift BlockModeOptions.swift
[38/120] Compiling CryptoSwift CBC.swift
[39/120] Compiling CryptoSwift CCM.swift
[40/120] Compiling CryptoSwift CFB.swift
[41/120] Compiling CryptoSwift CTR.swift
[42/120] Compiling CryptoSwift CipherModeWorker.swift
[43/120] Compiling CryptoSwift ECB.swift
[44/120] Compiling CryptoSwift GCM.swift
[45/120] Compiling CryptoSwift OCB.swift
[46/120] Compiling CryptoSwift OFB.swift
[47/120] Compiling CryptoSwift PCBC.swift
[48/120] Compiling CryptoSwift Blowfish.swift
[49/120] Compiling CryptoSwift CBCMAC.swift
[50/120] Compiling CryptoSwift CompactMap.swift
[51/120] Compiling CryptoSwift Cryptor.swift
[52/120] Compiling CryptoSwift Cryptors.swift
[53/120] Compiling CryptoSwift Digest.swift
[54/120] Compiling CryptoSwift DigestType.swift
[55/120] Compiling CryptoSwift AES+Foundation.swift
[56/120] Compiling CryptoSwift Array+Foundation.swift
[57/120] Compiling CryptoSwift Blowfish+Foundation.swift
[58/120] Compiling CryptoSwift ChaCha20+Foundation.swift
[59/120] Compiling CryptoSwift Data+Extension.swift
[60/120] Compiling CryptoSwift HMAC+Foundation.swift
[61/120] Compiling CryptoSwift Rabbit+Foundation.swift
[62/120] Compiling CryptoSwift String+FoundationExtension.swift
[63/120] Compiling CryptoSwift Utils+Foundation.swift
[64/120] Compiling CryptoSwift Signature.swift
[65/120] Compiling CryptoSwift StreamDecryptor.swift
[66/120] Compiling CryptoSwift StreamEncryptor.swift
[67/120] Compiling CryptoSwift String+Extension.swift
[68/120] Compiling CryptoSwift UInt128.swift
[69/120] Compiling CryptoSwift UInt16+Extension.swift
[70/120] Compiling CryptoSwift UInt32+Extension.swift
[71/120] Compiling CryptoSwift UInt64+Extension.swift
[72/120] Compiling CryptoSwift UInt8+Extension.swift
[73/120] Compiling CryptoSwift Updatable.swift
[74/120] Compiling CryptoSwift Utils.swift
[75/120] Compiling CryptoSwift XChaCha20.swift
[76/120] Compiling CryptoSwift ZeroPadding.swift
[77/120] Compiling CryptoSwift resource_bundle_accessor.swift
[78/120] Compiling CryptoSwift IntegerConversion.swift
[79/120] Compiling CryptoSwift Multiplication.swift
[80/120] Compiling CryptoSwift PrimeTest.swift
[81/120] Compiling CryptoSwift Random.swift
[82/120] Compiling CryptoSwift Shifts.swift
[83/120] Compiling CryptoSwift SquareRoot.swift
[84/120] Compiling CryptoSwift Strideable.swift
[85/120] Compiling CryptoSwift StringConversion.swift
[86/120] Compiling CryptoSwift Subtraction.swift
[87/120] Compiling CryptoSwift WordsAndBits.swift
[88/120] Compiling CryptoSwift ChaCha20.swift
[89/120] Compiling CryptoSwift Checksum.swift
[90/120] Compiling CryptoSwift Cipher.swift
[91/120] Compiling CryptoSwift Collection+Extension.swift
[92/120] Compiling CryptoSwift AEAD.swift
[93/120] Compiling CryptoSwift AEADChaCha20Poly1305.swift
[94/120] Compiling CryptoSwift AEADXChaCha20Poly1305.swift
[95/120] Compiling CryptoSwift AES.Cryptors.swift
[96/120] Compiling CryptoSwift AES.swift
[97/120] Compiling CryptoSwift ASN1.swift
[98/120] Compiling CryptoSwift ASN1Decoder.swift
[99/120] Compiling CryptoSwift ASN1Encoder.swift
[100/120] Compiling CryptoSwift ASN1Scanner.swift
[101/120] Compiling CryptoSwift Array+Extension.swift
[102/120] Compiling CryptoSwift Authenticator.swift
[103/120] Compiling CryptoSwift BatchedCollection.swift
[104/120] Compiling CryptoSwift Bit.swift
[105/120] Compiling CryptoSwift BlockCipher.swift
[106/120] Compiling CryptoSwift BlockDecryptor.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] Emitting module AwsSign
[123/123] Compiling AwsSign AwsSign.swift
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.
  8 |
  9 |     fileprivate let host: String
 10 |     fileprivate let session: URLSession
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     fileprivate let accessKeyId: String
 12 |     fileprivate let secretAccessKey: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 19 |     ///   - accessKeyId: The access key for using the Lambda.
 20 |     ///   - secretAccessKey: The secret access key for using the Lambda.
 21 |     public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |         var normalizedHost = host
 23 |         if normalizedHost.hasSuffix("/") {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:53: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 19 |     ///   - accessKeyId: The access key for using the Lambda.
 20 |     ///   - secretAccessKey: The secret access key for using the Lambda.
 21 |     public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
    |                                                     `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |         var normalizedHost = host
 23 |         if normalizedHost.hasSuffix("/") {
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:80: error: cannot infer contextual base in reference to member 'default'
 19 |     ///   - accessKeyId: The access key for using the Lambda.
 20 |     ///   - secretAccessKey: The secret access key for using the Lambda.
 21 |     public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
    |                                                                                `- error: cannot infer contextual base in reference to member 'default'
 22 |         var normalizedHost = host
 23 |         if normalizedHost.hasSuffix("/") {
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:130:150: error: cannot find type 'URLRequest' in scope
128 |     }
129 |
130 |     private func request(path: String, urlParams: [String : String?] = [:], headerFields: [String : String] = [:], body: Encodable? = nil) throws -> URLRequest {
    |                                                                                                                                                      `- error: cannot find type 'URLRequest' in scope
131 |         var formattedPath = path
132 |         if formattedPath.hasSuffix("/") {
[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.
  8 |
  9 |     fileprivate let host: String
 10 |     fileprivate let session: URLSession
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     fileprivate let accessKeyId: String
 12 |     fileprivate let secretAccessKey: String
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 19 |     ///   - accessKeyId: The access key for using the Lambda.
 20 |     ///   - secretAccessKey: The secret access key for using the Lambda.
 21 |     public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |         var normalizedHost = host
 23 |         if normalizedHost.hasSuffix("/") {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:53: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 19 |     ///   - accessKeyId: The access key for using the Lambda.
 20 |     ///   - secretAccessKey: The secret access key for using the Lambda.
 21 |     public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
    |                                                     `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 22 |         var normalizedHost = host
 23 |         if normalizedHost.hasSuffix("/") {
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:21:80: error: cannot infer contextual base in reference to member 'default'
 19 |     ///   - accessKeyId: The access key for using the Lambda.
 20 |     ///   - secretAccessKey: The secret access key for using the Lambda.
 21 |     public init(host: String, session: URLSession = URLSession(configuration: .default), accessKeyId: String, secretAccessKey: String) {
    |                                                                                `- error: cannot infer contextual base in reference to member 'default'
 22 |         var normalizedHost = host
 23 |         if normalizedHost.hasSuffix("/") {
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:130:150: error: cannot find type 'URLRequest' in scope
128 |     }
129 |
130 |     private func request(path: String, urlParams: [String : String?] = [:], headerFields: [String : String] = [:], body: Encodable? = nil) throws -> URLRequest {
    |                                                                                                                                                      `- error: cannot find type 'URLRequest' in scope
131 |         var formattedPath = path
132 |         if formattedPath.hasSuffix("/") {
/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. [#DeprecatedDeclaration]
 22 |         var normalizedHost = host
 23 |         if normalizedHost.hasSuffix("/") {
 24 |             normalizedHost.remove(at: String.Index(encodedOffset: normalizedHost.count - 1))
    |                                              `- 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. [#DeprecatedDeclaration]
 25 |         }
 26 |
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:66:22: error: cannot find type 'URLRequest' in scope
 64 |                              "X-Amz-Client-Context" : "{}".data(using: .utf8)?.base64EncodedString() ?? ""]
 65 |
 66 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 67 |         do {
 68 |             request = try self.request(path: "2015-03-31/functions/\(name)/invocations", headerFields: headerFields, body: payload)
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:74:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 72 |         }
 73 |
 74 |         awsLambda.session.dataTask(with: request, completionHandler: { data, response, error in
    |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 75 |             guard let response = response as? HTTPURLResponse, response.statusCode <= 299, error == nil else {
 76 |                 let errorDescripiton: String
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:75:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 73 |
 74 |         awsLambda.session.dataTask(with: request, completionHandler: { data, response, error in
 75 |             guard let response = response as? HTTPURLResponse, response.statusCode <= 299, error == nil else {
    |                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 76 |                 let errorDescripiton: String
 77 |                 if let data = data, let message = String(data: data, encoding: .utf8) {
/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. [#DeprecatedDeclaration]
131 |         var formattedPath = path
132 |         if formattedPath.hasSuffix("/") {
133 |             formattedPath.remove(at: String.Index(encodedOffset: path.count - 1))
    |                                             `- 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. [#DeprecatedDeclaration]
134 |         }
135 |         var urlComponents = URLComponents(string: "\(awsLambda.host)/\(formattedPath)")!
/host/spi-builder-workspace/Sources/AwsLambda/AwsLambda.swift:139:26: error: cannot find 'URLRequest' in scope
137 |             .map { URLQueryItem(name: $0.key, value: $0.value) }
138 |
139 |         var urlRequest = URLRequest(url: urlComponents.url!)
    |                          `- error: cannot find 'URLRequest' in scope
140 |         urlRequest.httpMethod = "POST"
141 |         urlRequest.addValue("application/json", forHTTPHeaderField: "Content-Type")
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
BUILD FAILURE 6.2 linux