The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-service-context, reference 1.3.0 (d09973), with Swift 6.2 for Wasm on 16 Feb 2026 16:59:41 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/apple/swift-service-context.git
Reference: 1.3.0
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/apple/swift-service-context
 * tag               1.3.0      -> FETCH_HEAD
HEAD is now at d099735 Migrate to Swift Testing (#70)
Cloned https://github.com/apple/swift-service-context.git
Revision (git rev-parse @):
d0997351b0c7779017f88e7a93bc30a1878d7f29
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/apple/swift-service-context.git at 1.3.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/apple/swift-service-context.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module ServiceContextModule
/host/spi-builder-workspace/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/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/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/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/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/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/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>
[5/5] Compiling ServiceContextModule ServiceContext.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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>
BUILD FAILURE 6.2 wasm