The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftDagre, reference main (92efb7), with Swift 6.1 for Wasm on 25 Feb 2026 07:27:36 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lukilabs/dagre-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/lukilabs/dagre-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 92efb78 Initial Commit
Cloned https://github.com/lukilabs/dagre-swift.git
Revision (git rev-parse @):
92efb78b73a8b665ee74bacfb0f1f5b17bbe1b38
SUCCESS checkout https://github.com/lukilabs/dagre-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/lukilabs/dagre-swift.git
https://github.com/lukilabs/dagre-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftDagre",
  "name" : "SwiftDagre",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftDagre",
      "targets" : [
        "SwiftDagre"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftDagreTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftDagreTests",
      "path" : "Tests/SwiftDagreTests",
      "sources" : [
        "AcyclicTests.swift",
        "GraphTests.swift",
        "LayoutIntegrationTests.swift",
        "NormalizeTests.swift",
        "OrderTests.swift",
        "PositionTests.swift",
        "RankTests.swift"
      ],
      "target_dependencies" : [
        "SwiftDagre"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftDagre",
      "module_type" : "SwiftTarget",
      "name" : "SwiftDagre",
      "path" : "Sources/SwiftDagre",
      "product_memberships" : [
        "SwiftDagre"
      ],
      "sources" : [
        "Acyclic/Acyclic.swift",
        "Acyclic/GreedyFAS.swift",
        "Graph/EdgeId.swift",
        "Graph/Graph.swift",
        "Graph/GraphOptions.swift",
        "Layout/AddBorderSegments.swift",
        "Layout/Labels.swift",
        "Layout/Layout.swift",
        "Nesting/NestingGraph.swift",
        "Normalize/Denormalize.swift",
        "Normalize/Normalize.swift",
        "Normalize/ParentDummyChains.swift",
        "Order/AddSubgraphConstraints.swift",
        "Order/Barycenter.swift",
        "Order/BuildLayerGraph.swift",
        "Order/CrossCount.swift",
        "Order/InitOrder.swift",
        "Order/Order.swift",
        "Order/SortSubgraph.swift",
        "Position/BrandesKopf.swift",
        "Position/Position.swift",
        "Position/PositionY.swift",
        "Rank/FeasibleTree.swift",
        "Rank/LongestPath.swift",
        "Rank/NetworkSimplex.swift",
        "Rank/Rank.swift",
        "Util/GraphUtil.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.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:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
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/27] Compiling SwiftDagre AddSubgraphConstraints.swift
[4/27] Compiling SwiftDagre Barycenter.swift
[5/27] Compiling SwiftDagre BuildLayerGraph.swift
[6/30] Compiling SwiftDagre SortSubgraph.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Position/BrandesKopf.swift:63:73: error: type of expression is ambiguous without a type annotation
 61 |
 62 |                 // Build alignment
 63 |                 let neighborFn: (DagreGraph, String) -> [String] = isUp ? predecessorsFn : successorsFn
    |                                                                         `- error: type of expression is ambiguous without a type annotation
 64 |                 let alignment = verticalAlignment(g, layering: adjustedLayering, conflicts: conflicts, neighborFn: neighborFn)
 65 |
[7/30] Compiling SwiftDagre BrandesKopf.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Position/BrandesKopf.swift:63:73: error: type of expression is ambiguous without a type annotation
 61 |
 62 |                 // Build alignment
 63 |                 let neighborFn: (DagreGraph, String) -> [String] = isUp ? predecessorsFn : successorsFn
    |                                                                         `- error: type of expression is ambiguous without a type annotation
 64 |                 let alignment = verticalAlignment(g, layering: adjustedLayering, conflicts: conflicts, neighborFn: neighborFn)
 65 |
[8/30] Compiling SwiftDagre Position.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Position/BrandesKopf.swift:63:73: error: type of expression is ambiguous without a type annotation
 61 |
 62 |                 // Build alignment
 63 |                 let neighborFn: (DagreGraph, String) -> [String] = isUp ? predecessorsFn : successorsFn
    |                                                                         `- error: type of expression is ambiguous without a type annotation
 64 |                 let alignment = verticalAlignment(g, layering: adjustedLayering, conflicts: conflicts, neighborFn: neighborFn)
 65 |
[9/30] Compiling SwiftDagre NestingGraph.swift
[10/30] Compiling SwiftDagre Denormalize.swift
[11/30] Compiling SwiftDagre Normalize.swift
[12/30] Compiling SwiftDagre ParentDummyChains.swift
[13/30] Compiling SwiftDagre Acyclic.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:12:24: warning: static property 'reverseIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 |     /// Counter for generating unique IDs for reversed edges
 12 |     private static var reverseIdCounter: Int = 0
    |                        |- warning: static property 'reverseIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'reverseIdCounter' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'reverseIdCounter' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:14:38: error: cannot find 'os_unfair_lock' in scope
 12 |     private static var reverseIdCounter: Int = 0
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 15 |
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:14:24: warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 |     private static var reverseIdCounter: Int = 0
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
    |                        |- warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'counterLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'counterLock' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 |
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:18:9: error: cannot find 'os_unfair_lock_lock' in scope
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
 20 |         reverseIdCounter += 1
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:19:17: error: cannot find 'os_unfair_lock_unlock' in scope
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 20 |         reverseIdCounter += 1
 21 |         return "rev\(reverseIdCounter)"
/host/spi-builder-workspace/Sources/SwiftDagre/Graph/Graph.swift:215:21: warning: result of 'try?' is unused
213 |             if let children = _children[v] {
214 |                 for child in children {
215 |                     try? setParent(child, parent: nil)
    |                     `- warning: result of 'try?' is unused
216 |                 }
217 |             }
[14/30] Compiling SwiftDagre GreedyFAS.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:12:24: warning: static property 'reverseIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 |     /// Counter for generating unique IDs for reversed edges
 12 |     private static var reverseIdCounter: Int = 0
    |                        |- warning: static property 'reverseIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'reverseIdCounter' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'reverseIdCounter' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:14:38: error: cannot find 'os_unfair_lock' in scope
 12 |     private static var reverseIdCounter: Int = 0
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 15 |
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:14:24: warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 |     private static var reverseIdCounter: Int = 0
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
    |                        |- warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'counterLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'counterLock' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 |
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:18:9: error: cannot find 'os_unfair_lock_lock' in scope
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
 20 |         reverseIdCounter += 1
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:19:17: error: cannot find 'os_unfair_lock_unlock' in scope
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 20 |         reverseIdCounter += 1
 21 |         return "rev\(reverseIdCounter)"
/host/spi-builder-workspace/Sources/SwiftDagre/Graph/Graph.swift:215:21: warning: result of 'try?' is unused
213 |             if let children = _children[v] {
214 |                 for child in children {
215 |                     try? setParent(child, parent: nil)
    |                     `- warning: result of 'try?' is unused
216 |                 }
217 |             }
[15/30] Compiling SwiftDagre EdgeId.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:12:24: warning: static property 'reverseIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 |     /// Counter for generating unique IDs for reversed edges
 12 |     private static var reverseIdCounter: Int = 0
    |                        |- warning: static property 'reverseIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'reverseIdCounter' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'reverseIdCounter' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:14:38: error: cannot find 'os_unfair_lock' in scope
 12 |     private static var reverseIdCounter: Int = 0
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 15 |
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:14:24: warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 |     private static var reverseIdCounter: Int = 0
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
    |                        |- warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'counterLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'counterLock' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 |
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:18:9: error: cannot find 'os_unfair_lock_lock' in scope
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
 20 |         reverseIdCounter += 1
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:19:17: error: cannot find 'os_unfair_lock_unlock' in scope
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 20 |         reverseIdCounter += 1
 21 |         return "rev\(reverseIdCounter)"
/host/spi-builder-workspace/Sources/SwiftDagre/Graph/Graph.swift:215:21: warning: result of 'try?' is unused
213 |             if let children = _children[v] {
214 |                 for child in children {
215 |                     try? setParent(child, parent: nil)
    |                     `- warning: result of 'try?' is unused
216 |                 }
217 |             }
[16/30] Compiling SwiftDagre Graph.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:12:24: warning: static property 'reverseIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 |     /// Counter for generating unique IDs for reversed edges
 12 |     private static var reverseIdCounter: Int = 0
    |                        |- warning: static property 'reverseIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'reverseIdCounter' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'reverseIdCounter' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:14:38: error: cannot find 'os_unfair_lock' in scope
 12 |     private static var reverseIdCounter: Int = 0
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 15 |
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:14:24: warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 |     private static var reverseIdCounter: Int = 0
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
    |                        |- warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'counterLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'counterLock' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 |
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:18:9: error: cannot find 'os_unfair_lock_lock' in scope
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
 20 |         reverseIdCounter += 1
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:19:17: error: cannot find 'os_unfair_lock_unlock' in scope
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 20 |         reverseIdCounter += 1
 21 |         return "rev\(reverseIdCounter)"
/host/spi-builder-workspace/Sources/SwiftDagre/Graph/Graph.swift:215:21: warning: result of 'try?' is unused
213 |             if let children = _children[v] {
214 |                 for child in children {
215 |                     try? setParent(child, parent: nil)
    |                     `- warning: result of 'try?' is unused
216 |                 }
217 |             }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/30] Compiling SwiftDagre PositionY.swift
[18/30] Compiling SwiftDagre FeasibleTree.swift
[19/30] Compiling SwiftDagre LongestPath.swift
[20/30] Emitting module SwiftDagre
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:12:24: warning: static property 'reverseIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 |     /// Counter for generating unique IDs for reversed edges
 12 |     private static var reverseIdCounter: Int = 0
    |                        |- warning: static property 'reverseIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'reverseIdCounter' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'reverseIdCounter' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:14:38: error: cannot find 'os_unfair_lock' in scope
 12 |     private static var reverseIdCounter: Int = 0
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 15 |
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:14:24: warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 |     private static var reverseIdCounter: Int = 0
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
    |                        |- warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'counterLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'counterLock' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 |
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:15:24: warning: static property '_nodeIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 | public enum GraphUtil {
 14 |     /// Counter for generating unique node IDs
 15 |     private static var _nodeIdCounter = 0
    |                        |- warning: static property '_nodeIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert '_nodeIdCounter' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property '_nodeIdCounter' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:17:38: error: cannot find 'os_unfair_lock' in scope
 15 |     private static var _nodeIdCounter = 0
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 18 |
 19 |     /// Generates a unique node ID with a given prefix
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:17:24: warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |     private static var _nodeIdCounter = 0
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
    |                        |- warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'counterLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'counterLock' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |
 19 |     /// Generates a unique node ID with a given prefix
[21/30] Compiling SwiftDagre CrossCount.swift
[22/30] Compiling SwiftDagre InitOrder.swift
[23/30] Compiling SwiftDagre Order.swift
[24/30] Compiling SwiftDagre GraphOptions.swift
[25/30] Compiling SwiftDagre AddBorderSegments.swift
[26/30] Compiling SwiftDagre Labels.swift
[27/30] Compiling SwiftDagre Layout.swift
[28/30] Compiling SwiftDagre NetworkSimplex.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:15:24: warning: static property '_nodeIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 | public enum GraphUtil {
 14 |     /// Counter for generating unique node IDs
 15 |     private static var _nodeIdCounter = 0
    |                        |- warning: static property '_nodeIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert '_nodeIdCounter' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property '_nodeIdCounter' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:17:38: error: cannot find 'os_unfair_lock' in scope
 15 |     private static var _nodeIdCounter = 0
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 18 |
 19 |     /// Generates a unique node ID with a given prefix
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:17:24: warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |     private static var _nodeIdCounter = 0
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
    |                        |- warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'counterLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'counterLock' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |
 19 |     /// Generates a unique node ID with a given prefix
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:21:9: error: cannot find 'os_unfair_lock_lock' in scope
 19 |     /// Generates a unique node ID with a given prefix
 20 |     public static func uniqueId(_ prefix: String = "_") -> String {
 21 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 22 |         defer { os_unfair_lock_unlock(&counterLock) }
 23 |         _nodeIdCounter += 1
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:22:17: error: cannot find 'os_unfair_lock_unlock' in scope
 20 |     public static func uniqueId(_ prefix: String = "_") -> String {
 21 |         os_unfair_lock_lock(&counterLock)
 22 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 23 |         _nodeIdCounter += 1
 24 |         return "\(prefix)\(_nodeIdCounter)"
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:29:9: error: cannot find 'os_unfair_lock_lock' in scope
 27 |     /// Resets the unique ID counter (for testing)
 28 |     public static func resetIdCounter() {
 29 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 30 |         defer { os_unfair_lock_unlock(&counterLock) }
 31 |         _nodeIdCounter = 0
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:30:17: error: cannot find 'os_unfair_lock_unlock' in scope
 28 |     public static func resetIdCounter() {
 29 |         os_unfair_lock_lock(&counterLock)
 30 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 31 |         _nodeIdCounter = 0
 32 |     }
[29/30] Compiling SwiftDagre Rank.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:15:24: warning: static property '_nodeIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 | public enum GraphUtil {
 14 |     /// Counter for generating unique node IDs
 15 |     private static var _nodeIdCounter = 0
    |                        |- warning: static property '_nodeIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert '_nodeIdCounter' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property '_nodeIdCounter' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:17:38: error: cannot find 'os_unfair_lock' in scope
 15 |     private static var _nodeIdCounter = 0
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 18 |
 19 |     /// Generates a unique node ID with a given prefix
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:17:24: warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |     private static var _nodeIdCounter = 0
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
    |                        |- warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'counterLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'counterLock' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |
 19 |     /// Generates a unique node ID with a given prefix
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:21:9: error: cannot find 'os_unfair_lock_lock' in scope
 19 |     /// Generates a unique node ID with a given prefix
 20 |     public static func uniqueId(_ prefix: String = "_") -> String {
 21 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 22 |         defer { os_unfair_lock_unlock(&counterLock) }
 23 |         _nodeIdCounter += 1
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:22:17: error: cannot find 'os_unfair_lock_unlock' in scope
 20 |     public static func uniqueId(_ prefix: String = "_") -> String {
 21 |         os_unfair_lock_lock(&counterLock)
 22 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 23 |         _nodeIdCounter += 1
 24 |         return "\(prefix)\(_nodeIdCounter)"
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:29:9: error: cannot find 'os_unfair_lock_lock' in scope
 27 |     /// Resets the unique ID counter (for testing)
 28 |     public static func resetIdCounter() {
 29 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 30 |         defer { os_unfair_lock_unlock(&counterLock) }
 31 |         _nodeIdCounter = 0
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:30:17: error: cannot find 'os_unfair_lock_unlock' in scope
 28 |     public static func resetIdCounter() {
 29 |         os_unfair_lock_lock(&counterLock)
 30 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 31 |         _nodeIdCounter = 0
 32 |     }
[30/30] Compiling SwiftDagre GraphUtil.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:15:24: warning: static property '_nodeIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 | public enum GraphUtil {
 14 |     /// Counter for generating unique node IDs
 15 |     private static var _nodeIdCounter = 0
    |                        |- warning: static property '_nodeIdCounter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert '_nodeIdCounter' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property '_nodeIdCounter' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:17:38: error: cannot find 'os_unfair_lock' in scope
 15 |     private static var _nodeIdCounter = 0
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 18 |
 19 |     /// Generates a unique node ID with a given prefix
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:17:24: warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |     private static var _nodeIdCounter = 0
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
    |                        |- warning: static property 'counterLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'counterLock' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'counterLock' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |
 19 |     /// Generates a unique node ID with a given prefix
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:21:9: error: cannot find 'os_unfair_lock_lock' in scope
 19 |     /// Generates a unique node ID with a given prefix
 20 |     public static func uniqueId(_ prefix: String = "_") -> String {
 21 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 22 |         defer { os_unfair_lock_unlock(&counterLock) }
 23 |         _nodeIdCounter += 1
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:22:17: error: cannot find 'os_unfair_lock_unlock' in scope
 20 |     public static func uniqueId(_ prefix: String = "_") -> String {
 21 |         os_unfair_lock_lock(&counterLock)
 22 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 23 |         _nodeIdCounter += 1
 24 |         return "\(prefix)\(_nodeIdCounter)"
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:29:9: error: cannot find 'os_unfair_lock_lock' in scope
 27 |     /// Resets the unique ID counter (for testing)
 28 |     public static func resetIdCounter() {
 29 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 30 |         defer { os_unfair_lock_unlock(&counterLock) }
 31 |         _nodeIdCounter = 0
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:30:17: error: cannot find 'os_unfair_lock_unlock' in scope
 28 |     public static func resetIdCounter() {
 29 |         os_unfair_lock_lock(&counterLock)
 30 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 31 |         _nodeIdCounter = 0
 32 |     }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
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/26] Compiling SwiftDagre Acyclic.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:14:38: error: cannot find 'os_unfair_lock' in scope
 12 |     private static var reverseIdCounter: Int = 0
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 15 |
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:18:9: error: cannot find 'os_unfair_lock_lock' in scope
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
 20 |         reverseIdCounter += 1
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:19:17: error: cannot find 'os_unfair_lock_unlock' in scope
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 20 |         reverseIdCounter += 1
 21 |         return "rev\(reverseIdCounter)"
/host/spi-builder-workspace/Sources/SwiftDagre/Graph/Graph.swift:215:21: warning: result of 'try?' is unused
213 |             if let children = _children[v] {
214 |                 for child in children {
215 |                     try? setParent(child, parent: nil)
    |                     `- warning: result of 'try?' is unused
216 |                 }
217 |             }
[3/26] Compiling SwiftDagre GreedyFAS.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:14:38: error: cannot find 'os_unfair_lock' in scope
 12 |     private static var reverseIdCounter: Int = 0
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 15 |
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:18:9: error: cannot find 'os_unfair_lock_lock' in scope
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
 20 |         reverseIdCounter += 1
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:19:17: error: cannot find 'os_unfair_lock_unlock' in scope
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 20 |         reverseIdCounter += 1
 21 |         return "rev\(reverseIdCounter)"
/host/spi-builder-workspace/Sources/SwiftDagre/Graph/Graph.swift:215:21: warning: result of 'try?' is unused
213 |             if let children = _children[v] {
214 |                 for child in children {
215 |                     try? setParent(child, parent: nil)
    |                     `- warning: result of 'try?' is unused
216 |                 }
217 |             }
[4/26] Compiling SwiftDagre EdgeId.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:14:38: error: cannot find 'os_unfair_lock' in scope
 12 |     private static var reverseIdCounter: Int = 0
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 15 |
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:18:9: error: cannot find 'os_unfair_lock_lock' in scope
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
 20 |         reverseIdCounter += 1
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:19:17: error: cannot find 'os_unfair_lock_unlock' in scope
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 20 |         reverseIdCounter += 1
 21 |         return "rev\(reverseIdCounter)"
/host/spi-builder-workspace/Sources/SwiftDagre/Graph/Graph.swift:215:21: warning: result of 'try?' is unused
213 |             if let children = _children[v] {
214 |                 for child in children {
215 |                     try? setParent(child, parent: nil)
    |                     `- warning: result of 'try?' is unused
216 |                 }
217 |             }
[5/26] Compiling SwiftDagre Graph.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:14:38: error: cannot find 'os_unfair_lock' in scope
 12 |     private static var reverseIdCounter: Int = 0
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 15 |
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:18:9: error: cannot find 'os_unfair_lock_lock' in scope
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
 20 |         reverseIdCounter += 1
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:19:17: error: cannot find 'os_unfair_lock_unlock' in scope
 17 |     private static func uniqueReverseId() -> String {
 18 |         os_unfair_lock_lock(&counterLock)
 19 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 20 |         reverseIdCounter += 1
 21 |         return "rev\(reverseIdCounter)"
/host/spi-builder-workspace/Sources/SwiftDagre/Graph/Graph.swift:215:21: warning: result of 'try?' is unused
213 |             if let children = _children[v] {
214 |                 for child in children {
215 |                     try? setParent(child, parent: nil)
    |                     `- warning: result of 'try?' is unused
216 |                 }
217 |             }
[6/29] Compiling SwiftDagre PositionY.swift
[7/29] Compiling SwiftDagre FeasibleTree.swift
[8/29] Compiling SwiftDagre LongestPath.swift
[9/29] Compiling SwiftDagre AddSubgraphConstraints.swift
[10/29] Compiling SwiftDagre Barycenter.swift
[11/29] Compiling SwiftDagre BuildLayerGraph.swift
[12/29] Compiling SwiftDagre NestingGraph.swift
[13/29] Compiling SwiftDagre Denormalize.swift
[14/29] Compiling SwiftDagre Normalize.swift
[15/29] Compiling SwiftDagre ParentDummyChains.swift
[16/29] Compiling SwiftDagre NetworkSimplex.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:17:38: error: cannot find 'os_unfair_lock' in scope
 15 |     private static var _nodeIdCounter = 0
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 18 |
 19 |     /// Generates a unique node ID with a given prefix
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:21:9: error: cannot find 'os_unfair_lock_lock' in scope
 19 |     /// Generates a unique node ID with a given prefix
 20 |     public static func uniqueId(_ prefix: String = "_") -> String {
 21 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 22 |         defer { os_unfair_lock_unlock(&counterLock) }
 23 |         _nodeIdCounter += 1
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:22:17: error: cannot find 'os_unfair_lock_unlock' in scope
 20 |     public static func uniqueId(_ prefix: String = "_") -> String {
 21 |         os_unfair_lock_lock(&counterLock)
 22 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 23 |         _nodeIdCounter += 1
 24 |         return "\(prefix)\(_nodeIdCounter)"
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:29:9: error: cannot find 'os_unfair_lock_lock' in scope
 27 |     /// Resets the unique ID counter (for testing)
 28 |     public static func resetIdCounter() {
 29 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 30 |         defer { os_unfair_lock_unlock(&counterLock) }
 31 |         _nodeIdCounter = 0
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:30:17: error: cannot find 'os_unfair_lock_unlock' in scope
 28 |     public static func resetIdCounter() {
 29 |         os_unfair_lock_lock(&counterLock)
 30 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 31 |         _nodeIdCounter = 0
 32 |     }
[17/29] Compiling SwiftDagre Rank.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:17:38: error: cannot find 'os_unfair_lock' in scope
 15 |     private static var _nodeIdCounter = 0
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 18 |
 19 |     /// Generates a unique node ID with a given prefix
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:21:9: error: cannot find 'os_unfair_lock_lock' in scope
 19 |     /// Generates a unique node ID with a given prefix
 20 |     public static func uniqueId(_ prefix: String = "_") -> String {
 21 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 22 |         defer { os_unfair_lock_unlock(&counterLock) }
 23 |         _nodeIdCounter += 1
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:22:17: error: cannot find 'os_unfair_lock_unlock' in scope
 20 |     public static func uniqueId(_ prefix: String = "_") -> String {
 21 |         os_unfair_lock_lock(&counterLock)
 22 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 23 |         _nodeIdCounter += 1
 24 |         return "\(prefix)\(_nodeIdCounter)"
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:29:9: error: cannot find 'os_unfair_lock_lock' in scope
 27 |     /// Resets the unique ID counter (for testing)
 28 |     public static func resetIdCounter() {
 29 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 30 |         defer { os_unfair_lock_unlock(&counterLock) }
 31 |         _nodeIdCounter = 0
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:30:17: error: cannot find 'os_unfair_lock_unlock' in scope
 28 |     public static func resetIdCounter() {
 29 |         os_unfair_lock_lock(&counterLock)
 30 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 31 |         _nodeIdCounter = 0
 32 |     }
[18/29] Compiling SwiftDagre GraphUtil.swift
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:17:38: error: cannot find 'os_unfair_lock' in scope
 15 |     private static var _nodeIdCounter = 0
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 18 |
 19 |     /// Generates a unique node ID with a given prefix
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:21:9: error: cannot find 'os_unfair_lock_lock' in scope
 19 |     /// Generates a unique node ID with a given prefix
 20 |     public static func uniqueId(_ prefix: String = "_") -> String {
 21 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 22 |         defer { os_unfair_lock_unlock(&counterLock) }
 23 |         _nodeIdCounter += 1
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:22:17: error: cannot find 'os_unfair_lock_unlock' in scope
 20 |     public static func uniqueId(_ prefix: String = "_") -> String {
 21 |         os_unfair_lock_lock(&counterLock)
 22 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 23 |         _nodeIdCounter += 1
 24 |         return "\(prefix)\(_nodeIdCounter)"
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:29:9: error: cannot find 'os_unfair_lock_lock' in scope
 27 |     /// Resets the unique ID counter (for testing)
 28 |     public static func resetIdCounter() {
 29 |         os_unfair_lock_lock(&counterLock)
    |         `- error: cannot find 'os_unfair_lock_lock' in scope
 30 |         defer { os_unfair_lock_unlock(&counterLock) }
 31 |         _nodeIdCounter = 0
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:30:17: error: cannot find 'os_unfair_lock_unlock' in scope
 28 |     public static func resetIdCounter() {
 29 |         os_unfair_lock_lock(&counterLock)
 30 |         defer { os_unfair_lock_unlock(&counterLock) }
    |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
 31 |         _nodeIdCounter = 0
 32 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/29] Compiling SwiftDagre GraphOptions.swift
[20/29] Compiling SwiftDagre AddBorderSegments.swift
[21/29] Compiling SwiftDagre Labels.swift
[22/29] Compiling SwiftDagre Layout.swift
[23/29] Emitting module SwiftDagre
/host/spi-builder-workspace/Sources/SwiftDagre/Acyclic/Acyclic.swift:14:38: error: cannot find 'os_unfair_lock' in scope
 12 |     private static var reverseIdCounter: Int = 0
 13 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 14 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 15 |
 16 |     /// Generates a unique ID for reversed edges (matches dagrejs's uniqueId("rev"))
/host/spi-builder-workspace/Sources/SwiftDagre/Util/GraphUtil.swift:17:38: error: cannot find 'os_unfair_lock' in scope
 15 |     private static var _nodeIdCounter = 0
 16 |     /// Lock for thread-safe counter access (os_unfair_lock for macOS 10.12+ compatibility)
 17 |     private static var counterLock = os_unfair_lock()
    |                                      `- error: cannot find 'os_unfair_lock' in scope
 18 |
 19 |     /// Generates a unique node ID with a given prefix
[24/29] Compiling SwiftDagre CrossCount.swift
[25/29] Compiling SwiftDagre InitOrder.swift
[26/29] Compiling SwiftDagre Order.swift
[27/29] Compiling SwiftDagre SortSubgraph.swift
[28/29] Compiling SwiftDagre BrandesKopf.swift
[29/29] Compiling SwiftDagre Position.swift
BUILD FAILURE 6.1 wasm