The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PushNotifications with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-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: 2.0.0
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
 * tag               2.0.0      -> FETCH_HEAD
HEAD is now at c7af0f5 Merge pull request #33 from pusher/release/2.0
Cloned https://github.com/pusher/push-notifications-server-swift.git
Revision (git rev-parse @):
c7af0f5a7f90202ca42cb9e42a2c7f0c8bbb7a52
SUCCESS checkout https://github.com/pusher/push-notifications-server-swift.git at 2.0.0
========================================
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-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/Kitura/BlueRSA.git
Fetching https://github.com/realm/SwiftLint
Fetching https://github.com/Kitura/BlueCryptor.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/jpsim/SourceKitten.git
Fetching https://github.com/Kitura/BlueECC.git
[1/1957] Fetching bluersa
[354/5127] Fetching bluersa, swift-log
[355/6765] Fetching bluersa, swift-log, bluecryptor
[1546/7718] Fetching bluersa, swift-log, bluecryptor, blueecc
[7719/23573] Fetching bluersa, swift-log, bluecryptor, blueecc, sourcekitten
Fetched https://github.com/Kitura/BlueRSA.git from cache (0.35s)
Fetching https://github.com/jpsim/Yams.git
[5920/21616] Fetching swift-log, bluecryptor, blueecc, sourcekitten
[17495/30445] Fetching swift-log, bluecryptor, blueecc, sourcekitten, yams
[30446/155673] Fetching swift-log, bluecryptor, blueecc, sourcekitten, yams, swiftlint
Fetched https://github.com/jpsim/Yams.git from cache (1.57s)
Fetching https://github.com/Kitura/KituraContracts.git
[35879/146844] Fetching swift-log, bluecryptor, blueecc, sourcekitten, swiftlint
[36645/149387] Fetching swift-log, bluecryptor, blueecc, sourcekitten, swiftlint, kituracontracts
Fetched https://github.com/Kitura/KituraContracts.git from cache (1.54s)
Fetching https://github.com/Kitura/LoggerAPI.git
[40401/146844] Fetching swift-log, bluecryptor, blueecc, sourcekitten, swiftlint
[40402/147615] Fetching swift-log, bluecryptor, blueecc, sourcekitten, swiftlint, loggerapi
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.24s)
Fetching https://github.com/IBM-Swift/Swift-JWT.git
[40402/148381] Fetching swift-log, bluecryptor, blueecc, sourcekitten, swiftlint, swift-jwt
Fetched https://github.com/IBM-Swift/Swift-JWT.git from cache (0.29s)
Fetching https://github.com/scottrhoyt/SwiftyTextTable.git
[42905/146844] Fetching swift-log, bluecryptor, blueecc, sourcekitten, swiftlint
[43025/147773] Fetching swift-log, bluecryptor, blueecc, sourcekitten, swiftlint, swiftytexttable
Fetched https://github.com/scottrhoyt/SwiftyTextTable.git from cache (0.21s)
Fetching https://github.com/drmohundro/SWXMLHash.git
[44159/149610] Fetching swift-log, bluecryptor, blueecc, sourcekitten, swiftlint, swxmlhash
Fetched https://github.com/drmohundro/SWXMLHash.git from cache (0.27s)
Fetching https://github.com/apple/swift-argument-parser.git
[45410/146844] Fetching swift-log, bluecryptor, blueecc, sourcekitten, swiftlint
[45411/158270] Fetching swift-log, bluecryptor, blueecc, sourcekitten, swiftlint, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.72s)
[46662/146844] Fetching swift-log, bluecryptor, blueecc, sourcekitten, swiftlint
Fetched https://github.com/Kitura/BlueECC.git from cache (21.74s)
Fetched https://github.com/Kitura/BlueCryptor.git from cache (21.74s)
Fetched https://github.com/apple/swift-log.git from cache (21.74s)
Fetched https://github.com/jpsim/SourceKitten.git from cache (21.76s)
Fetched https://github.com/realm/SwiftLint from cache (22.67s)
Computing version for https://github.com/realm/SwiftLint
Computed https://github.com/realm/SwiftLint at 0.43.1 (4.91s)
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
[1/12556] Fetching cryptoswift
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (3.10s)
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.39s)
Computing version for https://github.com/scottrhoyt/SwiftyTextTable.git
Computed https://github.com/scottrhoyt/SwiftyTextTable.git at 0.9.0 (1.04s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 4.0.6 (0.38s)
Computing version for https://github.com/jpsim/SourceKitten.git
Computed https://github.com/jpsim/SourceKitten.git at 0.31.0 (0.40s)
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.42s)
Computing version for https://github.com/Kitura/KituraContracts.git
Computed https://github.com/Kitura/KituraContracts.git at 1.2.200 (0.39s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.41s)
Computing version for https://github.com/Kitura/BlueECC.git
Computed https://github.com/Kitura/BlueECC.git at 1.2.200 (0.40s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.21s)
Computing version for https://github.com/Kitura/BlueCryptor.git
Computed https://github.com/Kitura/BlueCryptor.git at 1.0.200 (0.40s)
Computing version for https://github.com/Kitura/BlueRSA.git
Computed https://github.com/Kitura/BlueRSA.git at 1.0.200 (0.40s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 5.0.2 (0.39s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.0 (0.38s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (1.02s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.3.8 (0.40s)
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/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/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/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.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/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/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 1.0.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/jpsim/SourceKitten.git
Working copy of https://github.com/jpsim/SourceKitten.git resolved at 0.31.0
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/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 4.0.6
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
Building for debugging...
[0/9] Write sources
[8/9] Write swift-version-24593BA9C3E375BF.txt
[10/43] Emitting module CryptorECC
[11/44] Compiling CryptorECC SSLPointerTricks.swift
[12/44] Compiling Cryptor SSLPointerTricks.swift
[13/45] Compiling CryptorECC ECDecryptable.swift
[14/45] Compiling CryptorECC ECEncryptable.swift
[15/45] Compiling CryptorRSA CryptorRSAConstants.swift
[16/46] Compiling CryptorECC ECError.swift
[17/46] Compiling CryptorECC ECPrivateKey.swift
[18/46] Emitting module Cryptor
[19/46] Compiling CryptorECC ASN1.swift
[20/46] Compiling CryptorECC Data+Extensions.swift
[21/46] Compiling Cryptor Status.swift
[24/46] Compiling CryptorRSA Data+Extensions.swift
[27/46] Compiling CryptorECC ECSignable.swift
[28/46] Compiling CryptorRSA CryptorRSAUtilities.swift
[29/46] Emitting module Logging
[30/46] Compiling Logging Locks.swift
[33/46] Compiling CryptorECC ECPublicKey.swift
[34/46] Compiling CryptorRSA CryptorRSADigest.swift
[35/46] Compiling CryptorRSA CryptorRSAKey.swift
[36/46] Compiling CryptorRSA CryptorRSAErrors.swift
[37/46] Compiling Cryptor StreamCryptor.swift
[38/46] Compiling Cryptor Updatable.swift
[39/46] Compiling CryptorRSA SSLPointerTricks.swift
[40/46] Emitting module CryptorRSA
[41/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)
                                                                                    ^
[42/46] Compiling Cryptor Utilities.swift
[43/47] Compiling CryptorECC EllipticCurve.swift
[44/47] Compiling CryptorECC ECSignature.swift
[45/48] Compiling Logging LogHandler.swift
[47/48] Compiling Logging Logging.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Emitting module Logging
[3/7] Emitting module CryptorECC
[6/8] Emitting module Cryptor
[8/11] Emitting module CryptorRSA
[9/11] 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)
                                                                                    ^
[10/11] Compiling LoggerAPI Logger.swift
[11/11] Emitting module LoggerAPI
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1