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 v1.0.5 (45d3cf), with Swift 6.0 for Linux on 2 Dec 2024 11:17:44 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/naftaly/Footprint.git
Reference: v1.0.5
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
 * tag               v1.0.5     -> FETCH_HEAD
HEAD is now at 45d3cf3 Cleaned up locks and fixed a footprint change bug
Cloned https://github.com/naftaly/Footprint.git
Revision (git rev-parse @):
45d3cf328bb25d8e84210c624e7aca4cb4918466
SUCCESS checkout https://github.com/naftaly/Footprint.git at v1.0.5
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/naftaly/Footprint.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-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:43:45: error: cannot find 'mach_msg_type_number_t' in scope
41 |         }
42 |
43 |         private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
   |                                             `- error: cannot find 'mach_msg_type_number_t' in scope
44 |         private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
45 |     }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:43:81: error: cannot find type 'task_basic_info_data_t' in scope
41 |         }
42 |
43 |         private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
   |                                                                                 `- error: cannot find type 'task_basic_info_data_t' in scope
44 |         private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
45 |     }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:44:42: error: cannot find 'mach_msg_type_number_t' in scope
42 |
43 |         private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
44 |         private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
   |                                          `- error: cannot find 'mach_msg_type_number_t' in scope
45 |     }
46 | }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:44:78: error: cannot find type 'task_vm_info_data_t' in scope
42 |
43 |         private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
44 |         private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
   |                                                                              `- error: cannot find type 'task_vm_info_data_t' in scope
45 |     }
46 | }
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:325:40: error: cannot find type 'DispatchSourceMemoryPressure' in scope
323 |     private let _heartbeatInterval = 500 // milliseconds
324 |     private let _provider: MemoryProvider
325 |     private let _memoryPressureSource: DispatchSourceMemoryPressure
    |                                        `- error: cannot find type 'DispatchSourceMemoryPressure' in scope
326 |
327 |     private var _observers: [(Memory) -> Void] = []
[4/5] Compiling Footprint DefaultMemoryProvider.swift
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:43:45: error: cannot find 'mach_msg_type_number_t' in scope
41 |         }
42 |
43 |         private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
   |                                             `- error: cannot find 'mach_msg_type_number_t' in scope
44 |         private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
45 |     }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:43:81: error: cannot find type 'task_basic_info_data_t' in scope
41 |         }
42 |
43 |         private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
   |                                                                                 `- error: cannot find type 'task_basic_info_data_t' in scope
44 |         private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
45 |     }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:44:42: error: cannot find 'mach_msg_type_number_t' in scope
42 |
43 |         private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
44 |         private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
   |                                          `- error: cannot find 'mach_msg_type_number_t' in scope
45 |     }
46 | }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:44:78: error: cannot find type 'task_vm_info_data_t' in scope
42 |
43 |         private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
44 |         private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
   |                                                                              `- error: cannot find type 'task_vm_info_data_t' in scope
45 |     }
46 | }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:16:24: error: cannot find 'task_vm_info_data_t' in scope
14 |         func provide(_ pressure: Footprint.Memory.State = .normal) -> Footprint.Memory {
15 |
16 |             var info = task_vm_info_data_t()
   |                        `- error: cannot find 'task_vm_info_data_t' in scope
17 |             var infoCount = TASK_VM_INFO_COUNT
18 |
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:20:42: error: cannot find 'integer_t' in scope
18 |
19 |             let kerr = withUnsafeMutablePointer(to: &info) {
20 |                 $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
   |                                          `- error: cannot find 'integer_t' in scope
21 |                     task_info(mach_task_self_, thread_flavor_t(TASK_VM_INFO), $0, &infoCount)
22 |                 }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:21:21: error: cannot find 'task_info' in scope
19 |             let kerr = withUnsafeMutablePointer(to: &info) {
20 |                 $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
21 |                     task_info(mach_task_self_, thread_flavor_t(TASK_VM_INFO), $0, &infoCount)
   |                     `- error: cannot find 'task_info' in scope
22 |                 }
23 |             }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:21:31: error: cannot find 'mach_task_self_' in scope
19 |             let kerr = withUnsafeMutablePointer(to: &info) {
20 |                 $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
21 |                     task_info(mach_task_self_, thread_flavor_t(TASK_VM_INFO), $0, &infoCount)
   |                               `- error: cannot find 'mach_task_self_' in scope
22 |                 }
23 |             }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:21:48: error: cannot find 'thread_flavor_t' in scope
19 |             let kerr = withUnsafeMutablePointer(to: &info) {
20 |                 $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
21 |                     task_info(mach_task_self_, thread_flavor_t(TASK_VM_INFO), $0, &infoCount)
   |                                                `- error: cannot find 'thread_flavor_t' in scope
22 |                 }
23 |             }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:21:64: error: cannot find 'TASK_VM_INFO' in scope
19 |             let kerr = withUnsafeMutablePointer(to: &info) {
20 |                 $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
21 |                     task_info(mach_task_self_, thread_flavor_t(TASK_VM_INFO), $0, &infoCount)
   |                                                                `- error: cannot find 'TASK_VM_INFO' in scope
22 |                 }
23 |             }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:20:20: error: generic parameter 'T' could not be inferred
18 |
19 |             let kerr = withUnsafeMutablePointer(to: &info) {
20 |                 $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
   |                    `- error: generic parameter 'T' could not be inferred
21 |                     task_info(mach_task_self_, thread_flavor_t(TASK_VM_INFO), $0, &infoCount)
22 |                 }
Swift.UnsafeMutablePointer:2:17: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | extension UnsafeMutablePointer where Pointee : ~Copyable {
2 |     public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable
  |                 `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 | }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:24:39: error: cannot find 'KERN_SUCCESS' in scope
22 |                 }
23 |             }
24 |             let used: Int64 = kerr == KERN_SUCCESS ? Int64(info.phys_footprint) : 0
   |                                       `- error: cannot find 'KERN_SUCCESS' in scope
25 |             let compressed: Int64 = kerr == KERN_SUCCESS ? Int64(info.compressed) : 0
26 |             #if targetEnvironment(simulator)
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:25:45: error: cannot find 'KERN_SUCCESS' in scope
23 |             }
24 |             let used: Int64 = kerr == KERN_SUCCESS ? Int64(info.phys_footprint) : 0
25 |             let compressed: Int64 = kerr == KERN_SUCCESS ? Int64(info.compressed) : 0
   |                                             `- error: cannot find 'KERN_SUCCESS' in scope
26 |             #if targetEnvironment(simulator)
27 |             // In the simulator `limit_bytes_remaining` returns -1
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:33:44: error: cannot find 'KERN_SUCCESS' in scope
31 |             let remaining: Int64 = max(limit - used, 0)
32 |             #else
33 |             let remaining: Int64 = kerr == KERN_SUCCESS ? Int64(info.limit_bytes_remaining) : 0
   |                                            `- error: cannot find 'KERN_SUCCESS' in scope
34 |             #endif
35 |             return Footprint.Memory(
[5/5] Compiling Footprint Footprint.swift
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:43:45: error: cannot find 'mach_msg_type_number_t' in scope
41 |         }
42 |
43 |         private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
   |                                             `- error: cannot find 'mach_msg_type_number_t' in scope
44 |         private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
45 |     }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:43:81: error: cannot find type 'task_basic_info_data_t' in scope
41 |         }
42 |
43 |         private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
   |                                                                                 `- error: cannot find type 'task_basic_info_data_t' in scope
44 |         private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
45 |     }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:44:42: error: cannot find 'mach_msg_type_number_t' in scope
42 |
43 |         private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
44 |         private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
   |                                          `- error: cannot find 'mach_msg_type_number_t' in scope
45 |     }
46 | }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:44:78: error: cannot find type 'task_vm_info_data_t' in scope
42 |
43 |         private let TASK_BASIC_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_basic_info_data_t>.size / MemoryLayout<UInt32>.size)
44 |         private let TASK_VM_INFO_COUNT = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
   |                                                                              `- error: cannot find type 'task_vm_info_data_t' in scope
45 |     }
46 | }
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:325:40: error: cannot find type 'DispatchSourceMemoryPressure' in scope
323 |     private let _heartbeatInterval = 500 // milliseconds
324 |     private let _provider: MemoryProvider
325 |     private let _memoryPressureSource: DispatchSourceMemoryPressure
    |                                        `- error: cannot find type 'DispatchSourceMemoryPressure' in scope
326 |
327 |     private var _observers: [(Memory) -> Void] = []
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:111:28: error: cannot find 'mach_absolute_time' in scope
109 |
110 |             self.timestamp = {
111 |                 let time = mach_absolute_time()
    |                            `- error: cannot find 'mach_absolute_time' in scope
112 |                 var timebaseInfo = mach_timebase_info_data_t()
113 |                 guard mach_timebase_info(&timebaseInfo) == KERN_SUCCESS else {
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:112:36: error: cannot find 'mach_timebase_info_data_t' in scope
110 |             self.timestamp = {
111 |                 let time = mach_absolute_time()
112 |                 var timebaseInfo = mach_timebase_info_data_t()
    |                                    `- error: cannot find 'mach_timebase_info_data_t' in scope
113 |                 guard mach_timebase_info(&timebaseInfo) == KERN_SUCCESS else {
114 |                     return 0
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:113:23: error: cannot find 'mach_timebase_info' in scope
111 |                 let time = mach_absolute_time()
112 |                 var timebaseInfo = mach_timebase_info_data_t()
113 |                 guard mach_timebase_info(&timebaseInfo) == KERN_SUCCESS else {
    |                       `- error: cannot find 'mach_timebase_info' in scope
114 |                     return 0
115 |                 }
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:113:60: error: cannot find 'KERN_SUCCESS' in scope
111 |                 let time = mach_absolute_time()
112 |                 var timebaseInfo = mach_timebase_info_data_t()
113 |                 guard mach_timebase_info(&timebaseInfo) == KERN_SUCCESS else {
    |                                                            `- error: cannot find 'KERN_SUCCESS' in scope
114 |                     return 0
115 |                 }
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:188:48: error: type 'DispatchSource' has no member 'makeMemoryPressureSource'
186 |
187 |         _timerSource = DispatchSource.makeTimerSource(queue: _queue)
188 |         _memoryPressureSource = DispatchSource.makeMemoryPressureSource(eventMask: [.all], queue: _queue)
    |                                                `- error: type 'DispatchSource' has no member 'makeMemoryPressureSource'
189 |
190 |         _timerSource.schedule(deadline: .now(), repeating: .milliseconds(500), leeway: .milliseconds(500))
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:188:86: error: reference to member 'all' cannot be resolved without a contextual type
186 |
187 |         _timerSource = DispatchSource.makeTimerSource(queue: _queue)
188 |         _memoryPressureSource = DispatchSource.makeMemoryPressureSource(eventMask: [.all], queue: _queue)
    |                                                                                      `- error: reference to member 'all' cannot be resolved without a contextual type
189 |
190 |         _timerSource.schedule(deadline: .now(), repeating: .milliseconds(500), leeway: .milliseconds(500))
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:232:49: error: cannot infer contextual base in reference to member 'critical'
230 |
231 |     private func currentPressureFromSource() -> Memory.State {
232 |         if _memoryPressureSource.data.contains(.critical) {
    |                                                 `- error: cannot infer contextual base in reference to member 'critical'
233 |             return .critical
234 |         } else if _memoryPressureSource.data.contains(.warning) {
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:234:56: error: cannot infer contextual base in reference to member 'warning'
232 |         if _memoryPressureSource.data.contains(.critical) {
233 |             return .critical
234 |         } else if _memoryPressureSource.data.contains(.warning) {
    |                                                        `- error: cannot infer contextual base in reference to member 'warning'
235 |             return .warning
236 |         }
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:246:13: warning: capture of 'action' with non-sendable type '(Footprint.Memory) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
244 |         }
245 |         DispatchQueue.global().async {
246 |             action(mem)
    |             |- warning: capture of 'action' with non-sendable type '(Footprint.Memory) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
247 |         }
248 |     }
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:246:20: warning: capture of 'mem' with non-sendable type 'Footprint.Memory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 37 |     /// A structure that represents the different values required for easier memory
 38 |     /// handling throughout your apps lifetime.
 39 |     public struct Memory {
    |                   `- note: consider making struct 'Memory' conform to the 'Sendable' protocol
 40 |
 41 |         /// State describes how close to app termination your app is based on memory.
    :
244 |         }
245 |         DispatchQueue.global().async {
246 |             action(mem)
    |                    `- warning: capture of 'mem' with non-sendable type 'Footprint.Memory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 |         }
248 |     }
BUILD FAILURE 6.0 linux