The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GraphicsLibs.Swift, reference master (f8217e), with Swift 6.3 for Wasm on 11 Apr 2026 17:34:05 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Hideyuki-Machida/GraphicsLibs.Swift.git
Reference: master
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
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
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 master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/Hideyuki-Machida/GraphicsLibs.Swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-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.23s)
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:53:46: error: cannot find '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 '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:57:17: error: cannot find 'task_info' in scope
 55 |             var count: UInt32 = UInt32(MemoryLayout.size(ofValue: info) / MemoryLayout<integer_t>.size)
 56 |             let result: kern_return_t = withUnsafeMutablePointer(to: &info) {
 57 |                 task_info(mach_task_self_,
    |                 `- error: cannot find 'task_info' in scope
 58 |                           task_flavor_t(MACH_TASK_BASIC_INFO),
 59 |                           // `task_info`の引数にするためにInt32のメモリ配置と解釈させる必要がある
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:57:27: error: cannot find 'mach_task_self_' in scope
 55 |             var count: UInt32 = UInt32(MemoryLayout.size(ofValue: info) / MemoryLayout<integer_t>.size)
 56 |             let result: kern_return_t = withUnsafeMutablePointer(to: &info) {
 57 |                 task_info(mach_task_self_,
    |                           `- error: cannot find 'mach_task_self_' in scope
 58 |                           task_flavor_t(MACH_TASK_BASIC_INFO),
 59 |                           // `task_info`の引数にするためにInt32のメモリ配置と解釈させる必要がある
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:58:27: error: cannot find 'task_flavor_t' in scope
 56 |             let result: kern_return_t = withUnsafeMutablePointer(to: &info) {
 57 |                 task_info(mach_task_self_,
 58 |                           task_flavor_t(MACH_TASK_BASIC_INFO),
    |                           `- error: cannot find 'task_flavor_t' in scope
 59 |                           // `task_info`の引数にするためにInt32のメモリ配置と解釈させる必要がある
 60 |                           $0.withMemoryRebound(to: Int32.self, capacity: 1) { pointer in
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:58:41: error: cannot find 'MACH_TASK_BASIC_INFO' in scope
 56 |             let result: kern_return_t = withUnsafeMutablePointer(to: &info) {
 57 |                 task_info(mach_task_self_,
 58 |                           task_flavor_t(MACH_TASK_BASIC_INFO),
    |                                         `- error: cannot find 'MACH_TASK_BASIC_INFO' in scope
 59 |                           // `task_info`の引数にするためにInt32のメモリ配置と解釈させる必要がある
 60 |                           $0.withMemoryRebound(to: Int32.self, capacity: 1) { pointer in
/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:69:49: error: cannot find '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 '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:71:46: error: cannot find 'THREAD_INFO_MAX' 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
 71 |                 var threadInfoCount = UInt32(THREAD_INFO_MAX)
    |                                              `- error: cannot find 'THREAD_INFO_MAX' in scope
 72 |                 let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
 73 |                     $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:73:46: error: cannot find 'integer_t' in scope
 71 |                 var threadInfoCount = UInt32(THREAD_INFO_MAX)
 72 |                 let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
 73 |                     $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
    |                                              `- error: cannot find 'integer_t' in scope
 74 |                         thread_info(threadList[index], UInt32(THREAD_BASIC_INFO), $0, &threadInfoCount)
 75 |                     }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:74:25: error: cannot find 'thread_info' in scope
 72 |                 let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
 73 |                     $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
 74 |                         thread_info(threadList[index], UInt32(THREAD_BASIC_INFO), $0, &threadInfoCount)
    |                         `- error: cannot find 'thread_info' in scope
 75 |                     }
 76 |                 }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:74:63: error: cannot find 'THREAD_BASIC_INFO' in scope
 72 |                 let result: Int32 = withUnsafeMutablePointer(to: &threadInfo) {
 73 |                     $0.withMemoryRebound(to: integer_t.self, capacity: 1) {
 74 |                         thread_info(threadList[index], UInt32(THREAD_BASIC_INFO), $0, &threadInfoCount)
    |                                                               `- error: cannot find 'THREAD_BASIC_INFO' in scope
 75 |                     }
 76 |                 }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:78:30: error: cannot find 'KERN_SUCCESS' in scope
 76 |                 }
 77 |                 // スレッド情報が取れない = 該当スレッドのCPU使用率を0とみなす(基本nilが返ることはない)
 78 |                 if result != KERN_SUCCESS { return nil }
    |                              `- error: cannot find 'KERN_SUCCESS' in scope
 79 |                 return threadInfo
 80 |             }
/host/spi-builder-workspace/.build/checkouts/ProcessLogger.Swift/Sources/ProcessLogger.Swift/ProcessLogger_Swift.swift:70:102: 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:85:49: error: cannot find '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 '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: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.3 wasm