Build Information
Failed to build EmbeddedPropertyList, reference 2.0.2 (21bd83
), with Swift 6.1 for Android on 28 May 2025 06:38:39 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/trilemma-dev/EmbeddedPropertyList.git
Reference: 2.0.2
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
* tag 2.0.2 -> FETCH_HEAD
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 2.0.2
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/trilemma-dev/EmbeddedPropertyList.git
https://github.com/trilemma-dev/EmbeddedPropertyList.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "EmbeddedPropertyList",
"name" : "EmbeddedPropertyList",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
}
],
"products" : [
{
"name" : "EmbeddedPropertyList",
"targets" : [
"EmbeddedPropertyList"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "EmbeddedPropertyListTests",
"module_type" : "SwiftTarget",
"name" : "EmbeddedPropertyListTests",
"path" : "Tests/EmbeddedPropertyListTests",
"sources" : [
"BundleVersionTests.swift",
"ExecutableHelpers.swift",
"ReadExternalTests.swift"
],
"target_dependencies" : [
"EmbeddedPropertyList"
],
"type" : "test"
},
{
"c99name" : "EmbeddedPropertyList",
"module_type" : "SwiftTarget",
"name" : "EmbeddedPropertyList",
"path" : "Sources/EmbeddedPropertyList",
"product_memberships" : [
"EmbeddedPropertyList"
],
"sources" : [
"BundleVersion.swift",
"EmbeddedPropertyListReader.swift",
"ReadError.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
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/6] Compiling EmbeddedPropertyList BundleVersion.swift
[4/6] Compiling EmbeddedPropertyList ReadError.swift
[5/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()
[6/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: generic parameter 'T' could not be inferred
135 | /// - fromByteOffset: Relative to the start of `data` where to start reading the value.
136 | /// - Returns: The `data` starting at `offset` as an instance of `asType`.
137 | private func read<T>(_ data: Data, as type: T.Type, fromByteOffset offset: Int) -> T {
| `- note: in call to function 'read(_:as:fromByteOffset:)'
138 | data.withUnsafeBytes { pointer in
139 | pointer.load(fromByteOffset: offset, as: type)
:
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: generic parameter 'T' could not be inferred
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: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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling EmbeddedPropertyList ReadError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling EmbeddedPropertyList BundleVersion.swift
[4/5] 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()
[5/5] 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: generic parameter 'T' could not be inferred
135 | /// - fromByteOffset: Relative to the start of `data` where to start reading the value.
136 | /// - Returns: The `data` starting at `offset` as an instance of `asType`.
137 | private func read<T>(_ data: Data, as type: T.Type, fromByteOffset offset: Int) -> T {
| `- note: in call to function 'read(_:as:fromByteOffset:)'
138 | data.withUnsafeBytes { pointer in
139 | pointer.load(fromByteOffset: offset, as: type)
:
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: generic parameter 'T' could not be inferred
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: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
BUILD FAILURE 6.1 android