Build Information
Failed to build PushNotifications with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/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/pusher/push-notifications-server-swift.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/pusher/push-notifications-server-swift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 48a8933 Merge pull request #36 from pusher/tech/networkservice-improvements
Cloned https://github.com/pusher/push-notifications-server-swift.git
Revision (git rev-parse @):
48a89332da1e06fa6987a0ce3055d02c237acda0
SUCCESS checkout https://github.com/pusher/push-notifications-server-swift.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/pusher/push-notifications-server-swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/Kitura/BlueCryptor.git
Fetching https://github.com/realm/SwiftLint
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/IBM-Swift/Swift-JWT.git
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/Kitura/BlueRSA.git
[1/771] Fetching loggerapi
[148/2728] Fetching loggerapi, bluersa
[227/4265] Fetching loggerapi, bluersa, swift-jwt
[1648/5903] Fetching loggerapi, bluersa, swift-jwt, bluecryptor
[4040/17329] Fetching loggerapi, bluersa, swift-jwt, bluecryptor, swift-argument-parser
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.71s)
[5665/16558] Fetching bluersa, swift-jwt, bluecryptor, swift-argument-parser
Fetching https://github.com/jpsim/Yams.git
Fetched https://github.com/Kitura/BlueRSA.git from cache (0.74s)
[3815/14601] Fetching swift-jwt, bluecryptor, swift-argument-parser
Fetching https://github.com/drmohundro/SWXMLHash.git
Fetched https://github.com/IBM-Swift/Swift-JWT.git from cache (1.01s)
Fetching https://github.com/scottrhoyt/SwiftyTextTable.git
[7123/13064] Fetching bluecryptor, swift-argument-parser
[11352/21893] Fetching bluecryptor, swift-argument-parser, yams
[11959/24659] Fetching bluecryptor, swift-argument-parser, yams, swxmlhash
[16626/25588] Fetching bluecryptor, swift-argument-parser, yams, swxmlhash, swiftytexttable
Fetched https://github.com/scottrhoyt/SwiftyTextTable.git from cache (0.55s)
Fetching https://github.com/jpsim/SourceKitten.git
[18038/24659] Fetching bluecryptor, swift-argument-parser, yams, swxmlhash
[18480/149887] Fetching bluecryptor, swift-argument-parser, yams, swxmlhash, swiftlint
Fetched https://github.com/drmohundro/SWXMLHash.git from cache (0.89s)
Fetching https://github.com/Kitura/BlueECC.git
[16966/147121] Fetching bluecryptor, swift-argument-parser, yams, swiftlint
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.88s)
Fetching https://github.com/apple/swift-log.git
[12299/135695] Fetching bluecryptor, yams, swiftlint
[14892/151550] Fetching bluecryptor, yams, swiftlint, sourcekitten
[15051/152503] Fetching bluecryptor, yams, swiftlint, sourcekitten, blueecc
[19479/155673] Fetching bluecryptor, yams, swiftlint, sourcekitten, blueecc, swift-log
Fetched https://github.com/Kitura/BlueECC.git from cache (0.63s)
Fetching https://github.com/Kitura/KituraContracts.git
[19539/154720] Fetching bluecryptor, yams, swiftlint, sourcekitten, swift-log
[28851/157263] Fetching bluecryptor, yams, swiftlint, sourcekitten, swift-log, kituracontracts
Fetched https://github.com/apple/swift-log.git from cache (0.91s)
[26207/154093] Fetching bluecryptor, yams, swiftlint, sourcekitten, kituracontracts
Fetched https://github.com/Kitura/KituraContracts.git from cache (1.40s)
[34866/151550] Fetching bluecryptor, yams, swiftlint, sourcekitten
Fetched https://github.com/jpsim/Yams.git from cache (3.23s)
[28907/142721] Fetching bluecryptor, swiftlint, sourcekitten
Fetched https://github.com/jpsim/SourceKitten.git from cache (3.64s)
[15414/126866] Fetching bluecryptor, swiftlint
Fetched https://github.com/Kitura/BlueCryptor.git from cache (27.41s)
Fetched https://github.com/realm/SwiftLint from cache (28.41s)
Computing version for https://github.com/realm/SwiftLint
Computed https://github.com/realm/SwiftLint at 0.43.1 (0.64s)
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
[1/12556] Fetching cryptoswift
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (1.65s)
Computing version for https://github.com/IBM-Swift/Swift-JWT.git
Computed https://github.com/IBM-Swift/Swift-JWT.git at 3.6.200 (0.47s)
Computing version for https://github.com/scottrhoyt/SwiftyTextTable.git
Computed https://github.com/scottrhoyt/SwiftyTextTable.git at 0.9.0 (1.98s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 4.0.6 (0.80s)
Computing version for https://github.com/jpsim/SourceKitten.git
Computed https://github.com/jpsim/SourceKitten.git at 0.31.0 (0.91s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 0.3.2 (0.86s)
Computing version for https://github.com/Kitura/KituraContracts.git
Computed https://github.com/Kitura/KituraContracts.git at 1.2.200 (0.86s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.92s)
Computing version for https://github.com/Kitura/BlueECC.git
Computed https://github.com/Kitura/BlueECC.git at 1.2.200 (0.84s)
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/BlueCryptor.git
Computed https://github.com/Kitura/BlueCryptor.git at 1.0.200 (0.84s)
Computing version for https://github.com/Kitura/BlueRSA.git
Computed https://github.com/Kitura/BlueRSA.git at 1.0.200 (0.94s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 5.0.2 (0.80s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.0 (0.61s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (7.35s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.3.8 (2.36s)
Creating working copy for https://github.com/realm/SwiftLint
Working copy of https://github.com/realm/SwiftLint resolved at 0.43.1
Creating working copy for https://github.com/drmohundro/SWXMLHash.git
Working copy of https://github.com/drmohundro/SWXMLHash.git resolved at 5.0.2
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.0
Creating working copy for https://github.com/Kitura/BlueCryptor.git
Working copy of https://github.com/Kitura/BlueCryptor.git resolved at 1.0.200
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
Creating working copy for https://github.com/scottrhoyt/SwiftyTextTable.git
Working copy of https://github.com/scottrhoyt/SwiftyTextTable.git resolved at 0.9.0
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.3.8
Creating working copy for https://github.com/IBM-Swift/Swift-JWT.git
Working copy of https://github.com/IBM-Swift/Swift-JWT.git resolved at 3.6.200
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 0.3.2
Creating working copy for https://github.com/Kitura/BlueECC.git
Working copy of https://github.com/Kitura/BlueECC.git resolved at 1.2.200
Creating working copy for https://github.com/Kitura/BlueRSA.git
Working copy of https://github.com/Kitura/BlueRSA.git resolved at 1.0.200
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/KituraContracts.git
Working copy of https://github.com/Kitura/KituraContracts.git resolved at 1.2.200
Creating working copy for https://github.com/jpsim/SourceKitten.git
Working copy of https://github.com/jpsim/SourceKitten.git resolved at 0.31.0
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 4.0.6
Building for debugging...
[0/9] Write sources
[8/9] Write swift-version-24593BA9C3E375BF.txt
[10/43] Compiling CryptorRSA Data+Extensions.swift
[11/44] Emitting module Logging
[12/44] Compiling Logging Locks.swift
[13/44] Compiling Cryptor Updatable.swift
[14/45] Compiling CryptorRSA SSLPointerTricks.swift
[15/45] Compiling CryptorRSA CryptorRSAUtilities.swift
[16/45] Compiling Cryptor SSLPointerTricks.swift
[17/45] Compiling CryptorECC ASN1.swift
[18/45] Compiling CryptorECC Data+Extensions.swift
[19/45] Compiling CryptorECC ECError.swift
[20/45] Compiling CryptorECC ECPrivateKey.swift
[21/45] Emitting module Cryptor
[22/45] Compiling CryptorECC ECDecryptable.swift
[23/45] Compiling CryptorECC ECEncryptable.swift
[24/45] Compiling Cryptor Status.swift
[25/45] Compiling CryptorECC EllipticCurve.swift
[26/46] Compiling CryptorRSA CryptorRSADigest.swift
[27/46] Compiling CryptorRSA CryptorRSAErrors.swift
[28/46] Compiling CryptorRSA CryptorRSAKey.swift
[29/46] 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
ek = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(EVP_PKEY_size(.make(optional: key.reference))))
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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)
^
[30/46] Emitting module CryptorRSA
[31/46] Compiling CryptorRSA CryptorRSAConstants.swift
[32/46] Compiling CryptorECC ECSignable.swift
[33/46] Compiling CryptorECC ECPublicKey.swift
[40/46] Emitting module CryptorECC
[41/46] Compiling CryptorECC ECSignature.swift
[42/46] Compiling Logging LogHandler.swift
[43/46] Compiling Logging Logging.swift
[44/46] Compiling CryptorECC SSLPointerTricks.swift
[45/48] Compiling Cryptor Utilities.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Emitting module Logging
[3/8] Emitting module CryptorECC
[6/11] Emitting module Cryptor
[7/11] Compiling Cryptor StreamCryptor.swift
[8/12] Emitting module LoggerAPI
[9/12] Compiling LoggerAPI Logger.swift
[10/13] Emitting module CryptorRSA
[11/13] 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
ek = UnsafeMutablePointer<UInt8>.allocate(capacity: Int(EVP_PKEY_size(.make(optional: key.reference))))
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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/.build/checkouts/BlueRSA/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)
^
error: fatalError
BUILD FAILURE 5.10 linux