The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftAPNs with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-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/swiftapns/swiftapns.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/swiftapns/swiftapns
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 448e5eb Fixes for Linux
Cloned https://github.com/swiftapns/swiftapns.git
Revision (git rev-parse @):
448e5eb7ecdeea30eb25312ac2314ba238ef689c
SUCCESS checkout https://github.com/swiftapns/swiftapns.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/swiftapns/swiftapns.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/SwiftAPNs/COpenSSL.git
[1/13] Fetching copenssl
Fetched https://github.com/SwiftAPNs/COpenSSL.git from cache (0.20s)
Computing version for https://github.com/SwiftAPNs/COpenSSL.git
Computed https://github.com/SwiftAPNs/COpenSSL.git at 1.0.0 (0.37s)
Creating working copy for https://github.com/SwiftAPNs/COpenSSL.git
Working copy of https://github.com/SwiftAPNs/COpenSSL.git resolved at 1.0.0
warning: 'copenssl': ignoring declared target(s) 'COpenSSL' in the system package
warning: 'spi-builder-workspace': The target named 'SwiftAPNs' was identified as an executable target but a non-executable product with this name already exists.
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling SwiftAPNs main.swift
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:25:50: error: cannot find type 'EVP_PKEY' in scope
    private let privateKey: UnsafeMutablePointer<EVP_PKEY>
                                                 ^~~~~~~~
[4/8] Compiling SwiftAPNs PushProvider.swift
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:33:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private lazy var session: URLSession = {
                              ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:35:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            let configuration = URLSessionConfiguration.default
                                ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:11:44: error: cannot find type 'URLSessionDelegate' in scope
public final class PushProvider: NSObject, URLSessionDelegate {
                                           ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:45:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:69:33: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = self.session.dataTask(with: request) { data, response, error in
                   ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:71:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                if response.statusCode == 200 {
                   ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:35:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            let configuration = URLSessionConfiguration.default
                                ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Compiling SwiftAPNs DeviceToken.swift
[6/8] Compiling SwiftAPNs PushNotification.swift
[7/8] Emitting module SwiftAPNs
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:19:8: error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
       OPENSSL_add_all_algorithms_conf()
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/evp.h:1146:11: note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
#  define OPENSSL_add_all_algorithms_conf() \
          ^
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:25:50: error: cannot find type 'EVP_PKEY' in scope
    private let privateKey: UnsafeMutablePointer<EVP_PKEY>
                                                 ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:61:72: error: cannot find type 'EVP_PKEY' in scope
    private static func generateToken(privateKey: UnsafeMutablePointer<EVP_PKEY>, header: String, teamId: String) -> (token: String, issuedAt: Date) {
                                                                       ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:78:83: error: cannot find type 'EVP_PKEY' in scope
    private static func sign(content: Data, with privateKey: UnsafeMutablePointer<EVP_PKEY>) -> Data {
                                                                                  ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:33:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private lazy var session: URLSession = {
                              ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:35:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            let configuration = URLSessionConfiguration.default
                                ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:11:44: error: cannot find type 'URLSessionDelegate' in scope
public final class PushProvider: NSObject, URLSessionDelegate {
                                           ^~~~~~~~~~~~~~~~~~
[8/8] Compiling SwiftAPNs JSONWebToken.swift
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:19:8: error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
       OPENSSL_add_all_algorithms_conf()
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/evp.h:1146:11: note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
#  define OPENSSL_add_all_algorithms_conf() \
          ^
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:25:50: error: cannot find type 'EVP_PKEY' in scope
    private let privateKey: UnsafeMutablePointer<EVP_PKEY>
                                                 ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:61:72: error: cannot find type 'EVP_PKEY' in scope
    private static func generateToken(privateKey: UnsafeMutablePointer<EVP_PKEY>, header: String, teamId: String) -> (token: String, issuedAt: Date) {
                                                                       ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:78:83: error: cannot find type 'EVP_PKEY' in scope
    private static func sign(content: Data, with privateKey: UnsafeMutablePointer<EVP_PKEY>) -> Data {
                                                                                  ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:33:110: error: cannot find type 'EVP_PKEY' in scope
        guard let privateKey = pem.withUnsafeBytes({ (pointer: UnsafePointer<UInt8>) -> UnsafeMutablePointer<EVP_PKEY>? in
                                                                                                             ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:82:23: error: cannot find 'EVP_MD_CTX_create' in scope
        let context = EVP_MD_CTX_create()
                      ^~~~~~~~~~~~~~~~~
/usr/include/openssl/evp.h:699:10: note: macro 'EVP_MD_CTX_create' unavailable: function like macros not supported
# define EVP_MD_CTX_create()     EVP_MD_CTX_new()
         ^
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:102:9: error: cannot find 'EVP_MD_CTX_destroy' in scope
        EVP_MD_CTX_destroy(context)
        ^~~~~~~~~~~~~~~~~~
/usr/include/openssl/evp.h:701:10: note: macro 'EVP_MD_CTX_destroy' unavailable: function like macros not supported
# define EVP_MD_CTX_destroy(ctx) EVP_MD_CTX_free((ctx))
         ^
error: fatalError
warning: 'copenssl': ignoring declared target(s) 'COpenSSL' in the system package
warning: 'spi-builder-workspace': The target named 'SwiftAPNs' was identified as an executable target but a non-executable product with this name already exists.
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling SwiftAPNs main.swift
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:25:50: error: cannot find type 'EVP_PKEY' in scope
    private let privateKey: UnsafeMutablePointer<EVP_PKEY>
                                                 ^~~~~~~~
[3/5] Compiling SwiftAPNs PushProvider.swift
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:33:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private lazy var session: URLSession = {
                              ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:35:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            let configuration = URLSessionConfiguration.default
                                ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:11:44: error: cannot find type 'URLSessionDelegate' in scope
public final class PushProvider: NSObject, URLSessionDelegate {
                                           ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:45:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:69:33: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        let task = self.session.dataTask(with: request) { data, response, error in
                   ~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:71:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                if response.statusCode == 200 {
                   ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:35:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            let configuration = URLSessionConfiguration.default
                                ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Compiling SwiftAPNs JSONWebToken.swift
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:19:8: error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
       OPENSSL_add_all_algorithms_conf()
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/evp.h:1146:11: note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
#  define OPENSSL_add_all_algorithms_conf() \
          ^
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:25:50: error: cannot find type 'EVP_PKEY' in scope
    private let privateKey: UnsafeMutablePointer<EVP_PKEY>
                                                 ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:61:72: error: cannot find type 'EVP_PKEY' in scope
    private static func generateToken(privateKey: UnsafeMutablePointer<EVP_PKEY>, header: String, teamId: String) -> (token: String, issuedAt: Date) {
                                                                       ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:78:83: error: cannot find type 'EVP_PKEY' in scope
    private static func sign(content: Data, with privateKey: UnsafeMutablePointer<EVP_PKEY>) -> Data {
                                                                                  ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:33:110: error: cannot find type 'EVP_PKEY' in scope
        guard let privateKey = pem.withUnsafeBytes({ (pointer: UnsafePointer<UInt8>) -> UnsafeMutablePointer<EVP_PKEY>? in
                                                                                                             ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:82:23: error: cannot find 'EVP_MD_CTX_create' in scope
        let context = EVP_MD_CTX_create()
                      ^~~~~~~~~~~~~~~~~
/usr/include/openssl/evp.h:699:10: note: macro 'EVP_MD_CTX_create' unavailable: function like macros not supported
# define EVP_MD_CTX_create()     EVP_MD_CTX_new()
         ^
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:102:9: error: cannot find 'EVP_MD_CTX_destroy' in scope
        EVP_MD_CTX_destroy(context)
        ^~~~~~~~~~~~~~~~~~
/usr/include/openssl/evp.h:701:10: note: macro 'EVP_MD_CTX_destroy' unavailable: function like macros not supported
# define EVP_MD_CTX_destroy(ctx) EVP_MD_CTX_free((ctx))
         ^
[5/5] Emitting module SwiftAPNs
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:19:8: error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
       OPENSSL_add_all_algorithms_conf()
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/evp.h:1146:11: note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
#  define OPENSSL_add_all_algorithms_conf() \
          ^
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:25:50: error: cannot find type 'EVP_PKEY' in scope
    private let privateKey: UnsafeMutablePointer<EVP_PKEY>
                                                 ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:61:72: error: cannot find type 'EVP_PKEY' in scope
    private static func generateToken(privateKey: UnsafeMutablePointer<EVP_PKEY>, header: String, teamId: String) -> (token: String, issuedAt: Date) {
                                                                       ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:78:83: error: cannot find type 'EVP_PKEY' in scope
    private static func sign(content: Data, with privateKey: UnsafeMutablePointer<EVP_PKEY>) -> Data {
                                                                                  ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:33:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private lazy var session: URLSession = {
                              ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:35:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            let configuration = URLSessionConfiguration.default
                                ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/SwiftAPNs/PushProvider.swift:11:44: error: cannot find type 'URLSessionDelegate' in scope
public final class PushProvider: NSObject, URLSessionDelegate {
                                           ^~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1