Build Information
Failed to build SwiftCPUDetect with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.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: 5.10
Building package at path: $workDir
https://github.com/ITzTravelInTime/SwiftCPUDetect.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] Emitting module SwiftCPUDetect
/host/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:27:26: error: cannot find 'sysctlbyname' in scope
let result = sysctlbyname("sysctl.proc_translated", &ret, &size, nil, 0)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:27:78: error: 'nil' requires a contextual type
let result = sysctlbyname("sysctl.proc_translated", &ret, &size, nil, 0)
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:60:24: error: cannot find 'cpu_type_t' in scope
var type = cpu_type_t()
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:61:27: error: cannot find 'cpu_subtype_t' in scope
var subtype = cpu_subtype_t()
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:65:13: error: cannot find 'sysctlbyname' in scope
sysctlbyname("hw.cputype", &type, &size, nil, 0);
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:65:54: error: 'nil' requires a contextual type
sysctlbyname("hw.cputype", &type, &size, nil, 0);
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:70:13: error: cannot find 'sysctlbyname' in scope
sysctlbyname("hw.cpusubtype", &subtype, &size, nil, 0);
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:70:60: error: 'nil' requires a contextual type
sysctlbyname("hw.cpusubtype", &subtype, &size, nil, 0);
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:75:13: error: cannot find 'sysctlbyname' in scope
sysctlbyname("hw.cpufamily", &family, &size, nil, 0);
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:75:58: error: 'nil' requires a contextual type
sysctlbyname("hw.cpufamily", &family, &size, nil, 0);
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:79:24: error: cannot find 'CPU_TYPE_X86' in scope
if type == CPU_TYPE_X86{
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:80:30: error: cannot find 'CPU_SUBTYPE_X86_64_ALL' in scope
if subtype & CPU_SUBTYPE_X86_64_ALL != 0 || HWInfo.CPU.is64Bit(){
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:85:30: error: cannot find 'CPU_TYPE_X86_64' in scope
}else if type == CPU_TYPE_X86_64{
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:87:30: error: cannot find 'CPU_TYPE_ARM' in scope
}else if type == CPU_TYPE_ARM {
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:88:30: error: cannot find 'CPU_SUBTYPE_ARM64_ALL' in scope
if subtype & CPU_SUBTYPE_ARM64_ALL != 0{
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:93:30: error: cannot find 'CPU_TYPE_ARM64' in scope
}else if type == CPU_TYPE_ARM64{
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:95:30: error: cannot find 'CPU_TYPE_POWERPC' in scope
}else if type == CPU_TYPE_POWERPC{
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:96:30: error: cannot find 'CPU_SUBTYPE_POWERPC_750' in scope
if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:96:78: error: cannot find 'CPUFAMILY_POWERPC_G3' in scope
if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:98:36: error: cannot find 'CPU_SUBTYPE_POWERPC_7450' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:98:85: error: cannot find 'CPUFAMILY_POWERPC_G4' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:100:36: error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:100:84: error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:105:30: error: cannot find 'CPU_TYPE_POWERPC64' in scope
}else if type == CPU_TYPE_POWERPC64{
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:106:30: error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:106:78: error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:35: error: cannot find 'NSBundleExecutableArchitectureX86_64' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:82: error: cannot find 'NSBundleExecutableArchitectureI386' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:127: error: cannot find 'NSBundleExecutableArchitecturePPC' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:167: error: cannot find 'NSBundleExecutableArchitecturePPC64' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:165:32: error: cannot find 'NSBundleExecutableArchitectureARM64' in scope
supportedArchs[NSBundleExecutableArchitectureARM64] = arm64
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[4/7] Compiling SwiftCPUDetect AppExecution.swift
/host/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:27:26: error: cannot find 'sysctlbyname' in scope
let result = sysctlbyname("sysctl.proc_translated", &ret, &size, nil, 0)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:27:78: error: 'nil' requires a contextual type
let result = sysctlbyname("sysctl.proc_translated", &ret, &size, nil, 0)
^
[5/7] Compiling SwiftCPUDetect Print.swift
[6/7] Compiling SwiftCPUDetect HwInfo.swift
/host/spi-builder-workspace/Sources/SwiftCPUDetect/HwInfo.swift:19:19: error: cannot find 'sysctlbyname' in scope
let res = sysctlbyname(valueName, &ret, &size, nil, 0)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/HwInfo.swift:19:56: error: 'nil' requires a contextual type
let res = sysctlbyname(valueName, &ret, &size, nil, 0)
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/HwInfo.swift:30:19: error: cannot find 'sysctlbyname' in scope
let res = sysctlbyname(valueName, &ret, &size, nil, 0)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/HwInfo.swift:30:56: error: 'nil' requires a contextual type
let res = sysctlbyname(valueName, &ret, &size, nil, 0)
^
[7/7] Compiling SwiftCPUDetect SwiftCPUDetect.swift
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:60:24: error: cannot find 'cpu_type_t' in scope
var type = cpu_type_t()
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:61:27: error: cannot find 'cpu_subtype_t' in scope
var subtype = cpu_subtype_t()
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:65:13: error: cannot find 'sysctlbyname' in scope
sysctlbyname("hw.cputype", &type, &size, nil, 0);
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:65:54: error: 'nil' requires a contextual type
sysctlbyname("hw.cputype", &type, &size, nil, 0);
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:70:13: error: cannot find 'sysctlbyname' in scope
sysctlbyname("hw.cpusubtype", &subtype, &size, nil, 0);
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:70:60: error: 'nil' requires a contextual type
sysctlbyname("hw.cpusubtype", &subtype, &size, nil, 0);
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:75:13: error: cannot find 'sysctlbyname' in scope
sysctlbyname("hw.cpufamily", &family, &size, nil, 0);
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:75:58: error: 'nil' requires a contextual type
sysctlbyname("hw.cpufamily", &family, &size, nil, 0);
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:79:24: error: cannot find 'CPU_TYPE_X86' in scope
if type == CPU_TYPE_X86{
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:80:30: error: cannot find 'CPU_SUBTYPE_X86_64_ALL' in scope
if subtype & CPU_SUBTYPE_X86_64_ALL != 0 || HWInfo.CPU.is64Bit(){
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:85:30: error: cannot find 'CPU_TYPE_X86_64' in scope
}else if type == CPU_TYPE_X86_64{
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:87:30: error: cannot find 'CPU_TYPE_ARM' in scope
}else if type == CPU_TYPE_ARM {
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:88:30: error: cannot find 'CPU_SUBTYPE_ARM64_ALL' in scope
if subtype & CPU_SUBTYPE_ARM64_ALL != 0{
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:93:30: error: cannot find 'CPU_TYPE_ARM64' in scope
}else if type == CPU_TYPE_ARM64{
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:95:30: error: cannot find 'CPU_TYPE_POWERPC' in scope
}else if type == CPU_TYPE_POWERPC{
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:96:30: error: cannot find 'CPU_SUBTYPE_POWERPC_750' in scope
if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:96:78: error: cannot find 'CPUFAMILY_POWERPC_G3' in scope
if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:98:36: error: cannot find 'CPU_SUBTYPE_POWERPC_7450' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:98:85: error: cannot find 'CPUFAMILY_POWERPC_G4' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:100:36: error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:100:84: error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:105:30: error: cannot find 'CPU_TYPE_POWERPC64' in scope
}else if type == CPU_TYPE_POWERPC64{
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:106:30: error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:106:78: error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:35: error: cannot find 'NSBundleExecutableArchitectureX86_64' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:82: error: cannot find 'NSBundleExecutableArchitectureI386' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:127: error: cannot find 'NSBundleExecutableArchitecturePPC' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:167: error: cannot find 'NSBundleExecutableArchitecturePPC64' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:165:32: error: cannot find 'NSBundleExecutableArchitectureARM64' in scope
supportedArchs[NSBundleExecutableArchitectureARM64] = arm64
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
[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/5] Emitting module SwiftCPUDetect
/host/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:27:26: error: cannot find 'sysctlbyname' in scope
let result = sysctlbyname("sysctl.proc_translated", &ret, &size, nil, 0)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:27:78: error: 'nil' requires a contextual type
let result = sysctlbyname("sysctl.proc_translated", &ret, &size, nil, 0)
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:60:24: error: cannot find 'cpu_type_t' in scope
var type = cpu_type_t()
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:61:27: error: cannot find 'cpu_subtype_t' in scope
var subtype = cpu_subtype_t()
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:65:13: error: cannot find 'sysctlbyname' in scope
sysctlbyname("hw.cputype", &type, &size, nil, 0);
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:65:54: error: 'nil' requires a contextual type
sysctlbyname("hw.cputype", &type, &size, nil, 0);
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:70:13: error: cannot find 'sysctlbyname' in scope
sysctlbyname("hw.cpusubtype", &subtype, &size, nil, 0);
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:70:60: error: 'nil' requires a contextual type
sysctlbyname("hw.cpusubtype", &subtype, &size, nil, 0);
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:75:13: error: cannot find 'sysctlbyname' in scope
sysctlbyname("hw.cpufamily", &family, &size, nil, 0);
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:75:58: error: 'nil' requires a contextual type
sysctlbyname("hw.cpufamily", &family, &size, nil, 0);
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:79:24: error: cannot find 'CPU_TYPE_X86' in scope
if type == CPU_TYPE_X86{
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:80:30: error: cannot find 'CPU_SUBTYPE_X86_64_ALL' in scope
if subtype & CPU_SUBTYPE_X86_64_ALL != 0 || HWInfo.CPU.is64Bit(){
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:85:30: error: cannot find 'CPU_TYPE_X86_64' in scope
}else if type == CPU_TYPE_X86_64{
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:87:30: error: cannot find 'CPU_TYPE_ARM' in scope
}else if type == CPU_TYPE_ARM {
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:88:30: error: cannot find 'CPU_SUBTYPE_ARM64_ALL' in scope
if subtype & CPU_SUBTYPE_ARM64_ALL != 0{
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:93:30: error: cannot find 'CPU_TYPE_ARM64' in scope
}else if type == CPU_TYPE_ARM64{
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:95:30: error: cannot find 'CPU_TYPE_POWERPC' in scope
}else if type == CPU_TYPE_POWERPC{
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:96:30: error: cannot find 'CPU_SUBTYPE_POWERPC_750' in scope
if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:96:78: error: cannot find 'CPUFAMILY_POWERPC_G3' in scope
if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:98:36: error: cannot find 'CPU_SUBTYPE_POWERPC_7450' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:98:85: error: cannot find 'CPUFAMILY_POWERPC_G4' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:100:36: error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:100:84: error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:105:30: error: cannot find 'CPU_TYPE_POWERPC64' in scope
}else if type == CPU_TYPE_POWERPC64{
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:106:30: error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:106:78: error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:35: error: cannot find 'NSBundleExecutableArchitectureX86_64' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:82: error: cannot find 'NSBundleExecutableArchitectureI386' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:127: error: cannot find 'NSBundleExecutableArchitecturePPC' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:167: error: cannot find 'NSBundleExecutableArchitecturePPC64' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:165:32: error: cannot find 'NSBundleExecutableArchitectureARM64' in scope
supportedArchs[NSBundleExecutableArchitectureARM64] = arm64
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3/5] Compiling SwiftCPUDetect HwInfo.swift
/host/spi-builder-workspace/Sources/SwiftCPUDetect/HwInfo.swift:19:19: error: cannot find 'sysctlbyname' in scope
let res = sysctlbyname(valueName, &ret, &size, nil, 0)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/HwInfo.swift:19:56: error: 'nil' requires a contextual type
let res = sysctlbyname(valueName, &ret, &size, nil, 0)
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/HwInfo.swift:30:19: error: cannot find 'sysctlbyname' in scope
let res = sysctlbyname(valueName, &ret, &size, nil, 0)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/HwInfo.swift:30:56: error: 'nil' requires a contextual type
let res = sysctlbyname(valueName, &ret, &size, nil, 0)
^
[4/5] Compiling SwiftCPUDetect AppExecution.swift
/host/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:27:26: error: cannot find 'sysctlbyname' in scope
let result = sysctlbyname("sysctl.proc_translated", &ret, &size, nil, 0)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/AppExecution.swift:27:78: error: 'nil' requires a contextual type
let result = sysctlbyname("sysctl.proc_translated", &ret, &size, nil, 0)
^
[5/5] Compiling SwiftCPUDetect SwiftCPUDetect.swift
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:60:24: error: cannot find 'cpu_type_t' in scope
var type = cpu_type_t()
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:61:27: error: cannot find 'cpu_subtype_t' in scope
var subtype = cpu_subtype_t()
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:65:13: error: cannot find 'sysctlbyname' in scope
sysctlbyname("hw.cputype", &type, &size, nil, 0);
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:65:54: error: 'nil' requires a contextual type
sysctlbyname("hw.cputype", &type, &size, nil, 0);
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:70:13: error: cannot find 'sysctlbyname' in scope
sysctlbyname("hw.cpusubtype", &subtype, &size, nil, 0);
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:70:60: error: 'nil' requires a contextual type
sysctlbyname("hw.cpusubtype", &subtype, &size, nil, 0);
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:75:13: error: cannot find 'sysctlbyname' in scope
sysctlbyname("hw.cpufamily", &family, &size, nil, 0);
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:75:58: error: 'nil' requires a contextual type
sysctlbyname("hw.cpufamily", &family, &size, nil, 0);
^
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:79:24: error: cannot find 'CPU_TYPE_X86' in scope
if type == CPU_TYPE_X86{
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:80:30: error: cannot find 'CPU_SUBTYPE_X86_64_ALL' in scope
if subtype & CPU_SUBTYPE_X86_64_ALL != 0 || HWInfo.CPU.is64Bit(){
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:85:30: error: cannot find 'CPU_TYPE_X86_64' in scope
}else if type == CPU_TYPE_X86_64{
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:87:30: error: cannot find 'CPU_TYPE_ARM' in scope
}else if type == CPU_TYPE_ARM {
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:88:30: error: cannot find 'CPU_SUBTYPE_ARM64_ALL' in scope
if subtype & CPU_SUBTYPE_ARM64_ALL != 0{
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:93:30: error: cannot find 'CPU_TYPE_ARM64' in scope
}else if type == CPU_TYPE_ARM64{
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:95:30: error: cannot find 'CPU_TYPE_POWERPC' in scope
}else if type == CPU_TYPE_POWERPC{
^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:96:30: error: cannot find 'CPU_SUBTYPE_POWERPC_750' in scope
if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:96:78: error: cannot find 'CPUFAMILY_POWERPC_G3' in scope
if subtype & CPU_SUBTYPE_POWERPC_750 != 0 || family & UInt32(CPUFAMILY_POWERPC_G3) != 0 {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:98:36: error: cannot find 'CPU_SUBTYPE_POWERPC_7450' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:98:85: error: cannot find 'CPUFAMILY_POWERPC_G4' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_7450 != 0 || family & UInt32(CPUFAMILY_POWERPC_G4) != 0 {
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:100:36: error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:100:84: error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
}else if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:105:30: error: cannot find 'CPU_TYPE_POWERPC64' in scope
}else if type == CPU_TYPE_POWERPC64{
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:106:30: error: cannot find 'CPU_SUBTYPE_POWERPC_970' in scope
if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:106:78: error: cannot find 'CPUFAMILY_POWERPC_G5' in scope
if subtype & CPU_SUBTYPE_POWERPC_970 != 0 || family & UInt32(CPUFAMILY_POWERPC_G5) != 0{
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:35: error: cannot find 'NSBundleExecutableArchitectureX86_64' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:82: error: cannot find 'NSBundleExecutableArchitectureI386' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:127: error: cannot find 'NSBundleExecutableArchitecturePPC' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:162:167: error: cannot find 'NSBundleExecutableArchitecturePPC64' in scope
var supportedArchs = [NSBundleExecutableArchitectureX86_64: intel64, NSBundleExecutableArchitectureI386: intel32, NSBundleExecutableArchitecturePPC: ppc, NSBundleExecutableArchitecturePPC64: ppc64, 12: arm]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftCPUDetect/SwiftCPUDetect.swift:165:32: error: cannot find 'NSBundleExecutableArchitectureARM64' in scope
supportedArchs[NSBundleExecutableArchitectureARM64] = arm64
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux