Build Information
Failed to build CryptorRSA, reference 1.0.203 (f40325), with Swift 6.2 for Linux on 23 Jun 2025 14:19:24 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.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
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.2
Building package at path: $PWD
https://github.com/Kitura/BlueRSA.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.36s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (3.53s)
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 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"
[4/10] Compiling CryptorRSA Data+Extensions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/11] Compiling CryptorRSA CryptorRSADigest.swift
[6/11] Compiling CryptorRSA CryptorRSAErrors.swift
[7/11] Compiling CryptorRSA CryptorRSAConstants.swift
[8/11] Emitting module CryptorRSA
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:453:15: warning: 'EVP_PKEY_get1_RSA' is deprecated [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
455 | RSA_free(rsa)
456 | defer {
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:455:5: warning: 'RSA_free' is deprecated [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
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))
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[9/11] Compiling CryptorRSA CryptorRSAKey.swift
[10/11] Compiling CryptorRSA CryptorRSA.swift
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:322:24: warning: 'EVP_PKEY_get1_RSA' is deprecated [#DeprecatedDeclaration]
320 | }
321 | // get rsaKey
322 | guard let rsaKey = EVP_PKEY_get1_RSA(.make(optional: key.reference)) else {
| `- warning: 'EVP_PKEY_get1_RSA' is deprecated [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
328 | }
329 | defer {
330 | RSA_free(rsaKey)
| `- warning: 'RSA_free' is deprecated [#DeprecatedDeclaration]
331 | }
332 |
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:394:6: warning: 'RSA_public_encrypt' is deprecated [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
455 | RSA_free(rsa)
456 | defer {
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:455:5: warning: 'RSA_free' is deprecated [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
558 | }
559 | // get rsaKey
560 | guard let rsaKey = EVP_PKEY_get1_RSA(.make(optional: key.reference)) else {
| `- warning: 'EVP_PKEY_get1_RSA' is deprecated [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
566 | }
567 | defer {
568 | RSA_free(rsaKey)
| `- warning: 'RSA_free' is deprecated [#DeprecatedDeclaration]
569 | }
570 |
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:629:11: warning: 'RSA_private_decrypt' is deprecated [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
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()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[11/11] Compiling CryptorRSA SSLPointerTricks.swift
BUILD FAILURE 6.2 linux