The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Menkyo, reference 1.2.3 (e5e1a6), with Swift 6.3 for Linux on 11 Apr 2026 04:08:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yasumoto/menkyo.git
Reference: 1.2.3
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
 * tag               1.2.3      -> FETCH_HEAD
HEAD is now at e5e1a6f Simplify name parsing
Cloned https://github.com/yasumoto/menkyo.git
Revision (git rev-parse @):
e5e1a6f3b363148620b0e1f064d5ab8857897963
SUCCESS checkout https://github.com/yasumoto/menkyo.git at 1.2.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.3
Building package at path:  $PWD
https://github.com/yasumoto/menkyo.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Fetching https://github.com/vapor/ctls.git
[1/71] Fetching ctls
Fetched https://github.com/vapor/ctls.git from cache (0.28s)
Computing version for https://github.com/vapor/ctls.git
Computed https://github.com/vapor/ctls.git at 1.1.3 (1.33s)
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
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:65:47: error: cannot find type 'X509_NAME' in scope
 63 |  * https://kahdev.wordpress.com/2008/11/23/a-certificates-subject-issuer-and-its-keyusage/
 64 |  */
 65 | func parseX509Name(name: UnsafeMutablePointer<X509_NAME>, debug: Bool = false) -> [SubjectAttributes:String] {
    |                                               `- error: cannot find type 'X509_NAME' in scope
 66 |     var attributes = [SubjectAttributes: String]()
 67 |     if let buf = X509_NAME_oneline(name, nil, 0) {
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:100:50: error: cannot find type 'X509' in scope
 98 |  *
 99 |  */
100 | func parseExpiryDates(cert: UnsafeMutablePointer<X509>) -> (Date?, Date?) {
    |                                                  `- error: cannot find type 'X509' in scope
101 |     func readDate(asnTime: UnsafePointer<ASN1_TIME>) -> Date? {
102 |         var stringPointer: UnsafeMutableRawPointer? = nil
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:147:53: error: cannot find type 'X509' in scope
145 |  * - nameType: Something like `GEN_DNS`
146 |  */
147 | func parseExtensionNames(cert: UnsafeMutablePointer<X509>, nid: Int32, nameType: Int32) -> [String] {
    |                                                     `- error: cannot find type 'X509' in scope
148 |     var extensionNames = [String]()
149 |     if let rawNames = X509_get_ext_d2i(cert, nid, nil, nil) {
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:173:53: error: cannot find type 'X509' in scope
171 | }
172 |
173 | func retrieveSubjectName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
    |                                                     `- error: cannot find type 'X509' in scope
174 |     if let subjectName = X509_get_subject_name(cert) {
175 |         return parseX509Name(name: subjectName)
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:183:52: error: cannot find type 'X509' in scope
181 |  *  Find the issuing CA of an X509 certificate
182 |  */
183 | func retrieveIssuerName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
    |                                                    `- error: cannot find type 'X509' in scope
184 |     if let issuerName = X509_get_issuer_name(cert) {
185 |         return parseX509Name(name: issuerName)
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:195:63: error: cannot find type 'X509' in scope
193 |  *  https://tools.ietf.org/html/rfc3280.html#section-4.2.1.8
194 |  */
195 | func retrieveIssuerAlternativeName(cert: UnsafeMutablePointer<X509>) -> [String] {
    |                                                               `- error: cannot find type 'X509' in scope
196 |     return parseExtensionNames(cert: cert, nid: NID_issuer_alt_name, nameType: GEN_URI)
197 | }
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:202:57: error: cannot find type 'X509' in scope
200 |  *  Retrieve other names this certificate is valid for
201 |  */
202 | func retrieveSubjectAltNames(cert: UnsafeMutablePointer<X509>) -> [String] {
    |                                                         `- error: cannot find type 'X509' in scope
203 |     return parseExtensionNames(cert: cert, nid: NID_subject_alt_name, nameType: GEN_DNS)
204 | }
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:209:57: error: cannot find type 'X509' in scope
207 |  * Note that callers are responsible for freeing the x509 pointer
208 |  */
209 | func readCert(pathName: String) -> UnsafeMutablePointer<X509>? {
    |                                                         `- error: cannot find type 'X509' in scope
210 |     do {
211 |         let fileHandle = try FileHandle(forReadingFrom: URL(fileURLWithPath: pathName))
[5/5] Compiling Menkyo Menkyo.swift
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:65:47: error: cannot find type 'X509_NAME' in scope
 63 |  * https://kahdev.wordpress.com/2008/11/23/a-certificates-subject-issuer-and-its-keyusage/
 64 |  */
 65 | func parseX509Name(name: UnsafeMutablePointer<X509_NAME>, debug: Bool = false) -> [SubjectAttributes:String] {
    |                                               `- error: cannot find type 'X509_NAME' in scope
 66 |     var attributes = [SubjectAttributes: String]()
 67 |     if let buf = X509_NAME_oneline(name, nil, 0) {
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:100:50: error: cannot find type 'X509' in scope
 98 |  *
 99 |  */
100 | func parseExpiryDates(cert: UnsafeMutablePointer<X509>) -> (Date?, Date?) {
    |                                                  `- error: cannot find type 'X509' in scope
101 |     func readDate(asnTime: UnsafePointer<ASN1_TIME>) -> Date? {
102 |         var stringPointer: UnsafeMutableRawPointer? = nil
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:147:53: error: cannot find type 'X509' in scope
145 |  * - nameType: Something like `GEN_DNS`
146 |  */
147 | func parseExtensionNames(cert: UnsafeMutablePointer<X509>, nid: Int32, nameType: Int32) -> [String] {
    |                                                     `- error: cannot find type 'X509' in scope
148 |     var extensionNames = [String]()
149 |     if let rawNames = X509_get_ext_d2i(cert, nid, nil, nil) {
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:173:53: error: cannot find type 'X509' in scope
171 | }
172 |
173 | func retrieveSubjectName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
    |                                                     `- error: cannot find type 'X509' in scope
174 |     if let subjectName = X509_get_subject_name(cert) {
175 |         return parseX509Name(name: subjectName)
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:183:52: error: cannot find type 'X509' in scope
181 |  *  Find the issuing CA of an X509 certificate
182 |  */
183 | func retrieveIssuerName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
    |                                                    `- error: cannot find type 'X509' in scope
184 |     if let issuerName = X509_get_issuer_name(cert) {
185 |         return parseX509Name(name: issuerName)
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:195:63: error: cannot find type 'X509' in scope
193 |  *  https://tools.ietf.org/html/rfc3280.html#section-4.2.1.8
194 |  */
195 | func retrieveIssuerAlternativeName(cert: UnsafeMutablePointer<X509>) -> [String] {
    |                                                               `- error: cannot find type 'X509' in scope
196 |     return parseExtensionNames(cert: cert, nid: NID_issuer_alt_name, nameType: GEN_URI)
197 | }
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:202:57: error: cannot find type 'X509' in scope
200 |  *  Retrieve other names this certificate is valid for
201 |  */
202 | func retrieveSubjectAltNames(cert: UnsafeMutablePointer<X509>) -> [String] {
    |                                                         `- error: cannot find type 'X509' in scope
203 |     return parseExtensionNames(cert: cert, nid: NID_subject_alt_name, nameType: GEN_DNS)
204 | }
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:209:57: error: cannot find type 'X509' in scope
207 |  * Note that callers are responsible for freeing the x509 pointer
208 |  */
209 | func readCert(pathName: String) -> UnsafeMutablePointer<X509>? {
    |                                                         `- error: cannot find type 'X509' in scope
210 |     do {
211 |         let fileHandle = try FileHandle(forReadingFrom: URL(fileURLWithPath: pathName))
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:150:54: error: cannot find '_STACK' in scope
148 |     var extensionNames = [String]()
149 |     if let rawNames = X509_get_ext_d2i(cert, nid, nil, nil) {
150 |         let names = rawNames.assumingMemoryBound(to: _STACK.self)
    |                                                      `- error: cannot find '_STACK' in scope
151 |         defer {
152 |             sk_free(names)
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:152:13: error: cannot find 'sk_free' in scope
150 |         let names = rawNames.assumingMemoryBound(to: _STACK.self)
151 |         defer {
152 |             sk_free(names)
    |             `- error: cannot find 'sk_free' in scope
153 |         }
154 |         let nameCount = sk_num(names) // Know how many elements are present in the cert
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:154:25: error: cannot find 'sk_num' in scope
152 |             sk_free(names)
153 |         }
154 |         let nameCount = sk_num(names) // Know how many elements are present in the cert
    |                         `- error: cannot find 'sk_num' in scope
155 |
156 |         var count = 0
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:158:30: error: cannot find 'sk_pop' in scope
156 |         var count = 0
157 |         while count < nameCount {
158 |             if let rawName = sk_pop(names) {
    |                              `- error: cannot find 'sk_pop' in scope
159 |                 let name = rawName.assumingMemoryBound(to: GENERAL_NAME.self)
160 |                 if name.pointee.type == nameType {
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:213:40: error: cannot find type 'X509' in scope
211 |         let fileHandle = try FileHandle(forReadingFrom: URL(fileURLWithPath: pathName))
212 |         let file = fdopen(fileHandle.fileDescriptor, "r")
213 |         var cert: UnsafeMutablePointer<X509>?
    |                                        `- error: cannot find type 'X509' in scope
214 |         let certificate = PEM_read_X509(file, &cert, nil, nil)
215 |         fclose(file)
BUILD FAILURE 6.3 linux