Build Information
Failed to build RateLimiter, reference main (f78816), with Swift 6.2 for Wasm on 1 Mar 2026 01:46:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/atacan/RateLimiter.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/atacan/RateLimiter
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f78816a Add Swift version and platform badges to Readme
Cloned https://github.com/atacan/RateLimiter.git
Revision (git rev-parse @):
f78816aa4d801374e6a25c5c64b6ffe81b15a616
SUCCESS checkout https://github.com/atacan/RateLimiter.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/atacan/RateLimiter.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/hummingbird-project/hummingbird.git
Fetching https://github.com/apple/swift-log.git
[1/6090] Fetching swift-log
[2437/32224] Fetching swift-log, hummingbird
Fetched https://github.com/apple/swift-log.git from cache (0.53s)
[6011/26134] Fetching hummingbird
Fetched https://github.com/hummingbird-project/hummingbird.git from cache (1.23s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.10.1 (1.61s)
Computing version for https://github.com/hummingbird-project/hummingbird.git
Computed https://github.com/hummingbird-project/hummingbird.git at 2.20.1 (0.57s)
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/swift-server/async-http-client.git
Fetching https://github.com/apple/swift-nio.git
[1/2649] Fetching swift-service-lifecycle
[1273/5464] Fetching swift-service-lifecycle, swift-nio-transport-services
[3016/11949] Fetching swift-service-lifecycle, swift-nio-transport-services, swift-nio-extras
[10264/27277] Fetching swift-service-lifecycle, swift-nio-transport-services, swift-nio-extras, async-http-client
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.42s)
[9702/24628] Fetching swift-nio-transport-services, swift-nio-extras, async-http-client
Fetching https://github.com/apple/swift-metrics.git
[10924/39970] Fetching swift-nio-transport-services, swift-nio-extras, async-http-client, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.50s)
[9182/37155] Fetching swift-nio-extras, async-http-client, swift-nio-ssl
Fetching https://github.com/apple/swift-http-types.git
[16299/119701] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio
[23775/120652] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio, swift-http-types
[25602/123330] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio, swift-http-types, swift-metrics
Fetched https://github.com/apple/swift-http-types.git from cache (0.55s)
[31242/122379] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio, swift-metrics
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetched https://github.com/apple/swift-metrics.git from cache (0.92s)
Fetching https://github.com/apple/swift-configuration.git
[30698/119701] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio
[50926/125366] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio, swift-distributed-tracing
[54098/128310] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio, swift-distributed-tracing, swift-configuration
Fetched https://github.com/apple/swift-configuration.git from cache (0.62s)
[73502/125366] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio, swift-distributed-tracing
Fetching https://github.com/apple/swift-nio-http2.git
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (0.93s)
Fetching https://github.com/apple/swift-atomics.git
[69122/119701] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio
[72651/131699] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio, swift-nio-http2
[73131/133519] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio, swift-nio-http2, swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (1.06s)
[77012/131699] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio, swift-nio-http2
Fetching https://github.com/apple/swift-async-algorithms.git
[85172/137841] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio, swift-nio-http2, swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.24s)
Fetching https://github.com/apple/swift-collections.git
[97030/131699] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio, swift-nio-http2
[98682/151954] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio, swift-nio-http2, swift-collections
Fetched https://github.com/apple/swift-nio-http2.git from cache (3.51s)
[92458/139956] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio, swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (3.18s)
[102866/119701] Fetching swift-nio-extras, async-http-client, swift-nio-ssl, swift-nio
Fetched https://github.com/swift-server/async-http-client.git from cache (14.18s)
Fetched https://github.com/apple/swift-nio-extras.git from cache (14.20s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (14.21s)
Fetched https://github.com/apple/swift-nio.git from cache (14.34s)
Computing version for https://github.com/apple/swift-configuration.git
Computed https://github.com/apple/swift-configuration.git at 1.1.0 (18.30s)
Fetching https://github.com/apple/swift-system
[1/5583] Fetching swift-system
Fetched https://github.com/apple/swift-system from cache (0.67s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (1.32s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.4.0 (0.66s)
Fetching https://github.com/apple/swift-service-context.git
[1/1180] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.31s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.40.0 (0.75s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (0.39s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.10.1 (0.33s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.2 (0.72s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.40s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.32.0 (0.39s)
Fetching https://github.com/apple/swift-algorithms.git
[1/6058] Fetching swift-algorithms
Fetched https://github.com/apple/swift-algorithms.git from cache (0.41s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (3.33s)
Fetching https://github.com/apple/swift-numerics.git
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.86s)
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.64s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.4 (0.41s)
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-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.8.0 (0.37s)
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.39s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.5.1 (0.59s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.32.1 (0.58s)
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-certificates.git
[1/1210] Fetching swift-http-structured-headers
[921/2970] Fetching swift-http-structured-headers, swift-asn1
[2971/10079] Fetching swift-http-structured-headers, swift-asn1, swift-certificates
Fetched https://github.com/apple/swift-asn1.git from cache (0.58s)
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.59s)
Fetched https://github.com/apple/swift-certificates.git from cache (0.59s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.95.0 (1.41s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.5.1 (0.66s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.18.0 (0.46s)
Fetching https://github.com/apple/swift-crypto.git
[1/17238] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (2.04s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.6.0 (2.38s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.2.0 (1.00s)
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-configuration.git
Working copy of https://github.com/apple/swift-configuration.git resolved at 1.1.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.5.1
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.18.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/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.10.1
Creating working copy for https://github.com/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/hummingbird-project/hummingbird.git
Working copy of https://github.com/hummingbird-project/hummingbird.git resolved at 2.20.1
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.32.1
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.2
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.95.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
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.4
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.40.0
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.32.0
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-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.3.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.10.1
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.8.0
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.6.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-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.2.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.1
Building for debugging...
[0/54] Write sources
[34/54] Compiling _CWASI _CWASI.c
[35/54] Compiling _AtomicsShims.c
[36/54] Compiling CSystem shims.c
[37/54] Compiling CNIOWindows shim.c
[38/54] Write swift-version-24593BA9C3E375BF.txt
[38/54] Compiling CNIOPosix event_loop_id.c
[40/54] Compiling CNIOWASI CNIOWASI.c
[41/54] Compiling CNIOWindows WSAStartup.c
[42/54] Compiling CNIOLinux liburing_shims.c
[43/54] Compiling CNIOLinux shim.c
[44/54] Compiling CNIOOpenBSD shim.c
[45/54] Compiling CNIOLLHTTP c_nio_http.c
[46/62] Compiling CNIOLLHTTP c_nio_api.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[48/68] Emitting module ServiceContextModule
/host/spi-builder-workspace/.build/checkouts/swift-service-context/Sources/ServiceContextModule/ServiceContext.swift:257:34: error: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
255 | /// This API enables binding a top-level `ServiceContext` and
256 | /// implicitly passes it to child tasks when using structured concurrency.
257 | @TaskLocal public static var current: ServiceContext?
| |- error: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
258 |
259 | /// Bind the task-local ``ServiceContext/current`` to the passed `value`, and execute the passed `operation`.
/host/spi-builder-workspace/.build/checkouts/swift-service-context/Sources/ServiceContextModule/ServiceContext.swift:257:6: error: unknown attribute 'TaskLocal'
255 | /// This API enables binding a top-level `ServiceContext` and
256 | /// implicitly passes it to child tasks when using structured concurrency.
257 | @TaskLocal public static var current: ServiceContext?
| `- error: unknown attribute 'TaskLocal'
258 |
259 | /// Bind the task-local ``ServiceContext/current`` to the passed `value`, and execute the passed `operation`.
/host/spi-builder-workspace/.build/checkouts/swift-service-context/Sources/ServiceContextModule/ServiceContext.swift:275:34: error: cannot find type 'Actor' in scope
273 | public static func withValue<T>(
274 | _ value: ServiceContext?,
275 | isolation: isolated (any Actor)? = #isolation,
| `- error: cannot find type 'Actor' in scope
276 | operation: () async throws -> T
277 | ) async rethrows -> T {
/host/spi-builder-workspace/.build/checkouts/swift-service-context/Sources/ServiceContextModule/ServiceContext.swift:265:28: error: type 'ServiceContext' has no member '$current'
263 | /// SeeAlso: [Swift Task Locals](https://developer.apple.com/documentation/swift/tasklocal)
264 | public static func withValue<T>(_ value: ServiceContext?, operation: () throws -> T) rethrows -> T {
265 | try ServiceContext.$current.withValue(value, operation: operation)
| `- error: type 'ServiceContext' has no member '$current'
266 | }
267 |
/host/spi-builder-workspace/.build/checkouts/swift-service-context/Sources/ServiceContextModule/ServiceContext.swift:278:34: error: type 'ServiceContext' has no member '$current'
276 | operation: () async throws -> T
277 | ) async rethrows -> T {
278 | try await ServiceContext.$current.withValue(value, operation: operation)
| `- error: type 'ServiceContext' has no member '$current'
279 | }
280 |
/host/spi-builder-workspace/.build/checkouts/swift-service-context/Sources/ServiceContextModule/ServiceContext.swift:285:34: error: type 'ServiceContext' has no member '$current'
283 | @_disfavoredOverload
284 | public static func withValue<T>(_ value: ServiceContext?, operation: () async throws -> T) async rethrows -> T {
285 | try await ServiceContext.$current.withValue(value, operation: operation)
| `- error: type 'ServiceContext' has no member '$current'
286 | }
287 | }
/host/spi-builder-workspace/.build/checkouts/swift-service-context/Sources/ServiceContextModule/ServiceContextKey.swift:86:31: error: 'init(describing:)' is unavailable: unavailable in embedded Swift
84 | /// If no explicit name has been set on the wrapped key the type name is used.
85 | public var name: String {
86 | self._nameOverride ?? String(describing: self.keyType.self)
| `- error: 'init(describing:)' is unavailable: unavailable in embedded Swift
87 | }
88 |
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 |
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[49/68] 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)
[50/68] Emitting module Logging
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:48:8: error: The concurrency lock module was unable to identify your C library.
46 | #endif
47 | #else
48 | #error("The concurrency lock module was unable to identify your C library.")
| `- error: The concurrency lock module was unable to identify your C library.
49 | #endif
50 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:8: error: Unsupported runtime
26 | import WASILibc
27 | #else
28 | #error("Unsupported runtime")
| `- error: Unsupported runtime
29 | #endif
30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1459:16: error: Unsupported runtime
1457 | let systemStderr = WASILibc.stderr!
1458 | #else
1459 | #error("Unsupported runtime")
| `- error: Unsupported runtime
1460 | #endif
1461 | return StdioOutputStream(file: systemStderr, flushMode: .always)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1483:16: error: Unsupported runtime
1481 | let systemStdout = WASILibc.stdout!
1482 | #else
1483 | #error("Unsupported runtime")
| `- error: Unsupported runtime
1484 | #endif
1485 | return StdioOutputStream(file: systemStdout, flushMode: .always)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/MetadataProvider.swift:28:8: error: Unsupported runtime
26 | import WASILibc
27 | #else
28 | #error("Unsupported runtime")
| `- error: Unsupported runtime
29 | #endif
30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:194:50: error: cannot find type 'pthread_rwlock_t' in scope
192 | UnsafeMutablePointer.allocate(capacity: 1)
193 | #else
194 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
195 | UnsafeMutablePointer.allocate(capacity: 1)
196 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:988:32: error: 'Codable' is unavailable: unavailable in embedded Swift
986 | /// Log levels are ordered by their severity, with `.trace` being the least severe and
987 | /// `.critical` being the most severe.
988 | public enum Level: String, Codable, CaseIterable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
989 | /// Appropriate for messages that contain information normally of use only when
990 | /// tracing the execution of a program.
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1394:56: error: cannot find type 'FILE' in scope
1392 | internal typealias CFilePointer = OpaquePointer
1393 | #else
1394 | internal typealias CFilePointer = UnsafeMutablePointer<FILE>
| `- error: cannot find type 'FILE' in scope
1395 | #endif
1396 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1461:40: error: cannot find 'systemStderr' in scope
1459 | #error("Unsupported runtime")
1460 | #endif
1461 | return StdioOutputStream(file: systemStderr, flushMode: .always)
| `- error: cannot find 'systemStderr' in scope
1462 | }()
1463 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1461:66: error: cannot infer contextual base in reference to member 'always'
1459 | #error("Unsupported runtime")
1460 | #endif
1461 | return StdioOutputStream(file: systemStderr, flushMode: .always)
| `- error: cannot infer contextual base in reference to member 'always'
1462 | }()
1463 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1485:40: error: cannot find 'systemStdout' in scope
1483 | #error("Unsupported runtime")
1484 | #endif
1485 | return StdioOutputStream(file: systemStdout, flushMode: .always)
| `- error: cannot find 'systemStdout' in scope
1486 | }()
1487 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1485:66: error: cannot infer contextual base in reference to member 'always'
1483 | #error("Unsupported runtime")
1484 | #endif
1485 | return StdioOutputStream(file: systemStdout, flushMode: .always)
| `- error: cannot infer contextual base in reference to member 'always'
1486 | }()
1487 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1411:13: error: cannot find 'flockfile' in scope
1409 | // no file locking on WASI
1410 | #else
1411 | flockfile(self.file)
| `- error: cannot find 'flockfile' in scope
1412 | #endif
1413 | defer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1422:17: error: cannot find 'fwrite' in scope
1420 | #endif
1421 | }
1422 | _ = fwrite(utf8Bytes.baseAddress!, 1, utf8Bytes.count, self.file)
| `- error: cannot find 'fwrite' in scope
1423 | if case .always = self.flushMode {
1424 | self.flush()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1431:13: error: cannot find 'fflush' in scope
1429 | /// Flush the underlying stream.
1430 | internal func flush() {
1431 | _ = fflush(self.file)
| `- error: cannot find 'fflush' in scope
1432 | }
1433 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1667:25: error: cannot find 'time' in scope
1665 | _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1666 | #else
1667 | var timestamp = time(nil)
| `- error: cannot find 'time' in scope
1668 | guard let localTime = localtime(×tamp) else {
1669 | return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1667:30: error: 'nil' requires a contextual type
1665 | _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1666 | #else
1667 | var timestamp = time(nil)
| `- error: 'nil' requires a contextual type
1668 | guard let localTime = localtime(×tamp) else {
1669 | return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1668:31: error: cannot find 'localtime' in scope
1666 | #else
1667 | var timestamp = time(nil)
1668 | guard let localTime = localtime(×tamp) else {
| `- error: cannot find 'localtime' in scope
1669 | return "<unknown>"
1670 | }
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1671:9: error: cannot find 'strftime' in scope
1669 | return "<unknown>"
1670 | }
1671 | strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", localTime)
| `- error: cannot find 'strftime' in scope
1672 | #endif
1673 | return buffer.withUnsafeBufferPointer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1810:54: error: 'description' is unavailable: unavailable in embedded Swift
1808 | switch self {
1809 | case .dictionary(let dict):
1810 | return dict.mapValues { $0.description }.description
| `- error: 'description' is unavailable: unavailable in embedded Swift
1811 | case .array(let list):
1812 | return list.map { $0.description }.description
Swift.Dictionary.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Dictionary {
2 | public var description: String { get }}
| `- note: 'description' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1812:48: error: 'description' is unavailable: unavailable in embedded Swift
1810 | return dict.mapValues { $0.description }.description
1811 | case .array(let list):
1812 | return list.map { $0.description }.description
| `- error: 'description' is unavailable: unavailable in embedded Swift
1813 | case .string(let str):
1814 | return str
Swift.Array.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Array {
2 | public var description: String { get }}
| `- note: 'description' has been explicitly marked unavailable here
3 |
[51/68] Compiling _NIODataStructures Heap.swift
/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)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:48:8: error: The concurrency lock module was unable to identify your C library.
46 | #endif
47 | #else
48 | #error("The concurrency lock module was unable to identify your C library.")
| `- error: The concurrency lock module was unable to identify your C library.
49 | #endif
50 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:8: error: Unsupported runtime
26 | import WASILibc
27 | #else
28 | #error("Unsupported runtime")
| `- error: Unsupported runtime
29 | #endif
30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1459:16: error: Unsupported runtime
1457 | let systemStderr = WASILibc.stderr!
1458 | #else
1459 | #error("Unsupported runtime")
| `- error: Unsupported runtime
1460 | #endif
1461 | return StdioOutputStream(file: systemStderr, flushMode: .always)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1483:16: error: Unsupported runtime
1481 | let systemStdout = WASILibc.stdout!
1482 | #else
1483 | #error("Unsupported runtime")
| `- error: Unsupported runtime
1484 | #endif
1485 | return StdioOutputStream(file: systemStdout, flushMode: .always)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/MetadataProvider.swift:28:8: error: Unsupported runtime
26 | import WASILibc
27 | #else
28 | #error("Unsupported runtime")
| `- error: Unsupported runtime
29 | #endif
30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:194:50: error: cannot find type 'pthread_rwlock_t' in scope
192 | UnsafeMutablePointer.allocate(capacity: 1)
193 | #else
194 | fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
| `- error: cannot find type 'pthread_rwlock_t' in scope
195 | UnsafeMutablePointer.allocate(capacity: 1)
196 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:988:32: error: 'Codable' is unavailable: unavailable in embedded Swift
986 | /// Log levels are ordered by their severity, with `.trace` being the least severe and
987 | /// `.critical` being the most severe.
988 | public enum Level: String, Codable, CaseIterable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
989 | /// Appropriate for messages that contain information normally of use only when
990 | /// tracing the execution of a program.
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1394:56: error: cannot find type 'FILE' in scope
1392 | internal typealias CFilePointer = OpaquePointer
1393 | #else
1394 | internal typealias CFilePointer = UnsafeMutablePointer<FILE>
| `- error: cannot find type 'FILE' in scope
1395 | #endif
1396 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1461:40: error: cannot find 'systemStderr' in scope
1459 | #error("Unsupported runtime")
1460 | #endif
1461 | return StdioOutputStream(file: systemStderr, flushMode: .always)
| `- error: cannot find 'systemStderr' in scope
1462 | }()
1463 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1461:66: error: cannot infer contextual base in reference to member 'always'
1459 | #error("Unsupported runtime")
1460 | #endif
1461 | return StdioOutputStream(file: systemStderr, flushMode: .always)
| `- error: cannot infer contextual base in reference to member 'always'
1462 | }()
1463 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1485:40: error: cannot find 'systemStdout' in scope
1483 | #error("Unsupported runtime")
1484 | #endif
1485 | return StdioOutputStream(file: systemStdout, flushMode: .always)
| `- error: cannot find 'systemStdout' in scope
1486 | }()
1487 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1485:66: error: cannot infer contextual base in reference to member 'always'
1483 | #error("Unsupported runtime")
1484 | #endif
1485 | return StdioOutputStream(file: systemStdout, flushMode: .always)
| `- error: cannot infer contextual base in reference to member 'always'
1486 | }()
1487 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1411:13: error: cannot find 'flockfile' in scope
1409 | // no file locking on WASI
1410 | #else
1411 | flockfile(self.file)
| `- error: cannot find 'flockfile' in scope
1412 | #endif
1413 | defer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1422:17: error: cannot find 'fwrite' in scope
1420 | #endif
1421 | }
1422 | _ = fwrite(utf8Bytes.baseAddress!, 1, utf8Bytes.count, self.file)
| `- error: cannot find 'fwrite' in scope
1423 | if case .always = self.flushMode {
1424 | self.flush()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1431:13: error: cannot find 'fflush' in scope
1429 | /// Flush the underlying stream.
1430 | internal func flush() {
1431 | _ = fflush(self.file)
| `- error: cannot find 'fflush' in scope
1432 | }
1433 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1667:25: error: cannot find 'time' in scope
1665 | _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1666 | #else
1667 | var timestamp = time(nil)
| `- error: cannot find 'time' in scope
1668 | guard let localTime = localtime(×tamp) else {
1669 | return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1667:30: error: 'nil' requires a contextual type
1665 | _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1666 | #else
1667 | var timestamp = time(nil)
| `- error: 'nil' requires a contextual type
1668 | guard let localTime = localtime(×tamp) else {
1669 | return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1668:31: error: cannot find 'localtime' in scope
1666 | #else
1667 | var timestamp = time(nil)
1668 | guard let localTime = localtime(×tamp) else {
| `- error: cannot find 'localtime' in scope
1669 | return "<unknown>"
1670 | }
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1671:9: error: cannot find 'strftime' in scope
1669 | return "<unknown>"
1670 | }
1671 | strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", localTime)
| `- error: cannot find 'strftime' in scope
1672 | #endif
1673 | return buffer.withUnsafeBufferPointer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1810:54: error: 'description' is unavailable: unavailable in embedded Swift
1808 | switch self {
1809 | case .dictionary(let dict):
1810 | return dict.mapValues { $0.description }.description
| `- error: 'description' is unavailable: unavailable in embedded Swift
1811 | case .array(let list):
1812 | return list.map { $0.description }.description
Swift.Dictionary.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Dictionary {
2 | public var description: String { get }}
| `- note: 'description' has been explicitly marked unavailable here
3 |
[51/68] Compiling CNIOLLHTTP c_nio_llhttp.c
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/CInterop.swift:27:8: error: Unsupported Platform
25 | import Bionic
26 | #else
27 | #error("Unsupported Platform")
| `- error: Unsupported Platform
28 | #endif
29 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Constants.swift:30:8: error: Unsupported Platform
28 | import Android
29 | #else
30 | #error("Unsupported Platform")
| `- error: Unsupported Platform
31 | #endif
32 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Exports.swift:32:8: error: Unsupported Platform
30 | import Android
31 | #else
32 | #error("Unsupported Platform")
| `- error: Unsupported Platform
33 | #endif
34 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:24:8: error: Unsupported Platform
22 | import Android
23 | #else
24 | #error("Unsupported Platform")
| `- error: Unsupported Platform
25 | #endif
26 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Errno.swift:14:15: error: type 'Errno' does not conform to protocol 'Decodable'
12 | @frozen
13 | @available(System 0.0.1, *)
14 | public struct Errno: RawRepresentable, Error, Hashable, Codable {
| `- error: type 'Errno' does not conform to protocol 'Decodable'
15 | /// The raw C error number.
16 | @_alwaysEmitIntoClient
17 | public let rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
18 |
19 | /// Creates a strongly typed error number from a raw C error number.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Errno.swift:14:57: error: 'Codable' is unavailable: unavailable in embedded Swift
12 | @frozen
13 | @available(System 0.0.1, *)
14 | public struct Errno: RawRepresentable, Error, Hashable, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
15 | /// The raw C error number.
16 | @_alwaysEmitIntoClient
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-system/Sources/System/Errno.swift:14:15: error: type 'Errno' does not conform to protocol 'Encodable'
12 | @frozen
13 | @available(System 0.0.1, *)
14 | public struct Errno: RawRepresentable, Error, Hashable, Codable {
| `- error: type 'Errno' does not conform to protocol 'Encodable'
15 | /// The raw C error number.
16 | @_alwaysEmitIntoClient
17 | public let rawValue: CInt
| `- note: cannot automatically synthesize 'Encodable' because 'CInt' does not conform to 'Encodable'
18 |
19 | /// Creates a strongly typed error number from a raw C error number.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Errno.swift:14:15: error: type 'Errno' does not conform to protocol 'Decodable'
12 | @frozen
13 | @available(System 0.0.1, *)
14 | public struct Errno: RawRepresentable, Error, Hashable, Codable {
| `- error: type 'Errno' does not conform to protocol 'Decodable'
15 | /// The raw C error number.
16 | @_alwaysEmitIntoClient
17 | public let rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
18 |
19 | /// Creates a strongly typed error number from a raw C error number.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Errno.swift:1532:27: error: cannot find 'system_errno' in scope
1530 | /// The corresponding C global variable is `errno`.
1531 | internal static var current: Errno {
1532 | get { Errno(rawValue: system_errno) }
| `- error: cannot find 'system_errno' in scope
1533 | set { system_errno = newValue.rawValue }
1534 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Errno.swift:1533:11: error: cannot find 'system_errno' in scope
1531 | internal static var current: Errno {
1532 | get { Errno(rawValue: system_errno) }
1533 | set { system_errno = newValue.rawValue }
| `- error: cannot find 'system_errno' in scope
1534 | }
1535 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:18:15: error: type 'FileDescriptor' does not conform to protocol 'Decodable'
16 | @frozen
17 | @available(System 0.0.1, *)
18 | public struct FileDescriptor: RawRepresentable, Hashable, Codable {
| `- error: type 'FileDescriptor' does not conform to protocol 'Decodable'
19 | /// The raw C file handle.
20 | @_alwaysEmitIntoClient
21 | public let rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
22 |
23 | /// Creates a strongly-typed file handle from a raw C file handle.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:18:59: error: 'Codable' is unavailable: unavailable in embedded Swift
16 | @frozen
17 | @available(System 0.0.1, *)
18 | public struct FileDescriptor: RawRepresentable, Hashable, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
19 | /// The raw C file handle.
20 | @_alwaysEmitIntoClient
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-system/Sources/System/FileDescriptor.swift:18:15: error: type 'FileDescriptor' does not conform to protocol 'Encodable'
16 | @frozen
17 | @available(System 0.0.1, *)
18 | public struct FileDescriptor: RawRepresentable, Hashable, Codable {
| `- error: type 'FileDescriptor' does not conform to protocol 'Encodable'
19 | /// The raw C file handle.
20 | @_alwaysEmitIntoClient
21 | public let rawValue: CInt
| `- note: cannot automatically synthesize 'Encodable' because 'CInt' does not conform to 'Encodable'
22 |
23 | /// Creates a strongly-typed file handle from a raw C file handle.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:49:17: error: type 'FileDescriptor.AccessMode' does not conform to protocol 'Decodable'
47 | @frozen
48 | @available(System 0.0.1, *)
49 | public struct AccessMode: RawRepresentable, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.AccessMode' does not conform to protocol 'Decodable'
50 | /// The raw C access mode.
51 | @_alwaysEmitIntoClient
52 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
53 |
54 | /// Creates a strongly-typed access mode from a raw C access mode.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:49:67: error: 'Codable' is unavailable: unavailable in embedded Swift
47 | @frozen
48 | @available(System 0.0.1, *)
49 | public struct AccessMode: RawRepresentable, Sendable, Hashable, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
50 | /// The raw C access mode.
51 | @_alwaysEmitIntoClient
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-system/Sources/System/FileDescriptor.swift:49:17: error: type 'FileDescriptor.AccessMode' does not conform to protocol 'Encodable'
47 | @frozen
48 | @available(System 0.0.1, *)
49 | public struct AccessMode: RawRepresentable, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.AccessMode' does not conform to protocol 'Encodable'
50 | /// The raw C access mode.
51 | @_alwaysEmitIntoClient
52 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Encodable' because 'CInt' does not conform to 'Encodable'
53 |
54 | /// Creates a strongly-typed access mode from a raw C access mode.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:92:17: error: type 'FileDescriptor.OpenOptions' does not conform to protocol 'Decodable'
90 | @frozen
91 | @available(System 0.0.1, *)
92 | public struct OpenOptions: OptionSet, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.OpenOptions' does not conform to protocol 'Decodable'
93 | /// The raw C options.
94 | @_alwaysEmitIntoClient
95 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
96 |
97 | /// Create a strongly-typed options value from raw C options.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:92:61: error: 'Codable' is unavailable: unavailable in embedded Swift
90 | @frozen
91 | @available(System 0.0.1, *)
92 | public struct OpenOptions: OptionSet, Sendable, Hashable, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
93 | /// The raw C options.
94 | @_alwaysEmitIntoClient
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-system/Sources/System/FileDescriptor.swift:92:17: error: type 'FileDescriptor.OpenOptions' does not conform to protocol 'Encodable'
90 | @frozen
91 | @available(System 0.0.1, *)
92 | public struct OpenOptions: OptionSet, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.OpenOptions' does not conform to protocol 'Encodable'
93 | /// The raw C options.
94 | @_alwaysEmitIntoClient
95 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Encodable' because 'CInt' does not conform to 'Encodable'
96 |
97 | /// Create a strongly-typed options value from raw C options.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:330:17: error: type 'FileDescriptor.SeekOrigin' does not conform to protocol 'Decodable'
328 | @frozen
329 | @available(System 0.0.1, *)
330 | public struct SeekOrigin: RawRepresentable, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.SeekOrigin' does not conform to protocol 'Decodable'
331 | /// The raw C value.
332 | @_alwaysEmitIntoClient
333 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
334 |
335 | /// Create a strongly-typed seek origin from a raw C value.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:330:67: error: 'Codable' is unavailable: unavailable in embedded Swift
328 | @frozen
329 | @available(System 0.0.1, *)
330 | public struct SeekOrigin: RawRepresentable, Sendable, Hashable, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
331 | /// The raw C value.
332 | @_alwaysEmitIntoClient
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-system/Sources/System/FileDescriptor.swift:330:17: error: type 'FileDescriptor.SeekOrigin' does not conform to protocol 'Encodable'
328 | @frozen
329 | @available(System 0.0.1, *)
330 | public struct SeekOrigin: RawRepresentable, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.SeekOrigin' does not conform to protocol 'Encodable'
331 | /// The raw C value.
332 | @_alwaysEmitIntoClient
333 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Encodable' because 'CInt' does not conform to 'Encodable'
334 |
335 | /// Create a strongly-typed seek origin from a raw C value.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:18:15: error: type 'FileDescriptor' does not conform to protocol 'Decodable'
16 | @frozen
17 | @available(System 0.0.1, *)
18 | public struct FileDescriptor: RawRepresentable, Hashable, Codable {
| `- error: type 'FileDescriptor' does not conform to protocol 'Decodable'
19 | /// The raw C file handle.
20 | @_alwaysEmitIntoClient
21 | public let rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
22 |
23 | /// Creates a strongly-typed file handle from a raw C file handle.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:49:17: error: type 'FileDescriptor.AccessMode' does not conform to protocol 'Decodable'
47 | @frozen
48 | @available(System 0.0.1, *)
49 | public struct AccessMode: RawRepresentable, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.AccessMode' does not conform to protocol 'Decodable'
50 | /// The raw C access mode.
51 | @_alwaysEmitIntoClient
52 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
53 |
54 | /// Creates a strongly-typed access mode from a raw C access mode.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:92:17: error: type 'FileDescriptor.OpenOptions' does not conform to protocol 'Decodable'
90 | @frozen
91 | @available(System 0.0.1, *)
92 | public struct OpenOptions: OptionSet, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.OpenOptions' does not conform to protocol 'Decodable'
93 | /// The raw C options.
94 | @_alwaysEmitIntoClient
95 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
96 |
97 | /// Create a strongly-typed options value from raw C options.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:330:17: error: type 'FileDescriptor.SeekOrigin' does not conform to protocol 'Decodable'
328 | @frozen
329 | @available(System 0.0.1, *)
330 | public struct SeekOrigin: RawRepresentable, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.SeekOrigin' does not conform to protocol 'Decodable'
331 | /// The raw C value.
332 | @_alwaysEmitIntoClient
333 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
334 |
335 | /// Create a strongly-typed seek origin from a raw C value.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/CInterop.swift:50:27: error: cannot find type 'mode_t' in scope
48 | public typealias Mode = CInt
49 | #else
50 | public typealias Mode = mode_t
| `- error: cannot find type 'mode_t' in scope
51 | #endif
52 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/CInterop.swift:41:27: error: cannot find type 'mode_t' in scope
39 | /// The C `mode_t` type.
40 | @available(System 0.0.1, *)
41 | public typealias CModeT = mode_t
| `- error: cannot find type 'mode_t' in scope
42 | #endif
43 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileOperations.swift:89:53: error: extra argument in call
87 | let descOrError: Result<CInt, Errno> = valueOrErrno(retryOnInterrupt: retryOnInterrupt) {
88 | if let permissions = permissions {
89 | return system_open(path, oFlag, permissions.rawValue)
| `- error: extra argument in call
90 | }
91 | precondition(!options.contains(.create),
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:93:6: error: cannot find type 'off_t' in scope
91 | internal func system_lseek(
92 | _ fd: Int32, _ off: off_t, _ whence: Int32
93 | ) -> off_t {
| `- error: cannot find type 'off_t' in scope
94 | #if ENABLE_MOCKING
95 | if mockingEnabled { return _mockOffT(fd, off, whence) }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:92:23: error: cannot find type 'off_t' in scope
90 | // lseek
91 | internal func system_lseek(
92 | _ fd: Int32, _ off: off_t, _ whence: Int32
| `- error: cannot find type 'off_t' in scope
93 | ) -> off_t {
94 | #if ENABLE_MOCKING
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Exports.swift:35:29: error: cannot find type 'off_t' in scope
33 | #endif
34 |
35 | internal typealias _COffT = off_t
| `- error: cannot find type 'off_t' in scope
36 |
37 | // MARK: syscalls and variables
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:74:73: error: cannot find type 'off_t' in scope
72 | // pread
73 | internal func system_pread(
74 | _ fd: Int32, _ buf: UnsafeMutableRawPointer?, _ nbyte: Int, _ offset: off_t
| `- error: cannot find type 'off_t' in scope
75 | ) -> Int {
76 | #if ENABLE_MOCKING
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:112:66: error: cannot find type 'off_t' in scope
110 | // pwrite
111 | internal func system_pwrite(
112 | _ fd: Int32, _ buf: UnsafeRawPointer?, _ nbyte: Int, _ offset: off_t
| `- error: cannot find type 'off_t' in scope
113 | ) -> Int {
114 | #if ENABLE_MOCKING
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:153:55: error: cannot find type 'off_t' in scope
151 | #endif
152 |
153 | internal func system_ftruncate(_ fd: Int32, _ length: off_t) -> Int32 {
| `- error: cannot find type 'off_t' in scope
154 | #if ENABLE_MOCKING
155 | if mockingEnabled { return _mock(fd, length) }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:78:33: error: 'Decoder' is unavailable: unavailable in embedded Swift
76 | // Decoder is written explicitly to ensure that we validate invariants on
77 | // untrusted input.
78 | public init(from decoder: any Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
79 | let container = try decoder.container(keyedBy: CodingKeys.self)
80 | self._storage = try container.decode(SystemString.self, forKey: ._storage)
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:72:21: error: 'Codable' is unavailable: unavailable in embedded Swift
70 |
71 | @available(System 0.0.1, *)
72 | extension FilePath: Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
73 | // Encoder is synthesized; it probably should have been explicit and used
74 | // a single-value container, but making that change now is somewhat risky.
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-system/Sources/System/FilePath/FilePath.swift:80:35: error: value of type 'KeyedDecodingContainer<FilePath.CodingKeys>' has no member 'decode'
78 | public init(from decoder: any Decoder) throws {
79 | let container = try decoder.container(keyedBy: CodingKeys.self)
80 | self._storage = try container.decode(SystemString.self, forKey: ._storage)
| `- error: value of type 'KeyedDecodingContainer<FilePath.CodingKeys>' has no member 'decode'
81 | guard _invariantsSatisfied() else {
82 | throw DecodingError.dataCorruptedError(
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:80:70: error: cannot infer contextual base in reference to member '_storage'
78 | public init(from decoder: any Decoder) throws {
79 | let container = try decoder.container(keyedBy: CodingKeys.self)
80 | self._storage = try container.decode(SystemString.self, forKey: ._storage)
| `- error: cannot infer contextual base in reference to member '_storage'
81 | guard _invariantsSatisfied() else {
82 | throw DecodingError.dataCorruptedError(
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:82:27: error: type 'DecodingError' has no member 'dataCorruptedError'
80 | self._storage = try container.decode(SystemString.self, forKey: ._storage)
81 | guard _invariantsSatisfied() else {
82 | throw DecodingError.dataCorruptedError(
| `- error: type 'DecodingError' has no member 'dataCorruptedError'
83 | forKey: ._storage,
84 | in: container,
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:83:18: error: cannot infer contextual base in reference to member '_storage'
81 | guard _invariantsSatisfied() else {
82 | throw DecodingError.dataCorruptedError(
83 | forKey: ._storage,
| `- error: cannot infer contextual base in reference to member '_storage'
84 | in: container,
85 | debugDescription:
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponentView.swift:183:1: error: type 'FilePath.ComponentView' does not conform to protocol 'Decodable'
32 | public struct ComponentView: Sendable {
33 | internal var _path: FilePath
34 | internal var _start: SystemString.Index
| `- note: cannot automatically synthesize 'Decodable' because 'SystemString.Index' does not conform to 'Decodable'
35 |
36 | internal init(_ path: FilePath) {
:
181 |
182 | @available(System 0.0.2, *)
183 | extension FilePath.ComponentView: _PathSlice {
| `- error: type 'FilePath.ComponentView' does not conform to protocol 'Decodable'
184 | internal var _range: Range<SystemString.Index> {
185 | _start ..< _path._storage.endIndex
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponentView.swift:183:1: error: type 'FilePath.ComponentView' does not conform to protocol 'Encodable'
32 | public struct ComponentView: Sendable {
33 | internal var _path: FilePath
34 | internal var _start: SystemString.Index
| `- note: cannot automatically synthesize 'Encodable' because 'SystemString.Index' does not conform to 'Encodable'
35 |
36 | internal init(_ path: FilePath) {
:
181 |
182 | @available(System 0.0.2, *)
183 | extension FilePath.ComponentView: _PathSlice {
| `- error: type 'FilePath.ComponentView' does not conform to protocol 'Encodable'
184 | internal var _range: Range<SystemString.Index> {
185 | _start ..< _path._storage.endIndex
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponentView.swift:183:1: error: type 'FilePath.ComponentView' does not conform to protocol 'Decodable'
32 | public struct ComponentView: Sendable {
33 | internal var _path: FilePath
34 | internal var _start: SystemString.Index
| `- note: cannot automatically synthesize 'Decodable' because 'SystemString.Index' does not conform to 'Decodable'
35 |
36 | internal init(_ path: FilePath) {
:
181 |
182 | @available(System 0.0.2, *)
183 | extension FilePath.ComponentView: _PathSlice {
| `- error: type 'FilePath.ComponentView' does not conform to protocol 'Decodable'
184 | internal var _range: Range<SystemString.Index> {
185 | _start ..< _path._storage.endIndex
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponents.swift:193:1: error: type 'FilePath.Root' does not conform to protocol 'Decodable'
32 | public struct Root: Sendable {
33 | internal var _path: FilePath
34 | internal var _rootEnd: SystemString.Index
| `- note: cannot automatically synthesize 'Decodable' because 'SystemString.Index' does not conform to 'Decodable'
35 |
36 | internal init(_ path: FilePath, rootEnd: SystemString.Index) {
:
191 | }
192 | @available(System 0.0.2, *)
193 | extension FilePath.Root: _PathSlice {
| `- error: type 'FilePath.Root' does not conform to protocol 'Decodable'
194 | internal var _range: Range<SystemString.Index> {
195 | (..<_rootEnd).relative(to: _path._storage)
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponents.swift:193:1: error: type 'FilePath.Root' does not conform to protocol 'Decodable'
32 | public struct Root: Sendable {
33 | internal var _path: FilePath
34 | internal var _rootEnd: SystemString.Index
| `- note: cannot automatically synthesize 'Decodable' because 'SystemString.Index' does not conform to 'Decodable'
35 |
36 | internal init(_ path: FilePath, rootEnd: SystemString.Index) {
:
191 | }
192 | @available(System 0.0.2, *)
193 | extension FilePath.Root: _PathSlice {
| `- error: type 'FilePath.Root' does not conform to protocol 'Decodable'
194 | internal var _range: Range<SystemString.Index> {
195 | (..<_rootEnd).relative(to: _path._storage)
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponents.swift:190:1: error: type 'FilePath.Component' does not conform to protocol 'Decodable'
59 | public struct Component: Sendable {
60 | internal var _path: FilePath
61 | internal var _range: Range<SystemString.Index>
| `- note: cannot automatically synthesize 'Decodable' because 'Range<SystemString.Index>' does not conform to 'Decodable'
62 |
63 | // TODO: Make a small-component form to save on ARC overhead when
:
188 |
189 | @available(System 0.0.2, *)
190 | extension FilePath.Component: _PathSlice {
| `- error: type 'FilePath.Component' does not conform to protocol 'Decodable'
191 | }
192 | @available(System 0.0.2, *)
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponents.swift:190:1: error: type 'FilePath.Component' does not conform to protocol 'Decodable'
59 | public struct Component: Sendable {
60 | internal var _path: FilePath
61 | internal var _range: Range<SystemString.Index>
| `- note: cannot automatically synthesize 'Decodable' because 'Range<SystemString.Index>' does not conform to 'Decodable'
62 |
63 | // TODO: Make a small-component form to save on ARC overhead when
:
188 |
189 | @available(System 0.0.2, *)
190 | extension FilePath.Component: _PathSlice {
| `- error: type 'FilePath.Component' does not conform to protocol 'Decodable'
191 | }
192 | @available(System 0.0.2, *)
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponents.swift:133:61: error: 'Codable' is unavailable: unavailable in embedded Swift
131 | // Unifying protocol for common functionality between roots, components,
132 | // and views onto SystemString and FilePath.
133 | internal protocol _StrSlice: _PlatformStringable, Hashable, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
134 | var _storage: SystemString { get }
135 | var _range: Range<SystemString.Index> { get }
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-system/Sources/System/FilePath/FilePathComponents.swift:190:1: error: type 'FilePath.Component' does not conform to protocol 'Encodable'
59 | public struct Component: Sendable {
60 | internal var _path: FilePath
61 | internal var _range: Range<SystemString.Index>
| `- note: cannot automatically synthesize 'Encodable' because 'Range<SystemString.Index>' does not conform to 'Encodable'
62 |
63 | // TODO: Make a small-component form to save on ARC overhead when
:
188 |
189 | @available(System 0.0.2, *)
190 | extension FilePath.Component: _PathSlice {
| `- error: type 'FilePath.Component' does not conform to protocol 'Encodable'
191 | }
192 | @available(System 0.0.2, *)
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-service-context/Sources/ServiceContextModule/ServiceContext.swift:257:34: error: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
255 | /// This API enables binding a top-level `ServiceContext` and
256 | /// implicitly passes it to child tasks when using structured concurrency.
257 | @TaskLocal public static var current: ServiceContext?
| |- error: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
258 |
259 | /// Bind the task-local ``ServiceContext/current`` to the passed `value`, and execute the passed `operation`.
/host/spi-builder-workspace/.build/checkouts/swift-service-context/Sources/ServiceContextModule/ServiceContext.swift:257:6: error: unknown attribute 'TaskLocal'
255 | /// This API enables binding a top-level `ServiceContext` and
256 | /// implicitly passes it to child tasks when using structured concurrency.
257 | @TaskLocal public static var current: ServiceContext?
| `- error: unknown attribute 'TaskLocal'
258 |
259 | /// Bind the task-local ``ServiceContext/current`` to the passed `value`, and execute the passed `operation`.
/host/spi-builder-workspace/.build/checkouts/swift-service-context/Sources/ServiceContextModule/ServiceContext.swift:275:34: error: cannot find type 'Actor' in scope
273 | public static func withValue<T>(
274 | _ value: ServiceContext?,
275 | isolation: isolated (any Actor)? = #isolation,
| `- error: cannot find type 'Actor' in scope
276 | operation: () async throws -> T
277 | ) async rethrows -> T {
/host/spi-builder-workspace/.build/checkouts/swift-service-context/Sources/ServiceContextModule/ServiceContext.swift:265:28: error: type 'ServiceContext' has no member '$current'
263 | /// SeeAlso: [Swift Task Locals](https://developer.apple.com/documentation/swift/tasklocal)
264 | public static func withValue<T>(_ value: ServiceContext?, operation: () throws -> T) rethrows -> T {
265 | try ServiceContext.$current.withValue(value, operation: operation)
| `- error: type 'ServiceContext' has no member '$current'
266 | }
267 |
/host/spi-builder-workspace/.build/checkouts/swift-service-context/Sources/ServiceContextModule/ServiceContext.swift:278:34: error: type 'ServiceContext' has no member '$current'
276 | operation: () async throws -> T
277 | ) async rethrows -> T {
278 | try await ServiceContext.$current.withValue(value, operation: operation)
| `- error: type 'ServiceContext' has no member '$current'
279 | }
280 |
/host/spi-builder-workspace/.build/checkouts/swift-service-context/Sources/ServiceContextModule/ServiceContext.swift:285:34: error: type 'ServiceContext' has no member '$current'
283 | @_disfavoredOverload
284 | public static func withValue<T>(_ value: ServiceContext?, operation: () async throws -> T) async rethrows -> T {
285 | try await ServiceContext.$current.withValue(value, operation: operation)
| `- error: type 'ServiceContext' has no member '$current'
286 | }
287 | }
BUILD FAILURE 6.2 wasm