Build Information
Failed to build Menkyo 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/yasumoto/menkyo.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/yasumoto/menkyo
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 1be8d16 Documentation cleanup
Cloned https://github.com/yasumoto/menkyo.git
Revision (git rev-parse @):
1be8d166392885e36e82bc5a6a338a79f3fc71b3
SUCCESS checkout https://github.com/yasumoto/menkyo.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/yasumoto/menkyo.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
Fetching https://github.com/vapor/ctls.git
[1/71] Fetching ctls
Fetched https://github.com/vapor/ctls.git from cache (0.21s)
Computing version for https://github.com/vapor/ctls.git
Computed https://github.com/vapor/ctls.git at 1.1.3 (0.55s)
Creating working copy for https://github.com/vapor/ctls.git
Working copy of https://github.com/vapor/ctls.git resolved at 1.1.3
warning: 'ctls': ignoring declared target(s) 'CTLS' in the system package
warning: you may be able to install ctls using your system-packager:
apt-get install libssl-dev
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling Menkyo Certificate.swift
[4/5] Emitting module Menkyo
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:76:47: error: cannot find type 'X509_NAME' in scope
func parseX509Name(name: UnsafeMutablePointer<X509_NAME>, debug: Bool = false) -> [SubjectAttributes:String] {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:111:50: error: cannot find type 'X509' in scope
func parseExpiryDates(cert: UnsafeMutablePointer<X509>) -> (Date?, Date?) {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:158:53: error: cannot find type 'X509' in scope
func parseExtensionNames(cert: UnsafeMutablePointer<X509>, nid: Int32, nameType: Int32) -> [String] {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:184:53: error: cannot find type 'X509' in scope
func retrieveSubjectName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:194:52: error: cannot find type 'X509' in scope
func retrieveIssuerName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:206:63: error: cannot find type 'X509' in scope
func retrieveIssuerAlternativeName(cert: UnsafeMutablePointer<X509>) -> [String] {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:213:57: error: cannot find type 'X509' in scope
func retrieveSubjectAltNames(cert: UnsafeMutablePointer<X509>) -> [String] {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:220:57: error: cannot find type 'X509' in scope
func readCert(pathName: String) -> UnsafeMutablePointer<X509>? {
^~~~
[5/5] Compiling Menkyo Menkyo.swift
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:76:47: error: cannot find type 'X509_NAME' in scope
func parseX509Name(name: UnsafeMutablePointer<X509_NAME>, debug: Bool = false) -> [SubjectAttributes:String] {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:111:50: error: cannot find type 'X509' in scope
func parseExpiryDates(cert: UnsafeMutablePointer<X509>) -> (Date?, Date?) {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:158:53: error: cannot find type 'X509' in scope
func parseExtensionNames(cert: UnsafeMutablePointer<X509>, nid: Int32, nameType: Int32) -> [String] {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:184:53: error: cannot find type 'X509' in scope
func retrieveSubjectName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:194:52: error: cannot find type 'X509' in scope
func retrieveIssuerName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:206:63: error: cannot find type 'X509' in scope
func retrieveIssuerAlternativeName(cert: UnsafeMutablePointer<X509>) -> [String] {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:213:57: error: cannot find type 'X509' in scope
func retrieveSubjectAltNames(cert: UnsafeMutablePointer<X509>) -> [String] {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:220:57: error: cannot find type 'X509' in scope
func readCert(pathName: String) -> UnsafeMutablePointer<X509>? {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:161:54: error: cannot find '_STACK' in scope
let names = rawNames.assumingMemoryBound(to: _STACK.self)
^~~~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:163:13: error: cannot find 'sk_free' in scope
sk_free(names)
^~~~~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:165:25: error: cannot find 'sk_num' in scope
let nameCount = sk_num(names) // Know how many elements are present in the cert
^~~~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:169:30: error: cannot find 'sk_pop' in scope
if let rawName = sk_pop(names) {
^~~~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:224:40: error: cannot find type 'X509' in scope
var cert: UnsafeMutablePointer<X509>?
^~~~
error: fatalError
warning: 'ctls': ignoring declared target(s) 'CTLS' in the system package
warning: you may be able to install ctls using your system-packager:
apt-get install libssl-dev
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module Menkyo
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:76:47: error: cannot find type 'X509_NAME' in scope
func parseX509Name(name: UnsafeMutablePointer<X509_NAME>, debug: Bool = false) -> [SubjectAttributes:String] {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:111:50: error: cannot find type 'X509' in scope
func parseExpiryDates(cert: UnsafeMutablePointer<X509>) -> (Date?, Date?) {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:158:53: error: cannot find type 'X509' in scope
func parseExtensionNames(cert: UnsafeMutablePointer<X509>, nid: Int32, nameType: Int32) -> [String] {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:184:53: error: cannot find type 'X509' in scope
func retrieveSubjectName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:194:52: error: cannot find type 'X509' in scope
func retrieveIssuerName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:206:63: error: cannot find type 'X509' in scope
func retrieveIssuerAlternativeName(cert: UnsafeMutablePointer<X509>) -> [String] {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:213:57: error: cannot find type 'X509' in scope
func retrieveSubjectAltNames(cert: UnsafeMutablePointer<X509>) -> [String] {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:220:57: error: cannot find type 'X509' in scope
func readCert(pathName: String) -> UnsafeMutablePointer<X509>? {
^~~~
[3/3] Compiling Menkyo Menkyo.swift
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:76:47: error: cannot find type 'X509_NAME' in scope
func parseX509Name(name: UnsafeMutablePointer<X509_NAME>, debug: Bool = false) -> [SubjectAttributes:String] {
^~~~~~~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:111:50: error: cannot find type 'X509' in scope
func parseExpiryDates(cert: UnsafeMutablePointer<X509>) -> (Date?, Date?) {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:158:53: error: cannot find type 'X509' in scope
func parseExtensionNames(cert: UnsafeMutablePointer<X509>, nid: Int32, nameType: Int32) -> [String] {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:184:53: error: cannot find type 'X509' in scope
func retrieveSubjectName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:194:52: error: cannot find type 'X509' in scope
func retrieveIssuerName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:206:63: error: cannot find type 'X509' in scope
func retrieveIssuerAlternativeName(cert: UnsafeMutablePointer<X509>) -> [String] {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:213:57: error: cannot find type 'X509' in scope
func retrieveSubjectAltNames(cert: UnsafeMutablePointer<X509>) -> [String] {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:220:57: error: cannot find type 'X509' in scope
func readCert(pathName: String) -> UnsafeMutablePointer<X509>? {
^~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:161:54: error: cannot find '_STACK' in scope
let names = rawNames.assumingMemoryBound(to: _STACK.self)
^~~~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:163:13: error: cannot find 'sk_free' in scope
sk_free(names)
^~~~~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:165:25: error: cannot find 'sk_num' in scope
let nameCount = sk_num(names) // Know how many elements are present in the cert
^~~~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:169:30: error: cannot find 'sk_pop' in scope
if let rawName = sk_pop(names) {
^~~~~~
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:224:40: error: cannot find type 'X509' in scope
var cert: UnsafeMutablePointer<X509>?
^~~~
error: fatalError
BUILD FAILURE 5.10 linux