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 5.10 for Linux on 3 Apr 2025 08:25:33 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
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:             5.10
Building package at path:  $PWD
https://github.com/Kitura/BlueRSA.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:8b386ca1081dd55ec0944429387f246ccb59ef99c9c8cbb418b0abd78460b38f
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.17s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (2.16s)
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 CryptorRSAErrors.swift
[4/11] Compiling CryptorRSA CryptorRSAConstants.swift
[5/11] Compiling CryptorRSA CryptorRSADigest.swift
[6/11] Emitting module CryptorRSA
[7/11] Compiling CryptorRSA CryptorRSA.swift
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:322:24: warning: 'EVP_PKEY_get1_RSA' is deprecated
                                guard let rsaKey = EVP_PKEY_get1_RSA(.make(optional: key.reference)) else {
                                                   ^
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:330:6: warning: 'RSA_free' is deprecated
                                        RSA_free(rsaKey)
                                        ^
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:394:6: warning: 'RSA_public_encrypt' is deprecated
                                        RSA_public_encrypt(Int32(keySize), aeskey, encryptedKey, .make(optional: rsaKey), RSA_PKCS1_OAEP_PADDING) == encryptedCapacity,
                                        ^
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:453:15: warning: 'EVP_PKEY_get1_RSA' is deprecated
                                let rsa = EVP_PKEY_get1_RSA(.make(optional: key.reference))
                                          ^
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:454:5: warning: 'EVP_PKEY_set1_RSA' is deprecated
                                EVP_PKEY_set1_RSA(evp_key, rsa)
                                ^
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:455:5: warning: 'RSA_free' is deprecated
                                RSA_free(rsa)
                                ^
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:476:61: error: cannot find 'EVP_PKEY_size' in scope
                                ek = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(EVP_PKEY_size(.make(optional: key.reference))))
                                                                                        ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:476:76: error: cannot infer contextual base in reference to member 'make'
                                ek = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(EVP_PKEY_size(.make(optional: key.reference))))
                                                                                                      ~^~~~
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:481:20: error: cannot find 'EVP_CIPHER_iv_length' in scope
                                let IVLength = EVP_CIPHER_iv_length(.make(optional: enc))
                                               ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:481:42: error: cannot infer contextual base in reference to member 'make'
                                let IVLength = EVP_CIPHER_iv_length(.make(optional: enc))
                                                                    ~^~~~
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:560:24: warning: 'EVP_PKEY_get1_RSA' is deprecated
                                guard let rsaKey = EVP_PKEY_get1_RSA(.make(optional: key.reference)) else {
                                                   ^
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:568:6: warning: 'RSA_free' is deprecated
                                        RSA_free(rsaKey)
                                        ^
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:629:11: warning: 'RSA_private_decrypt' is deprecated
                                guard RSA_private_decrypt(Int32(encryptedKey.count), [UInt8](encryptedKey), aeskey, rsaKey, RSA_PKCS1_OAEP_PADDING) != 0,
                                      ^
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:688:28: error: cannot find 'EVP_PKEY_size' in scope
                                let encKeyLength = Int(EVP_PKEY_size(.make(optional: key.reference)))
                                                       ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:688:43: error: cannot infer contextual base in reference to member 'make'
                                let encKeyLength = Int(EVP_PKEY_size(.make(optional: key.reference)))
                                                                     ~^~~~
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:690:27: error: cannot find 'EVP_CIPHER_iv_length' in scope
                                let encIVLength = Int(EVP_CIPHER_iv_length(.make(optional: encType)))
                                                      ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CryptorRSA/CryptorRSA.swift:690:49: error: cannot infer contextual base in reference to member 'make'
                                let encIVLength = Int(EVP_CIPHER_iv_length(.make(optional: encType)))
                                                                           ~^~~~
/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')
                                let encryptedData = self.data.subdata(in: encKeyLength..<encKeyLength+encryptedDataLength)
                                                                                                     ^
/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')
                                let encryptedIV = self.data.subdata(in: encKeyLength+encryptedDataLength..<self.data.count)
                                                                                    ^
[8/11] Compiling CryptorRSA CryptorRSAKey.swift
[9/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
                var keyMaybe = (type == .publicType ? d2i_PUBKEY_bio(bio, nil) : d2i_PrivateKey_bio(bio, nil))
                ~~~ ^
                let
[10/11] Compiling CryptorRSA Data+Extensions.swift
[11/11] Compiling CryptorRSA SSLPointerTricks.swift
error: fatalError
BUILD FAILURE 5.10 linux