The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build CryptorRSA, reference 1.0.203 (f40325), with Swift 6.1 for Linux on 1 May 2025 05:24:21 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kitura/BlueRSA.git
Reference: 1.0.203
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/Kitura/BlueRSA
 * tag               1.0.203    -> FETCH_HEAD
HEAD is now at f403255 Updating version to 1.0.203 (#87)
Cloned https://github.com/Kitura/BlueRSA.git
Revision (git rev-parse @):
f40325520344a966523b214394aa350132a6af68
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Kitura/BlueRSA.git at 1.0.203
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Kitura/BlueRSA.git
https://github.com/Kitura/BlueRSA.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "openssl",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.2.200",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kitura/OpenSSL.git"
    }
  ],
  "manifest_display_name" : "CryptorRSA",
  "name" : "CryptorRSA",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CryptorRSA",
      "targets" : [
        "CryptorRSA"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CryptorRSATests",
      "module_type" : "SwiftTarget",
      "name" : "CryptorRSATests",
      "path" : "Tests/CryptorRSATests",
      "sources" : [
        "CryptorRSATests.swift"
      ],
      "target_dependencies" : [
        "CryptorRSA"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CryptorRSA",
      "module_type" : "SwiftTarget",
      "name" : "CryptorRSA",
      "path" : "Sources/CryptorRSA",
      "product_dependencies" : [
        "OpenSSL"
      ],
      "product_memberships" : [
        "CryptorRSA"
      ],
      "sources" : [
        "CryptorRSA.swift",
        "CryptorRSAConstants.swift",
        "CryptorRSADigest.swift",
        "CryptorRSAErrors.swift",
        "CryptorRSAKey.swift",
        "CryptorRSAUtilities.swift",
        "Data+Extensions.swift",
        "SSLPointerTricks.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.30s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (4.11s)
Creating working copy for https://github.com/Kitura/OpenSSL.git
Working copy of https://github.com/Kitura/OpenSSL.git resolved at 2.3.1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling CryptorRSA Data+Extensions.swift
[4/11] Compiling CryptorRSA CryptorRSAConstants.swift
[5/11] Compiling CryptorRSA CryptorRSADigest.swift
[6/11] Compiling CryptorRSA CryptorRSAErrors.swift
[7/11] Compiling CryptorRSA CryptorRSAKey.swift
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:614:22: warning: static property 'bits1024' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
609 |
610 | 		/// Denotes the size of the RSA key.
611 | 		public struct KeySize {
    |                 `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
612 | 			let bits: Int
613 | 			/// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
614 | 			public static let bits1024 = KeySize(bits: 1024)
    |                      |- warning: static property 'bits1024' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: add '@MainActor' to make static property 'bits1024' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
615 | 			/// A 2048 bit RSA key. Recommended if security will not be required beyond 2030.
616 | 			public static let bits2048 = KeySize(bits: 2048)
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:616:22: warning: static property 'bits2048' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
609 |
610 | 		/// Denotes the size of the RSA key.
611 | 		public struct KeySize {
    |                 `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
612 | 			let bits: Int
613 | 			/// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
614 | 			public static let bits1024 = KeySize(bits: 1024)
615 | 			/// A 2048 bit RSA key. Recommended if security will not be required beyond 2030.
616 | 			public static let bits2048 = KeySize(bits: 2048)
    |                      |- warning: static property 'bits2048' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: add '@MainActor' to make static property 'bits2048' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
617 | 			/// A 3072 bit RSA key. Recommended if security is required beyond 2030.
618 | 			public static let bits3072 = KeySize(bits: 3072)
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:618:22: warning: static property 'bits3072' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
609 |
610 | 		/// Denotes the size of the RSA key.
611 | 		public struct KeySize {
    |                 `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
612 | 			let bits: Int
613 | 			/// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
    :
616 | 			public static let bits2048 = KeySize(bits: 2048)
617 | 			/// A 3072 bit RSA key. Recommended if security is required beyond 2030.
618 | 			public static let bits3072 = KeySize(bits: 3072)
    |                      |- warning: static property 'bits3072' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: add '@MainActor' to make static property 'bits3072' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
619 | 			/// A 4096 bit RSA key.
620 | 			public static let bits4096 = KeySize(bits: 4096)
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:620:22: warning: static property 'bits4096' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
609 |
610 | 		/// Denotes the size of the RSA key.
611 | 		public struct KeySize {
    |                 `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
612 | 			let bits: Int
613 | 			/// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
    :
618 | 			public static let bits3072 = KeySize(bits: 3072)
619 | 			/// A 4096 bit RSA key.
620 | 			public static let bits4096 = KeySize(bits: 4096)
    |                      |- warning: static property 'bits4096' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: add '@MainActor' to make static property 'bits4096' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
621 | 		}
622 |
[8/11] Compiling CryptorRSA CryptorRSAUtilities.swift
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAUtilities.swift:84:7: warning: variable 'keyMaybe' was never mutated; consider changing to 'let' constant
 82 |
 83 | 	        // Read in the key data and process depending on key type...
 84 | 		var keyMaybe = (type == .publicType ? d2i_PUBKEY_bio(bio, nil) : d2i_PrivateKey_bio(bio, nil))
    |       `- warning: variable 'keyMaybe' was never mutated; consider changing to 'let' constant
 85 | 		guard let key = keyMaybe else {
 86 | 			let source = "Failed to create key from BIO"
[9/11] Compiling CryptorRSA CryptorRSA.swift
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:322:24: warning: 'EVP_PKEY_get1_RSA' is deprecated
 320 | 				}
 321 | 				// get rsaKey
 322 | 				guard let rsaKey = EVP_PKEY_get1_RSA(.make(optional: key.reference)) else {
     |                        `- warning: 'EVP_PKEY_get1_RSA' is deprecated
 323 | 					let source = "Couldn't create key reference from key data"
 324 | 					if let reason = CryptorRSA.getLastError(source: source) {
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:330:6: warning: 'RSA_free' is deprecated
 328 | 				}
 329 | 				defer {
 330 | 					RSA_free(rsaKey)
     |      `- warning: 'RSA_free' is deprecated
 331 | 				}
 332 |
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:394:6: warning: 'RSA_public_encrypt' is deprecated
 392 | 					EVP_EncryptInit_ex(rsaEncryptCtx, nil, nil, aeskey, iv) == 1,
 393 | 					// Encrypt the aes key using the rsa public key with SHA1, OAEP padding.
 394 | 					RSA_public_encrypt(Int32(keySize), aeskey, encryptedKey, .make(optional: rsaKey), RSA_PKCS1_OAEP_PADDING) == encryptedCapacity,
     |      `- warning: 'RSA_public_encrypt' is deprecated
 395 | 					// Add the aad to the encryption context.
 396 | 					// This is used in generating the GCM tag. We don't use this processedLength.
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:453:15: warning: 'EVP_PKEY_get1_RSA' is deprecated
 451 | 				// Copy the EVP Key
 452 | 				var evp_key = EVP_PKEY_new()
 453 | 				let rsa = EVP_PKEY_get1_RSA(.make(optional: key.reference))
     |               `- warning: 'EVP_PKEY_get1_RSA' is deprecated
 454 | 				EVP_PKEY_set1_RSA(evp_key, rsa)
 455 | 				RSA_free(rsa)
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:454:5: warning: 'EVP_PKEY_set1_RSA' is deprecated
 452 | 				var evp_key = EVP_PKEY_new()
 453 | 				let rsa = EVP_PKEY_get1_RSA(.make(optional: key.reference))
 454 | 				EVP_PKEY_set1_RSA(evp_key, rsa)
     |     `- warning: 'EVP_PKEY_set1_RSA' is deprecated
 455 | 				RSA_free(rsa)
 456 | 				defer {
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:455:5: warning: 'RSA_free' is deprecated
 453 | 				let rsa = EVP_PKEY_get1_RSA(.make(optional: key.reference))
 454 | 				EVP_PKEY_set1_RSA(evp_key, rsa)
 455 | 				RSA_free(rsa)
     |     `- warning: 'RSA_free' is deprecated
 456 | 				defer {
 457 | 					EVP_PKEY_free(evp_key)
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:476:61: error: cannot find 'EVP_PKEY_size' in scope
 474 | 				typealias UInt8Ptr = UnsafeMutablePointer<UInt8>?
 475 | 				var ek: UInt8Ptr
 476 | 				ek = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(EVP_PKEY_size(.make(optional: key.reference))))
     |                                                             `- error: cannot find 'EVP_PKEY_size' in scope
 477 | 				let ekPtr = UnsafeMutablePointer<UInt8Ptr>.allocate(capacity: MemoryLayout<UInt8Ptr>.size)
 478 | 				ekPtr.pointee = ek
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:476:76: error: cannot infer contextual base in reference to member 'make'
 474 | 				typealias UInt8Ptr = UnsafeMutablePointer<UInt8>?
 475 | 				var ek: UInt8Ptr
 476 | 				ek = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(EVP_PKEY_size(.make(optional: key.reference))))
     |                                                                            `- error: cannot infer contextual base in reference to member 'make'
 477 | 				let ekPtr = UnsafeMutablePointer<UInt8Ptr>.allocate(capacity: MemoryLayout<UInt8Ptr>.size)
 478 | 				ekPtr.pointee = ek
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:481:20: error: cannot find 'EVP_CIPHER_iv_length' in scope
 479 |
 480 | 				// Assign size of the corresponding cipher's IV
 481 | 				let IVLength = EVP_CIPHER_iv_length(.make(optional: enc))
     |                    `- error: cannot find 'EVP_CIPHER_iv_length' in scope
 482 | 				let iv = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(IVLength))
 483 | 				let encrypted = UnsafeMutablePointer<UInt8>.allocate(capacity: self.data.count + Int(IVLength))
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:481:42: error: cannot infer contextual base in reference to member 'make'
 479 |
 480 | 				// Assign size of the corresponding cipher's IV
 481 | 				let IVLength = EVP_CIPHER_iv_length(.make(optional: enc))
     |                                          `- error: cannot infer contextual base in reference to member 'make'
 482 | 				let iv = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(IVLength))
 483 | 				let encrypted = UnsafeMutablePointer<UInt8>.allocate(capacity: self.data.count + Int(IVLength))
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:560:24: warning: 'EVP_PKEY_get1_RSA' is deprecated
 558 | 				}
 559 | 				// get rsaKey
 560 | 				guard let rsaKey = EVP_PKEY_get1_RSA(.make(optional: key.reference)) else {
     |                        `- warning: 'EVP_PKEY_get1_RSA' is deprecated
 561 | 					let source = "Couldn't create key reference from key data"
 562 | 					if let reason = CryptorRSA.getLastError(source: source) {
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:568:6: warning: 'RSA_free' is deprecated
 566 | 				}
 567 | 				defer {
 568 | 					RSA_free(rsaKey)
     |      `- warning: 'RSA_free' is deprecated
 569 | 				}
 570 |
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:629:11: warning: 'RSA_private_decrypt' is deprecated
 627 |
 628 | 				// Decrypt the encryptedKey into the aeskey using the RSA private key
 629 | 				guard RSA_private_decrypt(Int32(encryptedKey.count), [UInt8](encryptedKey), aeskey, rsaKey, RSA_PKCS1_OAEP_PADDING) != 0,
     |           `- warning: 'RSA_private_decrypt' is deprecated
 630 | 					// Set the IV length to be 16 bytes.
 631 | 					EVP_CIPHER_CTX_ctrl(rsaDecryptCtx, EVP_CTRL_GCM_SET_IVLEN, 16, nil) == 1,
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:688:28: error: cannot find 'EVP_PKEY_size' in scope
 686 |
 687 | 				// Size of symmetric encryption
 688 | 				let encKeyLength = Int(EVP_PKEY_size(.make(optional: key.reference)))
     |                            `- error: cannot find 'EVP_PKEY_size' in scope
 689 | 				// Size of the corresponding cipher's IV
 690 | 				let encIVLength = Int(EVP_CIPHER_iv_length(.make(optional: encType)))
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:688:43: error: cannot infer contextual base in reference to member 'make'
 686 |
 687 | 				// Size of symmetric encryption
 688 | 				let encKeyLength = Int(EVP_PKEY_size(.make(optional: key.reference)))
     |                                           `- error: cannot infer contextual base in reference to member 'make'
 689 | 				// Size of the corresponding cipher's IV
 690 | 				let encIVLength = Int(EVP_CIPHER_iv_length(.make(optional: encType)))
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:690:27: error: cannot find 'EVP_CIPHER_iv_length' in scope
 688 | 				let encKeyLength = Int(EVP_PKEY_size(.make(optional: key.reference)))
 689 | 				// Size of the corresponding cipher's IV
 690 | 				let encIVLength = Int(EVP_CIPHER_iv_length(.make(optional: encType)))
     |                           `- error: cannot find 'EVP_CIPHER_iv_length' in scope
 691 | 				// Size of encryptedKey
 692 | 				let encryptedDataLength = Int(self.data.count) - encKeyLength - encIVLength
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:690:49: error: cannot infer contextual base in reference to member 'make'
 688 | 				let encKeyLength = Int(EVP_PKEY_size(.make(optional: key.reference)))
 689 | 				// Size of the corresponding cipher's IV
 690 | 				let encIVLength = Int(EVP_CIPHER_iv_length(.make(optional: encType)))
     |                                                 `- error: cannot infer contextual base in reference to member 'make'
 691 | 				// Size of encryptedKey
 692 | 				let encryptedDataLength = Int(self.data.count) - encKeyLength - encIVLength
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:697:74: error: cannot convert value of type 'String' to expected argument type 'Data.Index' (aka 'Int')
 695 | 				// self.data = encryptedKey + encryptedData + encryptedIV
 696 | 				let encryptedKey = self.data.subdata(in: 0..<encKeyLength)
 697 | 				let encryptedData = self.data.subdata(in: encKeyLength..<encKeyLength+encryptedDataLength)
     |                                                                          `- error: cannot convert value of type 'String' to expected argument type 'Data.Index' (aka 'Int')
 698 | 				let encryptedIV = self.data.subdata(in: encKeyLength+encryptedDataLength..<self.data.count)
 699 |
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:698:57: error: cannot convert value of type 'String' to expected argument type 'Data.Index' (aka 'Int')
 696 | 				let encryptedKey = self.data.subdata(in: 0..<encKeyLength)
 697 | 				let encryptedData = self.data.subdata(in: encKeyLength..<encKeyLength+encryptedDataLength)
 698 | 				let encryptedIV = self.data.subdata(in: encKeyLength+encryptedDataLength..<self.data.count)
     |                                                         `- error: cannot convert value of type 'String' to expected argument type 'Data.Index' (aka 'Int')
 699 |
 700 | 				let rsaDecryptCtx = EVP_CIPHER_CTX_new_wrapper()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/11] Emitting module CryptorRSA
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:453:15: warning: 'EVP_PKEY_get1_RSA' is deprecated
 451 | 				// Copy the EVP Key
 452 | 				var evp_key = EVP_PKEY_new()
 453 | 				let rsa = EVP_PKEY_get1_RSA(.make(optional: key.reference))
     |               `- warning: 'EVP_PKEY_get1_RSA' is deprecated
 454 | 				EVP_PKEY_set1_RSA(evp_key, rsa)
 455 | 				RSA_free(rsa)
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:454:5: warning: 'EVP_PKEY_set1_RSA' is deprecated
 452 | 				var evp_key = EVP_PKEY_new()
 453 | 				let rsa = EVP_PKEY_get1_RSA(.make(optional: key.reference))
 454 | 				EVP_PKEY_set1_RSA(evp_key, rsa)
     |     `- warning: 'EVP_PKEY_set1_RSA' is deprecated
 455 | 				RSA_free(rsa)
 456 | 				defer {
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:455:5: warning: 'RSA_free' is deprecated
 453 | 				let rsa = EVP_PKEY_get1_RSA(.make(optional: key.reference))
 454 | 				EVP_PKEY_set1_RSA(evp_key, rsa)
 455 | 				RSA_free(rsa)
     |     `- warning: 'RSA_free' is deprecated
 456 | 				defer {
 457 | 					EVP_PKEY_free(evp_key)
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:476:61: error: cannot find 'EVP_PKEY_size' in scope
 474 | 				typealias UInt8Ptr = UnsafeMutablePointer<UInt8>?
 475 | 				var ek: UInt8Ptr
 476 | 				ek = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(EVP_PKEY_size(.make(optional: key.reference))))
     |                                                             `- error: cannot find 'EVP_PKEY_size' in scope
 477 | 				let ekPtr = UnsafeMutablePointer<UInt8Ptr>.allocate(capacity: MemoryLayout<UInt8Ptr>.size)
 478 | 				ekPtr.pointee = ek
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:476:76: error: cannot infer contextual base in reference to member 'make'
 474 | 				typealias UInt8Ptr = UnsafeMutablePointer<UInt8>?
 475 | 				var ek: UInt8Ptr
 476 | 				ek = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(EVP_PKEY_size(.make(optional: key.reference))))
     |                                                                            `- error: cannot infer contextual base in reference to member 'make'
 477 | 				let ekPtr = UnsafeMutablePointer<UInt8Ptr>.allocate(capacity: MemoryLayout<UInt8Ptr>.size)
 478 | 				ekPtr.pointee = ek
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:481:20: error: cannot find 'EVP_CIPHER_iv_length' in scope
 479 |
 480 | 				// Assign size of the corresponding cipher's IV
 481 | 				let IVLength = EVP_CIPHER_iv_length(.make(optional: enc))
     |                    `- error: cannot find 'EVP_CIPHER_iv_length' in scope
 482 | 				let iv = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(IVLength))
 483 | 				let encrypted = UnsafeMutablePointer<UInt8>.allocate(capacity: self.data.count + Int(IVLength))
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:481:42: error: cannot infer contextual base in reference to member 'make'
 479 |
 480 | 				// Assign size of the corresponding cipher's IV
 481 | 				let IVLength = EVP_CIPHER_iv_length(.make(optional: enc))
     |                                          `- error: cannot infer contextual base in reference to member 'make'
 482 | 				let iv = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(IVLength))
 483 | 				let encrypted = UnsafeMutablePointer<UInt8>.allocate(capacity: self.data.count + Int(IVLength))
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:614:22: warning: static property 'bits1024' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
609 |
610 | 		/// Denotes the size of the RSA key.
611 | 		public struct KeySize {
    |                 `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
612 | 			let bits: Int
613 | 			/// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
614 | 			public static let bits1024 = KeySize(bits: 1024)
    |                      |- warning: static property 'bits1024' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: add '@MainActor' to make static property 'bits1024' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
615 | 			/// A 2048 bit RSA key. Recommended if security will not be required beyond 2030.
616 | 			public static let bits2048 = KeySize(bits: 2048)
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:616:22: warning: static property 'bits2048' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
609 |
610 | 		/// Denotes the size of the RSA key.
611 | 		public struct KeySize {
    |                 `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
612 | 			let bits: Int
613 | 			/// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
614 | 			public static let bits1024 = KeySize(bits: 1024)
615 | 			/// A 2048 bit RSA key. Recommended if security will not be required beyond 2030.
616 | 			public static let bits2048 = KeySize(bits: 2048)
    |                      |- warning: static property 'bits2048' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: add '@MainActor' to make static property 'bits2048' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
617 | 			/// A 3072 bit RSA key. Recommended if security is required beyond 2030.
618 | 			public static let bits3072 = KeySize(bits: 3072)
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:618:22: warning: static property 'bits3072' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
609 |
610 | 		/// Denotes the size of the RSA key.
611 | 		public struct KeySize {
    |                 `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
612 | 			let bits: Int
613 | 			/// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
    :
616 | 			public static let bits2048 = KeySize(bits: 2048)
617 | 			/// A 3072 bit RSA key. Recommended if security is required beyond 2030.
618 | 			public static let bits3072 = KeySize(bits: 3072)
    |                      |- warning: static property 'bits3072' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: add '@MainActor' to make static property 'bits3072' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
619 | 			/// A 4096 bit RSA key.
620 | 			public static let bits4096 = KeySize(bits: 4096)
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAKey.swift:620:22: warning: static property 'bits4096' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
609 |
610 | 		/// Denotes the size of the RSA key.
611 | 		public struct KeySize {
    |                 `- note: consider making struct 'KeySize' conform to the 'Sendable' protocol
612 | 			let bits: Int
613 | 			/// A 1024 bit RSA key. Not recommended since this may become breakable in the near future.
    :
618 | 			public static let bits3072 = KeySize(bits: 3072)
619 | 			/// A 4096 bit RSA key.
620 | 			public static let bits4096 = KeySize(bits: 4096)
    |                      |- warning: static property 'bits4096' is not concurrency-safe because non-'Sendable' type 'CryptorRSA.RSAKey.KeySize' may have shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: add '@MainActor' to make static property 'bits4096' part of global actor 'MainActor'
    |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
621 | 		}
622 |
[11/11] Compiling CryptorRSA SSLPointerTricks.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling CryptorRSA Data+Extensions.swift
[3/10] Compiling CryptorRSA CryptorRSAConstants.swift
[4/10] Compiling CryptorRSA CryptorRSAErrors.swift
[5/10] Compiling CryptorRSA SSLPointerTricks.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/10] Emitting module CryptorRSA
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:453:15: warning: 'EVP_PKEY_get1_RSA' is deprecated
 451 | 				// Copy the EVP Key
 452 | 				var evp_key = EVP_PKEY_new()
 453 | 				let rsa = EVP_PKEY_get1_RSA(.make(optional: key.reference))
     |               `- warning: 'EVP_PKEY_get1_RSA' is deprecated
 454 | 				EVP_PKEY_set1_RSA(evp_key, rsa)
 455 | 				RSA_free(rsa)
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:454:5: warning: 'EVP_PKEY_set1_RSA' is deprecated
 452 | 				var evp_key = EVP_PKEY_new()
 453 | 				let rsa = EVP_PKEY_get1_RSA(.make(optional: key.reference))
 454 | 				EVP_PKEY_set1_RSA(evp_key, rsa)
     |     `- warning: 'EVP_PKEY_set1_RSA' is deprecated
 455 | 				RSA_free(rsa)
 456 | 				defer {
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:455:5: warning: 'RSA_free' is deprecated
 453 | 				let rsa = EVP_PKEY_get1_RSA(.make(optional: key.reference))
 454 | 				EVP_PKEY_set1_RSA(evp_key, rsa)
 455 | 				RSA_free(rsa)
     |     `- warning: 'RSA_free' is deprecated
 456 | 				defer {
 457 | 					EVP_PKEY_free(evp_key)
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:476:61: error: cannot find 'EVP_PKEY_size' in scope
 474 | 				typealias UInt8Ptr = UnsafeMutablePointer<UInt8>?
 475 | 				var ek: UInt8Ptr
 476 | 				ek = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(EVP_PKEY_size(.make(optional: key.reference))))
     |                                                             `- error: cannot find 'EVP_PKEY_size' in scope
 477 | 				let ekPtr = UnsafeMutablePointer<UInt8Ptr>.allocate(capacity: MemoryLayout<UInt8Ptr>.size)
 478 | 				ekPtr.pointee = ek
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:476:76: error: cannot infer contextual base in reference to member 'make'
 474 | 				typealias UInt8Ptr = UnsafeMutablePointer<UInt8>?
 475 | 				var ek: UInt8Ptr
 476 | 				ek = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(EVP_PKEY_size(.make(optional: key.reference))))
     |                                                                            `- error: cannot infer contextual base in reference to member 'make'
 477 | 				let ekPtr = UnsafeMutablePointer<UInt8Ptr>.allocate(capacity: MemoryLayout<UInt8Ptr>.size)
 478 | 				ekPtr.pointee = ek
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:481:20: error: cannot find 'EVP_CIPHER_iv_length' in scope
 479 |
 480 | 				// Assign size of the corresponding cipher's IV
 481 | 				let IVLength = EVP_CIPHER_iv_length(.make(optional: enc))
     |                    `- error: cannot find 'EVP_CIPHER_iv_length' in scope
 482 | 				let iv = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(IVLength))
 483 | 				let encrypted = UnsafeMutablePointer<UInt8>.allocate(capacity: self.data.count + Int(IVLength))
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:481:42: error: cannot infer contextual base in reference to member 'make'
 479 |
 480 | 				// Assign size of the corresponding cipher's IV
 481 | 				let IVLength = EVP_CIPHER_iv_length(.make(optional: enc))
     |                                          `- error: cannot infer contextual base in reference to member 'make'
 482 | 				let iv = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(IVLength))
 483 | 				let encrypted = UnsafeMutablePointer<UInt8>.allocate(capacity: self.data.count + Int(IVLength))
[7/10] Compiling CryptorRSA CryptorRSADigest.swift
[8/10] Compiling CryptorRSA CryptorRSAUtilities.swift
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSAUtilities.swift:84:7: warning: variable 'keyMaybe' was never mutated; consider changing to 'let' constant
 82 |
 83 | 	        // Read in the key data and process depending on key type...
 84 | 		var keyMaybe = (type == .publicType ? d2i_PUBKEY_bio(bio, nil) : d2i_PrivateKey_bio(bio, nil))
    |       `- warning: variable 'keyMaybe' was never mutated; consider changing to 'let' constant
 85 | 		guard let key = keyMaybe else {
 86 | 			let source = "Failed to create key from BIO"
[9/10] Compiling CryptorRSA CryptorRSA.swift
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:322:24: warning: 'EVP_PKEY_get1_RSA' is deprecated
 320 | 				}
 321 | 				// get rsaKey
 322 | 				guard let rsaKey = EVP_PKEY_get1_RSA(.make(optional: key.reference)) else {
     |                        `- warning: 'EVP_PKEY_get1_RSA' is deprecated
 323 | 					let source = "Couldn't create key reference from key data"
 324 | 					if let reason = CryptorRSA.getLastError(source: source) {
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:330:6: warning: 'RSA_free' is deprecated
 328 | 				}
 329 | 				defer {
 330 | 					RSA_free(rsaKey)
     |      `- warning: 'RSA_free' is deprecated
 331 | 				}
 332 |
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:394:6: warning: 'RSA_public_encrypt' is deprecated
 392 | 					EVP_EncryptInit_ex(rsaEncryptCtx, nil, nil, aeskey, iv) == 1,
 393 | 					// Encrypt the aes key using the rsa public key with SHA1, OAEP padding.
 394 | 					RSA_public_encrypt(Int32(keySize), aeskey, encryptedKey, .make(optional: rsaKey), RSA_PKCS1_OAEP_PADDING) == encryptedCapacity,
     |      `- warning: 'RSA_public_encrypt' is deprecated
 395 | 					// Add the aad to the encryption context.
 396 | 					// This is used in generating the GCM tag. We don't use this processedLength.
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:453:15: warning: 'EVP_PKEY_get1_RSA' is deprecated
 451 | 				// Copy the EVP Key
 452 | 				var evp_key = EVP_PKEY_new()
 453 | 				let rsa = EVP_PKEY_get1_RSA(.make(optional: key.reference))
     |               `- warning: 'EVP_PKEY_get1_RSA' is deprecated
 454 | 				EVP_PKEY_set1_RSA(evp_key, rsa)
 455 | 				RSA_free(rsa)
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:454:5: warning: 'EVP_PKEY_set1_RSA' is deprecated
 452 | 				var evp_key = EVP_PKEY_new()
 453 | 				let rsa = EVP_PKEY_get1_RSA(.make(optional: key.reference))
 454 | 				EVP_PKEY_set1_RSA(evp_key, rsa)
     |     `- warning: 'EVP_PKEY_set1_RSA' is deprecated
 455 | 				RSA_free(rsa)
 456 | 				defer {
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:455:5: warning: 'RSA_free' is deprecated
 453 | 				let rsa = EVP_PKEY_get1_RSA(.make(optional: key.reference))
 454 | 				EVP_PKEY_set1_RSA(evp_key, rsa)
 455 | 				RSA_free(rsa)
     |     `- warning: 'RSA_free' is deprecated
 456 | 				defer {
 457 | 					EVP_PKEY_free(evp_key)
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:476:61: error: cannot find 'EVP_PKEY_size' in scope
 474 | 				typealias UInt8Ptr = UnsafeMutablePointer<UInt8>?
 475 | 				var ek: UInt8Ptr
 476 | 				ek = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(EVP_PKEY_size(.make(optional: key.reference))))
     |                                                             `- error: cannot find 'EVP_PKEY_size' in scope
 477 | 				let ekPtr = UnsafeMutablePointer<UInt8Ptr>.allocate(capacity: MemoryLayout<UInt8Ptr>.size)
 478 | 				ekPtr.pointee = ek
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:476:76: error: cannot infer contextual base in reference to member 'make'
 474 | 				typealias UInt8Ptr = UnsafeMutablePointer<UInt8>?
 475 | 				var ek: UInt8Ptr
 476 | 				ek = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(EVP_PKEY_size(.make(optional: key.reference))))
     |                                                                            `- error: cannot infer contextual base in reference to member 'make'
 477 | 				let ekPtr = UnsafeMutablePointer<UInt8Ptr>.allocate(capacity: MemoryLayout<UInt8Ptr>.size)
 478 | 				ekPtr.pointee = ek
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:481:20: error: cannot find 'EVP_CIPHER_iv_length' in scope
 479 |
 480 | 				// Assign size of the corresponding cipher's IV
 481 | 				let IVLength = EVP_CIPHER_iv_length(.make(optional: enc))
     |                    `- error: cannot find 'EVP_CIPHER_iv_length' in scope
 482 | 				let iv = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(IVLength))
 483 | 				let encrypted = UnsafeMutablePointer<UInt8>.allocate(capacity: self.data.count + Int(IVLength))
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:481:42: error: cannot infer contextual base in reference to member 'make'
 479 |
 480 | 				// Assign size of the corresponding cipher's IV
 481 | 				let IVLength = EVP_CIPHER_iv_length(.make(optional: enc))
     |                                          `- error: cannot infer contextual base in reference to member 'make'
 482 | 				let iv = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(IVLength))
 483 | 				let encrypted = UnsafeMutablePointer<UInt8>.allocate(capacity: self.data.count + Int(IVLength))
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:560:24: warning: 'EVP_PKEY_get1_RSA' is deprecated
 558 | 				}
 559 | 				// get rsaKey
 560 | 				guard let rsaKey = EVP_PKEY_get1_RSA(.make(optional: key.reference)) else {
     |                        `- warning: 'EVP_PKEY_get1_RSA' is deprecated
 561 | 					let source = "Couldn't create key reference from key data"
 562 | 					if let reason = CryptorRSA.getLastError(source: source) {
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:568:6: warning: 'RSA_free' is deprecated
 566 | 				}
 567 | 				defer {
 568 | 					RSA_free(rsaKey)
     |      `- warning: 'RSA_free' is deprecated
 569 | 				}
 570 |
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:629:11: warning: 'RSA_private_decrypt' is deprecated
 627 |
 628 | 				// Decrypt the encryptedKey into the aeskey using the RSA private key
 629 | 				guard RSA_private_decrypt(Int32(encryptedKey.count), [UInt8](encryptedKey), aeskey, rsaKey, RSA_PKCS1_OAEP_PADDING) != 0,
     |           `- warning: 'RSA_private_decrypt' is deprecated
 630 | 					// Set the IV length to be 16 bytes.
 631 | 					EVP_CIPHER_CTX_ctrl(rsaDecryptCtx, EVP_CTRL_GCM_SET_IVLEN, 16, nil) == 1,
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:688:28: error: cannot find 'EVP_PKEY_size' in scope
 686 |
 687 | 				// Size of symmetric encryption
 688 | 				let encKeyLength = Int(EVP_PKEY_size(.make(optional: key.reference)))
     |                            `- error: cannot find 'EVP_PKEY_size' in scope
 689 | 				// Size of the corresponding cipher's IV
 690 | 				let encIVLength = Int(EVP_CIPHER_iv_length(.make(optional: encType)))
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:688:43: error: cannot infer contextual base in reference to member 'make'
 686 |
 687 | 				// Size of symmetric encryption
 688 | 				let encKeyLength = Int(EVP_PKEY_size(.make(optional: key.reference)))
     |                                           `- error: cannot infer contextual base in reference to member 'make'
 689 | 				// Size of the corresponding cipher's IV
 690 | 				let encIVLength = Int(EVP_CIPHER_iv_length(.make(optional: encType)))
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:690:27: error: cannot find 'EVP_CIPHER_iv_length' in scope
 688 | 				let encKeyLength = Int(EVP_PKEY_size(.make(optional: key.reference)))
 689 | 				// Size of the corresponding cipher's IV
 690 | 				let encIVLength = Int(EVP_CIPHER_iv_length(.make(optional: encType)))
     |                           `- error: cannot find 'EVP_CIPHER_iv_length' in scope
 691 | 				// Size of encryptedKey
 692 | 				let encryptedDataLength = Int(self.data.count) - encKeyLength - encIVLength
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:690:49: error: cannot infer contextual base in reference to member 'make'
 688 | 				let encKeyLength = Int(EVP_PKEY_size(.make(optional: key.reference)))
 689 | 				// Size of the corresponding cipher's IV
 690 | 				let encIVLength = Int(EVP_CIPHER_iv_length(.make(optional: encType)))
     |                                                 `- error: cannot infer contextual base in reference to member 'make'
 691 | 				// Size of encryptedKey
 692 | 				let encryptedDataLength = Int(self.data.count) - encKeyLength - encIVLength
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:697:74: error: cannot convert value of type 'String' to expected argument type 'Data.Index' (aka 'Int')
 695 | 				// self.data = encryptedKey + encryptedData + encryptedIV
 696 | 				let encryptedKey = self.data.subdata(in: 0..<encKeyLength)
 697 | 				let encryptedData = self.data.subdata(in: encKeyLength..<encKeyLength+encryptedDataLength)
     |                                                                          `- error: cannot convert value of type 'String' to expected argument type 'Data.Index' (aka 'Int')
 698 | 				let encryptedIV = self.data.subdata(in: encKeyLength+encryptedDataLength..<self.data.count)
 699 |
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:698:57: error: cannot convert value of type 'String' to expected argument type 'Data.Index' (aka 'Int')
 696 | 				let encryptedKey = self.data.subdata(in: 0..<encKeyLength)
 697 | 				let encryptedData = self.data.subdata(in: encKeyLength..<encKeyLength+encryptedDataLength)
 698 | 				let encryptedIV = self.data.subdata(in: encKeyLength+encryptedDataLength..<self.data.count)
     |                                                         `- error: cannot convert value of type 'String' to expected argument type 'Data.Index' (aka 'Int')
 699 |
 700 | 				let rsaDecryptCtx = EVP_CIPHER_CTX_new_wrapper()
[10/10] Compiling CryptorRSA CryptorRSAKey.swift
BUILD FAILURE 6.1 linux