The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftX, reference 1.0.1 (41215c), with Swift 6.2 for Wasm on 22 Mar 2026 18:34:43 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftxcity/swiftx.git
Reference: 1.0.1
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/swiftxcity/swiftx
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at 41215c2 some small bugs solved
Cloned https://github.com/swiftxcity/swiftx.git
Revision (git rev-parse @):
41215c21a352090aa9d7f199e41969d5d8e4d486
SUCCESS checkout https://github.com/swiftxcity/swiftx.git at 1.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/swiftxcity/swiftx.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:33aba1b4ee401c56e0fd7ee42e05ab1ffc0b6f44277ad19cffda5d456eb09500
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/embedded-swift-sdk.json
Fetching https://github.com/SwiftXCity/SwiftXCore.git
Fetching https://github.com/apple/swift-log.git
[1/67] Fetching swiftxcore
Fetched https://github.com/SwiftXCity/SwiftXCore.git from cache (0.23s)
[1/6252] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.73s)
Computing version for https://github.com/SwiftXCity/SwiftXCore.git
Computed https://github.com/SwiftXCity/SwiftXCore.git at 1.1.0 (3.46s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.10.1 (0.49s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.10.1
Creating working copy for https://github.com/SwiftXCity/SwiftXCore.git
Working copy of https://github.com/SwiftXCity/SwiftXCore.git resolved at 1.1.0
Building for debugging...
[0/15] Write sources
[5/15] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/19] Emitting module SwiftXCore
/host/spi-builder-workspace/.build/checkouts/SwiftXCore/Sources/SwiftXCore/SwiftXCore.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | public final class SwiftXCore: @unchecked Sendable {
[8/19] Compiling SwiftXCore SwiftXCore.swift
/host/spi-builder-workspace/.build/checkouts/SwiftXCore/Sources/SwiftXCore/SwiftXCore.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | public final class SwiftXCore: @unchecked Sendable {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/19] Emitting module Logging
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:48:8: error: The concurrency lock module was unable to identify your C library.
 46 | #endif
 47 | #else
 48 | #error("The concurrency lock module was unable to identify your C library.")
    |        `- error: The concurrency lock module was unable to identify your C library.
 49 | #endif
 50 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:8: error: Unsupported runtime
  26 | import WASILibc
  27 | #else
  28 | #error("Unsupported runtime")
     |        `- error: Unsupported runtime
  29 | #endif
  30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1459:16: error: Unsupported runtime
1457 |         let systemStderr = WASILibc.stderr!
1458 |         #else
1459 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1460 |         #endif
1461 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1483:16: error: Unsupported runtime
1481 |         let systemStdout = WASILibc.stdout!
1482 |         #else
1483 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1484 |         #endif
1485 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/MetadataProvider.swift:28:8: error: Unsupported runtime
 26 | import WASILibc
 27 | #else
 28 | #error("Unsupported runtime")
    |        `- error: Unsupported runtime
 29 | #endif
 30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:194:50: error: cannot find type 'pthread_rwlock_t' in scope
192 |         UnsafeMutablePointer.allocate(capacity: 1)
193 |     #else
194 |     fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
    |                                                  `- error: cannot find type 'pthread_rwlock_t' in scope
195 |         UnsafeMutablePointer.allocate(capacity: 1)
196 |     #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:988:32: error: 'Codable' is unavailable: unavailable in embedded Swift
 986 |     /// Log levels are ordered by their severity, with `.trace` being the least severe and
 987 |     /// `.critical` being the most severe.
 988 |     public enum Level: String, Codable, CaseIterable {
     |                                `- error: 'Codable' is unavailable: unavailable in embedded Swift
 989 |         /// Appropriate for messages that contain information normally of use only when
 990 |         /// tracing the execution of a program.
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
  |                  `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1394:56: error: cannot find type 'FILE' in scope
1392 | internal typealias CFilePointer = OpaquePointer
1393 | #else
1394 | internal typealias CFilePointer = UnsafeMutablePointer<FILE>
     |                                                        `- error: cannot find type 'FILE' in scope
1395 | #endif
1396 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1461:40: error: cannot find 'systemStderr' in scope
1459 |         #error("Unsupported runtime")
1460 |         #endif
1461 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
     |                                        `- error: cannot find 'systemStderr' in scope
1462 |     }()
1463 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1461:66: error: cannot infer contextual base in reference to member 'always'
1459 |         #error("Unsupported runtime")
1460 |         #endif
1461 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
     |                                                                  `- error: cannot infer contextual base in reference to member 'always'
1462 |     }()
1463 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1485:40: error: cannot find 'systemStdout' in scope
1483 |         #error("Unsupported runtime")
1484 |         #endif
1485 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
     |                                        `- error: cannot find 'systemStdout' in scope
1486 |     }()
1487 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1485:66: error: cannot infer contextual base in reference to member 'always'
1483 |         #error("Unsupported runtime")
1484 |         #endif
1485 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
     |                                                                  `- error: cannot infer contextual base in reference to member 'always'
1486 |     }()
1487 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1411:13: error: cannot find 'flockfile' in scope
1409 |             // no file locking on WASI
1410 |             #else
1411 |             flockfile(self.file)
     |             `- error: cannot find 'flockfile' in scope
1412 |             #endif
1413 |             defer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1422:17: error: cannot find 'fwrite' in scope
1420 |                 #endif
1421 |             }
1422 |             _ = fwrite(utf8Bytes.baseAddress!, 1, utf8Bytes.count, self.file)
     |                 `- error: cannot find 'fwrite' in scope
1423 |             if case .always = self.flushMode {
1424 |                 self.flush()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1431:13: error: cannot find 'fflush' in scope
1429 |     /// Flush the underlying stream.
1430 |     internal func flush() {
1431 |         _ = fflush(self.file)
     |             `- error: cannot find 'fflush' in scope
1432 |     }
1433 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1667:25: error: cannot find 'time' in scope
1665 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1666 |         #else
1667 |         var timestamp = time(nil)
     |                         `- error: cannot find 'time' in scope
1668 |         guard let localTime = localtime(&timestamp) else {
1669 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1667:30: error: 'nil' requires a contextual type
1665 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1666 |         #else
1667 |         var timestamp = time(nil)
     |                              `- error: 'nil' requires a contextual type
1668 |         guard let localTime = localtime(&timestamp) else {
1669 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1668:31: error: cannot find 'localtime' in scope
1666 |         #else
1667 |         var timestamp = time(nil)
1668 |         guard let localTime = localtime(&timestamp) else {
     |                               `- error: cannot find 'localtime' in scope
1669 |             return "<unknown>"
1670 |         }
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1671:9: error: cannot find 'strftime' in scope
1669 |             return "<unknown>"
1670 |         }
1671 |         strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", localTime)
     |         `- error: cannot find 'strftime' in scope
1672 |         #endif
1673 |         return buffer.withUnsafeBufferPointer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1810:54: error: 'description' is unavailable: unavailable in embedded Swift
1808 |         switch self {
1809 |         case .dictionary(let dict):
1810 |             return dict.mapValues { $0.description }.description
     |                                                      `- error: 'description' is unavailable: unavailable in embedded Swift
1811 |         case .array(let list):
1812 |             return list.map { $0.description }.description
Swift.Dictionary.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Dictionary {
2 | public var description: String { get }}
  |            `- note: 'description' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1812:48: error: 'description' is unavailable: unavailable in embedded Swift
1810 |             return dict.mapValues { $0.description }.description
1811 |         case .array(let list):
1812 |             return list.map { $0.description }.description
     |                                                `- error: 'description' is unavailable: unavailable in embedded Swift
1813 |         case .string(let str):
1814 |             return str
Swift.Array.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Array {
2 | public var description: String { get }}
  |            `- note: 'description' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:48:8: error: The concurrency lock module was unable to identify your C library.
 46 | #endif
 47 | #else
 48 | #error("The concurrency lock module was unable to identify your C library.")
    |        `- error: The concurrency lock module was unable to identify your C library.
 49 | #endif
 50 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:8: error: Unsupported runtime
  26 | import WASILibc
  27 | #else
  28 | #error("Unsupported runtime")
     |        `- error: Unsupported runtime
  29 | #endif
  30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1459:16: error: Unsupported runtime
1457 |         let systemStderr = WASILibc.stderr!
1458 |         #else
1459 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1460 |         #endif
1461 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1483:16: error: Unsupported runtime
1481 |         let systemStdout = WASILibc.stdout!
1482 |         #else
1483 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1484 |         #endif
1485 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/MetadataProvider.swift:28:8: error: Unsupported runtime
 26 | import WASILibc
 27 | #else
 28 | #error("Unsupported runtime")
    |        `- error: Unsupported runtime
 29 | #endif
 30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:194:50: error: cannot find type 'pthread_rwlock_t' in scope
192 |         UnsafeMutablePointer.allocate(capacity: 1)
193 |     #else
194 |     fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
    |                                                  `- error: cannot find type 'pthread_rwlock_t' in scope
195 |         UnsafeMutablePointer.allocate(capacity: 1)
196 |     #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:988:32: error: 'Codable' is unavailable: unavailable in embedded Swift
 986 |     /// Log levels are ordered by their severity, with `.trace` being the least severe and
 987 |     /// `.critical` being the most severe.
 988 |     public enum Level: String, Codable, CaseIterable {
     |                                `- error: 'Codable' is unavailable: unavailable in embedded Swift
 989 |         /// Appropriate for messages that contain information normally of use only when
 990 |         /// tracing the execution of a program.
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
  |                  `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1394:56: error: cannot find type 'FILE' in scope
1392 | internal typealias CFilePointer = OpaquePointer
1393 | #else
1394 | internal typealias CFilePointer = UnsafeMutablePointer<FILE>
     |                                                        `- error: cannot find type 'FILE' in scope
1395 | #endif
1396 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1461:40: error: cannot find 'systemStderr' in scope
1459 |         #error("Unsupported runtime")
1460 |         #endif
1461 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
     |                                        `- error: cannot find 'systemStderr' in scope
1462 |     }()
1463 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1461:66: error: cannot infer contextual base in reference to member 'always'
1459 |         #error("Unsupported runtime")
1460 |         #endif
1461 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
     |                                                                  `- error: cannot infer contextual base in reference to member 'always'
1462 |     }()
1463 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1485:40: error: cannot find 'systemStdout' in scope
1483 |         #error("Unsupported runtime")
1484 |         #endif
1485 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
     |                                        `- error: cannot find 'systemStdout' in scope
1486 |     }()
1487 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1485:66: error: cannot infer contextual base in reference to member 'always'
1483 |         #error("Unsupported runtime")
1484 |         #endif
1485 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
     |                                                                  `- error: cannot infer contextual base in reference to member 'always'
1486 |     }()
1487 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1411:13: error: cannot find 'flockfile' in scope
1409 |             // no file locking on WASI
1410 |             #else
1411 |             flockfile(self.file)
     |             `- error: cannot find 'flockfile' in scope
1412 |             #endif
1413 |             defer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1422:17: error: cannot find 'fwrite' in scope
1420 |                 #endif
1421 |             }
1422 |             _ = fwrite(utf8Bytes.baseAddress!, 1, utf8Bytes.count, self.file)
     |                 `- error: cannot find 'fwrite' in scope
1423 |             if case .always = self.flushMode {
1424 |                 self.flush()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1431:13: error: cannot find 'fflush' in scope
1429 |     /// Flush the underlying stream.
1430 |     internal func flush() {
1431 |         _ = fflush(self.file)
     |             `- error: cannot find 'fflush' in scope
1432 |     }
1433 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1667:25: error: cannot find 'time' in scope
1665 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1666 |         #else
1667 |         var timestamp = time(nil)
     |                         `- error: cannot find 'time' in scope
1668 |         guard let localTime = localtime(&timestamp) else {
1669 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1667:30: error: 'nil' requires a contextual type
1665 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1666 |         #else
1667 |         var timestamp = time(nil)
     |                              `- error: 'nil' requires a contextual type
1668 |         guard let localTime = localtime(&timestamp) else {
1669 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1668:31: error: cannot find 'localtime' in scope
1666 |         #else
1667 |         var timestamp = time(nil)
1668 |         guard let localTime = localtime(&timestamp) else {
     |                               `- error: cannot find 'localtime' in scope
1669 |             return "<unknown>"
1670 |         }
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1671:9: error: cannot find 'strftime' in scope
1669 |             return "<unknown>"
1670 |         }
1671 |         strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", localTime)
     |         `- error: cannot find 'strftime' in scope
1672 |         #endif
1673 |         return buffer.withUnsafeBufferPointer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1810:54: error: 'description' is unavailable: unavailable in embedded Swift
1808 |         switch self {
1809 |         case .dictionary(let dict):
1810 |             return dict.mapValues { $0.description }.description
     |                                                      `- error: 'description' is unavailable: unavailable in embedded Swift
1811 |         case .array(let list):
1812 |             return list.map { $0.description }.description
Swift.Dictionary.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Dictionary {
2 | public var description: String { get }}
  |            `- note: 'description' has been explicitly marked unavailable here
3 |
BUILD FAILURE 6.2 wasm