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 6.1 for Linux on 29 Apr 2025 20:48:24 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.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:             6.1
Building package at path:  $PWD
https://github.com/naftaly/Footprint.git
https://github.com/naftaly/Footprint.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Footprint",
  "name" : "Footprint",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Footprint",
      "targets" : [
        "Footprint"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FootprintTests",
      "module_type" : "SwiftTarget",
      "name" : "FootprintTests",
      "path" : "Tests/FootprintTests",
      "sources" : [
        "FootprintTests.swift"
      ],
      "target_dependencies" : [
        "Footprint"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Footprint",
      "module_type" : "SwiftTarget",
      "name" : "Footprint",
      "path" : "Sources/Footprint",
      "product_memberships" : [
        "Footprint"
      ],
      "sources" : [
        "DefaultMemoryProvider.swift",
        "Footprint.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-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:320:40: error: cannot find type 'DispatchSourceMemoryPressure' in scope
318 |     private let _heartbeatInterval = 500 // milliseconds
319 |     private let _provider: MemoryProvider
320 |     private let _memoryPressureSource: DispatchSourceMemoryPressure
    |                                        `- error: cannot find type 'DispatchSourceMemoryPressure' in scope
321 |
322 |     private var _observers: [(Memory) -> Void] = []
[4/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:320:40: error: cannot find type 'DispatchSourceMemoryPressure' in scope
318 |     private let _heartbeatInterval = 500 // milliseconds
319 |     private let _provider: MemoryProvider
320 |     private let _memoryPressureSource: DispatchSourceMemoryPressure
    |                                        `- error: cannot find type 'DispatchSourceMemoryPressure' in scope
321 |
322 |     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 |     }
[5/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.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafeMutablePointer {
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(
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] 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:320:40: error: cannot find type 'DispatchSourceMemoryPressure' in scope
318 |     private let _heartbeatInterval = 500 // milliseconds
319 |     private let _provider: MemoryProvider
320 |     private let _memoryPressureSource: DispatchSourceMemoryPressure
    |                                        `- error: cannot find type 'DispatchSourceMemoryPressure' in scope
321 |
322 |     private var _observers: [(Memory) -> Void] = []
[3/4] Compiling Footprint Footprint.swift
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:320:40: error: cannot find type 'DispatchSourceMemoryPressure' in scope
318 |     private let _heartbeatInterval = 500 // milliseconds
319 |     private let _provider: MemoryProvider
320 |     private let _memoryPressureSource: DispatchSourceMemoryPressure
    |                                        `- error: cannot find type 'DispatchSourceMemoryPressure' in scope
321 |
322 |     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 |         }
[4/4] 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.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafeMutablePointer {
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(
BUILD FAILURE 6.1 linux