Build Information
Failed to build open-crypto, reference master (b91489
), with Swift 6.2 (beta) for Linux on 18 Jun 2025 13:24:52 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>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vapor/open-crypto.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/vapor/open-crypto
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at b91489b Update README.md
Cloned https://github.com/vapor/open-crypto.git
Revision (git rev-parse @):
b91489b865867c8510486faba439bd1e91a60b61
SUCCESS checkout https://github.com/vapor/open-crypto.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/vapor/open-crypto.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
Building for debugging...
[0/3] Write sources
[1/3] Write swift-version-24593BA9C3E375BF.txt
[2/3] Compiling COpenCrypto c_open_crypto.c
[4/20] Emitting module OpenCrypto
[5/22] Compiling OpenCrypto SymmetricKey.swift
/host/spi-builder-workspace/Sources/OpenCrypto/Utilities.swift:25:13: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
23 | extension DataProtocol {
24 | func copyBytes() -> [UInt8] {
25 | var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: self.count)
| `- warning: variable 'buffer' was never mutated; consider changing to 'let' constant
26 | self.copyBytes(to: buffer)
27 | defer { buffer.deallocate() }
[6/22] Compiling OpenCrypto Utilities.swift
/host/spi-builder-workspace/Sources/OpenCrypto/Utilities.swift:25:13: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
23 | extension DataProtocol {
24 | func copyBytes() -> [UInt8] {
25 | var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: self.count)
| `- warning: variable 'buffer' was never mutated; consider changing to 'let' constant
26 | self.copyBytes(to: buffer)
27 | defer { buffer.deallocate() }
[7/22] Compiling OpenCrypto MD5.swift
[8/22] Compiling OpenCrypto MessageAuthenticationCode.swift
[9/22] Compiling OpenCrypto OpenSSLCipherFunction.swift
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:101:43: error: cannot find 'EVP_CIPHER_key_length' in scope
99 | where IV: DataProtocol
100 | {
101 | guard key.bitCount == numericCast(EVP_CIPHER_key_length(convert(algorithm))) * 8 else {
| `- error: cannot find 'EVP_CIPHER_key_length' in scope
102 | throw CryptoKitError.incorrectKeySize
103 | }
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:104:39: error: cannot find 'EVP_CIPHER_iv_length' in scope
102 | throw CryptoKitError.incorrectKeySize
103 | }
104 | guard iv.count == numericCast(EVP_CIPHER_iv_length(convert(algorithm))) else {
| `- error: cannot find 'EVP_CIPHER_iv_length' in scope
105 | throw CryptoKitError.incorrectParameterSize
106 | }
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:129:75: error: cannot find 'EVP_CIPHER_block_size' in scope
127 | {
128 | let data = data.copyBytes()
129 | var chunk = [UInt8](repeating: 0, count: data.count + numericCast(EVP_CIPHER_block_size(convert(algorithm))) - 1)
| `- error: cannot find 'EVP_CIPHER_block_size' in scope
130 | var chunkLength: Int32 = 0
131 |
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:149:62: error: cannot find 'EVP_CIPHER_block_size' in scope
147 | into buffer: inout [UInt8]
148 | ) throws {
149 | var chunk = [UInt8](repeating: 0, count: numericCast(EVP_CIPHER_block_size(convert(algorithm))))
| `- error: cannot find 'EVP_CIPHER_block_size' in scope
150 | var chunkLength: Int32 = 0
151 |
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLHashFunction.swift:15:28: error: cannot find 'EVP_MD_size' in scope
13 | extension OpenSSLDigest {
14 | public static var byteCount: Int {
15 | return numericCast(EVP_MD_size(convert(self.algorithm)))
| `- error: cannot find 'EVP_MD_size' in scope
16 | }
17 |
[10/22] Compiling OpenCrypto OpenSSLHashFunction.swift
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:101:43: error: cannot find 'EVP_CIPHER_key_length' in scope
99 | where IV: DataProtocol
100 | {
101 | guard key.bitCount == numericCast(EVP_CIPHER_key_length(convert(algorithm))) * 8 else {
| `- error: cannot find 'EVP_CIPHER_key_length' in scope
102 | throw CryptoKitError.incorrectKeySize
103 | }
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:104:39: error: cannot find 'EVP_CIPHER_iv_length' in scope
102 | throw CryptoKitError.incorrectKeySize
103 | }
104 | guard iv.count == numericCast(EVP_CIPHER_iv_length(convert(algorithm))) else {
| `- error: cannot find 'EVP_CIPHER_iv_length' in scope
105 | throw CryptoKitError.incorrectParameterSize
106 | }
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:129:75: error: cannot find 'EVP_CIPHER_block_size' in scope
127 | {
128 | let data = data.copyBytes()
129 | var chunk = [UInt8](repeating: 0, count: data.count + numericCast(EVP_CIPHER_block_size(convert(algorithm))) - 1)
| `- error: cannot find 'EVP_CIPHER_block_size' in scope
130 | var chunkLength: Int32 = 0
131 |
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:149:62: error: cannot find 'EVP_CIPHER_block_size' in scope
147 | into buffer: inout [UInt8]
148 | ) throws {
149 | var chunk = [UInt8](repeating: 0, count: numericCast(EVP_CIPHER_block_size(convert(algorithm))))
| `- error: cannot find 'EVP_CIPHER_block_size' in scope
150 | var chunkLength: Int32 = 0
151 |
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLHashFunction.swift:15:28: error: cannot find 'EVP_MD_size' in scope
13 | extension OpenSSLDigest {
14 | public static var byteCount: Int {
15 | return numericCast(EVP_MD_size(convert(self.algorithm)))
| `- error: cannot find 'EVP_MD_size' in scope
16 | }
17 |
[11/22] Compiling OpenCrypto HexEncoding.swift
[12/22] Compiling OpenCrypto Insecure.swift
[13/22] Compiling OpenCrypto SHA1.swift
[14/22] Compiling OpenCrypto SHA2.swift
[15/22] Compiling OpenCrypto HashFunction.swift
/host/spi-builder-workspace/Sources/OpenCrypto/HashFunction.swift:20:17: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
18 | return digest
19 | } else {
20 | var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: data.count)
| `- warning: variable 'buffer' was never mutated; consider changing to 'let' constant
21 | data.copyBytes(to: buffer)
22 | defer { buffer.deallocate() }
[16/22] Compiling OpenCrypto HashedAuthenticationCode.swift
/host/spi-builder-workspace/Sources/OpenCrypto/HashFunction.swift:20:17: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
18 | return digest
19 | } else {
20 | var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: data.count)
| `- warning: variable 'buffer' was never mutated; consider changing to 'let' constant
21 | data.copyBytes(to: buffer)
22 | defer { buffer.deallocate() }
[17/22] Compiling OpenCrypto Errors.swift
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:57:32: warning: 'HMAC_CTX_new()' is deprecated [#DeprecatedDeclaration]
55 | public init(key: SymmetricKey) {
56 | self.key = key
57 | self.context = convert(HMAC_CTX_new())
| `- warning: 'HMAC_CTX_new()' is deprecated [#DeprecatedDeclaration]
58 | self.initialize()
59 | }
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:69:17: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
67 | return digest
68 | } else {
69 | var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: data.count)
| `- warning: variable 'buffer' was never mutated; consider changing to 'let' constant
70 | data.copyBytes(to: buffer)
71 | defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:78:20: warning: 'HMAC_Update' is deprecated [#DeprecatedDeclaration]
76 | private mutating func update(bufferPointer: UnsafeRawBufferPointer) {
77 | guard bufferPointer.withUnsafeBytes({
78 | return HMAC_Update(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), $0.count)
| `- warning: 'HMAC_Update' is deprecated [#DeprecatedDeclaration]
79 | }) == 1 else {
80 | fatalError("Failed updating HMAC digest")
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:89:20: warning: 'HMAC_Final' is deprecated [#DeprecatedDeclaration]
87 |
88 | guard hash.withUnsafeMutableBytes({
89 | return HMAC_Final(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), &count)
| `- warning: 'HMAC_Final' is deprecated [#DeprecatedDeclaration]
90 | }) == 1 else {
91 | fatalError("Failed finalizing HMAC digest")
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:100:20: warning: 'HMAC_Init_ex' is deprecated [#DeprecatedDeclaration]
98 | private func initialize() {
99 | guard self.key.withUnsafeBytes({
100 | return HMAC_Init_ex(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), Int32($0.count), convert(type(of: self).algorithm), nil)
| `- warning: 'HMAC_Init_ex' is deprecated [#DeprecatedDeclaration]
101 | }) == 1 else {
102 | fatalError("Failed initializing HMAC context")
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:107:9: warning: 'HMAC_CTX_free' is deprecated [#DeprecatedDeclaration]
105 |
106 | private func free() {
107 | HMAC_CTX_free(convert(self.context))
| `- warning: 'HMAC_CTX_free' is deprecated [#DeprecatedDeclaration]
108 | }
109 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[18/22] Compiling OpenCrypto Exports.swift
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:57:32: warning: 'HMAC_CTX_new()' is deprecated [#DeprecatedDeclaration]
55 | public init(key: SymmetricKey) {
56 | self.key = key
57 | self.context = convert(HMAC_CTX_new())
| `- warning: 'HMAC_CTX_new()' is deprecated [#DeprecatedDeclaration]
58 | self.initialize()
59 | }
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:69:17: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
67 | return digest
68 | } else {
69 | var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: data.count)
| `- warning: variable 'buffer' was never mutated; consider changing to 'let' constant
70 | data.copyBytes(to: buffer)
71 | defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:78:20: warning: 'HMAC_Update' is deprecated [#DeprecatedDeclaration]
76 | private mutating func update(bufferPointer: UnsafeRawBufferPointer) {
77 | guard bufferPointer.withUnsafeBytes({
78 | return HMAC_Update(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), $0.count)
| `- warning: 'HMAC_Update' is deprecated [#DeprecatedDeclaration]
79 | }) == 1 else {
80 | fatalError("Failed updating HMAC digest")
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:89:20: warning: 'HMAC_Final' is deprecated [#DeprecatedDeclaration]
87 |
88 | guard hash.withUnsafeMutableBytes({
89 | return HMAC_Final(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), &count)
| `- warning: 'HMAC_Final' is deprecated [#DeprecatedDeclaration]
90 | }) == 1 else {
91 | fatalError("Failed finalizing HMAC digest")
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:100:20: warning: 'HMAC_Init_ex' is deprecated [#DeprecatedDeclaration]
98 | private func initialize() {
99 | guard self.key.withUnsafeBytes({
100 | return HMAC_Init_ex(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), Int32($0.count), convert(type(of: self).algorithm), nil)
| `- warning: 'HMAC_Init_ex' is deprecated [#DeprecatedDeclaration]
101 | }) == 1 else {
102 | fatalError("Failed initializing HMAC context")
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:107:9: warning: 'HMAC_CTX_free' is deprecated [#DeprecatedDeclaration]
105 |
106 | private func free() {
107 | HMAC_CTX_free(convert(self.context))
| `- warning: 'HMAC_CTX_free' is deprecated [#DeprecatedDeclaration]
108 | }
109 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[19/22] Compiling OpenCrypto HMAC.swift
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:57:32: warning: 'HMAC_CTX_new()' is deprecated [#DeprecatedDeclaration]
55 | public init(key: SymmetricKey) {
56 | self.key = key
57 | self.context = convert(HMAC_CTX_new())
| `- warning: 'HMAC_CTX_new()' is deprecated [#DeprecatedDeclaration]
58 | self.initialize()
59 | }
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:69:17: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
67 | return digest
68 | } else {
69 | var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: data.count)
| `- warning: variable 'buffer' was never mutated; consider changing to 'let' constant
70 | data.copyBytes(to: buffer)
71 | defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:78:20: warning: 'HMAC_Update' is deprecated [#DeprecatedDeclaration]
76 | private mutating func update(bufferPointer: UnsafeRawBufferPointer) {
77 | guard bufferPointer.withUnsafeBytes({
78 | return HMAC_Update(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), $0.count)
| `- warning: 'HMAC_Update' is deprecated [#DeprecatedDeclaration]
79 | }) == 1 else {
80 | fatalError("Failed updating HMAC digest")
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:89:20: warning: 'HMAC_Final' is deprecated [#DeprecatedDeclaration]
87 |
88 | guard hash.withUnsafeMutableBytes({
89 | return HMAC_Final(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), &count)
| `- warning: 'HMAC_Final' is deprecated [#DeprecatedDeclaration]
90 | }) == 1 else {
91 | fatalError("Failed finalizing HMAC digest")
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:100:20: warning: 'HMAC_Init_ex' is deprecated [#DeprecatedDeclaration]
98 | private func initialize() {
99 | guard self.key.withUnsafeBytes({
100 | return HMAC_Init_ex(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), Int32($0.count), convert(type(of: self).algorithm), nil)
| `- warning: 'HMAC_Init_ex' is deprecated [#DeprecatedDeclaration]
101 | }) == 1 else {
102 | fatalError("Failed initializing HMAC context")
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:107:9: warning: 'HMAC_CTX_free' is deprecated [#DeprecatedDeclaration]
105 |
106 | private func free() {
107 | HMAC_CTX_free(convert(self.context))
| `- warning: 'HMAC_CTX_free' is deprecated [#DeprecatedDeclaration]
108 | }
109 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[20/22] Compiling OpenCrypto AES.swift
[21/22] Compiling OpenCrypto ChaChaPoly.swift
[22/22] Compiling OpenCrypto Digest.swift
BUILD FAILURE 6.2 linux