The Swift Package Index logo.Swift Package Index

Build Information

Failed to build EmbeddedPropertyList, reference main (21bd83), with Swift 6.3 for Wasm on 13 Apr 2026 01:43:33 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/trilemma-dev/EmbeddedPropertyList.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/trilemma-dev/EmbeddedPropertyList
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 21bd832 Merge pull request #2 from trilemma-dev/end-period
Cloned https://github.com/trilemma-dev/EmbeddedPropertyList.git
Revision (git rev-parse @):
21bd832e28a9a66ecdb7b4c21910bb0487a22fe5
SUCCESS checkout https://github.com/trilemma-dev/EmbeddedPropertyList.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/trilemma-dev/EmbeddedPropertyList.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling EmbeddedPropertyList ReadError.swift
[4/6] Compiling EmbeddedPropertyList EmbeddedPropertyListReader.swift
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:202:84: error: cannot find type 'cpu_type_t' in scope
200 |     ///   - mustSwap: Whether the data representing the fat header must have it endianness swapped.
201 |     /// - Returns: A dictionary of CPU types to mach headers within the executable. Only 64-bit CPU types are included.
202 |     private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
    |                                                                                    `- error: cannot find type 'cpu_type_t' in scope
203 |         // To populate with offsets
204 |         var archOffsets = [cpu_type_t : UInt32]()
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:245:51: error: cannot find type 'cpu_type_t' in scope
243 |
244 |         /// Returns the corresponding Darwin `cpu_type_t` for this enum value.
245 |         fileprivate func asDarwinType() throws -> cpu_type_t {
    |                                                   `- error: cannot find type 'cpu_type_t' in scope
246 |             switch self {
247 |                 case .x86_64:
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:260:42: error: cannot find type 'cpu_type_t' in scope
258 |         /// This relies on two `sysctl` calls. More information can be found via `man sysctl`. In particular `sysctl -a` will list all available commands on
259 |         /// the system which should include both `hw.cputype` and `hw.cpu64bit_capable`.
260 |         private func cpuType() throws -> cpu_type_t {
    |                                          `- error: cannot find type 'cpu_type_t' in scope
261 |             // Retrieve CPU type
262 |             var cpuType = cpu_type_t()
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:39:28: error: cannot find 'dlopen' in scope
 37 |     public func readInternal() throws -> Data {
 38 |         // By passing in nil, this returns a handle for the dynamic shared object (shared library) for this executable
 39 |         guard let handle = dlopen(nil, RTLD_LAZY) else {
    |                            `- error: cannot find 'dlopen' in scope
 40 |             throw ReadError.machHeaderExecuteSymbolUnretrievable
 41 |         }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:39:40: error: cannot find 'RTLD_LAZY' in scope
 37 |     public func readInternal() throws -> Data {
 38 |         // By passing in nil, this returns a handle for the dynamic shared object (shared library) for this executable
 39 |         guard let handle = dlopen(nil, RTLD_LAZY) else {
    |                                        `- error: cannot find 'RTLD_LAZY' in scope
 40 |             throw ReadError.machHeaderExecuteSymbolUnretrievable
 41 |         }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:39:35: error: 'nil' requires a contextual type
 37 |     public func readInternal() throws -> Data {
 38 |         // By passing in nil, this returns a handle for the dynamic shared object (shared library) for this executable
 39 |         guard let handle = dlopen(nil, RTLD_LAZY) else {
    |                                   `- error: 'nil' requires a contextual type
 40 |             throw ReadError.machHeaderExecuteSymbolUnretrievable
 41 |         }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:42:17: error: cannot find 'dlclose' in scope
 40 |             throw ReadError.machHeaderExecuteSymbolUnretrievable
 41 |         }
 42 |         defer { dlclose(handle) }
    |                 `- error: cannot find 'dlclose' in scope
 43 |
 44 |         guard let mhExecutePointer = dlsym(handle, MH_EXECUTE_SYM) else {
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:44:38: error: cannot find 'dlsym' in scope
 42 |         defer { dlclose(handle) }
 43 |
 44 |         guard let mhExecutePointer = dlsym(handle, MH_EXECUTE_SYM) else {
    |                                      `- error: cannot find 'dlsym' in scope
 45 |             throw ReadError.machHeaderExecuteSymbolUnretrievable
 46 |         }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:44:52: error: cannot find 'MH_EXECUTE_SYM' in scope
 42 |         defer { dlclose(handle) }
 43 |
 44 |         guard let mhExecutePointer = dlsym(handle, MH_EXECUTE_SYM) else {
    |                                                    `- error: cannot find 'MH_EXECUTE_SYM' in scope
 45 |             throw ReadError.machHeaderExecuteSymbolUnretrievable
 46 |         }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:47:78: error: cannot find 'mach_header_64' in scope
 45 |             throw ReadError.machHeaderExecuteSymbolUnretrievable
 46 |         }
 47 |         let mhExecuteBoundPointer = mhExecutePointer.assumingMemoryBound(to: mach_header_64.self)
    |                                                                              `- error: cannot find 'mach_header_64' in scope
 48 |
 49 |         var size: UInt = 0
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:50:29: error: cannot find 'getsectiondata' in scope
 48 |
 49 |         var size: UInt = 0
 50 |         guard let section = getsectiondata(mhExecuteBoundPointer, "__TEXT", self.sectionName, &size) else {
    |                             `- error: cannot find 'getsectiondata' in scope
 51 |             throw ReadError.sectionNotFound
 52 |         }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:114:56: error: cannot find 'mach_header_64' in scope
112 |         let offsetData = data[Data.Index(machHeaderOffset)..<data.count]
113 |         let plist: Data = try offsetData.withUnsafeBytes { pointer in
114 |             let headerPointer = pointer.bindMemory(to: mach_header_64.self).baseAddress
    |                                                        `- error: cannot find 'mach_header_64' in scope
115 |             guard let sectionPointer = getsectbynamefromheader_64(headerPointer, "__TEXT", self.sectionName) else {
116 |                 throw ReadError.sectionNotFound
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:115:40: error: cannot find 'getsectbynamefromheader_64' in scope
113 |         let plist: Data = try offsetData.withUnsafeBytes { pointer in
114 |             let headerPointer = pointer.bindMemory(to: mach_header_64.self).baseAddress
115 |             guard let sectionPointer = getsectbynamefromheader_64(headerPointer, "__TEXT", self.sectionName) else {
    |                                        `- error: cannot find 'getsectbynamefromheader_64' in scope
116 |                 throw ReadError.sectionNotFound
117 |             }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:114:41: error: generic parameter 'T' could not be inferred
112 |         let offsetData = data[Data.Index(machHeaderOffset)..<data.count]
113 |         let plist: Data = try offsetData.withUnsafeBytes { pointer in
114 |             let headerPointer = pointer.bindMemory(to: mach_header_64.self).baseAddress
    |                                         `- error: generic parameter 'T' could not be inferred
115 |             guard let sectionPointer = getsectbynamefromheader_64(headerPointer, "__TEXT", self.sectionName) else {
116 |                 throw ReadError.sectionNotFound
Swift.UnsafeRawBufferPointer.bindMemory:3:26: note: in call to function 'bindMemory(to:)'
1 | struct UnsafeRawBufferPointer {
2 | @discardableResult
3 |   @inlinable public func bindMemory<T>(to type: T.Type) -> UnsafeBufferPointer<T> where T : ~Copyable}
  |                          `- note: in call to function 'bindMemory(to:)'
4 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:162:26: error: cannot find 'MH_MAGIC' in scope
160 |     /// - Returns: Whether the magic value represents a 32-bit architecture executable.
161 |     private func isMagic32(_ magic: UInt32) -> Bool {
162 |         return (magic == MH_MAGIC) || (magic == MH_CIGAM)
    |                          `- error: cannot find 'MH_MAGIC' in scope
163 |     }
164 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:162:49: error: cannot find 'MH_CIGAM' in scope
160 |     /// - Returns: Whether the magic value represents a 32-bit architecture executable.
161 |     private func isMagic32(_ magic: UInt32) -> Bool {
162 |         return (magic == MH_MAGIC) || (magic == MH_CIGAM)
    |                                                 `- error: cannot find 'MH_CIGAM' in scope
163 |     }
164 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:174:26: error: cannot find 'MH_MAGIC_64' in scope
172 |     /// - Returns: Whether the magic value represents a 64-bit architecture executable.
173 |     private func isMagic64(_ magic: UInt32) -> Bool {
174 |         return (magic == MH_MAGIC_64) || (magic == MH_CIGAM_64)
    |                          `- error: cannot find 'MH_MAGIC_64' in scope
175 |     }
176 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:174:52: error: cannot find 'MH_CIGAM_64' in scope
172 |     /// - Returns: Whether the magic value represents a 64-bit architecture executable.
173 |     private func isMagic64(_ magic: UInt32) -> Bool {
174 |         return (magic == MH_MAGIC_64) || (magic == MH_CIGAM_64)
    |                                                    `- error: cannot find 'MH_CIGAM_64' in scope
175 |     }
176 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:183:24: error: cannot find 'FAT_MAGIC' in scope
181 |     /// - Returns: Whether the magic value represents a fat executable (universal binary).
182 |     private func isMagicFat(_ magic: UInt32) -> Bool {
183 |       return (magic == FAT_MAGIC) || (magic == FAT_CIGAM)
    |                        `- error: cannot find 'FAT_MAGIC' in scope
184 |     }
185 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:183:48: error: cannot find 'FAT_CIGAM' in scope
181 |     /// - Returns: Whether the magic value represents a fat executable (universal binary).
182 |     private func isMagicFat(_ magic: UInt32) -> Bool {
183 |       return (magic == FAT_MAGIC) || (magic == FAT_CIGAM)
    |                                                `- error: cannot find 'FAT_CIGAM' in scope
184 |     }
185 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:26: error: cannot find 'MH_CIGAM' in scope
190 |     /// - Returns: Whether the magic value represents the oppositie endianness.
191 |     private func mustSwapEndianness(magic: UInt32) -> Bool {
192 |         return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
    |                          `- error: cannot find 'MH_CIGAM' in scope
193 |     }
194 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:49: error: cannot find 'MH_CIGAM_64' in scope
190 |     /// - Returns: Whether the magic value represents the oppositie endianness.
191 |     private func mustSwapEndianness(magic: UInt32) -> Bool {
192 |         return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
    |                                                 `- error: cannot find 'MH_CIGAM_64' in scope
193 |     }
194 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:192:75: error: cannot find 'FAT_CIGAM' in scope
190 |     /// - Returns: Whether the magic value represents the oppositie endianness.
191 |     private func mustSwapEndianness(magic: UInt32) -> Bool {
192 |         return (magic == MH_CIGAM) || (magic == MH_CIGAM_64) || (magic == FAT_CIGAM)
    |                                                                           `- error: cannot find 'FAT_CIGAM' in scope
193 |     }
194 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:204:28: error: cannot find 'cpu_type_t' in scope
202 |     private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
203 |         // To populate with offsets
204 |         var archOffsets = [cpu_type_t : UInt32]()
    |                            `- error: cannot find 'cpu_type_t' in scope
205 |
206 |         // In practice the fat header and fat arch data is always in big-endian byte order while x86_64 (Intel) and
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:204:27: error: cannot call value of non-function type '[AnyHashable : UInt32.Type]'
202 |     private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
203 |         // To populate with offsets
204 |         var archOffsets = [cpu_type_t : UInt32]()
    |                           `- error: cannot call value of non-function type '[AnyHashable : UInt32.Type]'
205 |
206 |         // In practice the fat header and fat arch data is always in big-endian byte order while x86_64 (Intel) and
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:209:37: error: cannot find 'fat_header' in scope
207 |         // arm64 (Apple Silicon) are little-endian. So the byte orders are always going to need to be swapped. The code
208 |         // here does not assume this to be true, but it's helpful to keep in mind if ever debugging this code.
209 |         var header = read(data, as: fat_header.self, fromByteOffset: 0)
    |                                     `- error: cannot find 'fat_header' in scope
210 |         if mustSwap {
211 |             swap_fat_header(&header, NXHostByteOrder())
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:209:22: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
207 |         // arm64 (Apple Silicon) are little-endian. So the byte orders are always going to need to be swapped. The code
208 |         // here does not assume this to be true, but it's helpful to keep in mind if ever debugging this code.
209 |         var header = read(data, as: fat_header.self, fromByteOffset: 0)
    |                      `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
210 |         if mustSwap {
211 |             swap_fat_header(&header, NXHostByteOrder())
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:211:13: error: cannot find 'swap_fat_header' in scope
209 |         var header = read(data, as: fat_header.self, fromByteOffset: 0)
210 |         if mustSwap {
211 |             swap_fat_header(&header, NXHostByteOrder())
    |             `- error: cannot find 'swap_fat_header' in scope
212 |         }
213 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:211:38: error: cannot find 'NXHostByteOrder' in scope
209 |         var header = read(data, as: fat_header.self, fromByteOffset: 0)
210 |         if mustSwap {
211 |             swap_fat_header(&header, NXHostByteOrder())
    |                                      `- error: cannot find 'NXHostByteOrder' in scope
212 |         }
213 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:216:39: error: cannot find type 'fat_header' in scope
214 |         // Loop through all of the architecture descriptions in the fat executable (in practice there will typically be
215 |         // 2). These descriptions start immediately after the fat header, so start the offset there.
216 |         var archOffset = MemoryLayout<fat_header>.size
    |                                       `- error: cannot find type 'fat_header' in scope
217 |         for _ in 0..<header.nfat_arch {
218 |             var arch = read(data, as: fat_arch.self, fromByteOffset: archOffset)
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:218:39: error: cannot find 'fat_arch' in scope
216 |         var archOffset = MemoryLayout<fat_header>.size
217 |         for _ in 0..<header.nfat_arch {
218 |             var arch = read(data, as: fat_arch.self, fromByteOffset: archOffset)
    |                                       `- error: cannot find 'fat_arch' in scope
219 |             if mustSwap {
220 |                 swap_fat_arch(&arch, 1, NXHostByteOrder())
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:218:24: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
216 |         var archOffset = MemoryLayout<fat_header>.size
217 |         for _ in 0..<header.nfat_arch {
218 |             var arch = read(data, as: fat_arch.self, fromByteOffset: archOffset)
    |                        `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
219 |             if mustSwap {
220 |                 swap_fat_arch(&arch, 1, NXHostByteOrder())
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:220:17: error: cannot find 'swap_fat_arch' in scope
218 |             var arch = read(data, as: fat_arch.self, fromByteOffset: archOffset)
219 |             if mustSwap {
220 |                 swap_fat_arch(&arch, 1, NXHostByteOrder())
    |                 `- error: cannot find 'swap_fat_arch' in scope
221 |             }
222 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:220:41: error: cannot find 'NXHostByteOrder' in scope
218 |             var arch = read(data, as: fat_arch.self, fromByteOffset: archOffset)
219 |             if mustSwap {
220 |                 swap_fat_arch(&arch, 1, NXHostByteOrder())
    |                                         `- error: cannot find 'NXHostByteOrder' in scope
221 |             }
222 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:229:40: error: cannot find type 'fat_arch' in scope
227 |
228 |             // Increment the offset for the next loop
229 |             archOffset += MemoryLayout<fat_arch>.size
    |                                        `- error: cannot find type 'fat_arch' in scope
230 |         }
231 |
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:248:28: error: cannot find 'CPU_TYPE_X86_64' in scope
246 |             switch self {
247 |                 case .x86_64:
248 |                     return CPU_TYPE_X86_64
    |                            `- error: cannot find 'CPU_TYPE_X86_64' in scope
249 |                 case .arm64:
250 |                     return CPU_TYPE_ARM64
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:250:28: error: cannot find 'CPU_TYPE_ARM64' in scope
248 |                     return CPU_TYPE_X86_64
249 |                 case .arm64:
250 |                     return CPU_TYPE_ARM64
    |                            `- error: cannot find 'CPU_TYPE_ARM64' in scope
251 |                 case .system:
252 |                     return try cpuType()
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:262:27: error: cannot find 'cpu_type_t' in scope
260 |         private func cpuType() throws -> cpu_type_t {
261 |             // Retrieve CPU type
262 |             var cpuType = cpu_type_t()
    |                           `- error: cannot find 'cpu_type_t' in scope
263 |             var size = MemoryLayout<cpu_type_t>.size
264 |             guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:263:37: error: cannot find type 'cpu_type_t' in scope
261 |             // Retrieve CPU type
262 |             var cpuType = cpu_type_t()
263 |             var size = MemoryLayout<cpu_type_t>.size
    |                                     `- error: cannot find type 'cpu_type_t' in scope
264 |             guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
265 |                 throw ReadError.architectureNotDetermined
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:264:19: error: cannot find 'sysctlbyname' in scope
262 |             var cpuType = cpu_type_t()
263 |             var size = MemoryLayout<cpu_type_t>.size
264 |             guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
    |                   `- error: cannot find 'sysctlbyname' in scope
265 |                 throw ReadError.architectureNotDetermined
266 |             }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:264:63: error: 'nil' requires a contextual type
262 |             var cpuType = cpu_type_t()
263 |             var size = MemoryLayout<cpu_type_t>.size
264 |             guard sysctlbyname("hw.cputype", &cpuType, &size, nil, 0) == 0 else {
    |                                                               `- error: 'nil' requires a contextual type
265 |                 throw ReadError.architectureNotDetermined
266 |             }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:271:19: error: cannot find 'sysctlbyname' in scope
269 |             var capable64bit = Int32()
270 |             size = MemoryLayout<Int32>.size
271 |             guard sysctlbyname("hw.cpu64bit_capable", &capable64bit, &size, nil, 0) == 0 else {
    |                   `- error: cannot find 'sysctlbyname' in scope
272 |                 throw ReadError.architectureNotDetermined
273 |             }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:271:77: error: 'nil' requires a contextual type
269 |             var capable64bit = Int32()
270 |             size = MemoryLayout<Int32>.size
271 |             guard sysctlbyname("hw.cpu64bit_capable", &capable64bit, &size, nil, 0) == 0 else {
    |                                                                             `- error: 'nil' requires a contextual type
272 |                 throw ReadError.architectureNotDetermined
273 |             }
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:276:56: error: cannot find 'CPU_ARCH_ABI64' in scope
274 |
275 |             // If this 64-bit then adjust accordingly to match the definitions for CPU_TYPE_X86_64 and CPU_TYPE_ARM64
276 |             cpuType = (capable64bit == 1) ? (cpuType | CPU_ARCH_ABI64) : cpuType
    |                                                        `- error: cannot find 'CPU_ARCH_ABI64' in scope
277 |
278 |             return cpuType
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Compiling EmbeddedPropertyList BundleVersion.swift
[6/6] Emitting module EmbeddedPropertyList
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:202:84: error: cannot find type 'cpu_type_t' in scope
200 |     ///   - mustSwap: Whether the data representing the fat header must have it endianness swapped.
201 |     /// - Returns: A dictionary of CPU types to mach headers within the executable. Only 64-bit CPU types are included.
202 |     private func machHeaderOffsetsForFatExecutable(data: Data, mustSwap: Bool) -> [cpu_type_t : UInt32] {
    |                                                                                    `- error: cannot find type 'cpu_type_t' in scope
203 |         // To populate with offsets
204 |         var archOffsets = [cpu_type_t : UInt32]()
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:245:51: error: cannot find type 'cpu_type_t' in scope
243 |
244 |         /// Returns the corresponding Darwin `cpu_type_t` for this enum value.
245 |         fileprivate func asDarwinType() throws -> cpu_type_t {
    |                                                   `- error: cannot find type 'cpu_type_t' in scope
246 |             switch self {
247 |                 case .x86_64:
/host/spi-builder-workspace/Sources/EmbeddedPropertyList/EmbeddedPropertyListReader.swift:260:42: error: cannot find type 'cpu_type_t' in scope
258 |         /// This relies on two `sysctl` calls. More information can be found via `man sysctl`. In particular `sysctl -a` will list all available commands on
259 |         /// the system which should include both `hw.cputype` and `hw.cpu64bit_capable`.
260 |         private func cpuType() throws -> cpu_type_t {
    |                                          `- error: cannot find type 'cpu_type_t' in scope
261 |             // Retrieve CPU type
262 |             var cpuType = cpu_type_t()
BUILD FAILURE 6.3 wasm