The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build postgres-kit, reference main (2fc0af), with Swift 6.2 for Wasm on 21 Nov 2025 18:04:51 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>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vapor/postgres-kit.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/vapor/postgres-kit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2fc0afb Bump actions/checkout from 5 to 6 in the dependencies group (#276)
Cloned https://github.com/vapor/postgres-kit.git
Revision (git rev-parse @):
2fc0afb72de1c66e63b3b103c732612ef0396ee8
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/vapor/postgres-kit.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/vapor/postgres-kit.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:302e3f347c593123f3d337e3da1bfe6e802bb8867614e9dfa745c72e13ca8eeb
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/vapor/sql-kit.git
Fetching https://github.com/vapor/async-kit.git
Fetching https://github.com/vapor/postgres-nio.git
[1/6093] Fetching sql-kit
[245/8532] Fetching sql-kit, async-kit
Fetched https://github.com/vapor/sql-kit.git from cache (0.36s)
[1/12901] Fetching postgres-nio
Fetched https://github.com/vapor/async-kit.git from cache (0.72s)
Fetched https://github.com/vapor/postgres-nio.git from cache (0.72s)
Computing version for https://github.com/vapor/async-kit.git
Computed https://github.com/vapor/async-kit.git at 1.21.0 (1.16s)
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-algorithms.git
[1/6029] Fetching swift-algorithms
[1509/11096] Fetching swift-algorithms, swift-log
[11097/29410] Fetching swift-algorithms, swift-log, swift-collections
[12746/109848] Fetching swift-algorithms, swift-log, swift-collections, swift-nio
Fetched https://github.com/apple/swift-collections.git from cache (1.64s)
[48098/91534] Fetching swift-algorithms, swift-log, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (7.12s)
Fetched https://github.com/apple/swift-algorithms.git from cache (7.12s)
Fetched https://github.com/apple/swift-nio.git from cache (7.29s)
Computing version for https://github.com/vapor/sql-kit.git
Computed https://github.com/vapor/sql-kit.git at 3.33.2 (7.79s)
Computing version for https://github.com/vapor/postgres-nio.git
Computed https://github.com/vapor/postgres-nio.git at 1.29.0 (0.95s)
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-metrics.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-atomics.git
[1/2568] Fetching swift-service-lifecycle
[849/5055] Fetching swift-service-lifecycle, swift-metrics
[876/6875] Fetching swift-service-lifecycle, swift-metrics, swift-atomics
[3385/9684] Fetching swift-service-lifecycle, swift-metrics, swift-atomics, swift-nio-transport-services
[5188/27137] Fetching swift-service-lifecycle, swift-metrics, swift-atomics, swift-nio-transport-services, swift-crypto
[10558/42425] Fetching swift-service-lifecycle, swift-metrics, swift-atomics, swift-nio-transport-services, swift-crypto, swift-nio-ssl
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.96s)
Fetched https://github.com/apple/swift-metrics.git from cache (0.96s)
[9411/37370] Fetching swift-atomics, swift-nio-transport-services, swift-crypto, swift-nio-ssl
Fetched https://github.com/apple/swift-atomics.git from cache (0.96s)
[7744/35550] Fetching swift-nio-transport-services, swift-crypto, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (2.50s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.53s)
Fetched https://github.com/apple/swift-crypto.git from cache (2.86s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (3.37s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (2.82s)
Fetching https://github.com/apple/swift-numerics.git
[1/6384] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.51s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (0.85s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.35s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.90.0 (0.76s)
Fetching https://github.com/apple/swift-system.git
[1/5182] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.39s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.3 (0.85s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.61s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.9.1 (0.37s)
Fetching https://github.com/apple/swift-async-algorithms.git
[1/5701] Fetching swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.38s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.0 (0.90s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.1 (0.36s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.25.2 (0.48s)
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.41s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.1.0 (2.93s)
Fetching https://github.com/apple/swift-asn1.git
[1/1653] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.28s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.5.0 (0.73s)
Creating working copy for https://github.com/vapor/async-kit.git
Working copy of https://github.com/vapor/async-kit.git resolved at 1.21.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.6.4
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.7.1
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
Creating working copy for https://github.com/vapor/sql-kit.git
Working copy of https://github.com/vapor/sql-kit.git resolved at 3.33.2
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.25.2
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.1.0
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
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/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.0
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-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.90.0
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.9.1
Creating working copy for https://github.com/vapor/postgres-nio.git
Working copy of https://github.com/vapor/postgres-nio.git resolved at 1.29.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.5.0
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.3
Building for debugging...
[0/823] Write sources
[29/823] Compiling CNIOWindows WSAStartup.c
[29/823] Compiling CNIOWindows shim.c
[31/823] Write sources
[31/823] Compiling CNIOWASI CNIOWASI.c
[31/823] Write sources
[38/823] Compiling _AtomicsShims.c
[39/823] Compiling _NumericsShims _NumericsShims.c
[39/823] Compiling CNIOPosix event_loop_id.c
[41/823] Compiling CNIOLinux shim.c
[42/823] Compiling CXKCPShims shims.c
[43/823] Compiling SimpleFIPS202.c
[44/823] Compiling KeccakSponge.c
[45/823] Compiling CNIODarwin shim.c
[45/823] Compiling CNIOLinux liburing_shims.c
[47/823] Write swift-version-24593BA9C3E375BF.txt
[48/823] Compiling KeccakHash.c
[49/823] Compiling fiat_p256_adx_sqr.S
[50/823] Compiling fiat_p256_adx_mul.S
[51/823] Compiling fiat_curve25519_adx_square.S
[52/823] Compiling fiat_curve25519_adx_mul.S
error: emit-module command failed with exit code 1 (use -v to see invocation)
[54/833] 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)
[55/833] Emitting module Logging
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:42:8: error: Unsupported runtime
 40 | import Musl
 41 | #else
 42 | #error("Unsupported runtime")
    |        `- error: Unsupported runtime
 43 | #endif
 44 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:32:8: error: Unsupported runtime
  30 | import WASILibc
  31 | #else
  32 | #error("Unsupported runtime")
     |        `- error: Unsupported runtime
  33 | #endif
  34 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1270:16: error: Unsupported runtime
1268 |         let systemStderr = WASILibc.stderr!
1269 |         #else
1270 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1271 |         #endif
1272 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1290:16: error: Unsupported runtime
1288 |         let systemStdout = WASILibc.stdout!
1289 |         #else
1290 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1291 |         #endif
1292 |         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:58:49: error: cannot find type 'pthread_mutex_t' in scope
 56 |         UnsafeMutablePointer.allocate(capacity: 1)
 57 |     #else
 58 |     fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
    |                                                 `- error: cannot find type 'pthread_mutex_t' in scope
 59 |         UnsafeMutablePointer.allocate(capacity: 1)
 60 |     #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:161:50: error: cannot find type 'pthread_rwlock_t' in scope
159 |     fileprivate var shared: Bool = true
160 |     #else
161 |     fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
    |                                                  `- error: cannot find type 'pthread_rwlock_t' in scope
162 |         UnsafeMutablePointer.allocate(capacity: 1)
163 |     #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:69:20: error: cannot find 'pthread_mutexattr_t' in scope
 67 |         InitializeSRWLock(self.mutex)
 68 |         #else
 69 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 70 |         pthread_mutexattr_init(&attr)
 71 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:70:9: error: cannot find 'pthread_mutexattr_init' in scope
 68 |         #else
 69 |         var attr = pthread_mutexattr_t()
 70 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 71 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
 72 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:71:9: error: cannot find 'pthread_mutexattr_settype' in scope
 69 |         var attr = pthread_mutexattr_t()
 70 |         pthread_mutexattr_init(&attr)
 71 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |         `- error: cannot find 'pthread_mutexattr_settype' in scope
 72 |
 73 |         let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:71:48: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 69 |         var attr = pthread_mutexattr_t()
 70 |         pthread_mutexattr_init(&attr)
 71 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 72 |
 73 |         let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:71:43: error: cannot infer contextual base in reference to member 'init'
 69 |         var attr = pthread_mutexattr_t()
 70 |         pthread_mutexattr_init(&attr)
 71 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                           `- error: cannot infer contextual base in reference to member 'init'
 72 |
 73 |         let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:73:19: error: cannot find 'pthread_mutex_init' in scope
 71 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
 72 |
 73 |         let err = pthread_mutex_init(self.mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 74 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 75 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:85:19: error: cannot find 'pthread_mutex_destroy' in scope
 83 |         self.mutex.deallocate()
 84 |         #else
 85 |         let err = pthread_mutex_destroy(self.mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 86 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 87 |         self.mutex.deallocate()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:101:19: error: cannot find 'pthread_mutex_lock' in scope
 99 |         AcquireSRWLockExclusive(self.mutex)
100 |         #else
101 |         let err = pthread_mutex_lock(self.mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
102 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
103 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:116:19: error: cannot find 'pthread_mutex_unlock' in scope
114 |         ReleaseSRWLockExclusive(self.mutex)
115 |         #else
116 |         let err = pthread_mutex_unlock(self.mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
117 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
118 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:172:19: error: cannot find 'pthread_rwlock_init' in scope
170 |         InitializeSRWLock(self.rwlock)
171 |         #else
172 |         let err = pthread_rwlock_init(self.rwlock, nil)
    |                   `- error: cannot find 'pthread_rwlock_init' in scope
173 |         precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
174 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:172:52: error: 'nil' requires a contextual type
170 |         InitializeSRWLock(self.rwlock)
171 |         #else
172 |         let err = pthread_rwlock_init(self.rwlock, nil)
    |                                                    `- error: 'nil' requires a contextual type
173 |         precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
174 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:184:19: error: cannot find 'pthread_rwlock_destroy' in scope
182 |         self.rwlock.deallocate()
183 |         #else
184 |         let err = pthread_rwlock_destroy(self.rwlock)
    |                   `- error: cannot find 'pthread_rwlock_destroy' in scope
185 |         precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
186 |         self.rwlock.deallocate()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:201:19: error: cannot find 'pthread_rwlock_rdlock' in scope
199 |         self.shared = true
200 |         #else
201 |         let err = pthread_rwlock_rdlock(self.rwlock)
    |                   `- error: cannot find 'pthread_rwlock_rdlock' in scope
202 |         precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
203 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:217:19: error: cannot find 'pthread_rwlock_wrlock' in scope
215 |         self.shared = false
216 |         #else
217 |         let err = pthread_rwlock_wrlock(self.rwlock)
    |                   `- error: cannot find 'pthread_rwlock_wrlock' in scope
218 |         precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
219 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:237:19: error: cannot find 'pthread_rwlock_unlock' in scope
235 |         }
236 |         #else
237 |         let err = pthread_rwlock_unlock(self.rwlock)
    |                   `- error: cannot find 'pthread_rwlock_unlock' in scope
238 |         precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
239 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:847:32: error: 'Codable' is unavailable: unavailable in embedded Swift
 845 |     /// Log levels are ordered by their severity, with `.trace` being the least severe and
 846 |     /// `.critical` being the most severe.
 847 |     public enum Level: String, Codable, CaseIterable {
     |                                `- error: 'Codable' is unavailable: unavailable in embedded Swift
 848 |         /// Appropriate for messages that contain information normally of use only when
 849 |         /// 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:1209:56: error: cannot find type 'FILE' in scope
1207 | internal typealias CFilePointer = OpaquePointer
1208 | #else
1209 | internal typealias CFilePointer = UnsafeMutablePointer<FILE>
     |                                                        `- error: cannot find type 'FILE' in scope
1210 | #endif
1211 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1272:40: error: cannot find 'systemStderr' in scope
1270 |         #error("Unsupported runtime")
1271 |         #endif
1272 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
     |                                        `- error: cannot find 'systemStderr' in scope
1273 |     }()
1274 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1272:66: error: cannot infer contextual base in reference to member 'always'
1270 |         #error("Unsupported runtime")
1271 |         #endif
1272 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
     |                                                                  `- error: cannot infer contextual base in reference to member 'always'
1273 |     }()
1274 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1292:40: error: cannot find 'systemStdout' in scope
1290 |         #error("Unsupported runtime")
1291 |         #endif
1292 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
     |                                        `- error: cannot find 'systemStdout' in scope
1293 |     }()
1294 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1292:66: error: cannot infer contextual base in reference to member 'always'
1290 |         #error("Unsupported runtime")
1291 |         #endif
1292 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
     |                                                                  `- error: cannot infer contextual base in reference to member 'always'
1293 |     }()
1294 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1226:13: error: cannot find 'flockfile' in scope
1224 |             // no file locking on WASI
1225 |             #else
1226 |             flockfile(self.file)
     |             `- error: cannot find 'flockfile' in scope
1227 |             #endif
1228 |             defer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1237:17: error: cannot find 'fwrite' in scope
1235 |                 #endif
1236 |             }
1237 |             _ = fwrite(utf8Bytes.baseAddress!, 1, utf8Bytes.count, self.file)
     |                 `- error: cannot find 'fwrite' in scope
1238 |             if case .always = self.flushMode {
1239 |                 self.flush()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1246:13: error: cannot find 'fflush' in scope
1244 |     /// Flush the underlying stream.
1245 |     internal func flush() {
1246 |         _ = fflush(self.file)
     |             `- error: cannot find 'fflush' in scope
1247 |     }
1248 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1447:25: error: cannot find 'time' in scope
1445 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1446 |         #else
1447 |         var timestamp = time(nil)
     |                         `- error: cannot find 'time' in scope
1448 |         guard let localTime = localtime(&timestamp) else {
1449 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1447:30: error: 'nil' requires a contextual type
1445 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1446 |         #else
1447 |         var timestamp = time(nil)
     |                              `- error: 'nil' requires a contextual type
1448 |         guard let localTime = localtime(&timestamp) else {
1449 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1448:31: error: cannot find 'localtime' in scope
1446 |         #else
1447 |         var timestamp = time(nil)
1448 |         guard let localTime = localtime(&timestamp) else {
     |                               `- error: cannot find 'localtime' in scope
1449 |             return "<unknown>"
1450 |         }
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1451:9: error: cannot find 'strftime' in scope
1449 |             return "<unknown>"
1450 |         }
1451 |         strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", localTime)
     |         `- error: cannot find 'strftime' in scope
1452 |         #endif
1453 |         return buffer.withUnsafeBufferPointer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1548:54: error: 'description' is unavailable: unavailable in embedded Swift
1546 |         switch self {
1547 |         case .dictionary(let dict):
1548 |             return dict.mapValues { $0.description }.description
     |                                                      `- error: 'description' is unavailable: unavailable in embedded Swift
1549 |         case .array(let list):
1550 |             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:1550:48: error: 'description' is unavailable: unavailable in embedded Swift
1548 |             return dict.mapValues { $0.description }.description
1549 |         case .array(let list):
1550 |             return list.map { $0.description }.description
     |                                                `- error: 'description' is unavailable: unavailable in embedded Swift
1551 |         case .string(let str):
1552 |             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 |
[55/833] Compiling CNIOBoringSSLShims shims.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[57/833] Emitting module _NIOBase64
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIOBase64/Base64.swift:112:39: error: cannot use a value of protocol type 'any Error' in embedded Swift
 27 |     @inlinable
 28 |     public func base64Decoded() throws -> [UInt8] {
 29 |         try self._base64Decoded()
    |                  `- note: called from here
 30 |     }
 31 |
    :
 38 |     @inlinable
 39 |     public func _base64Decoded() throws -> [UInt8] {
 40 |         try Base64.decode(string: self)
    |                    `- note: called from here
 41 |     }
 42 | }
    :
110 |             if bytes[i + 2] != Base64.encodePaddingCharacter {
111 |                 guard let byte2Index = Base64.encodingTable.firstIndex(of: bytes[i + 2]) else {
112 |                     throw Base64Error.invalidCharacter
    |                                       `- error: cannot use a value of protocol type 'any Error' in embedded Swift
113 |                 }
114 |
[58/835] Emitting module RealModule
error: emit-module command failed with exit code 1 (use -v to see invocation)
[60/836] Emitting module SwiftASN1
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Basic ASN1 Types/ASN1Strings.swift:44:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
 42 |
 43 |     @inlinable
 44 |     public init(stringLiteral value: StringLiteralType) {
    |                                      `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
 45 |         self.bytes = ArraySlice(value.utf8)
 46 |     }
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
  |                  `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Basic ASN1 Types/ASN1Strings.swift:97:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
 95 |
 96 |     @inlinable
 97 |     public init(stringLiteral value: StringLiteralType) {
    |                                      `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
 98 |         self.bytes = ArraySlice(value.utf8)
 99 |     }
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
  |                  `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Basic ASN1 Types/ASN1Strings.swift:161:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
159 |
160 |     @inlinable
161 |     public init(stringLiteral value: StringLiteralType) {
    |                                      `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
162 |         self.bytes = ArraySlice(value.utf8)
163 |         precondition(Self._isValid(self.bytes))
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
  |                  `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Basic ASN1 Types/ASN1Strings.swift:239:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
237 |
238 |     @inlinable
239 |     public init(stringLiteral value: StringLiteralType) {
    |                                      `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
240 |         self.bytes = ArraySlice(value.utf8)
241 |     }
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
  |                  `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Basic ASN1 Types/ASN1Strings.swift:286:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
284 |
285 |     @inlinable
286 |     public init(stringLiteral value: StringLiteralType) {
    |                                      `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
287 |         self.bytes = ArraySlice(value.utf8)
288 |     }
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
  |                  `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Basic ASN1 Types/ASN1Strings.swift:350:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
348 |
349 |     @inlinable
350 |     public init(stringLiteral value: StringLiteralType) {
    |                                      `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
351 |         self.bytes = ArraySlice(value.utf8)
352 |         precondition(Self._isValid(self.bytes))
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
  |                  `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Basic ASN1 Types/TimeUtilities.swift:216:45: error: no exact matches in call to initializer
214 |
215 |         if fractionalSeconds != 0 {
216 |             let fractionalSecondsAsString = String(fractionalSeconds)
    |                                             `- error: no exact matches in call to initializer
217 |
218 |             assert(fractionalSecondsAsString.starts(with: "0."), "Invalid fractional seconds")
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
  |        `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:19: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | @inlinable public init<Subject>(describing instance: Subject) where Subject : CustomStringConvertible}
  |                   `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:19: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | @inlinable public init<Subject>(describing instance: Subject) where Subject : TextOutputStreamable}
  |                   `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:19: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | @inlinable public init<Subject>(describing instance: Subject) where Subject : CustomStringConvertible, Subject : TextOutputStreamable}
  |                   `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
1 | struct String {
2 | public init<Subject>(reflecting subject: Subject)}
  |        `- note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
3 |
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Basic ASN1 Types/TimeUtilities.swift:319:39: error: no exact matches in call to initializer
317 |         let fractionalSecondsAsString = "0.\(rawFractionalSecondsAsString)"
318 |
319 |         guard let fractionalSeconds = Double(fractionalSecondsAsString) else {
    |                                       `- error: no exact matches in call to initializer
320 |             throw ASN1Error.invalidASN1Object(
321 |                 reason: "Invalid raw fractional seconds"
Swift.Double.init:2:8: note: candidate expects value of type 'Builtin.FPIEEE64' for parameter #1 (got 'String')
1 | struct Double {
2 | public init(_ _value: Builtin.FPIEEE64)}
  |        `- note: candidate expects value of type 'Builtin.FPIEEE64' for parameter #1 (got 'String')
3 |
Swift.Double.init:2:8: note: candidate expects value of type 'Int' for parameter #1 (got 'String')
1 | struct Double {
2 | public init(_ v: Int)}
  |        `- note: candidate expects value of type 'Int' for parameter #1 (got 'String')
3 |
Swift.Double.init:3:21: note: candidate expects value of type 'Float16' for parameter #1 (got 'String')
1 | struct Double {
2 | @available(macOS 10.9, iOS 7.0, watchOS 2.0, tvOS 9.0, visionOS 1.0, *)
3 |   @inlinable public init(_ other: Float16)}
  |                     `- note: candidate expects value of type 'Float16' for parameter #1 (got 'String')
4 |
Swift.Double.init:2:19: note: candidate expects value of type 'Float' for parameter #1 (got 'String')
1 | struct Double {
2 | @inlinable public init(_ other: Float)}
  |                   `- note: candidate expects value of type 'Float' for parameter #1 (got 'String')
3 |
Swift.Double.init:2:19: note: candidate expects value of type 'Double' for parameter #1 (got 'String')
1 | struct Double {
2 | @inlinable public init(_ other: Double)}
  |                   `- note: candidate expects value of type 'Double' for parameter #1 (got 'String')
3 |
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Errors.swift:236:20: error: 'init(describing:)' is unavailable: unavailable in embedded Swift
234 |
235 |         public var description: String {
236 |             return String(describing: self.backingCode)
    |                    `- error: 'init(describing:)' is unavailable: unavailable in embedded Swift
237 |         }
238 |     }
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 |
[61/836] Compiling Logging Locks.swift
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:42:8: error: Unsupported runtime
 40 | import Musl
 41 | #else
 42 | #error("Unsupported runtime")
    |        `- error: Unsupported runtime
 43 | #endif
 44 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:32:8: error: Unsupported runtime
  30 | import WASILibc
  31 | #else
  32 | #error("Unsupported runtime")
     |        `- error: Unsupported runtime
  33 | #endif
  34 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1270:16: error: Unsupported runtime
1268 |         let systemStderr = WASILibc.stderr!
1269 |         #else
1270 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1271 |         #endif
1272 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1290:16: error: Unsupported runtime
1288 |         let systemStdout = WASILibc.stdout!
1289 |         #else
1290 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1291 |         #endif
1292 |         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:58:49: error: cannot find type 'pthread_mutex_t' in scope
 56 |         UnsafeMutablePointer.allocate(capacity: 1)
 57 |     #else
 58 |     fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
    |                                                 `- error: cannot find type 'pthread_mutex_t' in scope
 59 |         UnsafeMutablePointer.allocate(capacity: 1)
 60 |     #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:161:50: error: cannot find type 'pthread_rwlock_t' in scope
159 |     fileprivate var shared: Bool = true
160 |     #else
161 |     fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
    |                                                  `- error: cannot find type 'pthread_rwlock_t' in scope
162 |         UnsafeMutablePointer.allocate(capacity: 1)
163 |     #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:69:20: error: cannot find 'pthread_mutexattr_t' in scope
 67 |         InitializeSRWLock(self.mutex)
 68 |         #else
 69 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 70 |         pthread_mutexattr_init(&attr)
 71 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:70:9: error: cannot find 'pthread_mutexattr_init' in scope
 68 |         #else
 69 |         var attr = pthread_mutexattr_t()
 70 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 71 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
 72 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:71:9: error: cannot find 'pthread_mutexattr_settype' in scope
 69 |         var attr = pthread_mutexattr_t()
 70 |         pthread_mutexattr_init(&attr)
 71 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |         `- error: cannot find 'pthread_mutexattr_settype' in scope
 72 |
 73 |         let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:71:48: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 69 |         var attr = pthread_mutexattr_t()
 70 |         pthread_mutexattr_init(&attr)
 71 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 72 |
 73 |         let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:71:43: error: cannot infer contextual base in reference to member 'init'
 69 |         var attr = pthread_mutexattr_t()
 70 |         pthread_mutexattr_init(&attr)
 71 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                           `- error: cannot infer contextual base in reference to member 'init'
 72 |
 73 |         let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:73:19: error: cannot find 'pthread_mutex_init' in scope
 71 |         pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
 72 |
 73 |         let err = pthread_mutex_init(self.mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 74 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 75 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:85:19: error: cannot find 'pthread_mutex_destroy' in scope
 83 |         self.mutex.deallocate()
 84 |         #else
 85 |         let err = pthread_mutex_destroy(self.mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 86 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 87 |         self.mutex.deallocate()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:101:19: error: cannot find 'pthread_mutex_lock' in scope
 99 |         AcquireSRWLockExclusive(self.mutex)
100 |         #else
101 |         let err = pthread_mutex_lock(self.mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
102 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
103 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:116:19: error: cannot find 'pthread_mutex_unlock' in scope
114 |         ReleaseSRWLockExclusive(self.mutex)
115 |         #else
116 |         let err = pthread_mutex_unlock(self.mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
117 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
118 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:172:19: error: cannot find 'pthread_rwlock_init' in scope
170 |         InitializeSRWLock(self.rwlock)
171 |         #else
172 |         let err = pthread_rwlock_init(self.rwlock, nil)
    |                   `- error: cannot find 'pthread_rwlock_init' in scope
173 |         precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
174 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:172:52: error: 'nil' requires a contextual type
170 |         InitializeSRWLock(self.rwlock)
171 |         #else
172 |         let err = pthread_rwlock_init(self.rwlock, nil)
    |                                                    `- error: 'nil' requires a contextual type
173 |         precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
174 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:184:19: error: cannot find 'pthread_rwlock_destroy' in scope
182 |         self.rwlock.deallocate()
183 |         #else
184 |         let err = pthread_rwlock_destroy(self.rwlock)
    |                   `- error: cannot find 'pthread_rwlock_destroy' in scope
185 |         precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
186 |         self.rwlock.deallocate()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:201:19: error: cannot find 'pthread_rwlock_rdlock' in scope
199 |         self.shared = true
200 |         #else
201 |         let err = pthread_rwlock_rdlock(self.rwlock)
    |                   `- error: cannot find 'pthread_rwlock_rdlock' in scope
202 |         precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
203 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:217:19: error: cannot find 'pthread_rwlock_wrlock' in scope
215 |         self.shared = false
216 |         #else
217 |         let err = pthread_rwlock_wrlock(self.rwlock)
    |                   `- error: cannot find 'pthread_rwlock_wrlock' in scope
218 |         precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
219 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:237:19: error: cannot find 'pthread_rwlock_unlock' in scope
235 |         }
236 |         #else
237 |         let err = pthread_rwlock_unlock(self.rwlock)
    |                   `- error: cannot find 'pthread_rwlock_unlock' in scope
238 |         precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
239 |         #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:847:32: error: 'Codable' is unavailable: unavailable in embedded Swift
 845 |     /// Log levels are ordered by their severity, with `.trace` being the least severe and
 846 |     /// `.critical` being the most severe.
 847 |     public enum Level: String, Codable, CaseIterable {
     |                                `- error: 'Codable' is unavailable: unavailable in embedded Swift
 848 |         /// Appropriate for messages that contain information normally of use only when
 849 |         /// 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:1209:56: error: cannot find type 'FILE' in scope
1207 | internal typealias CFilePointer = OpaquePointer
1208 | #else
1209 | internal typealias CFilePointer = UnsafeMutablePointer<FILE>
     |                                                        `- error: cannot find type 'FILE' in scope
1210 | #endif
1211 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1272:40: error: cannot find 'systemStderr' in scope
1270 |         #error("Unsupported runtime")
1271 |         #endif
1272 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
     |                                        `- error: cannot find 'systemStderr' in scope
1273 |     }()
1274 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1272:66: error: cannot infer contextual base in reference to member 'always'
1270 |         #error("Unsupported runtime")
1271 |         #endif
1272 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
     |                                                                  `- error: cannot infer contextual base in reference to member 'always'
1273 |     }()
1274 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1292:40: error: cannot find 'systemStdout' in scope
1290 |         #error("Unsupported runtime")
1291 |         #endif
1292 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
     |                                        `- error: cannot find 'systemStdout' in scope
1293 |     }()
1294 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1292:66: error: cannot infer contextual base in reference to member 'always'
1290 |         #error("Unsupported runtime")
1291 |         #endif
1292 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
     |                                                                  `- error: cannot infer contextual base in reference to member 'always'
1293 |     }()
1294 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1226:13: error: cannot find 'flockfile' in scope
1224 |             // no file locking on WASI
1225 |             #else
1226 |             flockfile(self.file)
     |             `- error: cannot find 'flockfile' in scope
1227 |             #endif
1228 |             defer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1237:17: error: cannot find 'fwrite' in scope
1235 |                 #endif
1236 |             }
1237 |             _ = fwrite(utf8Bytes.baseAddress!, 1, utf8Bytes.count, self.file)
     |                 `- error: cannot find 'fwrite' in scope
1238 |             if case .always = self.flushMode {
1239 |                 self.flush()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1246:13: error: cannot find 'fflush' in scope
1244 |     /// Flush the underlying stream.
1245 |     internal func flush() {
1246 |         _ = fflush(self.file)
     |             `- error: cannot find 'fflush' in scope
1247 |     }
1248 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1447:25: error: cannot find 'time' in scope
1445 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1446 |         #else
1447 |         var timestamp = time(nil)
     |                         `- error: cannot find 'time' in scope
1448 |         guard let localTime = localtime(&timestamp) else {
1449 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1447:30: error: 'nil' requires a contextual type
1445 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1446 |         #else
1447 |         var timestamp = time(nil)
     |                              `- error: 'nil' requires a contextual type
1448 |         guard let localTime = localtime(&timestamp) else {
1449 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1448:31: error: cannot find 'localtime' in scope
1446 |         #else
1447 |         var timestamp = time(nil)
1448 |         guard let localTime = localtime(&timestamp) else {
     |                               `- error: cannot find 'localtime' in scope
1449 |             return "<unknown>"
1450 |         }
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1451:9: error: cannot find 'strftime' in scope
1449 |             return "<unknown>"
1450 |         }
1451 |         strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", localTime)
     |         `- error: cannot find 'strftime' in scope
1452 |         #endif
1453 |         return buffer.withUnsafeBufferPointer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1548:54: error: 'description' is unavailable: unavailable in embedded Swift
1546 |         switch self {
1547 |         case .dictionary(let dict):
1548 |             return dict.mapValues { $0.description }.description
     |                                                      `- error: 'description' is unavailable: unavailable in embedded Swift
1549 |         case .array(let list):
1550 |             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:1550:48: error: 'description' is unavailable: unavailable in embedded Swift
1548 |             return dict.mapValues { $0.description }.description
1549 |         case .array(let list):
1550 |             return list.map { $0.description }.description
     |                                                `- error: 'description' is unavailable: unavailable in embedded Swift
1551 |         case .string(let str):
1552 |             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-asn1/Sources/SwiftASN1/Basic ASN1 Types/ASN1Strings.swift:44:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
 42 |
 43 |     @inlinable
 44 |     public init(stringLiteral value: StringLiteralType) {
    |                                      `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
 45 |         self.bytes = ArraySlice(value.utf8)
 46 |     }
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
  |                  `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Basic ASN1 Types/ASN1Strings.swift:97:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
 95 |
 96 |     @inlinable
 97 |     public init(stringLiteral value: StringLiteralType) {
    |                                      `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
 98 |         self.bytes = ArraySlice(value.utf8)
 99 |     }
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
  |                  `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Basic ASN1 Types/ASN1Strings.swift:161:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
159 |
160 |     @inlinable
161 |     public init(stringLiteral value: StringLiteralType) {
    |                                      `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
162 |         self.bytes = ArraySlice(value.utf8)
163 |         precondition(Self._isValid(self.bytes))
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
  |                  `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Basic ASN1 Types/ASN1Strings.swift:239:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
237 |
238 |     @inlinable
239 |     public init(stringLiteral value: StringLiteralType) {
    |                                      `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
240 |         self.bytes = ArraySlice(value.utf8)
241 |     }
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
  |                  `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Basic ASN1 Types/ASN1Strings.swift:286:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
284 |
285 |     @inlinable
286 |     public init(stringLiteral value: StringLiteralType) {
    |                                      `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
287 |         self.bytes = ArraySlice(value.utf8)
288 |     }
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
  |                  `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Basic ASN1 Types/ASN1Strings.swift:350:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
348 |
349 |     @inlinable
350 |     public init(stringLiteral value: StringLiteralType) {
    |                                      `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
351 |         self.bytes = ArraySlice(value.utf8)
352 |         precondition(Self._isValid(self.bytes))
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
  |                  `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Basic ASN1 Types/TimeUtilities.swift:216:45: error: no exact matches in call to initializer
214 |
215 |         if fractionalSeconds != 0 {
216 |             let fractionalSecondsAsString = String(fractionalSeconds)
    |                                             `- error: no exact matches in call to initializer
217 |
218 |             assert(fractionalSecondsAsString.starts(with: "0."), "Invalid fractional seconds")
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
  |        `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:19: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | @inlinable public init<Subject>(describing instance: Subject) where Subject : CustomStringConvertible}
  |                   `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:19: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | @inlinable public init<Subject>(describing instance: Subject) where Subject : TextOutputStreamable}
  |                   `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:19: note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
1 | struct String {
2 | @inlinable public init<Subject>(describing instance: Subject) where Subject : CustomStringConvertible, Subject : TextOutputStreamable}
  |                   `- note: incorrect labels for candidate (have: '(_:)', expected: '(describing:)')
3 |
Swift.String.init:2:8: note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
1 | struct String {
2 | public init<Subject>(reflecting subject: Subject)}
  |        `- note: incorrect labels for candidate (have: '(_:)', expected: '(reflecting:)')
3 |
/host/spi-builder-workspace/.build/checkouts/swift-asn1/Sources/SwiftASN1/Basic ASN1 Types/TimeUtilities.swift:319:39: error: no exact matches in call to initializer
317 |         let fractionalSecondsAsString = "0.\(rawFractionalSecondsAsString)"
318 |
319 |         guard let fractionalSeconds = Double(fractionalSecondsAsString) else {
    |                                       `- error: no exact matches in call to initializer
320 |             throw ASN1Error.invalidASN1Object(
321 |                 reason: "Invalid raw fractional seconds"
Swift.Double.init:2:8: note: candidate expects value of type 'Builtin.FPIEEE64' for parameter #1 (got 'String')
1 | struct Double {
2 | public init(_ _value: Builtin.FPIEEE64)}
  |        `- note: candidate expects value of type 'Builtin.FPIEEE64' for parameter #1 (got 'String')
3 |
Swift.Double.init:2:8: note: candidate expects value of type 'Int' for parameter #1 (got 'String')
1 | struct Double {
2 | public init(_ v: Int)}
  |        `- note: candidate expects value of type 'Int' for parameter #1 (got 'String')
3 |
Swift.Double.init:3:21: note: candidate expects value of type 'Float16' for parameter #1 (got 'String')
1 | struct Double {
2 | @available(macOS 10.9, iOS 7.0, watchOS 2.0, tvOS 9.0, visionOS 1.0, *)
3 |   @inlinable public init(_ other: Float16)}
  |                     `- note: candidate expects value of type 'Float16' for parameter #1 (got 'String')
4 |
Swift.Double.init:2:19: note: candidate expects value of type 'Float' for parameter #1 (got 'String')
1 | struct Double {
2 | @inlinable public init(_ other: Float)}
  |                   `- note: candidate expects value of type 'Float' for parameter #1 (got 'String')
3 |
Swift.Double.init:2:19: note: candidate expects value of type 'Double' for parameter #1 (got 'String')
1 | struct Double {
2 | @inlinable public init(_ other: Double)}
  |                   `- note: candidate expects value of type 'Double' for parameter #1 (got 'String')
3 |
[61/836] Compiling tls_record.cc
[61/836] Compiling KeccakP-1600-opt64.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