The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Footprint, reference main (0d12b5), with Swift 5.10 for Linux on 12 Apr 2025 22:24:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/naftaly/Footprint.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/naftaly/Footprint
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 0d12b57 Update Footprint.swift
Cloned https://github.com/naftaly/Footprint.git
Revision (git rev-parse @):
0d12b576ff3953d17dcc9840bdef66a56e273a4a
SUCCESS checkout https://github.com/naftaly/Footprint.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $PWD
https://github.com/naftaly/Footprint.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:616ef225d0085997f26355ad9695b1159b91f6187a43f9ff135cb59d096bc97d
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module Footprint
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:10:59: warning: unrecognized platform name 'visionOS'
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, visionOS 1.0, *)
                                                          ^
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:34:59: warning: unrecognized platform name 'visionOS'
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, visionOS 1.0, *)
                                                          ^
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:327:59: warning: unrecognized platform name 'visionOS'
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, visionOS 1.0, *)
                                                          ^
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:335:59: warning: unrecognized platform name 'visionOS'
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, visionOS 1.0, *)
                                                          ^
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:43:45: error: cannot find 'mach_msg_type_number_t' in scope
        private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
                                            ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:43:81: error: cannot find type 'task_basic_info_data_t' in scope
        private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
                                                                                ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:44:42: error: cannot find 'mach_msg_type_number_t' in scope
        private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
                                         ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:44:78: error: cannot find type 'task_vm_info_data_t' in scope
        private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
                                                                             ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:320:40: error: cannot find type 'DispatchSourceMemoryPressure' in scope
    private let _memoryPressureSource: DispatchSourceMemoryPressure
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[4/5] Compiling Footprint DefaultMemoryProvider.swift
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:10:59: warning: unrecognized platform name 'visionOS'
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, visionOS 1.0, *)
                                                          ^
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:43:45: error: cannot find 'mach_msg_type_number_t' in scope
        private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
                                            ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:43:81: error: cannot find type 'task_basic_info_data_t' in scope
        private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
                                                                                ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:44:42: error: cannot find 'mach_msg_type_number_t' in scope
        private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
                                         ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:44:78: error: cannot find type 'task_vm_info_data_t' in scope
        private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
                                                                             ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:16:24: error: cannot find 'task_vm_info_data_t' in scope
            var info = task_vm_info_data_t()
                       ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:20:42: error: cannot find 'integer_t' in scope
                $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
                                         ^~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:21:21: error: cannot find 'task_info' in scope
                    task_info(mach_task_self_, thread_flavor_t(TASK_VM_INFO), $0, &infoCount)
                    ^~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:21:31: error: cannot find 'mach_task_self_' in scope
                    task_info(mach_task_self_, thread_flavor_t(TASK_VM_INFO), $0, &infoCount)
                              ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:21:48: error: cannot find 'thread_flavor_t' in scope
                    task_info(mach_task_self_, thread_flavor_t(TASK_VM_INFO), $0, &infoCount)
                                               ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:21:64: error: cannot find 'TASK_VM_INFO' in scope
                    task_info(mach_task_self_, thread_flavor_t(TASK_VM_INFO), $0, &infoCount)
                                                               ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:20:20: error: generic parameter 'T' could not be inferred
                $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
                   ^
Swift.UnsafeMutablePointer:28:28: note: in call to function 'withMemoryRebound(to:capacity:_:)'
    @inlinable public func withMemoryRebound<T, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafeMutablePointer<T>) throws -> Result) rethrows -> Result
                           ^
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:24:39: error: cannot find 'KERN_SUCCESS' in scope
            let used: Int64 = kerr == KERN_SUCCESS ? Int64(info.phys_footprint) : 0
                                      ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:25:45: error: cannot find 'KERN_SUCCESS' in scope
            let compressed: Int64 = kerr == KERN_SUCCESS ? Int64(info.compressed) : 0
                                            ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:33:44: error: cannot find 'KERN_SUCCESS' in scope
            let remaining: Int64 = kerr == KERN_SUCCESS ? Int64(info.limit_bytes_remaining) : 0
                                           ^~~~~~~~~~~~
[5/5] Compiling Footprint Footprint.swift
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:34:59: warning: unrecognized platform name 'visionOS'
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, visionOS 1.0, *)
                                                          ^
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:327:59: warning: unrecognized platform name 'visionOS'
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, visionOS 1.0, *)
                                                          ^
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:335:59: warning: unrecognized platform name 'visionOS'
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, visionOS 1.0, *)
                                                          ^
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:320:40: error: cannot find type 'DispatchSourceMemoryPressure' in scope
    private let _memoryPressureSource: DispatchSourceMemoryPressure
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:111:28: error: cannot find 'mach_absolute_time' in scope
                let time = mach_absolute_time()
                           ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:112:36: error: cannot find 'mach_timebase_info_data_t' in scope
                var timebaseInfo = mach_timebase_info_data_t()
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:113:23: error: cannot find 'mach_timebase_info' in scope
                guard mach_timebase_info(&timebaseInfo) == KERN_SUCCESS else {
                      ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:113:60: error: cannot find 'KERN_SUCCESS' in scope
                guard mach_timebase_info(&timebaseInfo) == KERN_SUCCESS else {
                                                           ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:159:21: error: value of type 'NSLock' has no member 'withLock'
        _memoryLock.withLock { _memory }
        ~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:174:21: error: value of type 'NSLock' has no member 'withLock'
        _memoryLock.withLock { _memory.state }
        ~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:179:21: error: value of type 'NSLock' has no member 'withLock'
        _memoryLock.withLock { _memory.pressure }
        ~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:188:48: error: type 'DispatchSource' has no member 'makeMemoryPressureSource'
        _memoryPressureSource = DispatchSource.makeMemoryPressureSource(eventMask: [.all], queue: _queue)
                                ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:188:86: error: reference to member 'all' cannot be resolved without a contextual type
        _memoryPressureSource = DispatchSource.makeMemoryPressureSource(eventMask: [.all], queue: _queue)
                                                                                     ^
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:232:49: error: cannot infer contextual base in reference to member 'critical'
        if _memoryPressureSource.data.contains(.critical) {
                                               ~^~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:234:56: error: cannot infer contextual base in reference to member 'warning'
        } else if _memoryPressureSource.data.contains(.warning) {
                                                      ~^~~~~~~
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:241:31: error: value of type 'NSLock' has no member 'withLock'
        let mem = _memoryLock.withLock {
                  ~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:311:41: error: value of type 'NSLock' has no member 'withLock'
            let observers = _memoryLock.withLock { _observers }
                            ~~~~~~~~~~~ ^~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux