The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftAPNs with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftapns/swiftapns.git
Reference: master
Cloned https://github.com/swiftapns/swiftapns.git into spi-builder-workspace
SUCCESS checkout https://github.com/swiftapns/swiftapns.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/SwiftAPNs/COpenSSL.git
Fetched https://github.com/SwiftAPNs/COpenSSL.git (0.17s)
Computing version for https://github.com/SwiftAPNs/COpenSSL.git
Computed https://github.com/SwiftAPNs/COpenSSL.git at 1.0.0 (0.27s)
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.
warning: you may be able to install openssl using your system-packager:
    apt-get install openssl libssl-dev
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/6] Emitting module SwiftAPNs
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/COpenSSL/shim.h:4:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:10:8: error: could not build C module 'COpenSSL'
import COpenSSL
       ^
[2/6] Compiling SwiftAPNs DeviceToken.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/COpenSSL/shim.h:4:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:10:8: error: could not build C module 'COpenSSL'
import COpenSSL
       ^
[3/6] Compiling SwiftAPNs JSONWebToken.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/COpenSSL/shim.h:4:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:10:8: error: could not build C module 'COpenSSL'
import COpenSSL
       ^
[4/6] Compiling SwiftAPNs main.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/COpenSSL/shim.h:4:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:10:8: error: could not build C module 'COpenSSL'
import COpenSSL
       ^
[5/6] Compiling SwiftAPNs PushNotification.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/COpenSSL/shim.h:4:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:10:8: error: could not build C module 'COpenSSL'
import COpenSSL
       ^
[6/6] Compiling SwiftAPNs PushProvider.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/COpenSSL/shim.h:4:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/host/spi-builder-workspace/Sources/SwiftAPNs/JSONWebToken.swift:10:8: error: could not build C module 'COpenSSL'
import COpenSSL
       ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1