The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Monstra, reference v0.1.0 (44efbc), with Swift 6.3 for Linux on 16 Apr 2026 22:32:00 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
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.3
Building package at path:  $PWD
https://github.com/yangchenlarkin/Monstra.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-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 Heap.swift
[4/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 |
[5/16] 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/16] 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/16] Compiling Monstra DoublyLink.swift
[8/16] Compiling Monstra HashQueue.swift
[9/16] 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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
446 |                 self.semaphore.wait()
447 |                 defer { self.semaphore.signal() }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[10/16] 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 [#SendableClosureCaptures]
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 [#SendableClosureCaptures]
446 |                 self.semaphore.wait()
447 |                 defer { self.semaphore.signal() }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/16] 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/CPUTimeStamp.swift:19:20: error: cannot find 'mach_timebase_info_data_t' in scope
 17 |     /// Mach timebase info for converting between different time units. Cached for performance.
 18 |     private static let timebaseInfo: mach_timebase_info_data_t = {
 19 |         var info = mach_timebase_info_data_t()
    |                    `- error: cannot find 'mach_timebase_info_data_t' in scope
 20 |         mach_timebase_info(&info)
 21 |         return info
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:20:9: error: cannot find 'mach_timebase_info' in scope
 18 |     private static let timebaseInfo: mach_timebase_info_data_t = {
 19 |         var info = mach_timebase_info_data_t()
 20 |         mach_timebase_info(&info)
    |         `- error: cannot find 'mach_timebase_info' in scope
 21 |         return info
 22 |     }()
/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).
[12/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:19:20: error: cannot find 'mach_timebase_info_data_t' in scope
 17 |     /// Mach timebase info for converting between different time units. Cached for performance.
 18 |     private static let timebaseInfo: mach_timebase_info_data_t = {
 19 |         var info = mach_timebase_info_data_t()
    |                    `- error: cannot find 'mach_timebase_info_data_t' in scope
 20 |         mach_timebase_info(&info)
 21 |         return info
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:20:9: error: cannot find 'mach_timebase_info' in scope
 18 |     private static let timebaseInfo: mach_timebase_info_data_t = {
 19 |         var info = mach_timebase_info_data_t()
 20 |         mach_timebase_info(&info)
    |         `- error: cannot find 'mach_timebase_info' in scope
 21 |         return info
 22 |     }()
/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 | }
[13/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:19:20: error: cannot find 'mach_timebase_info_data_t' in scope
 17 |     /// Mach timebase info for converting between different time units. Cached for performance.
 18 |     private static let timebaseInfo: mach_timebase_info_data_t = {
 19 |         var info = mach_timebase_info_data_t()
    |                    `- error: cannot find 'mach_timebase_info_data_t' in scope
 20 |         mach_timebase_info(&info)
 21 |         return info
/host/spi-builder-workspace/Sources/MonstraBase/CPUTimeStamp.swift:20:9: error: cannot find 'mach_timebase_info' in scope
 18 |     private static let timebaseInfo: mach_timebase_info_data_t = {
 19 |         var info = mach_timebase_info_data_t()
 20 |         mach_timebase_info(&info)
    |         `- error: cannot find 'mach_timebase_info' in scope
 21 |         return info
 22 |     }()
/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 | }
[14/16] Compiling Monstra RetryCount.swift
[15/16] Compiling Monstra PriorityLRUQueue.swift
[16/16] Compiling Monstra TTLPriorityLRUQueue.swift
BUILD FAILURE 6.3 linux