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 SwiftCPUDetect, reference 1.3.0 (c55818), with Swift 6.0 for Linux on 1 Nov 2024 22:33:50 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.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ITzTravelInTime/SwiftCPUDetect.git
Reference: 1.3.0
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/ITzTravelInTime/SwiftCPUDetect
 * tag               1.3.0      -> FETCH_HEAD
HEAD is now at c55818e Version 1.3.0
Cloned https://github.com/ITzTravelInTime/SwiftCPUDetect.git
Revision (git rev-parse @):
c55818e68209491c91b8f7bf1a9b042614658467
SUCCESS checkout https://github.com/ITzTravelInTime/SwiftCPUDetect.git at 1.3.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ITzTravelInTime/SwiftCPUDetect.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Compiling SwiftCPUDetect SwiftCPUDetect.swift
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:52:24: warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 50 |         //stores the obtained value so useless re-detections are avoided since this value isn't supposed to change at execution time
 51 |         struct MEM{
 52 |             static var state: CpuArchitecture? = nil
    |                        |- warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'state' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'state' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 53 |         }
 54 |
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:60:24: error: cannot find 'cpu_type_t' in scope
 58 |
 59 |             var size = size_t()
 60 |             var type = cpu_type_t()
    |                        `- error: cannot find 'cpu_type_t' in scope
 61 |             var subtype = cpu_subtype_t()
 62 |             var family = UInt32()
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:61:27: error: cannot find 'cpu_subtype_t' in scope
 59 |             var size = size_t()
 60 |             var type = cpu_type_t()
 61 |             var subtype = cpu_subtype_t()
    |                           `- error: cannot find 'cpu_subtype_t' in scope
 62 |             var family = UInt32()
 63 |
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:65:13: error: cannot find 'sysctlbyname' in scope
 63 |
 64 |             size = MemoryLayout.size(ofValue: type)
 65 |             sysctlbyname("hw.cputype", &type, &size, nil, 0);
    |             `- error: cannot find 'sysctlbyname' in scope
 66 |
 67 |             Printer.print("Detected CPU type number: \(type)")
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:65:54: error: 'nil' requires a contextual type
 63 |
 64 |             size = MemoryLayout.size(ofValue: type)
 65 |             sysctlbyname("hw.cputype", &type, &size, nil, 0);
    |                                                      `- error: 'nil' requires a contextual type
 66 |
 67 |             Printer.print("Detected CPU type number: \(type)")
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:70:13: error: cannot find 'sysctlbyname' in scope
 68 |
 69 |             size = MemoryLayout.size(ofValue: subtype)
 70 |             sysctlbyname("hw.cpusubtype", &subtype, &size, nil, 0);
    |             `- error: cannot find 'sysctlbyname' in scope
 71 |
 72 |             Printer.print("Detected CPU subtype number: \(subtype)")
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:70:60: error: 'nil' requires a contextual type
 68 |
 69 |             size = MemoryLayout.size(ofValue: subtype)
 70 |             sysctlbyname("hw.cpusubtype", &subtype, &size, nil, 0);
    |                                                            `- error: 'nil' requires a contextual type
 71 |
 72 |             Printer.print("Detected CPU subtype number: \(subtype)")
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:75:13: error: cannot find 'sysctlbyname' in scope
 73 |
 74 |             size = MemoryLayout.size(ofValue: family)
 75 |             sysctlbyname("hw.cpufamily", &family, &size, nil, 0);
    |             `- error: cannot find 'sysctlbyname' in scope
 76 |
 77 |             Printer.print("Detected CPU family number: \(family)")
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:75:58: error: 'nil' requires a contextual type
 73 |
 74 |             size = MemoryLayout.size(ofValue: family)
 75 |             sysctlbyname("hw.cpufamily", &family, &size, nil, 0);
    |                                                          `- error: 'nil' requires a contextual type
 76 |
 77 |             Printer.print("Detected CPU family number: \(family)")
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:79:24: error: cannot find 'CPU_TYPE_X86' in scope
 77 |             Printer.print("Detected CPU family number: \(family)")
 78 |
 79 |             if type == CPU_TYPE_X86{
    |                        `- error: cannot find 'CPU_TYPE_X86' in scope
 80 |                 if subtype & CPU_SUBTYPE_X86_64_ALL != 0 || HWInfo.CPU.is64Bit(){
 81 |                     ret = .intel64;
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:80:30: error: cannot find 'CPU_SUBTYPE_X86_64_ALL' in scope
 78 |
 79 |             if type == CPU_TYPE_X86{
 80 |                 if subtype & CPU_SUBTYPE_X86_64_ALL != 0 || HWInfo.CPU.is64Bit(){
    |                              `- error: cannot find 'CPU_SUBTYPE_X86_64_ALL' in scope
 81 |                     ret = .intel64;
 82 |                 }else{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:85:30: error: cannot find 'CPU_TYPE_X86_64' in scope
 83 |                     ret = .intel32
 84 |                 }
 85 |             }else if type == CPU_TYPE_X86_64{
    |                              `- error: cannot find 'CPU_TYPE_X86_64' in scope
 86 |                 ret = .intel64;
 87 |             }else if type == CPU_TYPE_ARM {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:87:30: error: cannot find 'CPU_TYPE_ARM' in scope
 85 |             }else if type == CPU_TYPE_X86_64{
 86 |                 ret = .intel64;
 87 |             }else if type == CPU_TYPE_ARM {
    |                              `- error: cannot find 'CPU_TYPE_ARM' in scope
 88 |                 if subtype & CPU_SUBTYPE_ARM64_ALL != 0{
 89 |                     ret = .arm64
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:88:30: error: cannot find 'CPU_SUBTYPE_ARM64_ALL' in scope
 86 |                 ret = .intel64;
 87 |             }else if type == CPU_TYPE_ARM {
 88 |                 if subtype & CPU_SUBTYPE_ARM64_ALL != 0{
    |                              `- error: cannot find 'CPU_SUBTYPE_ARM64_ALL' in scope
 89 |                     ret = .arm64
 90 |                 }else{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:93:30: error: cannot find 'CPU_TYPE_ARM64' in scope
 91 |                     ret = .arm
 92 |                 }
 93 |             }else if type == CPU_TYPE_ARM64{
    |                              `- error: cannot find 'CPU_TYPE_ARM64' in scope
 94 |                 ret = .arm64
 95 |             }else if type == CPU_TYPE_POWERPC{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:95:30: error: cannot find 'CPU_TYPE_POWERPC' in scope
 93 |             }else if type == CPU_TYPE_ARM64{
 94 |                 ret = .arm64
 95 |             }else if type == CPU_TYPE_POWERPC{
    |                              `- error: cannot find 'CPU_TYPE_POWERPC' in scope
 96 |                 if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
 97 |                     ret = .ppcG3
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:96:30: error: cannot find 'CPU_SUBTYPE_POWERPC_750' in scope
 94 |                 ret = .arm64
 95 |             }else if type == CPU_TYPE_POWERPC{
 96 |                 if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
    |                              `- error: cannot find 'CPU_SUBTYPE_POWERPC_750' in scope
 97 |                     ret = .ppcG3
 98 |                 }else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:96:78: error: cannot find 'CPUFAMILY_POWERPC_G3' in scope
 94 |                 ret = .arm64
 95 |             }else if type == CPU_TYPE_POWERPC{
 96 |                 if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
    |                                                                              `- error: cannot find 'CPUFAMILY_POWERPC_G3' in scope
 97 |                     ret = .ppcG3
 98 |                 }else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:98:36: error: cannot find 'CPU_SUBTYPE_POWERPC_7450' in scope
 96 |                 if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
 97 |                     ret = .ppcG3
 98 |                 }else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
    |                                    `- error: cannot find 'CPU_SUBTYPE_POWERPC_7450' in scope
 99 |                     ret = .ppcG4
100 |                 }else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:98:85: error: cannot find 'CPUFAMILY_POWERPC_G4' in scope
 96 |                 if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
 97 |                     ret = .ppcG3
 98 |                 }else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
    |                                                                                     `- error: cannot find 'CPUFAMILY_POWERPC_G4' in scope
 99 |                     ret = .ppcG4
100 |                 }else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:100:36: error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
 98 |                 }else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
 99 |                     ret = .ppcG4
100 |                 }else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
    |                                    `- error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
101 |                     ret = .ppcG5
102 |                 }else{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:100:84: error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
 98 |                 }else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
 99 |                     ret = .ppcG4
100 |                 }else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
    |                                                                                    `- error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
101 |                     ret = .ppcG5
102 |                 }else{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:105:30: error: cannot find 'CPU_TYPE_POWERPC64' in scope
103 |                     ret = .ppc
104 |                 }
105 |             }else if type == CPU_TYPE_POWERPC64{
    |                              `- error: cannot find 'CPU_TYPE_POWERPC64' in scope
106 |                 if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
107 |                     ret = .ppcG5
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:106:30: error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
104 |                 }
105 |             }else if type == CPU_TYPE_POWERPC64{
106 |                 if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
    |                              `- error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
107 |                     ret = .ppcG5
108 |                 }else{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:106:78: error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
104 |                 }
105 |             }else if type == CPU_TYPE_POWERPC64{
106 |                 if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
    |                                                                              `- error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
107 |                     ret = .ppcG5
108 |                 }else{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:158:24: warning: static property 'status' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 |         //stores the obtained value so useless re-detections are avoided since this value isn't supposed to change at execution time
157 |         struct MEM{
158 |             static var status: [CpuArchitecture]!
    |                        |- warning: static property 'status' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'status' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'status' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |         }
160 |
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:35: error: cannot find 'NSBundleExecutableArchitectureX86_64' in scope
160 |
161 |         if MEM.status == nil{
162 |             var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
    |                                   `- error: cannot find 'NSBundleExecutableArchitectureX86_64' in scope
163 |
164 |             if #available(OSX 11.0, iOS 14.0, *, watchOS 7.0, tvOS 14.0) {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:82: error: cannot find 'NSBundleExecutableArchitectureI386' in scope
160 |
161 |         if MEM.status == nil{
162 |             var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
    |                                                                                  `- error: cannot find 'NSBundleExecutableArchitectureI386' in scope
163 |
164 |             if #available(OSX 11.0, iOS 14.0, *, watchOS 7.0, tvOS 14.0) {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:127: error: cannot find 'NSBundleExecutableArchitecturePPC' in scope
160 |
161 |         if MEM.status == nil{
162 |             var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
    |                                                                                                                               `- error: cannot find 'NSBundleExecutableArchitecturePPC' in scope
163 |
164 |             if #available(OSX 11.0, iOS 14.0, *, watchOS 7.0, tvOS 14.0) {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:167: error: cannot find 'NSBundleExecutableArchitecturePPC64' in scope
160 |
161 |         if MEM.status == nil{
162 |             var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
    |                                                                                                                                                                       `- error: cannot find 'NSBundleExecutableArchitecturePPC64' in scope
163 |
164 |             if #available(OSX 11.0, iOS 14.0, *, watchOS 7.0, tvOS 14.0) {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:165:32: error: cannot find 'NSBundleExecutableArchitectureARM64' in scope
163 |
164 |             if #available(OSX 11.0, iOS 14.0, *, watchOS 7.0, tvOS 14.0) {
165 |                 supportedArchs[NSBundleExecutableArchitectureARM64] = arm64
    |                                `- error: cannot find 'NSBundleExecutableArchitectureARM64' in scope
166 |             }else{
167 |                 supportedArchs[16777228] = arm64
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Emitting module SwiftCPUDetect
/host/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:20:24: warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |         //stores the obtained value so useless re-detections are avoided since this value isn't supposed to change at execution time
19 |         struct MEM{
20 |             static var state: AppExecutionMode? = nil
   |                        |- warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'state' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'state' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |         }
22 |
/host/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:27:26: error: cannot find 'sysctlbyname' in scope
25 |             var size = ret.bitWidth / 8
26 |
27 |             let result = sysctlbyname("sysctl.proc_translated", &ret, &size, nil, 0)
   |                          `- error: cannot find 'sysctlbyname' in scope
28 |
29 |             if result == -1 {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:27:78: error: 'nil' requires a contextual type
25 |             var size = ret.bitWidth / 8
26 |
27 |             let result = sysctlbyname("sysctl.proc_translated", &ret, &size, nil, 0)
   |                                                                              `- error: 'nil' requires a contextual type
28 |
29 |             if result == -1 {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/Print.swift:14:23: warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | ///This class manages prints
13 | open class GeneralPrinter {
14 |     public static var enabled: Bool = true
   |                       |- warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'enabled' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |     open class var prefix: String{
16 |         return ""
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:52:24: warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 50 |         //stores the obtained value so useless re-detections are avoided since this value isn't supposed to change at execution time
 51 |         struct MEM{
 52 |             static var state: CpuArchitecture? = nil
    |                        |- warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'state' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'state' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 53 |         }
 54 |
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:60:24: error: cannot find 'cpu_type_t' in scope
 58 |
 59 |             var size = size_t()
 60 |             var type = cpu_type_t()
    |                        `- error: cannot find 'cpu_type_t' in scope
 61 |             var subtype = cpu_subtype_t()
 62 |             var family = UInt32()
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:61:27: error: cannot find 'cpu_subtype_t' in scope
 59 |             var size = size_t()
 60 |             var type = cpu_type_t()
 61 |             var subtype = cpu_subtype_t()
    |                           `- error: cannot find 'cpu_subtype_t' in scope
 62 |             var family = UInt32()
 63 |
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:65:13: error: cannot find 'sysctlbyname' in scope
 63 |
 64 |             size = MemoryLayout.size(ofValue: type)
 65 |             sysctlbyname("hw.cputype", &type, &size, nil, 0);
    |             `- error: cannot find 'sysctlbyname' in scope
 66 |
 67 |             Printer.print("Detected CPU type number: \(type)")
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:65:54: error: 'nil' requires a contextual type
 63 |
 64 |             size = MemoryLayout.size(ofValue: type)
 65 |             sysctlbyname("hw.cputype", &type, &size, nil, 0);
    |                                                      `- error: 'nil' requires a contextual type
 66 |
 67 |             Printer.print("Detected CPU type number: \(type)")
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:70:13: error: cannot find 'sysctlbyname' in scope
 68 |
 69 |             size = MemoryLayout.size(ofValue: subtype)
 70 |             sysctlbyname("hw.cpusubtype", &subtype, &size, nil, 0);
    |             `- error: cannot find 'sysctlbyname' in scope
 71 |
 72 |             Printer.print("Detected CPU subtype number: \(subtype)")
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:70:60: error: 'nil' requires a contextual type
 68 |
 69 |             size = MemoryLayout.size(ofValue: subtype)
 70 |             sysctlbyname("hw.cpusubtype", &subtype, &size, nil, 0);
    |                                                            `- error: 'nil' requires a contextual type
 71 |
 72 |             Printer.print("Detected CPU subtype number: \(subtype)")
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:75:13: error: cannot find 'sysctlbyname' in scope
 73 |
 74 |             size = MemoryLayout.size(ofValue: family)
 75 |             sysctlbyname("hw.cpufamily", &family, &size, nil, 0);
    |             `- error: cannot find 'sysctlbyname' in scope
 76 |
 77 |             Printer.print("Detected CPU family number: \(family)")
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:75:58: error: 'nil' requires a contextual type
 73 |
 74 |             size = MemoryLayout.size(ofValue: family)
 75 |             sysctlbyname("hw.cpufamily", &family, &size, nil, 0);
    |                                                          `- error: 'nil' requires a contextual type
 76 |
 77 |             Printer.print("Detected CPU family number: \(family)")
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:79:24: error: cannot find 'CPU_TYPE_X86' in scope
 77 |             Printer.print("Detected CPU family number: \(family)")
 78 |
 79 |             if type == CPU_TYPE_X86{
    |                        `- error: cannot find 'CPU_TYPE_X86' in scope
 80 |                 if subtype & CPU_SUBTYPE_X86_64_ALL != 0 || HWInfo.CPU.is64Bit(){
 81 |                     ret = .intel64;
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:80:30: error: cannot find 'CPU_SUBTYPE_X86_64_ALL' in scope
 78 |
 79 |             if type == CPU_TYPE_X86{
 80 |                 if subtype & CPU_SUBTYPE_X86_64_ALL != 0 || HWInfo.CPU.is64Bit(){
    |                              `- error: cannot find 'CPU_SUBTYPE_X86_64_ALL' in scope
 81 |                     ret = .intel64;
 82 |                 }else{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:85:30: error: cannot find 'CPU_TYPE_X86_64' in scope
 83 |                     ret = .intel32
 84 |                 }
 85 |             }else if type == CPU_TYPE_X86_64{
    |                              `- error: cannot find 'CPU_TYPE_X86_64' in scope
 86 |                 ret = .intel64;
 87 |             }else if type == CPU_TYPE_ARM {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:87:30: error: cannot find 'CPU_TYPE_ARM' in scope
 85 |             }else if type == CPU_TYPE_X86_64{
 86 |                 ret = .intel64;
 87 |             }else if type == CPU_TYPE_ARM {
    |                              `- error: cannot find 'CPU_TYPE_ARM' in scope
 88 |                 if subtype & CPU_SUBTYPE_ARM64_ALL != 0{
 89 |                     ret = .arm64
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:88:30: error: cannot find 'CPU_SUBTYPE_ARM64_ALL' in scope
 86 |                 ret = .intel64;
 87 |             }else if type == CPU_TYPE_ARM {
 88 |                 if subtype & CPU_SUBTYPE_ARM64_ALL != 0{
    |                              `- error: cannot find 'CPU_SUBTYPE_ARM64_ALL' in scope
 89 |                     ret = .arm64
 90 |                 }else{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:93:30: error: cannot find 'CPU_TYPE_ARM64' in scope
 91 |                     ret = .arm
 92 |                 }
 93 |             }else if type == CPU_TYPE_ARM64{
    |                              `- error: cannot find 'CPU_TYPE_ARM64' in scope
 94 |                 ret = .arm64
 95 |             }else if type == CPU_TYPE_POWERPC{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:95:30: error: cannot find 'CPU_TYPE_POWERPC' in scope
 93 |             }else if type == CPU_TYPE_ARM64{
 94 |                 ret = .arm64
 95 |             }else if type == CPU_TYPE_POWERPC{
    |                              `- error: cannot find 'CPU_TYPE_POWERPC' in scope
 96 |                 if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
 97 |                     ret = .ppcG3
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:96:30: error: cannot find 'CPU_SUBTYPE_POWERPC_750' in scope
 94 |                 ret = .arm64
 95 |             }else if type == CPU_TYPE_POWERPC{
 96 |                 if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
    |                              `- error: cannot find 'CPU_SUBTYPE_POWERPC_750' in scope
 97 |                     ret = .ppcG3
 98 |                 }else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:96:78: error: cannot find 'CPUFAMILY_POWERPC_G3' in scope
 94 |                 ret = .arm64
 95 |             }else if type == CPU_TYPE_POWERPC{
 96 |                 if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
    |                                                                              `- error: cannot find 'CPUFAMILY_POWERPC_G3' in scope
 97 |                     ret = .ppcG3
 98 |                 }else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:98:36: error: cannot find 'CPU_SUBTYPE_POWERPC_7450' in scope
 96 |                 if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
 97 |                     ret = .ppcG3
 98 |                 }else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
    |                                    `- error: cannot find 'CPU_SUBTYPE_POWERPC_7450' in scope
 99 |                     ret = .ppcG4
100 |                 }else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:98:85: error: cannot find 'CPUFAMILY_POWERPC_G4' in scope
 96 |                 if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
 97 |                     ret = .ppcG3
 98 |                 }else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
    |                                                                                     `- error: cannot find 'CPUFAMILY_POWERPC_G4' in scope
 99 |                     ret = .ppcG4
100 |                 }else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:100:36: error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
 98 |                 }else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
 99 |                     ret = .ppcG4
100 |                 }else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
    |                                    `- error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
101 |                     ret = .ppcG5
102 |                 }else{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:100:84: error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
 98 |                 }else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
 99 |                     ret = .ppcG4
100 |                 }else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
    |                                                                                    `- error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
101 |                     ret = .ppcG5
102 |                 }else{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:105:30: error: cannot find 'CPU_TYPE_POWERPC64' in scope
103 |                     ret = .ppc
104 |                 }
105 |             }else if type == CPU_TYPE_POWERPC64{
    |                              `- error: cannot find 'CPU_TYPE_POWERPC64' in scope
106 |                 if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
107 |                     ret = .ppcG5
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:106:30: error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
104 |                 }
105 |             }else if type == CPU_TYPE_POWERPC64{
106 |                 if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
    |                              `- error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
107 |                     ret = .ppcG5
108 |                 }else{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:106:78: error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
104 |                 }
105 |             }else if type == CPU_TYPE_POWERPC64{
106 |                 if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
    |                                                                              `- error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
107 |                     ret = .ppcG5
108 |                 }else{
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:158:24: warning: static property 'status' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 |         //stores the obtained value so useless re-detections are avoided since this value isn't supposed to change at execution time
157 |         struct MEM{
158 |             static var status: [CpuArchitecture]!
    |                        |- warning: static property 'status' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'status' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'status' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |         }
160 |
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:35: error: cannot find 'NSBundleExecutableArchitectureX86_64' in scope
160 |
161 |         if MEM.status == nil{
162 |             var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
    |                                   `- error: cannot find 'NSBundleExecutableArchitectureX86_64' in scope
163 |
164 |             if #available(OSX 11.0, iOS 14.0, *, watchOS 7.0, tvOS 14.0) {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:82: error: cannot find 'NSBundleExecutableArchitectureI386' in scope
160 |
161 |         if MEM.status == nil{
162 |             var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
    |                                                                                  `- error: cannot find 'NSBundleExecutableArchitectureI386' in scope
163 |
164 |             if #available(OSX 11.0, iOS 14.0, *, watchOS 7.0, tvOS 14.0) {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:127: error: cannot find 'NSBundleExecutableArchitecturePPC' in scope
160 |
161 |         if MEM.status == nil{
162 |             var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
    |                                                                                                                               `- error: cannot find 'NSBundleExecutableArchitecturePPC' in scope
163 |
164 |             if #available(OSX 11.0, iOS 14.0, *, watchOS 7.0, tvOS 14.0) {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:167: error: cannot find 'NSBundleExecutableArchitecturePPC64' in scope
160 |
161 |         if MEM.status == nil{
162 |             var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
    |                                                                                                                                                                       `- error: cannot find 'NSBundleExecutableArchitecturePPC64' in scope
163 |
164 |             if #available(OSX 11.0, iOS 14.0, *, watchOS 7.0, tvOS 14.0) {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:165:32: error: cannot find 'NSBundleExecutableArchitectureARM64' in scope
163 |
164 |             if #available(OSX 11.0, iOS 14.0, *, watchOS 7.0, tvOS 14.0) {
165 |                 supportedArchs[NSBundleExecutableArchitectureARM64] = arm64
    |                                `- error: cannot find 'NSBundleExecutableArchitectureARM64' in scope
166 |             }else{
167 |                 supportedArchs[16777228] = arm64
[5/7] Compiling SwiftCPUDetect AppExecution.swift
/host/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:20:24: warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |         //stores the obtained value so useless re-detections are avoided since this value isn't supposed to change at execution time
19 |         struct MEM{
20 |             static var state: AppExecutionMode? = nil
   |                        |- warning: static property 'state' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'state' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'state' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |         }
22 |
/host/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:27:26: error: cannot find 'sysctlbyname' in scope
25 |             var size = ret.bitWidth / 8
26 |
27 |             let result = sysctlbyname("sysctl.proc_translated", &ret, &size, nil, 0)
   |                          `- error: cannot find 'sysctlbyname' in scope
28 |
29 |             if result == -1 {
/host/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:27:78: error: 'nil' requires a contextual type
25 |             var size = ret.bitWidth / 8
26 |
27 |             let result = sysctlbyname("sysctl.proc_translated", &ret, &size, nil, 0)
   |                                                                              `- error: 'nil' requires a contextual type
28 |
29 |             if result == -1 {
[6/7] Compiling SwiftCPUDetect HwInfo.swift
/host/spi-builder-workspace/Sources/SwiftCPUDetect/HwInfo.swift:19:19: error: cannot find 'sysctlbyname' in scope
 17 |         var size = bufferSize
 18 |
 19 |         let res = sysctlbyname(valueName, &ret, &size, nil, 0)
    |                   `- error: cannot find 'sysctlbyname' in scope
 20 |
 21 |         return res == 0 ? String(utf8String: ret) : nil
/host/spi-builder-workspace/Sources/SwiftCPUDetect/HwInfo.swift:19:56: error: 'nil' requires a contextual type
 17 |         var size = bufferSize
 18 |
 19 |         let res = sysctlbyname(valueName, &ret, &size, nil, 0)
    |                                                        `- error: 'nil' requires a contextual type
 20 |
 21 |         return res == 0 ? String(utf8String: ret) : nil
/host/spi-builder-workspace/Sources/SwiftCPUDetect/HwInfo.swift:30:19: error: cannot find 'sysctlbyname' in scope
 28 |         var size = MemoryLayout.size(ofValue: ret)
 29 |
 30 |         let res = sysctlbyname(valueName, &ret, &size, nil, 0)
    |                   `- error: cannot find 'sysctlbyname' in scope
 31 |
 32 |         return res == 0 ? ret : nil
/host/spi-builder-workspace/Sources/SwiftCPUDetect/HwInfo.swift:30:56: error: 'nil' requires a contextual type
 28 |         var size = MemoryLayout.size(ofValue: ret)
 29 |
 30 |         let res = sysctlbyname(valueName, &ret, &size, nil, 0)
    |                                                        `- error: 'nil' requires a contextual type
 31 |
 32 |         return res == 0 ? ret : nil
[7/7] Compiling SwiftCPUDetect Print.swift
/host/spi-builder-workspace/Sources/SwiftCPUDetect/Print.swift:14:23: warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | ///This class manages prints
13 | open class GeneralPrinter {
14 |     public static var enabled: Bool = true
   |                       |- warning: static property 'enabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'enabled' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |     open class var prefix: String{
16 |         return ""
BUILD FAILURE 6.0 linux