Build Information
Failed to build swift-mermaid, reference main (ee4b50), with Swift 6.2 for Linux on 27 Aug 2026 22:50:10 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/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:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Australware/swift-mermaid.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/Australware/swift-mermaid
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at ee4b50b Add additional diagram types, fix one rendering bug
Cloned https://github.com/Australware/swift-mermaid.git
Revision (git rev-parse @):
ee4b50bc15ad6e9b9f88bc320f2c42ba9a55a804
SUCCESS checkout https://github.com/Australware/swift-mermaid.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/Australware/swift-mermaid.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/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:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:4f3911e0f09a6ac47ac813ad3222aa373869118ee0ae384fd641a13da74b5e3f
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.2-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/28] Emitting module MermaidLayoutDagre
/host/spi-builder-workspace/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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
[5/31] Compiling MermaidLayoutDagre AddSubgraphConstraints.swift
[6/31] Compiling MermaidLayoutDagre Barycenter.swift
[7/31] Compiling MermaidLayoutDagre BuildLayerGraph.swift
[8/31] Compiling MermaidLayoutDagre Acyclic.swift
/host/spi-builder-workspace/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/Graph/Graph.swift:215:21: warning: result of 'try?' is unused [#no-usage]
213 | if let children = _children[v] {
214 | for child in children {
215 | try? setParent(child, parent: nil)
| `- warning: result of 'try?' is unused [#no-usage]
216 | }
217 | }
[9/31] Compiling MermaidLayoutDagre GreedyFAS.swift
/host/spi-builder-workspace/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/Graph/Graph.swift:215:21: warning: result of 'try?' is unused [#no-usage]
213 | if let children = _children[v] {
214 | for child in children {
215 | try? setParent(child, parent: nil)
| `- warning: result of 'try?' is unused [#no-usage]
216 | }
217 | }
[10/31] Compiling MermaidLayoutDagre EdgeId.swift
/host/spi-builder-workspace/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/Graph/Graph.swift:215:21: warning: result of 'try?' is unused [#no-usage]
213 | if let children = _children[v] {
214 | for child in children {
215 | try? setParent(child, parent: nil)
| `- warning: result of 'try?' is unused [#no-usage]
216 | }
217 | }
[11/31] Compiling MermaidLayoutDagre Graph.swift
/host/spi-builder-workspace/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/Graph/Graph.swift:215:21: warning: result of 'try?' is unused [#no-usage]
213 | if let children = _children[v] {
214 | for child in children {
215 | try? setParent(child, parent: nil)
| `- warning: result of 'try?' is unused [#no-usage]
216 | }
217 | }
[12/31] Compiling MermaidLayoutDagre CrossCount.swift
[13/31] Compiling MermaidLayoutDagre InitOrder.swift
[14/31] Compiling MermaidLayoutDagre Order.swift
[15/31] Compiling MermaidLayoutDagre SortSubgraph.swift
[16/31] Compiling MermaidLayoutDagre BrandesKopf.swift
[17/31] Compiling MermaidLayoutDagre Position.swift
[18/31] Compiling MermaidLayoutDagre NestingGraph.swift
[19/31] Compiling MermaidLayoutDagre Denormalize.swift
[20/31] Compiling MermaidLayoutDagre Normalize.swift
[21/31] Compiling MermaidLayoutDagre ParentDummyChains.swift
[22/31] Compiling MermaidLayoutDagre PositionY.swift
[23/31] Compiling MermaidLayoutDagre FeasibleTree.swift
[24/31] Compiling MermaidLayoutDagre LongestPath.swift
[25/31] Compiling MermaidLayoutDagre NetworkSimplex.swift
/host/spi-builder-workspace/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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 | }
[26/31] Compiling MermaidLayoutDagre Rank.swift
/host/spi-builder-workspace/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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 | }
[27/31] Compiling MermaidLayoutDagre GraphUtil.swift
/host/spi-builder-workspace/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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/Vendor/MermaidLayoutDagre/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 | }
[28/31] Compiling MermaidLayoutDagre GraphOptions.swift
[29/31] Compiling MermaidLayoutDagre AddBorderSegments.swift
[30/31] Compiling MermaidLayoutDagre Labels.swift
[31/31] Compiling MermaidLayoutDagre Layout.swift
BUILD FAILURE 6.2 linux