Build Information
Failed to build mqtt-nio, reference main (91d357), with Swift 6.2 for Wasm on 5 Feb 2026 21:06:20 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swift-server-community/mqtt-nio.git
Reference: main
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/swift-server-community/mqtt-nio
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 91d3578 V2: Add support for Android (#217)
Cloned https://github.com/swift-server-community/mqtt-nio.git
Revision (git rev-parse @):
91d357875eabd63c55eee40fc6b85bc1f00839ed
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swift-server-community/mqtt-nio.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/swift-server-community/mqtt-nio.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:c50555b47c4db0b0576f9f25702fbe2fdff28194c4a4f4c23a7dce4b3504c85e
Status: Image is up to date for registry.gitlab.com/finestructure/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/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-atomics.git
[1/2809] Fetching swift-nio-transport-services
[1771/4980] Fetching swift-nio-transport-services, swift-docc-plugin
[3028/6800] Fetching swift-nio-transport-services, swift-docc-plugin, swift-atomics
Fetched https://github.com/apple/swift-docc-plugin from cache (0.47s)
[1/15296] Fetching swift-nio-ssl
[2/97179] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.27s)
[50768/81883] Fetching swift-nio
Fetching https://github.com/apple/swift-log.git
Fetched https://github.com/apple/swift-atomics.git from cache (7.24s)
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (7.24s)
Fetched https://github.com/apple/swift-nio.git from cache (7.37s)
[1/5899] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.55s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (8.21s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (0.50s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3653] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.48s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.07s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.26.0 (1.45s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.94.0 (0.80s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/19373] Fetching swift-collections
[1745/24925] Fetching swift-collections, swift-system
Fetched https://github.com/apple/swift-system.git from cache (1.49s)
Fetched https://github.com/apple/swift-collections.git from cache (1.53s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (1.95s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.59s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.9.1 (0.44s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.36.0 (0.45s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.5
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.9.1
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.94.0
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.26.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.36.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/35] Write sources
[18/35] Compiling CNIOWindows shim.c
[18/35] Compiling CNIOWindows WSAStartup.c
[18/35] Compiling _AtomicsShims.c
[21/35] Compiling CNIOPosix event_loop_id.c
[22/35] Compiling CNIOWASI CNIOWASI.c
[23/35] Compiling CNIOLinux shim.c
[23/35] Compiling CNIOOpenBSD shim.c
[25/35] Compiling CNIOLinux liburing_shims.c
[26/35] Compiling CNIOSHA1 c_nio_sha1.c
[26/35] Write sources
[28/35] Compiling CNIODarwin shim.c
[29/35] Write swift-version-24593BA9C3E375BF.txt
[30/35] Compiling CNIOLLHTTP c_nio_http.c
[31/35] Compiling CNIOLLHTTP c_nio_api.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[33/45] Emitting module _NIODataStructures
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:27:8: error: The Heap module was unable to identify your C library.
25 | @preconcurrency import Bionic
26 | #else
27 | #error("The Heap module was unable to identify your C library.")
| `- error: The Heap module was unable to identify your C library.
28 | #endif
29 |
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:170:47: error: 'init(describing:)' is unavailable: unavailable in embedded Swift
168 | return "<empty heap>"
169 | }
170 | let descriptions = self.storage.map { String(describing: $0) }
| `- error: 'init(describing:)' is unavailable: unavailable in embedded Swift
171 | let maxLen: Int = descriptions.map { $0.count }.max()! // storage checked non-empty above
172 | let paddedDescs = descriptions.map { (desc: String) -> String in
Swift.String.init:2:8: note: 'init(describing:)' has been explicitly marked unavailable here
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: 'init(describing:)' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:208:21: error: cannot find 'log2' in scope
206 |
207 | func height(index: Int) -> Int {
208 | Int(log2(Double(index + 1)))
| `- error: cannot find 'log2' in scope
209 | }
210 | let myHeight = height(index: index)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[34/45] 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:1455:16: error: Unsupported runtime
1453 | let systemStderr = WASILibc.stderr!
1454 | #else
1455 | #error("Unsupported runtime")
| `- error: Unsupported runtime
1456 | #endif
1457 | return StdioOutputStream(file: systemStderr, flushMode: .always)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1475:16: error: Unsupported runtime
1473 | let systemStdout = WASILibc.stdout!
1474 | #else
1475 | #error("Unsupported runtime")
| `- error: Unsupported runtime
1476 | #endif
1477 | 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:65:49: error: cannot find type 'pthread_mutex_t' in scope
63 | UnsafeMutablePointer.allocate(capacity: 1)
64 | #else
65 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
66 | UnsafeMutablePointer.allocate(capacity: 1)
67 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:180:50: error: cannot find type 'pthread_rwlock_t' in scope
178 | fileprivate var shared: Bool = true
179 | #else
180 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
181 | UnsafeMutablePointer.allocate(capacity: 1)
182 | #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:1457:40: error: cannot find 'systemStderr' in scope
1455 | #error("Unsupported runtime")
1456 | #endif
1457 | return StdioOutputStream(file: systemStderr, flushMode: .always)
| `- error: cannot find 'systemStderr' in scope
1458 | }()
1459 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1457:66: error: cannot infer contextual base in reference to member 'always'
1455 | #error("Unsupported runtime")
1456 | #endif
1457 | return StdioOutputStream(file: systemStderr, flushMode: .always)
| `- error: cannot infer contextual base in reference to member 'always'
1458 | }()
1459 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1477:40: error: cannot find 'systemStdout' in scope
1475 | #error("Unsupported runtime")
1476 | #endif
1477 | return StdioOutputStream(file: systemStdout, flushMode: .always)
| `- error: cannot find 'systemStdout' in scope
1478 | }()
1479 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1477:66: error: cannot infer contextual base in reference to member 'always'
1475 | #error("Unsupported runtime")
1476 | #endif
1477 | return StdioOutputStream(file: systemStdout, flushMode: .always)
| `- error: cannot infer contextual base in reference to member 'always'
1478 | }()
1479 |
/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:1659:25: error: cannot find 'time' in scope
1657 | _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1658 | #else
1659 | var timestamp = time(nil)
| `- error: cannot find 'time' in scope
1660 | guard let localTime = localtime(×tamp) else {
1661 | return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1659:30: error: 'nil' requires a contextual type
1657 | _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1658 | #else
1659 | var timestamp = time(nil)
| `- error: 'nil' requires a contextual type
1660 | guard let localTime = localtime(×tamp) else {
1661 | return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1660:31: error: cannot find 'localtime' in scope
1658 | #else
1659 | var timestamp = time(nil)
1660 | guard let localTime = localtime(×tamp) else {
| `- error: cannot find 'localtime' in scope
1661 | return "<unknown>"
1662 | }
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1663:9: error: cannot find 'strftime' in scope
1661 | return "<unknown>"
1662 | }
1663 | strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", localTime)
| `- error: cannot find 'strftime' in scope
1664 | #endif
1665 | return buffer.withUnsafeBufferPointer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1802:54: error: 'description' is unavailable: unavailable in embedded Swift
1800 | switch self {
1801 | case .dictionary(let dict):
1802 | return dict.mapValues { $0.description }.description
| `- error: 'description' is unavailable: unavailable in embedded Swift
1803 | case .array(let list):
1804 | 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:1804:48: error: 'description' is unavailable: unavailable in embedded Swift
1802 | return dict.mapValues { $0.description }.description
1803 | case .array(let list):
1804 | return list.map { $0.description }.description
| `- error: 'description' is unavailable: unavailable in embedded Swift
1805 | case .string(let str):
1806 | 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 |
[35/45] Compiling Logging Locks.swift
/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:1455:16: error: Unsupported runtime
1453 | let systemStderr = WASILibc.stderr!
1454 | #else
1455 | #error("Unsupported runtime")
| `- error: Unsupported runtime
1456 | #endif
1457 | return StdioOutputStream(file: systemStderr, flushMode: .always)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1475:16: error: Unsupported runtime
1473 | let systemStdout = WASILibc.stdout!
1474 | #else
1475 | #error("Unsupported runtime")
| `- error: Unsupported runtime
1476 | #endif
1477 | 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:65:49: error: cannot find type 'pthread_mutex_t' in scope
63 | UnsafeMutablePointer.allocate(capacity: 1)
64 | #else
65 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
66 | UnsafeMutablePointer.allocate(capacity: 1)
67 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:180:50: error: cannot find type 'pthread_rwlock_t' in scope
178 | fileprivate var shared: Bool = true
179 | #else
180 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
181 | UnsafeMutablePointer.allocate(capacity: 1)
182 | #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:1457:40: error: cannot find 'systemStderr' in scope
1455 | #error("Unsupported runtime")
1456 | #endif
1457 | return StdioOutputStream(file: systemStderr, flushMode: .always)
| `- error: cannot find 'systemStderr' in scope
1458 | }()
1459 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1457:66: error: cannot infer contextual base in reference to member 'always'
1455 | #error("Unsupported runtime")
1456 | #endif
1457 | return StdioOutputStream(file: systemStderr, flushMode: .always)
| `- error: cannot infer contextual base in reference to member 'always'
1458 | }()
1459 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1477:40: error: cannot find 'systemStdout' in scope
1475 | #error("Unsupported runtime")
1476 | #endif
1477 | return StdioOutputStream(file: systemStdout, flushMode: .always)
| `- error: cannot find 'systemStdout' in scope
1478 | }()
1479 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1477:66: error: cannot infer contextual base in reference to member 'always'
1475 | #error("Unsupported runtime")
1476 | #endif
1477 | return StdioOutputStream(file: systemStdout, flushMode: .always)
| `- error: cannot infer contextual base in reference to member 'always'
1478 | }()
1479 |
/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:1659:25: error: cannot find 'time' in scope
1657 | _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1658 | #else
1659 | var timestamp = time(nil)
| `- error: cannot find 'time' in scope
1660 | guard let localTime = localtime(×tamp) else {
1661 | return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1659:30: error: 'nil' requires a contextual type
1657 | _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1658 | #else
1659 | var timestamp = time(nil)
| `- error: 'nil' requires a contextual type
1660 | guard let localTime = localtime(×tamp) else {
1661 | return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1660:31: error: cannot find 'localtime' in scope
1658 | #else
1659 | var timestamp = time(nil)
1660 | guard let localTime = localtime(×tamp) else {
| `- error: cannot find 'localtime' in scope
1661 | return "<unknown>"
1662 | }
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1663:9: error: cannot find 'strftime' in scope
1661 | return "<unknown>"
1662 | }
1663 | strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", localTime)
| `- error: cannot find 'strftime' in scope
1664 | #endif
1665 | return buffer.withUnsafeBufferPointer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1802:54: error: 'description' is unavailable: unavailable in embedded Swift
1800 | switch self {
1801 | case .dictionary(let dict):
1802 | return dict.mapValues { $0.description }.description
| `- error: 'description' is unavailable: unavailable in embedded Swift
1803 | case .array(let list):
1804 | 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:1804:48: error: 'description' is unavailable: unavailable in embedded Swift
1802 | return dict.mapValues { $0.description }.description
1803 | case .array(let list):
1804 | return list.map { $0.description }.description
| `- error: 'description' is unavailable: unavailable in embedded Swift
1805 | case .string(let str):
1806 | 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 |
[35/45] Compiling c-nioatomics.c
[35/45] Compiling c-atomics.c
[35/45] Compiling CNIOLLHTTP c_nio_llhttp.c
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:27:8: error: The Heap module was unable to identify your C library.
25 | @preconcurrency import Bionic
26 | #else
27 | #error("The Heap module was unable to identify your C library.")
| `- error: The Heap module was unable to identify your C library.
28 | #endif
29 |
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:170:47: error: 'init(describing:)' is unavailable: unavailable in embedded Swift
168 | return "<empty heap>"
169 | }
170 | let descriptions = self.storage.map { String(describing: $0) }
| `- error: 'init(describing:)' is unavailable: unavailable in embedded Swift
171 | let maxLen: Int = descriptions.map { $0.count }.max()! // storage checked non-empty above
172 | let paddedDescs = descriptions.map { (desc: String) -> String in
Swift.String.init:2:8: note: 'init(describing:)' has been explicitly marked unavailable here
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: 'init(describing:)' has been explicitly marked unavailable here
3 |
BUILD FAILURE 6.2 wasm