The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Causality, reference 0.0.6 (4122e2), with Swift 6.4 for Wasm on 18 Sep 2026 09:44:07 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dannys42/Causality.git
Reference: 0.0.6
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/dannys42/Causality
 * tag               0.0.6      -> FETCH_HEAD
HEAD is now at 4122e20 Update inline doc for DynamicState.
Cloned https://github.com/dannys42/Causality.git
Revision (git rev-parse @):
4122e2059ffb26f051869c5d3c0d4c2dfd9096a5
SUCCESS checkout https://github.com/dannys42/Causality.git at 0.0.6
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/dannys42/Causality.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/Causality/Bus.swift:13:30: error: cannot find 'DispatchQueue' in scope
11 |
12 |     /// The queue used by the default bus for thread-safety.  Also the default queue used for all buses (unless specified on initialization).
13 |     static let globalQueue = DispatchQueue(label: "Causality.global", qos: .default, attributes: [], autoreleaseFrequency: .inherit, target: .global(qos: .default))
   |                              `- error: cannot find 'DispatchQueue' in scope
14 |     /// A default/global bus
15 |     static let bus = Bus(label: "global", queue: globalQueue)
/host/spi-builder-workspace/Sources/Causality/Bus.swift:42:43: error: cannot find type 'DispatchQueue' in scope
40 |         /// - Parameter label: name to give the bus
41 |         /// - Parameter queue: Queue for bookkeeping (e.g. to ensure publish/subscribe is thread safe)
42 |         public init(label: String, queue: DispatchQueue = globalQueue) {
   |                                           `- error: cannot find type 'DispatchQueue' in scope
43 |             self.label = label
44 |             self.queue = queue
/host/spi-builder-workspace/Sources/Causality/Bus.swift:37:40: error: cannot find type 'DispatchQueue' in scope
35 |
36 |         /// Queue on which to execute publish/subscribe actions to ensure thread safety
37 |         public private(set) var queue: DispatchQueue
   |                                        `- error: cannot find type 'DispatchQueue' in scope
38 |
39 |         /// Initialize a Causality Event Bus
/host/spi-builder-workspace/Sources/Causality/Event.swift:103:114: error: cannot find type 'DispatchQueue' in scope
101 |     ///   - handler: A handler that is called for each event of this type that occurs (on the specified queue)
102 |     @discardableResult
103 |     public func subscribe<Event: Causality.AnyEvent<Message>, Message: Causality.Message>(_ event: Event, queue: DispatchQueue?=nil, handler: @escaping (Causality.EventSubscription<Event,Message>, Message)->Void) -> Causality.EventSubscription<Event,Message> {
    |                                                                                                                  `- error: cannot find type 'DispatchQueue' in scope
104 |
105 |         let workQueue = WorkQueue(queue)
/host/spi-builder-workspace/Sources/Causality/Event.swift:115:114: error: cannot find type 'OperationQueue' in scope
113 |     ///   - handler: A handler that is called for each event of this type that occurs (on the specified queue)
114 |     @discardableResult
115 |     public func subscribe<Event: Causality.AnyEvent<Message>, Message: Causality.Message>(_ event: Event, queue: OperationQueue, handler: @escaping (Causality.EventSubscription<Event,Message>, Message)->Void) -> Causality.EventSubscription<Event,Message> {
    |                                                                                                                  `- error: cannot find type 'OperationQueue' in scope
116 |
117 |         return self.subscribe(event, workQueue: .operation(queue), handler: handler)
/host/spi-builder-workspace/Sources/Causality/Event.swift:129:114: error: cannot find type 'DispatchQueue' in scope
127 |     /// - Returns: Subscription handle that is needed to unsubscribe to this event
128 |     @discardableResult
129 |     public func subscribe<Event: Causality.AnyEvent<Message>, Message: Causality.Message>(_ event: Event, queue: DispatchQueue?=nil, handler: @escaping (Message)->Void) -> Causality.EventSubscription<Event,Message> {
    |                                                                                                                  `- error: cannot find type 'DispatchQueue' in scope
130 |         let workQueue = WorkQueue(queue)
131 |         return self.subscribe(event, workQueue: workQueue) { _, message in
/host/spi-builder-workspace/Sources/Causality/Event.swift:143:114: error: cannot find type 'OperationQueue' in scope
141 |     /// - Returns: Subscription handle that is needed to unsubscribe to this event
142 |     @discardableResult
143 |     public func subscribe<Event: Causality.AnyEvent<Message>, Message: Causality.Message>(_ event: Event, queue: OperationQueue, handler: @escaping (Message)->Void) -> Causality.EventSubscription<Event,Message> {
    |                                                                                                                  `- error: cannot find type 'OperationQueue' in scope
144 |
145 |         return self.subscribe(event, workQueue: .operation(queue)) { _, message in
/host/spi-builder-workspace/Sources/Causality/State.swift:131:113: error: cannot find type 'DispatchQueue' in scope
129 |     ///   - handler: A handler that is called for each event of this type that occurs (on the specified queue)
130 |     @discardableResult
131 |     public func subscribe<State: Causality.AnyState<Value>, Value: Causality.StateValue>(_ state: State, queue: DispatchQueue?=nil, handler: @escaping (Causality.StateSubscription<State,Value>, Value)->Void) -> Causality.StateSubscription<State, Value> {
    |                                                                                                                 `- error: cannot find type 'DispatchQueue' in scope
132 |         let workQueue = WorkQueue(queue)
133 |         return self.subscribe(state, workQueue: workQueue, handler: handler)
/host/spi-builder-workspace/Sources/Causality/State.swift:142:113: error: cannot find type 'OperationQueue' in scope
140 |     ///   - handler: A handler that is called for each event of this type that occurs (on the specified queue)
141 |     @discardableResult
142 |     public func subscribe<State: Causality.AnyState<Value>, Value: Causality.StateValue>(_ state: State, queue: OperationQueue, handler: @escaping (Causality.StateSubscription<State, Value>, Value)->Void) -> Causality.StateSubscription<State, Value> {
    |                                                                                                                 `- error: cannot find type 'OperationQueue' in scope
143 |
144 |         return self.subscribe(state, workQueue: .operation(queue), handler: handler)
/host/spi-builder-workspace/Sources/Causality/State.swift:154:113: error: cannot find type 'DispatchQueue' in scope
152 |     ///   - queue: DispatchQueue to receive messages on.  This will take precedence over any queue specified by the publisher.
153 |     ///   - handler: A handler that is called for each event of this type that occurs (on the specified queue)
154 |     public func subscribe<State: Causality.AnyState<Value>, Value: Causality.StateValue>(_ state: State, queue: DispatchQueue?=nil, handler: @escaping (Value)->Void) -> Causality.StateSubscription<State, Value> {
    |                                                                                                                 `- error: cannot find type 'DispatchQueue' in scope
155 |         let workQueue = WorkQueue(queue)
156 |         return self.subscribe(state, workQueue: workQueue) { _, state in
/host/spi-builder-workspace/Sources/Causality/State.swift:166:113: error: cannot find type 'OperationQueue' in scope
164 |     ///   - queue: OperationQueue to receive messages on.  This will take precedence over any queue specified by the publisher.
165 |     ///   - handler: A handler that is called for each event of this type that occurs (on the specified queue)
166 |     public func subscribe<State: Causality.AnyState<Value>, Value: Causality.StateValue>(_ state: State, queue: OperationQueue, handler: @escaping (Value)->Void) -> Causality.StateSubscription<State, Value> {
    |                                                                                                                 `- error: cannot find type 'OperationQueue' in scope
167 |
168 |         return self.subscribe(state, workQueue: .operation(queue)) { _, state in
/host/spi-builder-workspace/Sources/Causality/WorkQueue.swift:12:19: error: cannot find type 'DispatchQueue' in scope
10 | internal enum WorkQueue {
11 |     case none
12 |     case dispatch(DispatchQueue)
   |                   `- error: cannot find type 'DispatchQueue' in scope
13 |     case operation(OperationQueue)
14 |
/host/spi-builder-workspace/Sources/Causality/WorkQueue.swift:13:20: error: cannot find type 'OperationQueue' in scope
11 |     case none
12 |     case dispatch(DispatchQueue)
13 |     case operation(OperationQueue)
   |                    `- error: cannot find type 'OperationQueue' in scope
14 |
15 |     init() {
/host/spi-builder-workspace/Sources/Causality/WorkQueue.swift:18:19: error: cannot find type 'DispatchQueue' in scope
16 |         self = .none
17 |     }
18 |     init(_ queue: DispatchQueue?) {
   |                   `- error: cannot find type 'DispatchQueue' in scope
19 |         if let queue = queue {
20 |             self = .dispatch(queue)
/host/spi-builder-workspace/Sources/Causality/WorkQueue.swift:25:19: error: cannot find type 'OperationQueue' in scope
23 |         }
24 |     }
25 |     init(_ queue: OperationQueue?) {
   |                   `- error: cannot find type 'OperationQueue' in scope
26 |         if let queue = queue {
27 |             self = .operation(queue)
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Causality/Address.swift /host/spi-builder-workspace/Sources/Causality/Bus.swift /host/spi-builder-workspace/Sources/Causality/Causality.swift /host/spi-builder-workspace/Sources/Causality/Event.swift /host/spi-builder-workspace/Sources/Causality/Internal/CausalityAnySubscription.swift /host/spi-builder-workspace/Sources/Causality/Internal/EncodableExtension.swift /host/spi-builder-workspace/Sources/Causality/Internal/EventSubscription.swift /host/spi-builder-workspace/Sources/Causality/Internal/StateSubscription.swift /host/spi-builder-workspace/Sources/Causality/Message.swift /host/spi-builder-workspace/Sources/Causality/State.swift /host/spi-builder-workspace/Sources/Causality/WorkQueue.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Causality.build/Debug-webassembly-wasm32/Causality-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Causality.build/Debug-webassembly-wasm32/Causality-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Causality.build/Debug-webassembly-wasm32/Causality-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Causality -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Causality.build/Debug-webassembly-wasm32/Causality-t.build/Objects-normal/wasm32/Causality_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Causality.build/Debug-webassembly-wasm32/Causality-t.build/Objects-normal/wasm32/Modules/Causality.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Causality.build/Debug-webassembly-wasm32/Causality-t.build/Objects-normal/wasm32/Modules/Causality.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Causality.build/Debug-webassembly-wasm32/Causality-t.build/Objects-normal/wasm32/Causality-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Causality.build/Debug-webassembly-wasm32/Causality-t.build/Objects-normal/wasm32/Causality-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Causality.build/Debug-webassembly-wasm32/Causality-t.build/Objects-normal/wasm32/Causality-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Causality.build/Debug-webassembly-wasm32/Causality-t.build/Objects-normal/wasm32/Modules/Causality.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm