Build Information
Failed to build GraphicsLibs.Swift, reference 0.0.1 (f8217e), with Swift 6.1 for Android on 27 May 2025 19:25:12 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Hideyuki-Machida/GraphicsLibs.Swift.git
Reference: 0.0.1
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/Hideyuki-Machida/GraphicsLibs.Swift
* tag 0.0.1 -> FETCH_HEAD
HEAD is now at f8217e8 update
Cloned https://github.com/Hideyuki-Machida/GraphicsLibs.Swift.git
Revision (git rev-parse @):
f8217e8bb3af77add4ad59ace8e52c71f9708a94
SUCCESS checkout https://github.com/Hideyuki-Machida/GraphicsLibs.Swift.git at 0.0.1
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/Hideyuki-Machida/GraphicsLibs.Swift.git
https://github.com/Hideyuki-Machida/GraphicsLibs.Swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "processlogger.swift",
"requirement" : {
"branch" : [
"master"
]
},
"type" : "sourceControl",
"url" : "https://github.com/Hideyuki-Machida/ProcessLogger.Swift"
}
],
"manifest_display_name" : "GraphicsLibs.Swift",
"name" : "GraphicsLibs.Swift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "GraphicsLibs.Swift",
"targets" : [
"GraphicsLibs.Swift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "GraphicsLibs_SwiftTests",
"module_type" : "SwiftTarget",
"name" : "GraphicsLibs.SwiftTests",
"path" : "Tests/GraphicsLibs.SwiftTests",
"sources" : [
"GraphicsLibs_SwiftTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"GraphicsLibs.Swift"
],
"type" : "test"
},
{
"c99name" : "GraphicsLibs_Swift",
"module_type" : "SwiftTarget",
"name" : "GraphicsLibs.Swift",
"path" : "Sources/GraphicsLibs.Swift",
"product_dependencies" : [
"ProcessLogger.Swift"
],
"product_memberships" : [
"GraphicsLibs.Swift"
],
"sources" : [
"Extension/AVCaptureColorSpace+Extension.swift",
"Extension/AVCaptureDevice.Position+Extension.swift",
"Extension/AVDepthData+Extended.swift",
"Extension/CGAffineTransform+Extended.swift",
"Extension/CIImage+Extended.swift",
"Extension/CMFormatDescription+Extension.swift",
"Extension/CMSampleBuffer+Extension.swift",
"Extension/CMTime+Codable.swift",
"Extension/CMTime+Extended.swift",
"Extension/CMTimeRange+Codable.swift",
"Extension/CMTimeRange+Extentded.swift",
"Extension/CVPixelBuffer+Extension.swift",
"Extension/Geom/CGAffineTransform+Extension.swift",
"Extension/Geom/CGPoint+Extension.swift",
"Extension/Geom/CGRect+Extension.swift",
"Extension/Geom/CGSize+Extension.swift",
"Extension/Geom/SKNode+Extension.swift",
"Extension/TimeInterval+Extended.swift",
"Extension/UIImage+Extension.swift",
"Extension/UIInterfaceOrientation+Extension.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/Hideyuki-Machida/ProcessLogger.Swift
[1/29] Fetching processlogger.swift
Fetched https://github.com/Hideyuki-Machida/ProcessLogger.Swift from cache (0.20s)
Creating working copy for https://github.com/Hideyuki-Machida/ProcessLogger.Swift
Working copy of https://github.com/Hideyuki-Machida/ProcessLogger.Swift resolved at master (624f37e)
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module ProcessLogger_Swift
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:47:45: error: cannot find 'mach_msg_type_number_t' in scope
45 | extension ProcessLogger {
46 | public class Device {
47 | private static let basicInfoCount = 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
48 |
49 | public init() {}
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:47:81: error: cannot find type 'task_basic_info_data_t' in scope
45 | extension ProcessLogger {
46 | public class Device {
47 | private static let basicInfoCount = 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
48 |
49 | public init() {}
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:68:101: error: cannot find type 'thread_basic_info' in scope
66 | }
67 |
68 | public static func threadBasicInfo(threadList: thread_act_array_t, threadCount: UInt32) -> [thread_basic_info] {
| `- error: cannot find type 'thread_basic_info' in scope
69 | var threadInfo: thread_basic_info = thread_basic_info()
70 | let threadInfoList: [thread_basic_info] = (0 ..< Int(threadCount)).compactMap { index -> thread_basic_info? in
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:68:56: error: cannot find type 'thread_act_array_t' in scope
66 | }
67 |
68 | public static func threadBasicInfo(threadList: thread_act_array_t, threadCount: UInt32) -> [thread_basic_info] {
| `- error: cannot find type 'thread_act_array_t' in scope
69 | var threadInfo: thread_basic_info = thread_basic_info()
70 | let threadInfoList: [thread_basic_info] = (0 ..< Int(threadCount)).compactMap { index -> thread_basic_info? in
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:84:61: error: cannot find type 'thread_basic_info' in scope
82 | }
83 |
84 | public func thredBasicInfo(machTID: mach_port_t) -> thread_basic_info? {
| `- error: cannot find type 'thread_basic_info' in scope
85 | var threadInfo: thread_basic_info = thread_basic_info()
86 | var threadCount: UInt32 = ProcessLogger.Device.basicInfoCount
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:84:45: error: cannot find type 'mach_port_t' in scope
82 | }
83 |
84 | public func thredBasicInfo(machTID: mach_port_t) -> thread_basic_info? {
| `- error: cannot find type 'mach_port_t' in scope
85 | var threadInfo: thread_basic_info = thread_basic_info()
86 | var threadCount: UInt32 = ProcessLogger.Device.basicInfoCount
[5/5] Compiling ProcessLogger_Swift ProcessLogger_Swift.swift
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:47:45: error: cannot find 'mach_msg_type_number_t' in scope
45 | extension ProcessLogger {
46 | public class Device {
47 | private static let basicInfoCount = 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
48 |
49 | public init() {}
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:47:81: error: cannot find type 'task_basic_info_data_t' in scope
45 | extension ProcessLogger {
46 | public class Device {
47 | private static let basicInfoCount = 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
48 |
49 | public init() {}
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:68:101: error: cannot find type 'thread_basic_info' in scope
66 | }
67 |
68 | public static func threadBasicInfo(threadList: thread_act_array_t, threadCount: UInt32) -> [thread_basic_info] {
| `- error: cannot find type 'thread_basic_info' in scope
69 | var threadInfo: thread_basic_info = thread_basic_info()
70 | let threadInfoList: [thread_basic_info] = (0 ..< Int(threadCount)).compactMap { index -> thread_basic_info? in
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:68:56: error: cannot find type 'thread_act_array_t' in scope
66 | }
67 |
68 | public static func threadBasicInfo(threadList: thread_act_array_t, threadCount: UInt32) -> [thread_basic_info] {
| `- error: cannot find type 'thread_act_array_t' in scope
69 | var threadInfo: thread_basic_info = thread_basic_info()
70 | let threadInfoList: [thread_basic_info] = (0 ..< Int(threadCount)).compactMap { index -> thread_basic_info? in
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:84:61: error: cannot find type 'thread_basic_info' in scope
82 | }
83 |
84 | public func thredBasicInfo(machTID: mach_port_t) -> thread_basic_info? {
| `- error: cannot find type 'thread_basic_info' in scope
85 | var threadInfo: thread_basic_info = thread_basic_info()
86 | var threadCount: UInt32 = ProcessLogger.Device.basicInfoCount
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:84:45: error: cannot find type 'mach_port_t' in scope
82 | }
83 |
84 | public func thredBasicInfo(machTID: mach_port_t) -> thread_basic_info? {
| `- error: cannot find type 'mach_port_t' in scope
85 | var threadInfo: thread_basic_info = thread_basic_info()
86 | var threadCount: UInt32 = ProcessLogger.Device.basicInfoCount
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:53:23: error: cannot find type 'mach_task_basic_info' in scope
51 | public static func usedMemory() -> UInt64? {
52 | // タスク情報を取得
53 | var info: mach_task_basic_info = mach_task_basic_info()
| `- error: cannot find type 'mach_task_basic_info' in scope
54 | // `info`の値からその型に必要なメモリを取得
55 | var count: UInt32 = UInt32(MemoryLayout.size(ofValue: info) / MemoryLayout<integer_t>.size)
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:55:88: error: cannot find type 'integer_t' in scope
53 | var info: mach_task_basic_info = mach_task_basic_info()
54 | // `info`の値からその型に必要なメモリを取得
55 | var count: UInt32 = UInt32(MemoryLayout.size(ofValue: info) / MemoryLayout<integer_t>.size)
| `- error: cannot find type 'integer_t' in scope
56 | let result: kern_return_t = withUnsafeMutablePointer(to: &info) {
57 | task_info(mach_task_self_,
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:56:25: error: cannot find type 'kern_return_t' in scope
54 | // `info`の値からその型に必要なメモリを取得
55 | var count: UInt32 = UInt32(MemoryLayout.size(ofValue: info) / MemoryLayout<integer_t>.size)
56 | let result: kern_return_t = withUnsafeMutablePointer(to: &info) {
| `- error: cannot find type 'kern_return_t' in scope
57 | task_info(mach_task_self_,
58 | task_flavor_t(MACH_TASK_BASIC_INFO),
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:65:30: error: cannot find 'KERN_SUCCESS' in scope
63 | }
64 | // MB表記に変換して返却
65 | return result == KERN_SUCCESS ? info.resident_size / 1024 / 1024 : nil
| `- error: cannot find 'KERN_SUCCESS' in scope
66 | }
67 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:69:29: error: cannot find type 'thread_basic_info' in scope
67 |
68 | public static func threadBasicInfo(threadList: thread_act_array_t, threadCount: UInt32) -> [thread_basic_info] {
69 | var threadInfo: thread_basic_info = thread_basic_info()
| `- error: cannot find type 'thread_basic_info' in scope
70 | let threadInfoList: [thread_basic_info] = (0 ..< Int(threadCount)).compactMap { index -> thread_basic_info? in
71 | var threadInfoCount = UInt32(THREAD_INFO_MAX)
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:70:34: error: cannot find type 'thread_basic_info' in scope
68 | public static func threadBasicInfo(threadList: thread_act_array_t, threadCount: UInt32) -> [thread_basic_info] {
69 | var threadInfo: thread_basic_info = thread_basic_info()
70 | let threadInfoList: [thread_basic_info] = (0 ..< Int(threadCount)).compactMap { index -> thread_basic_info? in
| `- error: cannot find type 'thread_basic_info' in scope
71 | var threadInfoCount = UInt32(THREAD_INFO_MAX)
72 | let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:85:29: error: cannot find type 'thread_basic_info' in scope
83 |
84 | public func thredBasicInfo(machTID: mach_port_t) -> thread_basic_info? {
85 | var threadInfo: thread_basic_info = thread_basic_info()
| `- error: cannot find type 'thread_basic_info' in scope
86 | var threadCount: UInt32 = ProcessLogger.Device.basicInfoCount
87 | let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:88:42: error: cannot find 'integer_t' in scope
86 | var threadCount: UInt32 = ProcessLogger.Device.basicInfoCount
87 | let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
88 | $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
| `- error: cannot find 'integer_t' in scope
89 | thread_info(machTID, thread_flavor_t(THREAD_BASIC_INFO), $0, &threadCount)
90 | }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:89:21: error: cannot find 'thread_info' in scope
87 | let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
88 | $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
89 | thread_info(machTID, thread_flavor_t(THREAD_BASIC_INFO), $0, &threadCount)
| `- error: cannot find 'thread_info' in scope
90 | }
91 | }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:89:42: error: cannot find 'thread_flavor_t' in scope
87 | let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
88 | $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
89 | thread_info(machTID, thread_flavor_t(THREAD_BASIC_INFO), $0, &threadCount)
| `- error: cannot find 'thread_flavor_t' in scope
90 | }
91 | }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:89:58: error: cannot find 'THREAD_BASIC_INFO' in scope
87 | let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
88 | $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
89 | thread_info(machTID, thread_flavor_t(THREAD_BASIC_INFO), $0, &threadCount)
| `- error: cannot find 'THREAD_BASIC_INFO' in scope
90 | }
91 | }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:88:20: error: generic parameter 'T' could not be inferred
86 | var threadCount: UInt32 = ProcessLogger.Device.basicInfoCount
87 | let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
88 | $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
89 | thread_info(machTID, thread_flavor_t(THREAD_BASIC_INFO), $0, &threadCount)
90 | }
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/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:92:29: error: cannot find 'KERN_SUCCESS' in scope
90 | }
91 | }
92 | guard result == KERN_SUCCESS else { return nil }
| `- error: cannot find 'KERN_SUCCESS' in scope
93 |
94 | return threadInfo
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:99:33: error: cannot find type 'thread_act_array_t' in scope
97 |
98 | public static func usedCPU() -> Float {
99 | var threadActArray: thread_act_array_t?
| `- error: cannot find type 'thread_act_array_t' in scope
100 | var threadCount: mach_msg_type_number_t = 0
101 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:100:30: error: cannot find type 'mach_msg_type_number_t' in scope
98 | public static func usedCPU() -> Float {
99 | var threadActArray: thread_act_array_t?
100 | var threadCount: mach_msg_type_number_t = 0
| `- error: cannot find type 'mach_msg_type_number_t' in scope
101 |
102 | guard
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:103:17: error: cannot find 'task_threads' in scope
101 |
102 | guard
103 | task_threads(mach_task_self_, &threadActArray, &threadCount) == KERN_SUCCESS,
| `- error: cannot find 'task_threads' in scope
104 | let threadList: thread_act_array_t = threadActArray
105 | else { return 0 }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:103:30: error: cannot find 'mach_task_self_' in scope
101 |
102 | guard
103 | task_threads(mach_task_self_, &threadActArray, &threadCount) == KERN_SUCCESS,
| `- error: cannot find 'mach_task_self_' in scope
104 | let threadList: thread_act_array_t = threadActArray
105 | else { return 0 }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:103:81: error: cannot find 'KERN_SUCCESS' in scope
101 |
102 | guard
103 | task_threads(mach_task_self_, &threadActArray, &threadCount) == KERN_SUCCESS,
| `- error: cannot find 'KERN_SUCCESS' in scope
104 | let threadList: thread_act_array_t = threadActArray
105 | else { return 0 }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:104:33: error: cannot find type 'thread_act_array_t' in scope
102 | guard
103 | task_threads(mach_task_self_, &threadActArray, &threadCount) == KERN_SUCCESS,
104 | let threadList: thread_act_array_t = threadActArray
| `- error: cannot find type 'thread_act_array_t' in scope
105 | else { return 0 }
106 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:104:54: error: type of expression is ambiguous without a type annotation
102 | guard
103 | task_threads(mach_task_self_, &threadActArray, &threadCount) == KERN_SUCCESS,
104 | let threadList: thread_act_array_t = threadActArray
| `- error: type of expression is ambiguous without a type annotation
105 | else { return 0 }
106 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:109:46: error: cannot find type 'thread_t' in scope
107 | // thread_act_array_t はメモリリークするので必ず破棄する
108 | defer {
109 | let size: Int = MemoryLayout<thread_t>.size * Int(threadCount)
| `- error: cannot find type 'thread_t' in scope
110 | vm_deallocate(mach_task_self_, vm_address_t(bitPattern: threadList), vm_size_t(size))
111 | }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:110:17: error: cannot find 'vm_deallocate' in scope
108 | defer {
109 | let size: Int = MemoryLayout<thread_t>.size * Int(threadCount)
110 | vm_deallocate(mach_task_self_, vm_address_t(bitPattern: threadList), vm_size_t(size))
| `- error: cannot find 'vm_deallocate' in scope
111 | }
112 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:110:31: error: cannot find 'mach_task_self_' in scope
108 | defer {
109 | let size: Int = MemoryLayout<thread_t>.size * Int(threadCount)
110 | vm_deallocate(mach_task_self_, vm_address_t(bitPattern: threadList), vm_size_t(size))
| `- error: cannot find 'mach_task_self_' in scope
111 | }
112 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:110:48: error: cannot find 'vm_address_t' in scope
108 | defer {
109 | let size: Int = MemoryLayout<thread_t>.size * Int(threadCount)
110 | vm_deallocate(mach_task_self_, vm_address_t(bitPattern: threadList), vm_size_t(size))
| `- error: cannot find 'vm_address_t' in scope
111 | }
112 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:110:86: error: cannot find 'vm_size_t' in scope
108 | defer {
109 | let size: Int = MemoryLayout<thread_t>.size * Int(threadCount)
110 | vm_deallocate(mach_task_self_, vm_address_t(bitPattern: threadList), vm_size_t(size))
| `- error: cannot find 'vm_size_t' in scope
111 | }
112 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:113:34: error: cannot find type 'thread_basic_info' in scope
111 | }
112 |
113 | let threadInfoList: [thread_basic_info] = ProcessLogger.Device.threadBasicInfo(threadList: threadList, threadCount: threadCount)
| `- error: cannot find type 'thread_basic_info' in scope
114 |
115 | // 各スレッドからCPU使用率を算出し合計を全体のCPU使用率とする
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:117:50: error: cannot find 'TH_FLAGS_IDLE' in scope
115 | // 各スレッドからCPU使用率を算出し合計を全体のCPU使用率とする
116 | return threadInfoList.compactMap { (threadInfo: thread_basic_info) -> Float? in
117 | let isIdle = threadInfo.flags == TH_FLAGS_IDLE
| `- error: cannot find 'TH_FLAGS_IDLE' in scope
118 | return !isIdle ? (Float(threadInfo.cpu_usage) / Float(TH_USAGE_SCALE)) * 100 : nil
119 | }.reduce(0, +) // 合計算出
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:118:71: error: cannot find 'TH_USAGE_SCALE' in scope
116 | return threadInfoList.compactMap { (threadInfo: thread_basic_info) -> Float? in
117 | let isIdle = threadInfo.flags == TH_FLAGS_IDLE
118 | return !isIdle ? (Float(threadInfo.cpu_usage) / Float(TH_USAGE_SCALE)) * 100 : nil
| `- error: cannot find 'TH_USAGE_SCALE' in scope
119 | }.reduce(0, +) // 合計算出
120 | }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:116:61: error: cannot find type 'thread_basic_info' in scope
114 |
115 | // 各スレッドからCPU使用率を算出し合計を全体のCPU使用率とする
116 | return threadInfoList.compactMap { (threadInfo: thread_basic_info) -> Float? in
| `- error: cannot find type 'thread_basic_info' in scope
117 | let isIdle = threadInfo.flags == TH_FLAGS_IDLE
118 | return !isIdle ? (Float(threadInfo.cpu_usage) / Float(TH_USAGE_SCALE)) * 100 : nil
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-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/3] Emitting module ProcessLogger_Swift
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:47:45: error: cannot find 'mach_msg_type_number_t' in scope
45 | extension ProcessLogger {
46 | public class Device {
47 | private static let basicInfoCount = 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
48 |
49 | public init() {}
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:47:81: error: cannot find type 'task_basic_info_data_t' in scope
45 | extension ProcessLogger {
46 | public class Device {
47 | private static let basicInfoCount = 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
48 |
49 | public init() {}
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:68:101: error: cannot find type 'thread_basic_info' in scope
66 | }
67 |
68 | public static func threadBasicInfo(threadList: thread_act_array_t, threadCount: UInt32) -> [thread_basic_info] {
| `- error: cannot find type 'thread_basic_info' in scope
69 | var threadInfo: thread_basic_info = thread_basic_info()
70 | let threadInfoList: [thread_basic_info] = (0 ..< Int(threadCount)).compactMap { index -> thread_basic_info? in
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:68:56: error: cannot find type 'thread_act_array_t' in scope
66 | }
67 |
68 | public static func threadBasicInfo(threadList: thread_act_array_t, threadCount: UInt32) -> [thread_basic_info] {
| `- error: cannot find type 'thread_act_array_t' in scope
69 | var threadInfo: thread_basic_info = thread_basic_info()
70 | let threadInfoList: [thread_basic_info] = (0 ..< Int(threadCount)).compactMap { index -> thread_basic_info? in
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:84:61: error: cannot find type 'thread_basic_info' in scope
82 | }
83 |
84 | public func thredBasicInfo(machTID: mach_port_t) -> thread_basic_info? {
| `- error: cannot find type 'thread_basic_info' in scope
85 | var threadInfo: thread_basic_info = thread_basic_info()
86 | var threadCount: UInt32 = ProcessLogger.Device.basicInfoCount
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:84:45: error: cannot find type 'mach_port_t' in scope
82 | }
83 |
84 | public func thredBasicInfo(machTID: mach_port_t) -> thread_basic_info? {
| `- error: cannot find type 'mach_port_t' in scope
85 | var threadInfo: thread_basic_info = thread_basic_info()
86 | var threadCount: UInt32 = ProcessLogger.Device.basicInfoCount
[3/3] Compiling ProcessLogger_Swift ProcessLogger_Swift.swift
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:47:45: error: cannot find 'mach_msg_type_number_t' in scope
45 | extension ProcessLogger {
46 | public class Device {
47 | private static let basicInfoCount = 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
48 |
49 | public init() {}
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:47:81: error: cannot find type 'task_basic_info_data_t' in scope
45 | extension ProcessLogger {
46 | public class Device {
47 | private static let basicInfoCount = 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
48 |
49 | public init() {}
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:68:101: error: cannot find type 'thread_basic_info' in scope
66 | }
67 |
68 | public static func threadBasicInfo(threadList: thread_act_array_t, threadCount: UInt32) -> [thread_basic_info] {
| `- error: cannot find type 'thread_basic_info' in scope
69 | var threadInfo: thread_basic_info = thread_basic_info()
70 | let threadInfoList: [thread_basic_info] = (0 ..< Int(threadCount)).compactMap { index -> thread_basic_info? in
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:68:56: error: cannot find type 'thread_act_array_t' in scope
66 | }
67 |
68 | public static func threadBasicInfo(threadList: thread_act_array_t, threadCount: UInt32) -> [thread_basic_info] {
| `- error: cannot find type 'thread_act_array_t' in scope
69 | var threadInfo: thread_basic_info = thread_basic_info()
70 | let threadInfoList: [thread_basic_info] = (0 ..< Int(threadCount)).compactMap { index -> thread_basic_info? in
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:84:61: error: cannot find type 'thread_basic_info' in scope
82 | }
83 |
84 | public func thredBasicInfo(machTID: mach_port_t) -> thread_basic_info? {
| `- error: cannot find type 'thread_basic_info' in scope
85 | var threadInfo: thread_basic_info = thread_basic_info()
86 | var threadCount: UInt32 = ProcessLogger.Device.basicInfoCount
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:84:45: error: cannot find type 'mach_port_t' in scope
82 | }
83 |
84 | public func thredBasicInfo(machTID: mach_port_t) -> thread_basic_info? {
| `- error: cannot find type 'mach_port_t' in scope
85 | var threadInfo: thread_basic_info = thread_basic_info()
86 | var threadCount: UInt32 = ProcessLogger.Device.basicInfoCount
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:53:23: error: cannot find type 'mach_task_basic_info' in scope
51 | public static func usedMemory() -> UInt64? {
52 | // タスク情報を取得
53 | var info: mach_task_basic_info = mach_task_basic_info()
| `- error: cannot find type 'mach_task_basic_info' in scope
54 | // `info`の値からその型に必要なメモリを取得
55 | var count: UInt32 = UInt32(MemoryLayout.size(ofValue: info) / MemoryLayout<integer_t>.size)
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:55:88: error: cannot find type 'integer_t' in scope
53 | var info: mach_task_basic_info = mach_task_basic_info()
54 | // `info`の値からその型に必要なメモリを取得
55 | var count: UInt32 = UInt32(MemoryLayout.size(ofValue: info) / MemoryLayout<integer_t>.size)
| `- error: cannot find type 'integer_t' in scope
56 | let result: kern_return_t = withUnsafeMutablePointer(to: &info) {
57 | task_info(mach_task_self_,
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:56:25: error: cannot find type 'kern_return_t' in scope
54 | // `info`の値からその型に必要なメモリを取得
55 | var count: UInt32 = UInt32(MemoryLayout.size(ofValue: info) / MemoryLayout<integer_t>.size)
56 | let result: kern_return_t = withUnsafeMutablePointer(to: &info) {
| `- error: cannot find type 'kern_return_t' in scope
57 | task_info(mach_task_self_,
58 | task_flavor_t(MACH_TASK_BASIC_INFO),
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:65:30: error: cannot find 'KERN_SUCCESS' in scope
63 | }
64 | // MB表記に変換して返却
65 | return result == KERN_SUCCESS ? info.resident_size / 1024 / 1024 : nil
| `- error: cannot find 'KERN_SUCCESS' in scope
66 | }
67 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:69:29: error: cannot find type 'thread_basic_info' in scope
67 |
68 | public static func threadBasicInfo(threadList: thread_act_array_t, threadCount: UInt32) -> [thread_basic_info] {
69 | var threadInfo: thread_basic_info = thread_basic_info()
| `- error: cannot find type 'thread_basic_info' in scope
70 | let threadInfoList: [thread_basic_info] = (0 ..< Int(threadCount)).compactMap { index -> thread_basic_info? in
71 | var threadInfoCount = UInt32(THREAD_INFO_MAX)
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:70:34: error: cannot find type 'thread_basic_info' in scope
68 | public static func threadBasicInfo(threadList: thread_act_array_t, threadCount: UInt32) -> [thread_basic_info] {
69 | var threadInfo: thread_basic_info = thread_basic_info()
70 | let threadInfoList: [thread_basic_info] = (0 ..< Int(threadCount)).compactMap { index -> thread_basic_info? in
| `- error: cannot find type 'thread_basic_info' in scope
71 | var threadInfoCount = UInt32(THREAD_INFO_MAX)
72 | let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:85:29: error: cannot find type 'thread_basic_info' in scope
83 |
84 | public func thredBasicInfo(machTID: mach_port_t) -> thread_basic_info? {
85 | var threadInfo: thread_basic_info = thread_basic_info()
| `- error: cannot find type 'thread_basic_info' in scope
86 | var threadCount: UInt32 = ProcessLogger.Device.basicInfoCount
87 | let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:88:42: error: cannot find 'integer_t' in scope
86 | var threadCount: UInt32 = ProcessLogger.Device.basicInfoCount
87 | let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
88 | $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
| `- error: cannot find 'integer_t' in scope
89 | thread_info(machTID, thread_flavor_t(THREAD_BASIC_INFO), $0, &threadCount)
90 | }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:89:21: error: cannot find 'thread_info' in scope
87 | let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
88 | $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
89 | thread_info(machTID, thread_flavor_t(THREAD_BASIC_INFO), $0, &threadCount)
| `- error: cannot find 'thread_info' in scope
90 | }
91 | }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:89:42: error: cannot find 'thread_flavor_t' in scope
87 | let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
88 | $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
89 | thread_info(machTID, thread_flavor_t(THREAD_BASIC_INFO), $0, &threadCount)
| `- error: cannot find 'thread_flavor_t' in scope
90 | }
91 | }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:89:58: error: cannot find 'THREAD_BASIC_INFO' in scope
87 | let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
88 | $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
89 | thread_info(machTID, thread_flavor_t(THREAD_BASIC_INFO), $0, &threadCount)
| `- error: cannot find 'THREAD_BASIC_INFO' in scope
90 | }
91 | }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:88:20: error: generic parameter 'T' could not be inferred
86 | var threadCount: UInt32 = ProcessLogger.Device.basicInfoCount
87 | let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
88 | $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
89 | thread_info(machTID, thread_flavor_t(THREAD_BASIC_INFO), $0, &threadCount)
90 | }
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/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:92:29: error: cannot find 'KERN_SUCCESS' in scope
90 | }
91 | }
92 | guard result == KERN_SUCCESS else { return nil }
| `- error: cannot find 'KERN_SUCCESS' in scope
93 |
94 | return threadInfo
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:99:33: error: cannot find type 'thread_act_array_t' in scope
97 |
98 | public static func usedCPU() -> Float {
99 | var threadActArray: thread_act_array_t?
| `- error: cannot find type 'thread_act_array_t' in scope
100 | var threadCount: mach_msg_type_number_t = 0
101 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:100:30: error: cannot find type 'mach_msg_type_number_t' in scope
98 | public static func usedCPU() -> Float {
99 | var threadActArray: thread_act_array_t?
100 | var threadCount: mach_msg_type_number_t = 0
| `- error: cannot find type 'mach_msg_type_number_t' in scope
101 |
102 | guard
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:103:17: error: cannot find 'task_threads' in scope
101 |
102 | guard
103 | task_threads(mach_task_self_, &threadActArray, &threadCount) == KERN_SUCCESS,
| `- error: cannot find 'task_threads' in scope
104 | let threadList: thread_act_array_t = threadActArray
105 | else { return 0 }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:103:30: error: cannot find 'mach_task_self_' in scope
101 |
102 | guard
103 | task_threads(mach_task_self_, &threadActArray, &threadCount) == KERN_SUCCESS,
| `- error: cannot find 'mach_task_self_' in scope
104 | let threadList: thread_act_array_t = threadActArray
105 | else { return 0 }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:103:81: error: cannot find 'KERN_SUCCESS' in scope
101 |
102 | guard
103 | task_threads(mach_task_self_, &threadActArray, &threadCount) == KERN_SUCCESS,
| `- error: cannot find 'KERN_SUCCESS' in scope
104 | let threadList: thread_act_array_t = threadActArray
105 | else { return 0 }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:104:33: error: cannot find type 'thread_act_array_t' in scope
102 | guard
103 | task_threads(mach_task_self_, &threadActArray, &threadCount) == KERN_SUCCESS,
104 | let threadList: thread_act_array_t = threadActArray
| `- error: cannot find type 'thread_act_array_t' in scope
105 | else { return 0 }
106 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:104:54: error: type of expression is ambiguous without a type annotation
102 | guard
103 | task_threads(mach_task_self_, &threadActArray, &threadCount) == KERN_SUCCESS,
104 | let threadList: thread_act_array_t = threadActArray
| `- error: type of expression is ambiguous without a type annotation
105 | else { return 0 }
106 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:109:46: error: cannot find type 'thread_t' in scope
107 | // thread_act_array_t はメモリリークするので必ず破棄する
108 | defer {
109 | let size: Int = MemoryLayout<thread_t>.size * Int(threadCount)
| `- error: cannot find type 'thread_t' in scope
110 | vm_deallocate(mach_task_self_, vm_address_t(bitPattern: threadList), vm_size_t(size))
111 | }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:110:17: error: cannot find 'vm_deallocate' in scope
108 | defer {
109 | let size: Int = MemoryLayout<thread_t>.size * Int(threadCount)
110 | vm_deallocate(mach_task_self_, vm_address_t(bitPattern: threadList), vm_size_t(size))
| `- error: cannot find 'vm_deallocate' in scope
111 | }
112 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:110:31: error: cannot find 'mach_task_self_' in scope
108 | defer {
109 | let size: Int = MemoryLayout<thread_t>.size * Int(threadCount)
110 | vm_deallocate(mach_task_self_, vm_address_t(bitPattern: threadList), vm_size_t(size))
| `- error: cannot find 'mach_task_self_' in scope
111 | }
112 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:110:48: error: cannot find 'vm_address_t' in scope
108 | defer {
109 | let size: Int = MemoryLayout<thread_t>.size * Int(threadCount)
110 | vm_deallocate(mach_task_self_, vm_address_t(bitPattern: threadList), vm_size_t(size))
| `- error: cannot find 'vm_address_t' in scope
111 | }
112 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:110:86: error: cannot find 'vm_size_t' in scope
108 | defer {
109 | let size: Int = MemoryLayout<thread_t>.size * Int(threadCount)
110 | vm_deallocate(mach_task_self_, vm_address_t(bitPattern: threadList), vm_size_t(size))
| `- error: cannot find 'vm_size_t' in scope
111 | }
112 |
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:113:34: error: cannot find type 'thread_basic_info' in scope
111 | }
112 |
113 | let threadInfoList: [thread_basic_info] = ProcessLogger.Device.threadBasicInfo(threadList: threadList, threadCount: threadCount)
| `- error: cannot find type 'thread_basic_info' in scope
114 |
115 | // 各スレッドからCPU使用率を算出し合計を全体のCPU使用率とする
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:117:50: error: cannot find 'TH_FLAGS_IDLE' in scope
115 | // 各スレッドからCPU使用率を算出し合計を全体のCPU使用率とする
116 | return threadInfoList.compactMap { (threadInfo: thread_basic_info) -> Float? in
117 | let isIdle = threadInfo.flags == TH_FLAGS_IDLE
| `- error: cannot find 'TH_FLAGS_IDLE' in scope
118 | return !isIdle ? (Float(threadInfo.cpu_usage) / Float(TH_USAGE_SCALE)) * 100 : nil
119 | }.reduce(0, +) // 合計算出
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:118:71: error: cannot find 'TH_USAGE_SCALE' in scope
116 | return threadInfoList.compactMap { (threadInfo: thread_basic_info) -> Float? in
117 | let isIdle = threadInfo.flags == TH_FLAGS_IDLE
118 | return !isIdle ? (Float(threadInfo.cpu_usage) / Float(TH_USAGE_SCALE)) * 100 : nil
| `- error: cannot find 'TH_USAGE_SCALE' in scope
119 | }.reduce(0, +) // 合計算出
120 | }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:116:61: error: cannot find type 'thread_basic_info' in scope
114 |
115 | // 各スレッドからCPU使用率を算出し合計を全体のCPU使用率とする
116 | return threadInfoList.compactMap { (threadInfo: thread_basic_info) -> Float? in
| `- error: cannot find type 'thread_basic_info' in scope
117 | let isIdle = threadInfo.flags == TH_FLAGS_IDLE
118 | return !isIdle ? (Float(threadInfo.cpu_usage) / Float(TH_USAGE_SCALE)) * 100 : nil
BUILD FAILURE 6.1 android