Build Information
Failed to build SwiftJWT, reference 4.0.2 (2cf7ef
), with Swift 6.1 for Linux on 29 Apr 2025 21:27:58 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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kitura/Swift-JWT.git
Reference: 4.0.2
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/Swift-JWT
* tag 4.0.2 -> FETCH_HEAD
HEAD is now at 2cf7ef3 Bump minimum BlueRSA version to 1.0.202
Cloned https://github.com/Kitura/Swift-JWT.git
Revision (git rev-parse @):
2cf7ef3eeb0df84318c75662c257651285f8289f
SUCCESS checkout https://github.com/Kitura/Swift-JWT.git at 4.0.2
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/Kitura/Swift-JWT.git
https://github.com/Kitura/Swift-JWT.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "bluersa",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.202",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/BlueRSA.git"
},
{
"identity" : "bluecryptor",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.1",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/BlueCryptor.git"
},
{
"identity" : "blueecc",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.200",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/BlueECC.git"
},
{
"identity" : "loggerapi",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/LoggerAPI.git"
},
{
"identity" : "kituracontracts",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.1",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/KituraContracts.git"
}
],
"manifest_display_name" : "SwiftJWT",
"name" : "SwiftJWT",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftJWT",
"targets" : [
"SwiftJWT"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftJWTTests",
"module_type" : "SwiftTarget",
"name" : "SwiftJWTTests",
"path" : "Tests/SwiftJWTTests",
"sources" : [
"TestJWT.swift"
],
"target_dependencies" : [
"SwiftJWT"
],
"type" : "test"
},
{
"c99name" : "SwiftJWT",
"module_type" : "SwiftTarget",
"name" : "SwiftJWT",
"path" : "Sources/SwiftJWT",
"product_dependencies" : [
"LoggerAPI",
"KituraContracts",
"CryptorRSA",
"Cryptor",
"CryptorECC"
],
"product_memberships" : [
"SwiftJWT"
],
"sources" : [
"BlueECDSA.swift",
"BlueHMAC.swift",
"BlueRSA.swift",
"Claims.swift",
"ClaimsExamples/ClaimsMicroProfile.swift",
"ClaimsExamples/ClaimsOpenID.swift",
"ClaimsExamples/ClaimsStandardJWT.swift",
"Data+Base64URLEncoded.swift",
"Header.swift",
"JWT.swift",
"JWTDecoder.swift",
"JWTEncoder.swift",
"JWTError.swift",
"JWTSigner.swift",
"JWTVerifier.swift",
"NoneAlgorithm.swift",
"RSAKeyType.swift",
"SignerAlgorithm.swift",
"ValidateClaimsResult.swift",
"VerifierAlgorithm.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
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/BlueCryptor.git
Fetching https://github.com/Kitura/BlueECC.git
Fetching https://github.com/Kitura/KituraContracts.git
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/Kitura/BlueRSA.git
[1/2018] Fetching bluersa
[143/2789] Fetching bluersa, loggerapi
[1425/4443] Fetching bluersa, loggerapi, bluecryptor
[2703/6989] Fetching bluersa, loggerapi, bluecryptor, kituracontracts
[4775/8010] Fetching bluersa, loggerapi, bluecryptor, kituracontracts, blueecc
Fetched https://github.com/Kitura/BlueRSA.git from cache (0.38s)
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.38s)
[4840/5221] Fetching bluecryptor, kituracontracts, blueecc
Fetched https://github.com/Kitura/BlueCryptor.git from cache (0.39s)
[3567/3567] Fetching kituracontracts, blueecc
Fetched https://github.com/Kitura/BlueECC.git from cache (0.49s)
Fetched https://github.com/Kitura/KituraContracts.git from cache (0.50s)
Computing version for https://github.com/Kitura/KituraContracts.git
Computed https://github.com/Kitura/KituraContracts.git at 2.0.1 (1.00s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 2.0.0 (0.50s)
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.33s)
Computing version for https://github.com/Kitura/BlueECC.git
Computed https://github.com/Kitura/BlueECC.git at 1.2.201 (0.81s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.18s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (2.01s)
Computing version for https://github.com/Kitura/BlueCryptor.git
Computed https://github.com/Kitura/BlueCryptor.git at 2.0.2 (0.47s)
Computing version for https://github.com/Kitura/BlueRSA.git
Computed https://github.com/Kitura/BlueRSA.git at 1.0.203 (0.47s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.45s)
Creating working copy for https://github.com/Kitura/BlueRSA.git
Working copy of https://github.com/Kitura/BlueRSA.git resolved at 1.0.203
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/Kitura/KituraContracts.git
Working copy of https://github.com/Kitura/KituraContracts.git resolved at 2.0.1
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 2.0.0
Creating working copy for https://github.com/Kitura/BlueECC.git
Working copy of https://github.com/Kitura/BlueECC.git resolved at 1.2.201
Creating working copy for https://github.com/Kitura/OpenSSL.git
Working copy of https://github.com/Kitura/OpenSSL.git resolved at 2.3.1
Creating working copy for https://github.com/Kitura/BlueCryptor.git
Working copy of https://github.com/Kitura/BlueCryptor.git resolved at 2.0.2
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/43] Compiling Cryptor SSLPointerTricks.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/44] Emitting module CryptorRSA
/host/spi-builder-workspace/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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))
[11/45] Compiling CryptorRSA SSLPointerTricks.swift
[12/45] Compiling Logging MetadataProvider.swift
[13/45] Compiling CryptorRSA Data+Extensions.swift
[14/45] Compiling Cryptor Status.swift
[15/45] Emitting module Logging
[16/45] Compiling Logging Locks.swift
[17/45] Compiling Logging LogHandler.swift
[18/45] Compiling Logging Logging.swift
[19/45] Compiling CryptorRSA CryptorRSAErrors.swift
[20/46] Compiling Cryptor Updatable.swift
[22/46] Emitting module Cryptor
[23/46] Compiling CryptorECC ASN1.swift
[24/46] Compiling CryptorECC Data+Extensions.swift
[25/46] Compiling Cryptor Utilities.swift
[26/46] Emitting module CryptorECC
[27/46] Compiling CryptorRSA CryptorRSAUtilities.swift
[28/47] Compiling Cryptor Digest.swift
[29/47] Compiling Cryptor HMAC.swift
[30/47] Compiling CryptorECC ECError.swift
[31/47] Compiling CryptorECC ECPrivateKey.swift
[32/47] Compiling CryptorRSA CryptorRSADigest.swift
[33/47] Compiling CryptorRSA CryptorRSAConstants.swift
[34/47] Compiling CryptorRSA CryptorRSA.swift
/host/spi-builder-workspace/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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()
[35/49] Compiling CryptorRSA CryptorRSAKey.swift
[40/49] Compiling Cryptor StreamCryptor.swift
[41/50] Compiling CryptorECC SSLPointerTricks.swift
[42/50] Compiling CryptorECC ECSignature.swift
[43/50] Compiling CryptorECC ECPublicKey.swift
[46/50] Compiling CryptorECC ECSignable.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/36] Compiling CryptorRSA CryptorRSAConstants.swift
[3/37] Compiling CryptorRSA Data+Extensions.swift
[4/37] Compiling Logging MetadataProvider.swift
[5/37] Compiling CryptorRSA SSLPointerTricks.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/37] Emitting module CryptorRSA
/host/spi-builder-workspace/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/37] Compiling CryptorRSA CryptorRSA.swift
/host/spi-builder-workspace/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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()
[8/37] Compiling Cryptor Updatable.swift
[9/38] Emitting module Logging
[10/38] Compiling CryptorRSA CryptorRSADigest.swift
[11/38] Compiling CryptorRSA CryptorRSAErrors.swift
[12/38] Compiling CryptorECC ECPublicKey.swift
[13/38] Emitting module Cryptor
[14/39] Compiling Cryptor Crypto.swift
[15/39] Compiling Cryptor Cryptor.swift
[16/39] Compiling CryptorECC ECSignature.swift
[17/39] Compiling CryptorECC ECSignable.swift
[18/39] Compiling CryptorECC EllipticCurve.swift
[19/39] Compiling Cryptor Status.swift
[20/39] Compiling Cryptor StreamCryptor.swift
[21/39] Compiling Cryptor SSLPointerTricks.swift
[22/39] Compiling Cryptor KeyDerivation.swift
[23/39] Compiling Cryptor Random.swift
[24/39] Compiling CryptorRSA CryptorRSAUtilities.swift
[25/39] Compiling CryptorRSA CryptorRSAKey.swift
[26/39] Compiling Cryptor Digest.swift
[27/39] Compiling Cryptor HMAC.swift
[30/39] Compiling CryptorECC SSLPointerTricks.swift
[31/39] Emitting module CryptorECC
BUILD FAILURE 6.1 linux