This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Menkyo with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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:             6.0
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-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Fetching https://github.com/vapor/ctls.git
[1/71] Fetching ctls
Fetched https://github.com/vapor/ctls.git from cache (0.25s)
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
 74 |  - debug: Print out details
 75 |  */
 76 | func parseX509Name(name: UnsafeMutablePointer<X509_NAME>, debug: Bool = false) -> [SubjectAttributes:String] {
    |                                               `- error: cannot find type 'X509_NAME' in scope
 77 |     var attributes = [SubjectAttributes: String]()
 78 |     if let buf = X509_NAME_oneline(name, nil, 0) {
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:111:50: error: cannot find type 'X509' in scope
109 |  *
110 |  */
111 | func parseExpiryDates(cert: UnsafeMutablePointer<X509>) -> (Date?, Date?) {
    |                                                  `- error: cannot find type 'X509' in scope
112 |     func readDate(asnTime: UnsafePointer<ASN1_TIME>) -> Date? {
113 |         var stringPointer: UnsafeMutableRawPointer? = nil
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:158:53: error: cannot find type 'X509' in scope
156 |  * - nameType: Something like `GEN_DNS`
157 |  */
158 | func parseExtensionNames(cert: UnsafeMutablePointer<X509>, nid: Int32, nameType: Int32) -> [String] {
    |                                                     `- error: cannot find type 'X509' in scope
159 |     var extensionNames = [String]()
160 |     if let rawNames = X509_get_ext_d2i(cert, nid, nil, nil) {
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:184:53: error: cannot find type 'X509' in scope
182 | }
183 |
184 | func retrieveSubjectName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
    |                                                     `- error: cannot find type 'X509' in scope
185 |     if let subjectName = X509_get_subject_name(cert) {
186 |         return parseX509Name(name: subjectName)
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:194:52: error: cannot find type 'X509' in scope
192 |  *  Find the issuing CA of an X509 certificate
193 |  */
194 | func retrieveIssuerName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
    |                                                    `- error: cannot find type 'X509' in scope
195 |     if let issuerName = X509_get_issuer_name(cert) {
196 |         return parseX509Name(name: issuerName)
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:206:63: error: cannot find type 'X509' in scope
204 |  *  https://tools.ietf.org/html/rfc3280.html#section-4.2.1.8
205 |  */
206 | func retrieveIssuerAlternativeName(cert: UnsafeMutablePointer<X509>) -> [String] {
    |                                                               `- error: cannot find type 'X509' in scope
207 |     return parseExtensionNames(cert: cert, nid: NID_issuer_alt_name, nameType: GEN_URI)
208 | }
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:213:57: error: cannot find type 'X509' in scope
211 |  *  Retrieve other names this certificate is valid for
212 |  */
213 | func retrieveSubjectAltNames(cert: UnsafeMutablePointer<X509>) -> [String] {
    |                                                         `- error: cannot find type 'X509' in scope
214 |     return parseExtensionNames(cert: cert, nid: NID_subject_alt_name, nameType: GEN_DNS)
215 | }
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:220:57: error: cannot find type 'X509' in scope
218 |  * Note that callers are responsible for freeing the x509 pointer
219 |  */
220 | func readCert(pathName: String) -> UnsafeMutablePointer<X509>? {
    |                                                         `- error: cannot find type 'X509' in scope
221 |     do {
222 |         let fileHandle = try FileHandle(forReadingFrom: URL(fileURLWithPath: pathName))
[5/5] Compiling Menkyo Menkyo.swift
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:76:47: error: cannot find type 'X509_NAME' in scope
 74 |  - debug: Print out details
 75 |  */
 76 | func parseX509Name(name: UnsafeMutablePointer<X509_NAME>, debug: Bool = false) -> [SubjectAttributes:String] {
    |                                               `- error: cannot find type 'X509_NAME' in scope
 77 |     var attributes = [SubjectAttributes: String]()
 78 |     if let buf = X509_NAME_oneline(name, nil, 0) {
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:111:50: error: cannot find type 'X509' in scope
109 |  *
110 |  */
111 | func parseExpiryDates(cert: UnsafeMutablePointer<X509>) -> (Date?, Date?) {
    |                                                  `- error: cannot find type 'X509' in scope
112 |     func readDate(asnTime: UnsafePointer<ASN1_TIME>) -> Date? {
113 |         var stringPointer: UnsafeMutableRawPointer? = nil
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:158:53: error: cannot find type 'X509' in scope
156 |  * - nameType: Something like `GEN_DNS`
157 |  */
158 | func parseExtensionNames(cert: UnsafeMutablePointer<X509>, nid: Int32, nameType: Int32) -> [String] {
    |                                                     `- error: cannot find type 'X509' in scope
159 |     var extensionNames = [String]()
160 |     if let rawNames = X509_get_ext_d2i(cert, nid, nil, nil) {
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:184:53: error: cannot find type 'X509' in scope
182 | }
183 |
184 | func retrieveSubjectName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
    |                                                     `- error: cannot find type 'X509' in scope
185 |     if let subjectName = X509_get_subject_name(cert) {
186 |         return parseX509Name(name: subjectName)
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:194:52: error: cannot find type 'X509' in scope
192 |  *  Find the issuing CA of an X509 certificate
193 |  */
194 | func retrieveIssuerName(cert: UnsafeMutablePointer<X509>) -> [SubjectAttributes:String]? {
    |                                                    `- error: cannot find type 'X509' in scope
195 |     if let issuerName = X509_get_issuer_name(cert) {
196 |         return parseX509Name(name: issuerName)
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:206:63: error: cannot find type 'X509' in scope
204 |  *  https://tools.ietf.org/html/rfc3280.html#section-4.2.1.8
205 |  */
206 | func retrieveIssuerAlternativeName(cert: UnsafeMutablePointer<X509>) -> [String] {
    |                                                               `- error: cannot find type 'X509' in scope
207 |     return parseExtensionNames(cert: cert, nid: NID_issuer_alt_name, nameType: GEN_URI)
208 | }
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:213:57: error: cannot find type 'X509' in scope
211 |  *  Retrieve other names this certificate is valid for
212 |  */
213 | func retrieveSubjectAltNames(cert: UnsafeMutablePointer<X509>) -> [String] {
    |                                                         `- error: cannot find type 'X509' in scope
214 |     return parseExtensionNames(cert: cert, nid: NID_subject_alt_name, nameType: GEN_DNS)
215 | }
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:220:57: error: cannot find type 'X509' in scope
218 |  * Note that callers are responsible for freeing the x509 pointer
219 |  */
220 | func readCert(pathName: String) -> UnsafeMutablePointer<X509>? {
    |                                                         `- error: cannot find type 'X509' in scope
221 |     do {
222 |         let fileHandle = try FileHandle(forReadingFrom: URL(fileURLWithPath: pathName))
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:161:54: error: cannot find '_STACK' in scope
159 |     var extensionNames = [String]()
160 |     if let rawNames = X509_get_ext_d2i(cert, nid, nil, nil) {
161 |         let names = rawNames.assumingMemoryBound(to: _STACK.self)
    |                                                      `- error: cannot find '_STACK' in scope
162 |         defer {
163 |             sk_free(names)
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:163:13: error: cannot find 'sk_free' in scope
161 |         let names = rawNames.assumingMemoryBound(to: _STACK.self)
162 |         defer {
163 |             sk_free(names)
    |             `- error: cannot find 'sk_free' in scope
164 |         }
165 |         let nameCount = sk_num(names) // Know how many elements are present in the cert
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:165:25: error: cannot find 'sk_num' in scope
163 |             sk_free(names)
164 |         }
165 |         let nameCount = sk_num(names) // Know how many elements are present in the cert
    |                         `- error: cannot find 'sk_num' in scope
166 |
167 |         var count = 0
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:169:30: error: cannot find 'sk_pop' in scope
167 |         var count = 0
168 |         while count < nameCount {
169 |             if let rawName = sk_pop(names) {
    |                              `- error: cannot find 'sk_pop' in scope
170 |                 let name = rawName.assumingMemoryBound(to: GENERAL_NAME.self)
171 |                 if name.pointee.type == nameType {
/host/spi-builder-workspace/Sources/Menkyo/Menkyo.swift:224:40: error: cannot find type 'X509' in scope
222 |         let fileHandle = try FileHandle(forReadingFrom: URL(fileURLWithPath: pathName))
223 |         let file = fdopen(fileHandle.fileDescriptor, "r")
224 |         var cert: UnsafeMutablePointer<X509>?
    |                                        `- error: cannot find type 'X509' in scope
225 |         let certificate = PEM_read_X509(file, &cert, nil, nil)
226 |         fclose(file)
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.