Build Information
Failed to build open-crypto with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.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: 5.10
Building package at path: $workDir
https://github.com/vapor/open-crypto.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
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
var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: self.count)
~~~ ^
let
[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
var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: self.count)
~~~ ^
let
[7/22] Compiling OpenCrypto HexEncoding.swift
[8/22] Compiling OpenCrypto Insecure.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
guard key.bitCount == numericCast(EVP_CIPHER_key_length(convert(algorithm))) * 8 else {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:104:39: error: cannot find 'EVP_CIPHER_iv_length' in scope
guard iv.count == numericCast(EVP_CIPHER_iv_length(convert(algorithm))) else {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:129:75: error: cannot find 'EVP_CIPHER_block_size' in scope
var chunk = [UInt8](repeating: 0, count: data.count + numericCast(EVP_CIPHER_block_size(convert(algorithm))) - 1)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:149:62: error: cannot find 'EVP_CIPHER_block_size' in scope
var chunk = [UInt8](repeating: 0, count: numericCast(EVP_CIPHER_block_size(convert(algorithm))))
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLHashFunction.swift:15:28: error: cannot find 'EVP_MD_size' in scope
return numericCast(EVP_MD_size(convert(self.algorithm)))
^~~~~~~~~~~
[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
guard key.bitCount == numericCast(EVP_CIPHER_key_length(convert(algorithm))) * 8 else {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:104:39: error: cannot find 'EVP_CIPHER_iv_length' in scope
guard iv.count == numericCast(EVP_CIPHER_iv_length(convert(algorithm))) else {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:129:75: error: cannot find 'EVP_CIPHER_block_size' in scope
var chunk = [UInt8](repeating: 0, count: data.count + numericCast(EVP_CIPHER_block_size(convert(algorithm))) - 1)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:149:62: error: cannot find 'EVP_CIPHER_block_size' in scope
var chunk = [UInt8](repeating: 0, count: numericCast(EVP_CIPHER_block_size(convert(algorithm))))
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLHashFunction.swift:15:28: error: cannot find 'EVP_MD_size' in scope
return numericCast(EVP_MD_size(convert(self.algorithm)))
^~~~~~~~~~~
[11/22] Compiling OpenCrypto SHA1.swift
[12/22] Compiling OpenCrypto SHA2.swift
[13/22] Compiling OpenCrypto MD5.swift
[14/22] Compiling OpenCrypto MessageAuthenticationCode.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
var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: data.count)
~~~ ^
let
[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
var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: data.count)
~~~ ^
let
[17/22] Compiling OpenCrypto AES.swift
[18/22] Compiling OpenCrypto ChaChaPoly.swift
[19/22] Compiling OpenCrypto Digest.swift
[20/22] Compiling OpenCrypto Errors.swift
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:57:32: warning: 'HMAC_CTX_new()' is deprecated
self.context = convert(HMAC_CTX_new())
^
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:69:17: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: data.count)
~~~ ^
let
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:78:20: warning: 'HMAC_Update' is deprecated
return HMAC_Update(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), $0.count)
^
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:89:20: warning: 'HMAC_Final' is deprecated
return HMAC_Final(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), &count)
^
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:100:20: warning: 'HMAC_Init_ex' is deprecated
return HMAC_Init_ex(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), Int32($0.count), convert(type(of: self).algorithm), nil)
^
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:107:9: warning: 'HMAC_CTX_free' is deprecated
HMAC_CTX_free(convert(self.context))
^
[21/22] Compiling OpenCrypto Exports.swift
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:57:32: warning: 'HMAC_CTX_new()' is deprecated
self.context = convert(HMAC_CTX_new())
^
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:69:17: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: data.count)
~~~ ^
let
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:78:20: warning: 'HMAC_Update' is deprecated
return HMAC_Update(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), $0.count)
^
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:89:20: warning: 'HMAC_Final' is deprecated
return HMAC_Final(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), &count)
^
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:100:20: warning: 'HMAC_Init_ex' is deprecated
return HMAC_Init_ex(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), Int32($0.count), convert(type(of: self).algorithm), nil)
^
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:107:9: warning: 'HMAC_CTX_free' is deprecated
HMAC_CTX_free(convert(self.context))
^
[22/22] Compiling OpenCrypto HMAC.swift
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:57:32: warning: 'HMAC_CTX_new()' is deprecated
self.context = convert(HMAC_CTX_new())
^
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:69:17: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
var buffer = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: data.count)
~~~ ^
let
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:78:20: warning: 'HMAC_Update' is deprecated
return HMAC_Update(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), $0.count)
^
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:89:20: warning: 'HMAC_Final' is deprecated
return HMAC_Final(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), &count)
^
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:100:20: warning: 'HMAC_Init_ex' is deprecated
return HMAC_Init_ex(convert(self.context), $0.baseAddress?.assumingMemoryBound(to: UInt8.self), Int32($0.count), convert(type(of: self).algorithm), nil)
^
/host/spi-builder-workspace/Sources/OpenCrypto/HMAC.swift:107:9: warning: 'HMAC_CTX_free' is deprecated
HMAC_CTX_free(convert(self.context))
^
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling OpenCrypto OpenSSLCipherFunction.swift
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:101:43: error: cannot find 'EVP_CIPHER_key_length' in scope
guard key.bitCount == numericCast(EVP_CIPHER_key_length(convert(algorithm))) * 8 else {
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:104:39: error: cannot find 'EVP_CIPHER_iv_length' in scope
guard iv.count == numericCast(EVP_CIPHER_iv_length(convert(algorithm))) else {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:129:75: error: cannot find 'EVP_CIPHER_block_size' in scope
var chunk = [UInt8](repeating: 0, count: data.count + numericCast(EVP_CIPHER_block_size(convert(algorithm))) - 1)
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLCipherFunction.swift:149:62: error: cannot find 'EVP_CIPHER_block_size' in scope
var chunk = [UInt8](repeating: 0, count: numericCast(EVP_CIPHER_block_size(convert(algorithm))))
^~~~~~~~~~~~~~~~~~~~~
[3/4] Compiling OpenCrypto OpenSSLHashFunction.swift
/host/spi-builder-workspace/Sources/OpenCrypto/OpenSSLHashFunction.swift:15:28: error: cannot find 'EVP_MD_size' in scope
return numericCast(EVP_MD_size(convert(self.algorithm)))
^~~~~~~~~~~
[4/4] Emitting module OpenCrypto
error: fatalError
BUILD FAILURE 5.10 linux
Build Machine: Linux 2