The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Sovran, reference main (488828), with Swift 6.1 for Wasm on 29 May 2025 10:00:53 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/segmentio/Sovran-Swift.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/segmentio/Sovran-Swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4888286 Added multi-threading tests (#12)
Cloned https://github.com/segmentio/Sovran-Swift.git
Revision (git rev-parse @):
48882869bf2ae7de069b4cd26613b8731ea57e38
SUCCESS checkout https://github.com/segmentio/Sovran-Swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/segmentio/Sovran-Swift.git
https://github.com/segmentio/Sovran-Swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Sovran",
  "name" : "Sovran",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "7.1"
    }
  ],
  "products" : [
    {
      "name" : "Sovran",
      "targets" : [
        "Sovran"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SovranTests",
      "module_type" : "SwiftTarget",
      "name" : "SovranTests",
      "path" : "Tests/SovranTests",
      "sources" : [
        "ExampleStates.swift",
        "MultithreadingTests.swift",
        "SovranTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Sovran"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Sovran",
      "module_type" : "SwiftTarget",
      "name" : "Sovran",
      "path" : "Sources/Sovran",
      "product_memberships" : [
        "Sovran"
      ],
      "sources" : [
        "Action.swift",
        "State.swift",
        "Store.swift",
        "Subscriber.swift",
        "Testing.swift",
        "Version.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling Sovran Version.swift
[4/9] Compiling Sovran Testing.swift
/host/spi-builder-workspace/Sources/Sovran/Testing.swift:12:14: warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | /// Inquire as to whether we are within a Unit Testing environment.
11 | #if DEBUG
12 | internal var isUnitTesting: Bool = {
   |              |- warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'isUnitTesting' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: add '@MainActor' to make var 'isUnitTesting' part of global actor 'MainActor'
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |     // this will work on apple platforms, but fail on linux.
14 |     if NSClassFromString("XCTestCase") != nil {
/host/spi-builder-workspace/Sources/Sovran/Testing.swift:19:19: error: cannot find 'Thread' in scope
17 |     // this will work on linux and apple platforms, but not in anything with a UI
18 |     // because XCTest doesn't come into the call stack till much later.
19 |     let matches = Thread.callStackSymbols.filter { line in
   |                   `- error: cannot find 'Thread' in scope
20 |         return line.contains("XCTest") || line.contains("xctest")
21 |     }
/host/spi-builder-workspace/Sources/Sovran/Store.swift:16:30: error: cannot find 'DispatchQueue' in scope
 14 |     internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
 15 |     // handles synchronizing subscription adds/removes
 16 |     internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
    |                              `- error: cannot find 'DispatchQueue' in scope
 17 |     internal var states = [Container]()
 18 |     internal var subscribers = [Subscription]()
/host/spi-builder-workspace/Sources/Sovran/Store.swift:14:32: error: cannot find 'DispatchQueue' in scope
 12 | public class Store {
 13 |     // handles synchronizing state changes thru the system
 14 |     internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
    |                                `- error: cannot find 'DispatchQueue' in scope
 15 |     // handles synchronizing subscription adds/removes
 16 |     internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
[5/9] Compiling Sovran Store.swift
/host/spi-builder-workspace/Sources/Sovran/Store.swift:14:32: error: cannot find 'DispatchQueue' in scope
 12 | public class Store {
 13 |     // handles synchronizing state changes thru the system
 14 |     internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
    |                                `- error: cannot find 'DispatchQueue' in scope
 15 |     // handles synchronizing subscription adds/removes
 16 |     internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
/host/spi-builder-workspace/Sources/Sovran/Store.swift:16:30: error: cannot find 'DispatchQueue' in scope
 14 |     internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
 15 |     // handles synchronizing subscription adds/removes
 16 |     internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
    |                              `- error: cannot find 'DispatchQueue' in scope
 17 |     internal var states = [Container]()
 18 |     internal var subscribers = [Subscription]()
/host/spi-builder-workspace/Sources/Sovran/Store.swift:54:98: error: cannot find type 'DispatchQueue' in scope
 52 |      */
 53 |     @discardableResult
 54 |     public func subscribe<T: State>(_ subscriber: Subscriber, initialState: Bool = false, queue: DispatchQueue = .main, handler: @escaping Handler<T>) -> SubscriptionID {
    |                                                                                                  `- error: cannot find type 'DispatchQueue' in scope
 55 |         let subscription = Subscription(owner: subscriber, queue: queue, handler: handler)
 56 |         syncQueue.sync {
/host/spi-builder-workspace/Sources/Sovran/Store.swift:202:16: error: cannot find type 'DispatchQueue' in scope
200 | internal struct Subscription {
201 |     weak var owner: Subscriber? = nil
202 |     let queue: DispatchQueue
    |                `- error: cannot find type 'DispatchQueue' in scope
203 |     let handler: Any
204 |     let subscriptionID = createNextSubscriptionID()
/host/spi-builder-workspace/Sources/Sovran/Store.swift:206:28: warning: static property 'nextSubscriptionID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
204 |     let subscriptionID = createNextSubscriptionID()
205 |
206 |     fileprivate static var nextSubscriptionID = 1
    |                            |- warning: static property 'nextSubscriptionID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'nextSubscriptionID' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: add '@MainActor' to make static property 'nextSubscriptionID' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
207 |     fileprivate static func createNextSubscriptionID() -> SubscriptionID {
208 |         let result = nextSubscriptionID
[6/9] Compiling Sovran State.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/9] Compiling Sovran Action.swift
[8/9] Emitting module Sovran
/host/spi-builder-workspace/Sources/Sovran/Store.swift:14:32: error: cannot find 'DispatchQueue' in scope
 12 | public class Store {
 13 |     // handles synchronizing state changes thru the system
 14 |     internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
    |                                `- error: cannot find 'DispatchQueue' in scope
 15 |     // handles synchronizing subscription adds/removes
 16 |     internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
/host/spi-builder-workspace/Sources/Sovran/Store.swift:16:30: error: cannot find 'DispatchQueue' in scope
 14 |     internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
 15 |     // handles synchronizing subscription adds/removes
 16 |     internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
    |                              `- error: cannot find 'DispatchQueue' in scope
 17 |     internal var states = [Container]()
 18 |     internal var subscribers = [Subscription]()
/host/spi-builder-workspace/Sources/Sovran/Store.swift:54:98: error: cannot find type 'DispatchQueue' in scope
 52 |      */
 53 |     @discardableResult
 54 |     public func subscribe<T: State>(_ subscriber: Subscriber, initialState: Bool = false, queue: DispatchQueue = .main, handler: @escaping Handler<T>) -> SubscriptionID {
    |                                                                                                  `- error: cannot find type 'DispatchQueue' in scope
 55 |         let subscription = Subscription(owner: subscriber, queue: queue, handler: handler)
 56 |         syncQueue.sync {
/host/spi-builder-workspace/Sources/Sovran/Store.swift:202:16: error: cannot find type 'DispatchQueue' in scope
200 | internal struct Subscription {
201 |     weak var owner: Subscriber? = nil
202 |     let queue: DispatchQueue
    |                `- error: cannot find type 'DispatchQueue' in scope
203 |     let handler: Any
204 |     let subscriptionID = createNextSubscriptionID()
/host/spi-builder-workspace/Sources/Sovran/Store.swift:206:28: warning: static property 'nextSubscriptionID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
204 |     let subscriptionID = createNextSubscriptionID()
205 |
206 |     fileprivate static var nextSubscriptionID = 1
    |                            |- warning: static property 'nextSubscriptionID' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'nextSubscriptionID' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: add '@MainActor' to make static property 'nextSubscriptionID' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
207 |     fileprivate static func createNextSubscriptionID() -> SubscriptionID {
208 |         let result = nextSubscriptionID
/host/spi-builder-workspace/Sources/Sovran/Testing.swift:12:14: warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | /// Inquire as to whether we are within a Unit Testing environment.
11 | #if DEBUG
12 | internal var isUnitTesting: Bool = {
   |              |- warning: var 'isUnitTesting' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'isUnitTesting' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: add '@MainActor' to make var 'isUnitTesting' part of global actor 'MainActor'
   |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |     // this will work on apple platforms, but fail on linux.
14 |     if NSClassFromString("XCTestCase") != nil {
/host/spi-builder-workspace/Sources/Sovran/Testing.swift:19:19: error: cannot find 'Thread' in scope
17 |     // this will work on linux and apple platforms, but not in anything with a UI
18 |     // because XCTest doesn't come into the call stack till much later.
19 |     let matches = Thread.callStackSymbols.filter { line in
   |                   `- error: cannot find 'Thread' in scope
20 |         return line.contains("XCTest") || line.contains("xctest")
21 |     }
[9/9] Compiling Sovran Subscriber.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling Sovran Subscriber.swift
[3/8] Compiling Sovran State.swift
[4/8] Compiling Sovran Store.swift
/host/spi-builder-workspace/Sources/Sovran/Store.swift:14:32: error: cannot find 'DispatchQueue' in scope
 12 | public class Store {
 13 |     // handles synchronizing state changes thru the system
 14 |     internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
    |                                `- error: cannot find 'DispatchQueue' in scope
 15 |     // handles synchronizing subscription adds/removes
 16 |     internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
/host/spi-builder-workspace/Sources/Sovran/Store.swift:16:30: error: cannot find 'DispatchQueue' in scope
 14 |     internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
 15 |     // handles synchronizing subscription adds/removes
 16 |     internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
    |                              `- error: cannot find 'DispatchQueue' in scope
 17 |     internal var states = [Container]()
 18 |     internal var subscribers = [Subscription]()
/host/spi-builder-workspace/Sources/Sovran/Store.swift:54:98: error: cannot find type 'DispatchQueue' in scope
 52 |      */
 53 |     @discardableResult
 54 |     public func subscribe<T: State>(_ subscriber: Subscriber, initialState: Bool = false, queue: DispatchQueue = .main, handler: @escaping Handler<T>) -> SubscriptionID {
    |                                                                                                  `- error: cannot find type 'DispatchQueue' in scope
 55 |         let subscription = Subscription(owner: subscriber, queue: queue, handler: handler)
 56 |         syncQueue.sync {
/host/spi-builder-workspace/Sources/Sovran/Store.swift:202:16: error: cannot find type 'DispatchQueue' in scope
200 | internal struct Subscription {
201 |     weak var owner: Subscriber? = nil
202 |     let queue: DispatchQueue
    |                `- error: cannot find type 'DispatchQueue' in scope
203 |     let handler: Any
204 |     let subscriptionID = createNextSubscriptionID()
[5/8] Compiling Sovran Version.swift
[6/8] Compiling Sovran Action.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/8] Emitting module Sovran
/host/spi-builder-workspace/Sources/Sovran/Store.swift:14:32: error: cannot find 'DispatchQueue' in scope
 12 | public class Store {
 13 |     // handles synchronizing state changes thru the system
 14 |     internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
    |                                `- error: cannot find 'DispatchQueue' in scope
 15 |     // handles synchronizing subscription adds/removes
 16 |     internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
/host/spi-builder-workspace/Sources/Sovran/Store.swift:16:30: error: cannot find 'DispatchQueue' in scope
 14 |     internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
 15 |     // handles synchronizing subscription adds/removes
 16 |     internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
    |                              `- error: cannot find 'DispatchQueue' in scope
 17 |     internal var states = [Container]()
 18 |     internal var subscribers = [Subscription]()
/host/spi-builder-workspace/Sources/Sovran/Store.swift:54:98: error: cannot find type 'DispatchQueue' in scope
 52 |      */
 53 |     @discardableResult
 54 |     public func subscribe<T: State>(_ subscriber: Subscriber, initialState: Bool = false, queue: DispatchQueue = .main, handler: @escaping Handler<T>) -> SubscriptionID {
    |                                                                                                  `- error: cannot find type 'DispatchQueue' in scope
 55 |         let subscription = Subscription(owner: subscriber, queue: queue, handler: handler)
 56 |         syncQueue.sync {
/host/spi-builder-workspace/Sources/Sovran/Store.swift:202:16: error: cannot find type 'DispatchQueue' in scope
200 | internal struct Subscription {
201 |     weak var owner: Subscriber? = nil
202 |     let queue: DispatchQueue
    |                `- error: cannot find type 'DispatchQueue' in scope
203 |     let handler: Any
204 |     let subscriptionID = createNextSubscriptionID()
/host/spi-builder-workspace/Sources/Sovran/Testing.swift:19:19: error: cannot find 'Thread' in scope
17 |     // this will work on linux and apple platforms, but not in anything with a UI
18 |     // because XCTest doesn't come into the call stack till much later.
19 |     let matches = Thread.callStackSymbols.filter { line in
   |                   `- error: cannot find 'Thread' in scope
20 |         return line.contains("XCTest") || line.contains("xctest")
21 |     }
[8/8] Compiling Sovran Testing.swift
/host/spi-builder-workspace/Sources/Sovran/Testing.swift:19:19: error: cannot find 'Thread' in scope
17 |     // this will work on linux and apple platforms, but not in anything with a UI
18 |     // because XCTest doesn't come into the call stack till much later.
19 |     let matches = Thread.callStackSymbols.filter { line in
   |                   `- error: cannot find 'Thread' in scope
20 |         return line.contains("XCTest") || line.contains("xctest")
21 |     }
/host/spi-builder-workspace/Sources/Sovran/Store.swift:16:30: error: cannot find 'DispatchQueue' in scope
 14 |     internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
 15 |     // handles synchronizing subscription adds/removes
 16 |     internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
    |                              `- error: cannot find 'DispatchQueue' in scope
 17 |     internal var states = [Container]()
 18 |     internal var subscribers = [Subscription]()
/host/spi-builder-workspace/Sources/Sovran/Store.swift:14:32: error: cannot find 'DispatchQueue' in scope
 12 | public class Store {
 13 |     // handles synchronizing state changes thru the system
 14 |     internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
    |                                `- error: cannot find 'DispatchQueue' in scope
 15 |     // handles synchronizing subscription adds/removes
 16 |     internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
BUILD FAILURE 6.1 wasm