Build Information
Failed to build Monstra, reference v0.1.0 (44efbc
), with Swift 6.0 for Linux on 7 Sep 2025 23:22:55 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/yangchenlarkin/Monstra.git
Reference: v0.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/yangchenlarkin/Monstra
* tag v0.1.0 -> FETCH_HEAD
HEAD is now at 44efbcc Release v0.1.0: Update version numbers and changelog
Cloned https://github.com/yangchenlarkin/Monstra.git
Revision (git rev-parse @):
44efbccb666635430d416dfcc2b810231e31a807
SUCCESS checkout https://github.com/yangchenlarkin/Monstra.git at v0.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/yangchenlarkin/Monstra.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:2ffdcefcdb291d9eb78a77ed5e4b4766a710a1cb89004e0bfdb0fefda731df2f
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/Monstore/MemoryCache/README.md
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/15] Compiling Monstra PriorityLRUQueue.swift
[4/15] Compiling Monstra TTLPriorityLRUQueue.swift
[5/15] Compiling Monstra MonoTask.swift
/host/spi-builder-workspace/Sources/MonstraBase/TracingIDFactory.swift:223:24: error: cannot find 'os_unfair_lock' in scope
221 | /// Uses `os_unfair_lock` for minimal overhead while providing mutual exclusion.
222 | /// This lock protects the `sequentialCounter` during increment and ID calculation.
223 | private var lock = os_unfair_lock()
| `- error: cannot find 'os_unfair_lock' in scope
224 |
225 | /// Core ID generation logic without thread safety (maximum performance).
[6/15] Compiling Monstra MemoryCache.swift
/host/spi-builder-workspace/Sources/MonstraBase/TracingIDFactory.swift:223:24: error: cannot find 'os_unfair_lock' in scope
221 | /// Uses `os_unfair_lock` for minimal overhead while providing mutual exclusion.
222 | /// This lock protects the `sequentialCounter` during increment and ID calculation.
223 | private var lock = os_unfair_lock()
| `- error: cannot find 'os_unfair_lock' in scope
224 |
225 | /// Core ID generation logic without thread safety (maximum performance).
[7/15] Compiling Monstra KVHeavyTasksManager.swift
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:445:27: warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
443 | startTaskExecution(keys: _remoteKeys) { [weak self] key, res in
444 | DispatchQueue.global().async {
445 | guard let self else { return }
| `- warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
446 | self.semaphore.wait()
447 | defer { self.semaphore.signal() }
[8/15] Compiling Monstra KVLightTasksManager.swift
/host/spi-builder-workspace/Sources/Monstask/KVLightTasksManager.swift:445:27: warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
443 | startTaskExecution(keys: _remoteKeys) { [weak self] key, res in
444 | DispatchQueue.global().async {
445 | guard let self else { return }
| `- warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
446 | self.semaphore.wait()
447 | defer { self.semaphore.signal() }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/15] Emitting module Monstra
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:18:38: error: cannot find type 'mach_timebase_info_data_t' in scope
16 |
17 | /// Mach timebase info for converting between different time units. Cached for performance.
18 | private static let timebaseInfo: mach_timebase_info_data_t = {
| `- error: cannot find type 'mach_timebase_info_data_t' in scope
19 | var info = mach_timebase_info_data_t()
20 | mach_timebase_info(&info)
/host/spi-builder-workspace/Sources/MonstraBase/TracingIDFactory.swift:223:24: error: cannot find 'os_unfair_lock' in scope
221 | /// Uses `os_unfair_lock` for minimal overhead while providing mutual exclusion.
222 | /// This lock protects the `sequentialCounter` during increment and ID calculation.
223 | private var lock = os_unfair_lock()
| `- error: cannot find 'os_unfair_lock' in scope
224 |
225 | /// Core ID generation logic without thread safety (maximum performance).
[10/16] Compiling Monstra Heap.swift
[11/16] Compiling Monstra RetryCount.swift
[12/16] Compiling Monstra DoublyLink.swift
[13/16] Compiling Monstra HashQueue.swift
[14/16] Compiling Monstra CacheStatistics.swift
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:18:38: error: cannot find type 'mach_timebase_info_data_t' in scope
16 |
17 | /// Mach timebase info for converting between different time units. Cached for performance.
18 | private static let timebaseInfo: mach_timebase_info_data_t = {
| `- error: cannot find type 'mach_timebase_info_data_t' in scope
19 | var info = mach_timebase_info_data_t()
20 | mach_timebase_info(&info)
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:45:29: error: cannot find 'mach_absolute_time' in scope
43 | /// Initialize with current CPU time.
44 | public init() {
45 | self.init(rawTicks: mach_absolute_time())
| `- error: cannot find 'mach_absolute_time' in scope
46 | }
47 |
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:100:51: error: cannot find 'NSEC_PER_SEC' in scope
98 | static func convertTicksToSeconds(_ ticks: UInt64) -> TimeInterval {
99 | let nanos = (ticks / UInt64(Self.timebaseInfo.denom)) * UInt64(Self.timebaseInfo.numer)
100 | return TimeInterval(nanos) / TimeInterval(NSEC_PER_SEC)
| `- error: cannot find 'NSEC_PER_SEC' in scope
101 | }
102 | }
[15/16] Compiling Monstra CPUTimeStamp.swift
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:18:38: error: cannot find type 'mach_timebase_info_data_t' in scope
16 |
17 | /// Mach timebase info for converting between different time units. Cached for performance.
18 | private static let timebaseInfo: mach_timebase_info_data_t = {
| `- error: cannot find type 'mach_timebase_info_data_t' in scope
19 | var info = mach_timebase_info_data_t()
20 | mach_timebase_info(&info)
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:45:29: error: cannot find 'mach_absolute_time' in scope
43 | /// Initialize with current CPU time.
44 | public init() {
45 | self.init(rawTicks: mach_absolute_time())
| `- error: cannot find 'mach_absolute_time' in scope
46 | }
47 |
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:100:51: error: cannot find 'NSEC_PER_SEC' in scope
98 | static func convertTicksToSeconds(_ ticks: UInt64) -> TimeInterval {
99 | let nanos = (ticks / UInt64(Self.timebaseInfo.denom)) * UInt64(Self.timebaseInfo.numer)
100 | return TimeInterval(nanos) / TimeInterval(NSEC_PER_SEC)
| `- error: cannot find 'NSEC_PER_SEC' in scope
101 | }
102 | }
[16/16] Compiling Monstra TracingIDFactory.swift
/host/spi-builder-workspace/Sources/MonstraBase/TracingIDFactory.swift:223:24: error: cannot find 'os_unfair_lock' in scope
221 | /// Uses `os_unfair_lock` for minimal overhead while providing mutual exclusion.
222 | /// This lock protects the `sequentialCounter` during increment and ID calculation.
223 | private var lock = os_unfair_lock()
| `- error: cannot find 'os_unfair_lock' in scope
224 |
225 | /// Core ID generation logic without thread safety (maximum performance).
/host/spi-builder-workspace/Sources/MonstraBase/TracingIDFactory.swift:280:9: error: cannot find 'os_unfair_lock_lock' in scope
278 | private mutating func _safe_next() -> Int64 {
279 | // Acquire exclusive access to mutable state
280 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
281 | defer {
282 | // Ensure lock is always released, even if _unsafe_next() throws or returns early
/host/spi-builder-workspace/Sources/MonstraBase/TracingIDFactory.swift:283:13: error: cannot find 'os_unfair_lock_unlock' in scope
281 | defer {
282 | // Ensure lock is always released, even if _unsafe_next() throws or returns early
283 | os_unfair_lock_unlock(&self.lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
284 | }
285 |
BUILD FAILURE 6.0 linux