The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Hammer, reference main (51f95a), with Swift 6.2 for Android on 22 Nov 2026 20:53:29 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lyft/hammer.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/lyft/hammer
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 51f95a5 Allow an extra frozen check before a slow call returns in its test (#113)
Cloned https://github.com/lyft/hammer.git
Revision (git rev-parse @):
51f95a53883d0e8a29d4a04846fda6e3a582a6da
SUCCESS checkout https://github.com/lyft/hammer.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/lyft/hammer.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:9a42373a341cf0ac994d1354bf172b4b5ee78d50d70e79bac890b78e8d33c52e
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Building for debugging...
[0/9] Write sources
[4/9] Write swift-version--11D90AFD9DD3AB2.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/53] Emitting module Hammer
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[7/57] Compiling Hammer AppleInternal+BackBoardServices.swift
[8/57] Compiling Hammer AppleInternal+IOHID.swift
[9/58] Emitting module HammerAgentCore
[10/58] Compiling Hammer AppleInternal+UIKit.swift
[11/58] Compiling Hammer EventGenerator+Hand+Synchronous.swift
[12/58] Compiling Hammer SwiftErrorHooks.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[13/58] Compiling Hammer TouchStorage.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[14/58] Compiling Hammer UIKit+Extensions.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[15/58] Compiling Hammer Waiting.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[16/58] Compiling Hammer EventGenerator+Keyboard.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[17/58] Compiling Hammer KeyboardKey.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[18/58] Compiling Hammer EventGenerator+Marker.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[19/58] Compiling Hammer EventGenerator+Readiness.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[20/58] Compiling Hammer EventGenerator+Settings.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[21/58] Compiling Hammer EventGenerator+Stylus.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[22/58] Compiling Hammer StylusInfo.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[23/58] Compiling Hammer EventGenerator+SwiftUI.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[24/58] Compiling Hammer EventGenerator.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[25/58] Compiling Hammer HammerLocatable.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[26/58] Compiling HammerAgentCore JSONValue.swift
[27/58] Compiling HammerAgentCore BuiltinCommands.swift
[28/58] Compiling Hammer HammerError.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[29/58] Compiling Hammer HammerWindow.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[30/58] Compiling Hammer MainRunLoop.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[31/58] Compiling Hammer Subviews.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[32/58] Compiling Hammer AccessibilityElements.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[33/58] Compiling Hammer CoreGraphic+Extensions.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[34/58] Compiling Hammer Deadline.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[35/58] Compiling Hammer FrameTracker.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[36/58] Compiling HammerAgentCore PinchDistances.swift
[37/58] Compiling HammerAgentCore BuiltinCommands+Editing.swift
[38/58] Compiling HammerAgentCore CommandDescriptor.swift
[39/58] Compiling HammerAgentCore BuiltinCommands+Android.swift
[40/69] Wrapping AST for HammerAgentCore for debugging
[42/81] Compiling HammerCLI Driver.swift
[43/81] Compiling HammerCLI ScreenElements.swift
[44/81] Compiling HammerCLI CoreSimulator.swift
[45/84] Compiling HammerCLI SHA256.swift
[46/84] Compiling HammerCLI ScreenImage.swift
[47/84] Compiling HammerCLI SystemHelperAPK.swift
[48/84] Compiling HammerCLI SystemReads.swift
[49/84] Compiling HammerCLI SystemScreen.swift
[50/84] Compiling HammerCLI AgentClient.swift
[51/84] Compiling HammerCLI AndroidSystemCommands.swift
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:386:26: error: cannot find 'open' in scope
384 |     /// start the helper at once, where one's install would stop the helper the other is starting.
385 |     private func withStartLock<T>(_ body: () async throws -> T) async throws -> T {
386 |         let descriptor = open(self.hostFileStem + ".lock", O_CREAT | O_RDWR, 0o600)
    |                          `- error: cannot find 'open' in scope
387 |         guard descriptor >= 0 else {
388 |             return try await body()
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:386:60: error: cannot find 'O_CREAT' in scope
384 |     /// start the helper at once, where one's install would stop the helper the other is starting.
385 |     private func withStartLock<T>(_ body: () async throws -> T) async throws -> T {
386 |         let descriptor = open(self.hostFileStem + ".lock", O_CREAT | O_RDWR, 0o600)
    |                                                            `- error: cannot find 'O_CREAT' in scope
387 |         guard descriptor >= 0 else {
388 |             return try await body()
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:386:70: error: cannot find 'O_RDWR' in scope
384 |     /// start the helper at once, where one's install would stop the helper the other is starting.
385 |     private func withStartLock<T>(_ body: () async throws -> T) async throws -> T {
386 |         let descriptor = open(self.hostFileStem + ".lock", O_CREAT | O_RDWR, 0o600)
    |                                                                      `- error: cannot find 'O_RDWR' in scope
387 |         guard descriptor >= 0 else {
388 |             return try await body()
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:392:13: error: cannot find 'flock' in scope
390 |
391 |         defer {
392 |             flock(descriptor, LOCK_UN)
    |             `- error: cannot find 'flock' in scope
393 |             close(descriptor)
394 |         }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:392:31: error: cannot find 'LOCK_UN' in scope
390 |
391 |         defer {
392 |             flock(descriptor, LOCK_UN)
    |                               `- error: cannot find 'LOCK_UN' in scope
393 |             close(descriptor)
394 |         }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:393:13: error: cannot find 'close' in scope
391 |         defer {
392 |             flock(descriptor, LOCK_UN)
393 |             close(descriptor)
    |             `- error: cannot find 'close' in scope
394 |         }
395 |         // flock blocks, so it waits off the cooperative thread pool
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:398:17: error: cannot find 'flock' in scope
396 |         await withCheckedContinuation { (continuation: CheckedContinuation<Void, Never>) in
397 |             DispatchQueue.global().async {
398 |                 flock(descriptor, LOCK_EX)
    |                 `- error: cannot find 'flock' in scope
399 |                 continuation.resume()
400 |             }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:398:35: error: cannot find 'LOCK_EX' in scope
396 |         await withCheckedContinuation { (continuation: CheckedContinuation<Void, Never>) in
397 |             DispatchQueue.global().async {
398 |                 flock(descriptor, LOCK_EX)
    |                                   `- error: cannot find 'LOCK_EX' in scope
399 |                 continuation.resume()
400 |             }
[52/84] Compiling HammerCLI AndroidSystemDriver.swift
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:386:26: error: cannot find 'open' in scope
384 |     /// start the helper at once, where one's install would stop the helper the other is starting.
385 |     private func withStartLock<T>(_ body: () async throws -> T) async throws -> T {
386 |         let descriptor = open(self.hostFileStem + ".lock", O_CREAT | O_RDWR, 0o600)
    |                          `- error: cannot find 'open' in scope
387 |         guard descriptor >= 0 else {
388 |             return try await body()
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:386:60: error: cannot find 'O_CREAT' in scope
384 |     /// start the helper at once, where one's install would stop the helper the other is starting.
385 |     private func withStartLock<T>(_ body: () async throws -> T) async throws -> T {
386 |         let descriptor = open(self.hostFileStem + ".lock", O_CREAT | O_RDWR, 0o600)
    |                                                            `- error: cannot find 'O_CREAT' in scope
387 |         guard descriptor >= 0 else {
388 |             return try await body()
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:386:70: error: cannot find 'O_RDWR' in scope
384 |     /// start the helper at once, where one's install would stop the helper the other is starting.
385 |     private func withStartLock<T>(_ body: () async throws -> T) async throws -> T {
386 |         let descriptor = open(self.hostFileStem + ".lock", O_CREAT | O_RDWR, 0o600)
    |                                                                      `- error: cannot find 'O_RDWR' in scope
387 |         guard descriptor >= 0 else {
388 |             return try await body()
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:392:13: error: cannot find 'flock' in scope
390 |
391 |         defer {
392 |             flock(descriptor, LOCK_UN)
    |             `- error: cannot find 'flock' in scope
393 |             close(descriptor)
394 |         }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:392:31: error: cannot find 'LOCK_UN' in scope
390 |
391 |         defer {
392 |             flock(descriptor, LOCK_UN)
    |                               `- error: cannot find 'LOCK_UN' in scope
393 |             close(descriptor)
394 |         }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:393:13: error: cannot find 'close' in scope
391 |         defer {
392 |             flock(descriptor, LOCK_UN)
393 |             close(descriptor)
    |             `- error: cannot find 'close' in scope
394 |         }
395 |         // flock blocks, so it waits off the cooperative thread pool
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:398:17: error: cannot find 'flock' in scope
396 |         await withCheckedContinuation { (continuation: CheckedContinuation<Void, Never>) in
397 |             DispatchQueue.global().async {
398 |                 flock(descriptor, LOCK_EX)
    |                 `- error: cannot find 'flock' in scope
399 |                 continuation.resume()
400 |             }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:398:35: error: cannot find 'LOCK_EX' in scope
396 |         await withCheckedContinuation { (continuation: CheckedContinuation<Void, Never>) in
397 |             DispatchQueue.global().async {
398 |                 flock(descriptor, LOCK_EX)
    |                                   `- error: cannot find 'LOCK_EX' in scope
399 |                 continuation.resume()
400 |             }
[53/84] Compiling HammerCLI AndroidSystemHelper.swift
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:386:26: error: cannot find 'open' in scope
384 |     /// start the helper at once, where one's install would stop the helper the other is starting.
385 |     private func withStartLock<T>(_ body: () async throws -> T) async throws -> T {
386 |         let descriptor = open(self.hostFileStem + ".lock", O_CREAT | O_RDWR, 0o600)
    |                          `- error: cannot find 'open' in scope
387 |         guard descriptor >= 0 else {
388 |             return try await body()
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:386:60: error: cannot find 'O_CREAT' in scope
384 |     /// start the helper at once, where one's install would stop the helper the other is starting.
385 |     private func withStartLock<T>(_ body: () async throws -> T) async throws -> T {
386 |         let descriptor = open(self.hostFileStem + ".lock", O_CREAT | O_RDWR, 0o600)
    |                                                            `- error: cannot find 'O_CREAT' in scope
387 |         guard descriptor >= 0 else {
388 |             return try await body()
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:386:70: error: cannot find 'O_RDWR' in scope
384 |     /// start the helper at once, where one's install would stop the helper the other is starting.
385 |     private func withStartLock<T>(_ body: () async throws -> T) async throws -> T {
386 |         let descriptor = open(self.hostFileStem + ".lock", O_CREAT | O_RDWR, 0o600)
    |                                                                      `- error: cannot find 'O_RDWR' in scope
387 |         guard descriptor >= 0 else {
388 |             return try await body()
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:392:13: error: cannot find 'flock' in scope
390 |
391 |         defer {
392 |             flock(descriptor, LOCK_UN)
    |             `- error: cannot find 'flock' in scope
393 |             close(descriptor)
394 |         }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:392:31: error: cannot find 'LOCK_UN' in scope
390 |
391 |         defer {
392 |             flock(descriptor, LOCK_UN)
    |                               `- error: cannot find 'LOCK_UN' in scope
393 |             close(descriptor)
394 |         }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:393:13: error: cannot find 'close' in scope
391 |         defer {
392 |             flock(descriptor, LOCK_UN)
393 |             close(descriptor)
    |             `- error: cannot find 'close' in scope
394 |         }
395 |         // flock blocks, so it waits off the cooperative thread pool
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:398:17: error: cannot find 'flock' in scope
396 |         await withCheckedContinuation { (continuation: CheckedContinuation<Void, Never>) in
397 |             DispatchQueue.global().async {
398 |                 flock(descriptor, LOCK_EX)
    |                 `- error: cannot find 'flock' in scope
399 |                 continuation.resume()
400 |             }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/AndroidSystemHelper.swift:398:35: error: cannot find 'LOCK_EX' in scope
396 |         await withCheckedContinuation { (continuation: CheckedContinuation<Void, Never>) in
397 |             DispatchQueue.global().async {
398 |                 flock(descriptor, LOCK_EX)
    |                                   `- error: cannot find 'LOCK_EX' in scope
399 |                 continuation.resume()
400 |             }
[54/84] Compiling HammerCLI SimulatorAccessibility.swift
[55/84] Compiling HammerCLI SimulatorCommands.swift
[56/84] Compiling HammerCLI SimulatorDriver.swift
[57/84] Emitting module HammerCLI
[58/84] Compiling HammerCLI CLIOptions.swift
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:152:15: error: cannot find 'pipe' in scope
150 |         var outputPipe: [Int32] = [-1, -1]
151 |         var errorPipe: [Int32] = [-1, -1]
152 |         guard pipe(&outputPipe) == 0, pipe(&errorPipe) == 0 else {
    |               `- error: cannot find 'pipe' in scope
153 |             throw ClientError.noDevice("Unable to run adb: \(String(cString: strerror(errno)))",
154 |                                        hint: Adb.installHint)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:152:39: error: cannot find 'pipe' in scope
150 |         var outputPipe: [Int32] = [-1, -1]
151 |         var errorPipe: [Int32] = [-1, -1]
152 |         guard pipe(&outputPipe) == 0, pipe(&errorPipe) == 0 else {
    |                                       `- error: cannot find 'pipe' in scope
153 |             throw ClientError.noDevice("Unable to run adb: \(String(cString: strerror(errno)))",
154 |                                        hint: Adb.installHint)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:153:87: error: cannot find 'errno' in scope
151 |         var errorPipe: [Int32] = [-1, -1]
152 |         guard pipe(&outputPipe) == 0, pipe(&errorPipe) == 0 else {
153 |             throw ClientError.noDevice("Unable to run adb: \(String(cString: strerror(errno)))",
    |                                                                                       `- error: cannot find 'errno' in scope
154 |                                        hint: Adb.installHint)
155 |         }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:159:17: error: cannot find 'fcntl' in scope
157 |         // The child gets copies on 1 and 2; these ends stay out of it and of what it starts
158 |         for descriptor in outputPipe + errorPipe {
159 |             _ = fcntl(descriptor, F_SETFD, FD_CLOEXEC)
    |                 `- error: cannot find 'fcntl' in scope
160 |         }
161 |
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:159:35: error: cannot find 'F_SETFD' in scope
157 |         // The child gets copies on 1 and 2; these ends stay out of it and of what it starts
158 |         for descriptor in outputPipe + errorPipe {
159 |             _ = fcntl(descriptor, F_SETFD, FD_CLOEXEC)
    |                                   `- error: cannot find 'F_SETFD' in scope
160 |         }
161 |
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:159:44: error: cannot find 'FD_CLOEXEC' in scope
157 |         // The child gets copies on 1 and 2; these ends stay out of it and of what it starts
158 |         for descriptor in outputPipe + errorPipe {
159 |             _ = fcntl(descriptor, F_SETFD, FD_CLOEXEC)
    |                                            `- error: cannot find 'FD_CLOEXEC' in scope
160 |         }
161 |
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:166:48: error: cannot find 'close' in scope
164 |             pid = try self.spawn(output: outputPipe[1], error: errorPipe[1])
165 |         } catch {
166 |             (outputPipe + errorPipe).forEach { close($0) }
    |                                                `- error: cannot find 'close' in scope
167 |             throw error
168 |         }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:170:9: error: cannot find 'close' in scope
168 |         }
169 |
170 |         close(outputPipe[1])
    |         `- error: cannot find 'close' in scope
171 |         close(errorPipe[1])
172 |         let alreadyCancelled = self.lock.withLock {
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:171:9: error: cannot find 'close' in scope
169 |
170 |         close(outputPipe[1])
171 |         close(errorPipe[1])
    |         `- error: cannot find 'close' in scope
172 |         let alreadyCancelled = self.lock.withLock {
173 |             self.pid = pid
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:182:19: error: cannot find 'waitpid' in scope
180 |         Thread {
181 |             var status: Int32 = 0
182 |             while waitpid(pid, &status, 0) == -1 && errno == EINTR {}
    |                   `- error: cannot find 'waitpid' in scope
183 |             self.lock.withLock { self.waitStatus = status }
184 |             self.exited.signal()
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:182:53: error: cannot find 'errno' in scope
180 |         Thread {
181 |             var status: Int32 = 0
182 |             while waitpid(pid, &status, 0) == -1 && errno == EINTR {}
    |                                                     `- error: cannot find 'errno' in scope
183 |             self.lock.withLock { self.waitStatus = status }
184 |             self.exited.signal()
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:188:9: error: cannot find 'close' in scope
186 |
187 |         let read = self.read(output: outputPipe[0], error: errorPipe[0], pid: pid, timeout: timeout)
188 |         close(outputPipe[0])
    |         `- error: cannot find 'close' in scope
189 |         close(errorPipe[0])
190 |         return read
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:189:9: error: cannot find 'close' in scope
187 |         let read = self.read(output: outputPipe[0], error: errorPipe[0], pid: pid, timeout: timeout)
188 |         close(outputPipe[0])
189 |         close(errorPipe[0])
    |         `- error: cannot find 'close' in scope
190 |         return read
191 |     }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:197:23: error: cannot find 'posix_spawn_file_actions_t' in scope
195 |         var actions: posix_spawn_file_actions_t?
196 |         #else
197 |         var actions = posix_spawn_file_actions_t()
    |                       `- error: cannot find 'posix_spawn_file_actions_t' in scope
198 |         #endif
199 |         posix_spawn_file_actions_init(&actions)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:199:9: error: cannot find 'posix_spawn_file_actions_init' in scope
197 |         var actions = posix_spawn_file_actions_t()
198 |         #endif
199 |         posix_spawn_file_actions_init(&actions)
    |         `- error: cannot find 'posix_spawn_file_actions_init' in scope
200 |         defer { posix_spawn_file_actions_destroy(&actions) }
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:200:17: error: cannot find 'posix_spawn_file_actions_destroy' in scope
198 |         #endif
199 |         posix_spawn_file_actions_init(&actions)
200 |         defer { posix_spawn_file_actions_destroy(&actions) }
    |                 `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
202 |         posix_spawn_file_actions_adddup2(&actions, output, 1)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:201:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
199 |         posix_spawn_file_actions_init(&actions)
200 |         defer { posix_spawn_file_actions_destroy(&actions) }
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
    |         `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
202 |         posix_spawn_file_actions_adddup2(&actions, output, 1)
203 |         posix_spawn_file_actions_adddup2(&actions, error, 2)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:201:68: error: cannot find 'O_RDONLY' in scope
199 |         posix_spawn_file_actions_init(&actions)
200 |         defer { posix_spawn_file_actions_destroy(&actions) }
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
    |                                                                    `- error: cannot find 'O_RDONLY' in scope
202 |         posix_spawn_file_actions_adddup2(&actions, output, 1)
203 |         posix_spawn_file_actions_adddup2(&actions, error, 2)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:202:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
200 |         defer { posix_spawn_file_actions_destroy(&actions) }
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
202 |         posix_spawn_file_actions_adddup2(&actions, output, 1)
    |         `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
203 |         posix_spawn_file_actions_adddup2(&actions, error, 2)
204 |
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:203:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
202 |         posix_spawn_file_actions_adddup2(&actions, output, 1)
203 |         posix_spawn_file_actions_adddup2(&actions, error, 2)
    |         `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
204 |
205 |         // Only standard input, output and error reach adb, as with Process, so it and the server it may
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:213:26: error: cannot find 'posix_spawnattr_t' in scope
211 |         posix_spawnattr_setflags(&attributes, Int16(POSIX_SPAWN_CLOEXEC_DEFAULT))
212 |         #else
213 |         var attributes = posix_spawnattr_t()
    |                          `- error: cannot find 'posix_spawnattr_t' in scope
214 |         posix_spawnattr_init(&attributes)
215 |         defer { posix_spawnattr_destroy(&attributes) }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:214:9: error: cannot find 'posix_spawnattr_init' in scope
212 |         #else
213 |         var attributes = posix_spawnattr_t()
214 |         posix_spawnattr_init(&attributes)
    |         `- error: cannot find 'posix_spawnattr_init' in scope
215 |         defer { posix_spawnattr_destroy(&attributes) }
216 |         let open = (try? FileManager.default.contentsOfDirectory(atPath: "/proc/self/fd")) ?? []
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:215:17: error: cannot find 'posix_spawnattr_destroy' in scope
213 |         var attributes = posix_spawnattr_t()
214 |         posix_spawnattr_init(&attributes)
215 |         defer { posix_spawnattr_destroy(&attributes) }
    |                 `- error: cannot find 'posix_spawnattr_destroy' in scope
216 |         let open = (try? FileManager.default.contentsOfDirectory(atPath: "/proc/self/fd")) ?? []
217 |         let inherited = open.compactMap { Int32($0) }.filter { $0 > 2 && $0 != output && $0 != error }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:219:13: error: cannot find 'posix_spawn_file_actions_addclose' in scope
217 |         let inherited = open.compactMap { Int32($0) }.filter { $0 > 2 && $0 != output && $0 != error }
218 |         for descriptor in inherited {
219 |             posix_spawn_file_actions_addclose(&actions, descriptor)
    |             `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
220 |         }
221 |         #endif
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:228:22: error: cannot find 'posix_spawn' in scope
226 |
227 |         var pid: pid_t = 0
228 |         var result = posix_spawn(&pid, self.executable.path, &actions, &attributes, argv, environment)
    |                      `- error: cannot find 'posix_spawn' in scope
229 |         // A file being written while another thread spawns is briefly busy on Linux
230 |         for _ in 0..<Self.busyRetries where result == ETXTBSY {
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:231:13: error: cannot find 'usleep' in scope
229 |         // A file being written while another thread spawns is briefly busy on Linux
230 |         for _ in 0..<Self.busyRetries where result == ETXTBSY {
231 |             usleep(Self.busyRetryMicroseconds)
    |             `- error: cannot find 'usleep' in scope
232 |             result = posix_spawn(&pid, self.executable.path, &actions, &attributes, argv, environment)
233 |         }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:232:22: error: cannot find 'posix_spawn' in scope
230 |         for _ in 0..<Self.busyRetries where result == ETXTBSY {
231 |             usleep(Self.busyRetryMicroseconds)
232 |             result = posix_spawn(&pid, self.executable.path, &actions, &attributes, argv, environment)
    |                      `- error: cannot find 'posix_spawn' in scope
233 |         }
234 |         guard result == 0 else {
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:247:13: error: cannot find 'pollfd' in scope
245 |         var data = [Data(), Data()]
246 |         var descriptors = [
247 |             pollfd(fd: output, events: Int16(POLLIN), revents: 0),
    |             `- error: cannot find 'pollfd' in scope
248 |             pollfd(fd: error, events: Int16(POLLIN), revents: 0),
249 |         ]
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:247:46: error: cannot find 'POLLIN' in scope
245 |         var data = [Data(), Data()]
246 |         var descriptors = [
247 |             pollfd(fd: output, events: Int16(POLLIN), revents: 0),
    |                                              `- error: cannot find 'POLLIN' in scope
248 |             pollfd(fd: error, events: Int16(POLLIN), revents: 0),
249 |         ]
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:248:13: error: cannot find 'pollfd' in scope
246 |         var descriptors = [
247 |             pollfd(fd: output, events: Int16(POLLIN), revents: 0),
248 |             pollfd(fd: error, events: Int16(POLLIN), revents: 0),
    |             `- error: cannot find 'pollfd' in scope
249 |         ]
250 |         let deadline = Date(timeIntervalSinceNow: timeout)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:248:45: error: cannot find 'POLLIN' in scope
246 |         var descriptors = [
247 |             pollfd(fd: output, events: Int16(POLLIN), revents: 0),
248 |             pollfd(fd: error, events: Int16(POLLIN), revents: 0),
    |                                             `- error: cannot find 'POLLIN' in scope
249 |         ]
250 |         let deadline = Date(timeIntervalSinceNow: timeout)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:279:19: error: cannot find 'poll' in scope
277 |             }
278 |
279 |             guard poll(&descriptors, nfds_t(descriptors.count), Self.pollMilliseconds) > 0 else {
    |                   `- error: cannot find 'poll' in scope
280 |                 continue
281 |             }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:279:38: error: cannot find 'nfds_t' in scope
277 |             }
278 |
279 |             guard poll(&descriptors, nfds_t(descriptors.count), Self.pollMilliseconds) > 0 else {
    |                                      `- error: cannot find 'nfds_t' in scope
280 |                 continue
281 |             }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:287:21: error: module 'Foundation' has no member named 'read'
285 |                 let descriptor = descriptors[index].fd
286 |                 let count = buffer.withUnsafeMutableBytes {
287 |                     Foundation.read(descriptor, $0.baseAddress, $0.count)
    |                     `- error: module 'Foundation' has no member named 'read'
288 |                 }
289 |                 if count > 0 {
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:292:42: error: cannot find 'errno' in scope
290 |                     data[index].append(contentsOf: buffer[0..<count])
291 |                     lastActivity = Date()
292 |                 } else if count == 0 || (errno != EINTR && errno != EAGAIN) {
    |                                          `- error: cannot find 'errno' in scope
293 |                     descriptors[index].fd = -1
294 |                 }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:292:60: error: cannot find 'errno' in scope
290 |                     data[index].append(contentsOf: buffer[0..<count])
291 |                     lastActivity = Date()
292 |                 } else if count == 0 || (errno != EINTR && errno != EAGAIN) {
    |                                                            `- error: cannot find 'errno' in scope
293 |                     descriptors[index].fd = -1
294 |                 }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[59/84] Compiling HammerCLI CommandArguments.swift
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:152:15: error: cannot find 'pipe' in scope
150 |         var outputPipe: [Int32] = [-1, -1]
151 |         var errorPipe: [Int32] = [-1, -1]
152 |         guard pipe(&outputPipe) == 0, pipe(&errorPipe) == 0 else {
    |               `- error: cannot find 'pipe' in scope
153 |             throw ClientError.noDevice("Unable to run adb: \(String(cString: strerror(errno)))",
154 |                                        hint: Adb.installHint)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:152:39: error: cannot find 'pipe' in scope
150 |         var outputPipe: [Int32] = [-1, -1]
151 |         var errorPipe: [Int32] = [-1, -1]
152 |         guard pipe(&outputPipe) == 0, pipe(&errorPipe) == 0 else {
    |                                       `- error: cannot find 'pipe' in scope
153 |             throw ClientError.noDevice("Unable to run adb: \(String(cString: strerror(errno)))",
154 |                                        hint: Adb.installHint)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:153:87: error: cannot find 'errno' in scope
151 |         var errorPipe: [Int32] = [-1, -1]
152 |         guard pipe(&outputPipe) == 0, pipe(&errorPipe) == 0 else {
153 |             throw ClientError.noDevice("Unable to run adb: \(String(cString: strerror(errno)))",
    |                                                                                       `- error: cannot find 'errno' in scope
154 |                                        hint: Adb.installHint)
155 |         }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:159:17: error: cannot find 'fcntl' in scope
157 |         // The child gets copies on 1 and 2; these ends stay out of it and of what it starts
158 |         for descriptor in outputPipe + errorPipe {
159 |             _ = fcntl(descriptor, F_SETFD, FD_CLOEXEC)
    |                 `- error: cannot find 'fcntl' in scope
160 |         }
161 |
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:159:35: error: cannot find 'F_SETFD' in scope
157 |         // The child gets copies on 1 and 2; these ends stay out of it and of what it starts
158 |         for descriptor in outputPipe + errorPipe {
159 |             _ = fcntl(descriptor, F_SETFD, FD_CLOEXEC)
    |                                   `- error: cannot find 'F_SETFD' in scope
160 |         }
161 |
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:159:44: error: cannot find 'FD_CLOEXEC' in scope
157 |         // The child gets copies on 1 and 2; these ends stay out of it and of what it starts
158 |         for descriptor in outputPipe + errorPipe {
159 |             _ = fcntl(descriptor, F_SETFD, FD_CLOEXEC)
    |                                            `- error: cannot find 'FD_CLOEXEC' in scope
160 |         }
161 |
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:166:48: error: cannot find 'close' in scope
164 |             pid = try self.spawn(output: outputPipe[1], error: errorPipe[1])
165 |         } catch {
166 |             (outputPipe + errorPipe).forEach { close($0) }
    |                                                `- error: cannot find 'close' in scope
167 |             throw error
168 |         }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:170:9: error: cannot find 'close' in scope
168 |         }
169 |
170 |         close(outputPipe[1])
    |         `- error: cannot find 'close' in scope
171 |         close(errorPipe[1])
172 |         let alreadyCancelled = self.lock.withLock {
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:171:9: error: cannot find 'close' in scope
169 |
170 |         close(outputPipe[1])
171 |         close(errorPipe[1])
    |         `- error: cannot find 'close' in scope
172 |         let alreadyCancelled = self.lock.withLock {
173 |             self.pid = pid
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:182:19: error: cannot find 'waitpid' in scope
180 |         Thread {
181 |             var status: Int32 = 0
182 |             while waitpid(pid, &status, 0) == -1 && errno == EINTR {}
    |                   `- error: cannot find 'waitpid' in scope
183 |             self.lock.withLock { self.waitStatus = status }
184 |             self.exited.signal()
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:182:53: error: cannot find 'errno' in scope
180 |         Thread {
181 |             var status: Int32 = 0
182 |             while waitpid(pid, &status, 0) == -1 && errno == EINTR {}
    |                                                     `- error: cannot find 'errno' in scope
183 |             self.lock.withLock { self.waitStatus = status }
184 |             self.exited.signal()
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:188:9: error: cannot find 'close' in scope
186 |
187 |         let read = self.read(output: outputPipe[0], error: errorPipe[0], pid: pid, timeout: timeout)
188 |         close(outputPipe[0])
    |         `- error: cannot find 'close' in scope
189 |         close(errorPipe[0])
190 |         return read
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:189:9: error: cannot find 'close' in scope
187 |         let read = self.read(output: outputPipe[0], error: errorPipe[0], pid: pid, timeout: timeout)
188 |         close(outputPipe[0])
189 |         close(errorPipe[0])
    |         `- error: cannot find 'close' in scope
190 |         return read
191 |     }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:197:23: error: cannot find 'posix_spawn_file_actions_t' in scope
195 |         var actions: posix_spawn_file_actions_t?
196 |         #else
197 |         var actions = posix_spawn_file_actions_t()
    |                       `- error: cannot find 'posix_spawn_file_actions_t' in scope
198 |         #endif
199 |         posix_spawn_file_actions_init(&actions)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:199:9: error: cannot find 'posix_spawn_file_actions_init' in scope
197 |         var actions = posix_spawn_file_actions_t()
198 |         #endif
199 |         posix_spawn_file_actions_init(&actions)
    |         `- error: cannot find 'posix_spawn_file_actions_init' in scope
200 |         defer { posix_spawn_file_actions_destroy(&actions) }
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:200:17: error: cannot find 'posix_spawn_file_actions_destroy' in scope
198 |         #endif
199 |         posix_spawn_file_actions_init(&actions)
200 |         defer { posix_spawn_file_actions_destroy(&actions) }
    |                 `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
202 |         posix_spawn_file_actions_adddup2(&actions, output, 1)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:201:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
199 |         posix_spawn_file_actions_init(&actions)
200 |         defer { posix_spawn_file_actions_destroy(&actions) }
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
    |         `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
202 |         posix_spawn_file_actions_adddup2(&actions, output, 1)
203 |         posix_spawn_file_actions_adddup2(&actions, error, 2)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:201:68: error: cannot find 'O_RDONLY' in scope
199 |         posix_spawn_file_actions_init(&actions)
200 |         defer { posix_spawn_file_actions_destroy(&actions) }
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
    |                                                                    `- error: cannot find 'O_RDONLY' in scope
202 |         posix_spawn_file_actions_adddup2(&actions, output, 1)
203 |         posix_spawn_file_actions_adddup2(&actions, error, 2)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:202:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
200 |         defer { posix_spawn_file_actions_destroy(&actions) }
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
202 |         posix_spawn_file_actions_adddup2(&actions, output, 1)
    |         `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
203 |         posix_spawn_file_actions_adddup2(&actions, error, 2)
204 |
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:203:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
202 |         posix_spawn_file_actions_adddup2(&actions, output, 1)
203 |         posix_spawn_file_actions_adddup2(&actions, error, 2)
    |         `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
204 |
205 |         // Only standard input, output and error reach adb, as with Process, so it and the server it may
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:213:26: error: cannot find 'posix_spawnattr_t' in scope
211 |         posix_spawnattr_setflags(&attributes, Int16(POSIX_SPAWN_CLOEXEC_DEFAULT))
212 |         #else
213 |         var attributes = posix_spawnattr_t()
    |                          `- error: cannot find 'posix_spawnattr_t' in scope
214 |         posix_spawnattr_init(&attributes)
215 |         defer { posix_spawnattr_destroy(&attributes) }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:214:9: error: cannot find 'posix_spawnattr_init' in scope
212 |         #else
213 |         var attributes = posix_spawnattr_t()
214 |         posix_spawnattr_init(&attributes)
    |         `- error: cannot find 'posix_spawnattr_init' in scope
215 |         defer { posix_spawnattr_destroy(&attributes) }
216 |         let open = (try? FileManager.default.contentsOfDirectory(atPath: "/proc/self/fd")) ?? []
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:215:17: error: cannot find 'posix_spawnattr_destroy' in scope
213 |         var attributes = posix_spawnattr_t()
214 |         posix_spawnattr_init(&attributes)
215 |         defer { posix_spawnattr_destroy(&attributes) }
    |                 `- error: cannot find 'posix_spawnattr_destroy' in scope
216 |         let open = (try? FileManager.default.contentsOfDirectory(atPath: "/proc/self/fd")) ?? []
217 |         let inherited = open.compactMap { Int32($0) }.filter { $0 > 2 && $0 != output && $0 != error }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:219:13: error: cannot find 'posix_spawn_file_actions_addclose' in scope
217 |         let inherited = open.compactMap { Int32($0) }.filter { $0 > 2 && $0 != output && $0 != error }
218 |         for descriptor in inherited {
219 |             posix_spawn_file_actions_addclose(&actions, descriptor)
    |             `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
220 |         }
221 |         #endif
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:228:22: error: cannot find 'posix_spawn' in scope
226 |
227 |         var pid: pid_t = 0
228 |         var result = posix_spawn(&pid, self.executable.path, &actions, &attributes, argv, environment)
    |                      `- error: cannot find 'posix_spawn' in scope
229 |         // A file being written while another thread spawns is briefly busy on Linux
230 |         for _ in 0..<Self.busyRetries where result == ETXTBSY {
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:231:13: error: cannot find 'usleep' in scope
229 |         // A file being written while another thread spawns is briefly busy on Linux
230 |         for _ in 0..<Self.busyRetries where result == ETXTBSY {
231 |             usleep(Self.busyRetryMicroseconds)
    |             `- error: cannot find 'usleep' in scope
232 |             result = posix_spawn(&pid, self.executable.path, &actions, &attributes, argv, environment)
233 |         }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:232:22: error: cannot find 'posix_spawn' in scope
230 |         for _ in 0..<Self.busyRetries where result == ETXTBSY {
231 |             usleep(Self.busyRetryMicroseconds)
232 |             result = posix_spawn(&pid, self.executable.path, &actions, &attributes, argv, environment)
    |                      `- error: cannot find 'posix_spawn' in scope
233 |         }
234 |         guard result == 0 else {
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:247:13: error: cannot find 'pollfd' in scope
245 |         var data = [Data(), Data()]
246 |         var descriptors = [
247 |             pollfd(fd: output, events: Int16(POLLIN), revents: 0),
    |             `- error: cannot find 'pollfd' in scope
248 |             pollfd(fd: error, events: Int16(POLLIN), revents: 0),
249 |         ]
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:247:46: error: cannot find 'POLLIN' in scope
245 |         var data = [Data(), Data()]
246 |         var descriptors = [
247 |             pollfd(fd: output, events: Int16(POLLIN), revents: 0),
    |                                              `- error: cannot find 'POLLIN' in scope
248 |             pollfd(fd: error, events: Int16(POLLIN), revents: 0),
249 |         ]
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:248:13: error: cannot find 'pollfd' in scope
246 |         var descriptors = [
247 |             pollfd(fd: output, events: Int16(POLLIN), revents: 0),
248 |             pollfd(fd: error, events: Int16(POLLIN), revents: 0),
    |             `- error: cannot find 'pollfd' in scope
249 |         ]
250 |         let deadline = Date(timeIntervalSinceNow: timeout)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:248:45: error: cannot find 'POLLIN' in scope
246 |         var descriptors = [
247 |             pollfd(fd: output, events: Int16(POLLIN), revents: 0),
248 |             pollfd(fd: error, events: Int16(POLLIN), revents: 0),
    |                                             `- error: cannot find 'POLLIN' in scope
249 |         ]
250 |         let deadline = Date(timeIntervalSinceNow: timeout)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:279:19: error: cannot find 'poll' in scope
277 |             }
278 |
279 |             guard poll(&descriptors, nfds_t(descriptors.count), Self.pollMilliseconds) > 0 else {
    |                   `- error: cannot find 'poll' in scope
280 |                 continue
281 |             }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:279:38: error: cannot find 'nfds_t' in scope
277 |             }
278 |
279 |             guard poll(&descriptors, nfds_t(descriptors.count), Self.pollMilliseconds) > 0 else {
    |                                      `- error: cannot find 'nfds_t' in scope
280 |                 continue
281 |             }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:287:21: error: module 'Foundation' has no member named 'read'
285 |                 let descriptor = descriptors[index].fd
286 |                 let count = buffer.withUnsafeMutableBytes {
287 |                     Foundation.read(descriptor, $0.baseAddress, $0.count)
    |                     `- error: module 'Foundation' has no member named 'read'
288 |                 }
289 |                 if count > 0 {
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:292:42: error: cannot find 'errno' in scope
290 |                     data[index].append(contentsOf: buffer[0..<count])
291 |                     lastActivity = Date()
292 |                 } else if count == 0 || (errno != EINTR && errno != EAGAIN) {
    |                                          `- error: cannot find 'errno' in scope
293 |                     descriptors[index].fd = -1
294 |                 }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:292:60: error: cannot find 'errno' in scope
290 |                     data[index].append(contentsOf: buffer[0..<count])
291 |                     lastActivity = Date()
292 |                 } else if count == 0 || (errno != EINTR && errno != EAGAIN) {
    |                                                            `- error: cannot find 'errno' in scope
293 |                     descriptors[index].fd = -1
294 |                 }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[60/84] Compiling HammerCLI Adb.swift
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:152:15: error: cannot find 'pipe' in scope
150 |         var outputPipe: [Int32] = [-1, -1]
151 |         var errorPipe: [Int32] = [-1, -1]
152 |         guard pipe(&outputPipe) == 0, pipe(&errorPipe) == 0 else {
    |               `- error: cannot find 'pipe' in scope
153 |             throw ClientError.noDevice("Unable to run adb: \(String(cString: strerror(errno)))",
154 |                                        hint: Adb.installHint)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:152:39: error: cannot find 'pipe' in scope
150 |         var outputPipe: [Int32] = [-1, -1]
151 |         var errorPipe: [Int32] = [-1, -1]
152 |         guard pipe(&outputPipe) == 0, pipe(&errorPipe) == 0 else {
    |                                       `- error: cannot find 'pipe' in scope
153 |             throw ClientError.noDevice("Unable to run adb: \(String(cString: strerror(errno)))",
154 |                                        hint: Adb.installHint)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:153:87: error: cannot find 'errno' in scope
151 |         var errorPipe: [Int32] = [-1, -1]
152 |         guard pipe(&outputPipe) == 0, pipe(&errorPipe) == 0 else {
153 |             throw ClientError.noDevice("Unable to run adb: \(String(cString: strerror(errno)))",
    |                                                                                       `- error: cannot find 'errno' in scope
154 |                                        hint: Adb.installHint)
155 |         }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:159:17: error: cannot find 'fcntl' in scope
157 |         // The child gets copies on 1 and 2; these ends stay out of it and of what it starts
158 |         for descriptor in outputPipe + errorPipe {
159 |             _ = fcntl(descriptor, F_SETFD, FD_CLOEXEC)
    |                 `- error: cannot find 'fcntl' in scope
160 |         }
161 |
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:159:35: error: cannot find 'F_SETFD' in scope
157 |         // The child gets copies on 1 and 2; these ends stay out of it and of what it starts
158 |         for descriptor in outputPipe + errorPipe {
159 |             _ = fcntl(descriptor, F_SETFD, FD_CLOEXEC)
    |                                   `- error: cannot find 'F_SETFD' in scope
160 |         }
161 |
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:159:44: error: cannot find 'FD_CLOEXEC' in scope
157 |         // The child gets copies on 1 and 2; these ends stay out of it and of what it starts
158 |         for descriptor in outputPipe + errorPipe {
159 |             _ = fcntl(descriptor, F_SETFD, FD_CLOEXEC)
    |                                            `- error: cannot find 'FD_CLOEXEC' in scope
160 |         }
161 |
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:166:48: error: cannot find 'close' in scope
164 |             pid = try self.spawn(output: outputPipe[1], error: errorPipe[1])
165 |         } catch {
166 |             (outputPipe + errorPipe).forEach { close($0) }
    |                                                `- error: cannot find 'close' in scope
167 |             throw error
168 |         }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:170:9: error: cannot find 'close' in scope
168 |         }
169 |
170 |         close(outputPipe[1])
    |         `- error: cannot find 'close' in scope
171 |         close(errorPipe[1])
172 |         let alreadyCancelled = self.lock.withLock {
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:171:9: error: cannot find 'close' in scope
169 |
170 |         close(outputPipe[1])
171 |         close(errorPipe[1])
    |         `- error: cannot find 'close' in scope
172 |         let alreadyCancelled = self.lock.withLock {
173 |             self.pid = pid
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:182:19: error: cannot find 'waitpid' in scope
180 |         Thread {
181 |             var status: Int32 = 0
182 |             while waitpid(pid, &status, 0) == -1 && errno == EINTR {}
    |                   `- error: cannot find 'waitpid' in scope
183 |             self.lock.withLock { self.waitStatus = status }
184 |             self.exited.signal()
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:182:53: error: cannot find 'errno' in scope
180 |         Thread {
181 |             var status: Int32 = 0
182 |             while waitpid(pid, &status, 0) == -1 && errno == EINTR {}
    |                                                     `- error: cannot find 'errno' in scope
183 |             self.lock.withLock { self.waitStatus = status }
184 |             self.exited.signal()
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:188:9: error: cannot find 'close' in scope
186 |
187 |         let read = self.read(output: outputPipe[0], error: errorPipe[0], pid: pid, timeout: timeout)
188 |         close(outputPipe[0])
    |         `- error: cannot find 'close' in scope
189 |         close(errorPipe[0])
190 |         return read
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:189:9: error: cannot find 'close' in scope
187 |         let read = self.read(output: outputPipe[0], error: errorPipe[0], pid: pid, timeout: timeout)
188 |         close(outputPipe[0])
189 |         close(errorPipe[0])
    |         `- error: cannot find 'close' in scope
190 |         return read
191 |     }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:197:23: error: cannot find 'posix_spawn_file_actions_t' in scope
195 |         var actions: posix_spawn_file_actions_t?
196 |         #else
197 |         var actions = posix_spawn_file_actions_t()
    |                       `- error: cannot find 'posix_spawn_file_actions_t' in scope
198 |         #endif
199 |         posix_spawn_file_actions_init(&actions)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:199:9: error: cannot find 'posix_spawn_file_actions_init' in scope
197 |         var actions = posix_spawn_file_actions_t()
198 |         #endif
199 |         posix_spawn_file_actions_init(&actions)
    |         `- error: cannot find 'posix_spawn_file_actions_init' in scope
200 |         defer { posix_spawn_file_actions_destroy(&actions) }
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:200:17: error: cannot find 'posix_spawn_file_actions_destroy' in scope
198 |         #endif
199 |         posix_spawn_file_actions_init(&actions)
200 |         defer { posix_spawn_file_actions_destroy(&actions) }
    |                 `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
202 |         posix_spawn_file_actions_adddup2(&actions, output, 1)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:201:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
199 |         posix_spawn_file_actions_init(&actions)
200 |         defer { posix_spawn_file_actions_destroy(&actions) }
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
    |         `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
202 |         posix_spawn_file_actions_adddup2(&actions, output, 1)
203 |         posix_spawn_file_actions_adddup2(&actions, error, 2)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:201:68: error: cannot find 'O_RDONLY' in scope
199 |         posix_spawn_file_actions_init(&actions)
200 |         defer { posix_spawn_file_actions_destroy(&actions) }
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
    |                                                                    `- error: cannot find 'O_RDONLY' in scope
202 |         posix_spawn_file_actions_adddup2(&actions, output, 1)
203 |         posix_spawn_file_actions_adddup2(&actions, error, 2)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:202:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
200 |         defer { posix_spawn_file_actions_destroy(&actions) }
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
202 |         posix_spawn_file_actions_adddup2(&actions, output, 1)
    |         `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
203 |         posix_spawn_file_actions_adddup2(&actions, error, 2)
204 |
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:203:9: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
201 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
202 |         posix_spawn_file_actions_adddup2(&actions, output, 1)
203 |         posix_spawn_file_actions_adddup2(&actions, error, 2)
    |         `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
204 |
205 |         // Only standard input, output and error reach adb, as with Process, so it and the server it may
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:213:26: error: cannot find 'posix_spawnattr_t' in scope
211 |         posix_spawnattr_setflags(&attributes, Int16(POSIX_SPAWN_CLOEXEC_DEFAULT))
212 |         #else
213 |         var attributes = posix_spawnattr_t()
    |                          `- error: cannot find 'posix_spawnattr_t' in scope
214 |         posix_spawnattr_init(&attributes)
215 |         defer { posix_spawnattr_destroy(&attributes) }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:214:9: error: cannot find 'posix_spawnattr_init' in scope
212 |         #else
213 |         var attributes = posix_spawnattr_t()
214 |         posix_spawnattr_init(&attributes)
    |         `- error: cannot find 'posix_spawnattr_init' in scope
215 |         defer { posix_spawnattr_destroy(&attributes) }
216 |         let open = (try? FileManager.default.contentsOfDirectory(atPath: "/proc/self/fd")) ?? []
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:215:17: error: cannot find 'posix_spawnattr_destroy' in scope
213 |         var attributes = posix_spawnattr_t()
214 |         posix_spawnattr_init(&attributes)
215 |         defer { posix_spawnattr_destroy(&attributes) }
    |                 `- error: cannot find 'posix_spawnattr_destroy' in scope
216 |         let open = (try? FileManager.default.contentsOfDirectory(atPath: "/proc/self/fd")) ?? []
217 |         let inherited = open.compactMap { Int32($0) }.filter { $0 > 2 && $0 != output && $0 != error }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:219:13: error: cannot find 'posix_spawn_file_actions_addclose' in scope
217 |         let inherited = open.compactMap { Int32($0) }.filter { $0 > 2 && $0 != output && $0 != error }
218 |         for descriptor in inherited {
219 |             posix_spawn_file_actions_addclose(&actions, descriptor)
    |             `- error: cannot find 'posix_spawn_file_actions_addclose' in scope
220 |         }
221 |         #endif
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:228:22: error: cannot find 'posix_spawn' in scope
226 |
227 |         var pid: pid_t = 0
228 |         var result = posix_spawn(&pid, self.executable.path, &actions, &attributes, argv, environment)
    |                      `- error: cannot find 'posix_spawn' in scope
229 |         // A file being written while another thread spawns is briefly busy on Linux
230 |         for _ in 0..<Self.busyRetries where result == ETXTBSY {
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:231:13: error: cannot find 'usleep' in scope
229 |         // A file being written while another thread spawns is briefly busy on Linux
230 |         for _ in 0..<Self.busyRetries where result == ETXTBSY {
231 |             usleep(Self.busyRetryMicroseconds)
    |             `- error: cannot find 'usleep' in scope
232 |             result = posix_spawn(&pid, self.executable.path, &actions, &attributes, argv, environment)
233 |         }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:232:22: error: cannot find 'posix_spawn' in scope
230 |         for _ in 0..<Self.busyRetries where result == ETXTBSY {
231 |             usleep(Self.busyRetryMicroseconds)
232 |             result = posix_spawn(&pid, self.executable.path, &actions, &attributes, argv, environment)
    |                      `- error: cannot find 'posix_spawn' in scope
233 |         }
234 |         guard result == 0 else {
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:247:13: error: cannot find 'pollfd' in scope
245 |         var data = [Data(), Data()]
246 |         var descriptors = [
247 |             pollfd(fd: output, events: Int16(POLLIN), revents: 0),
    |             `- error: cannot find 'pollfd' in scope
248 |             pollfd(fd: error, events: Int16(POLLIN), revents: 0),
249 |         ]
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:247:46: error: cannot find 'POLLIN' in scope
245 |         var data = [Data(), Data()]
246 |         var descriptors = [
247 |             pollfd(fd: output, events: Int16(POLLIN), revents: 0),
    |                                              `- error: cannot find 'POLLIN' in scope
248 |             pollfd(fd: error, events: Int16(POLLIN), revents: 0),
249 |         ]
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:248:13: error: cannot find 'pollfd' in scope
246 |         var descriptors = [
247 |             pollfd(fd: output, events: Int16(POLLIN), revents: 0),
248 |             pollfd(fd: error, events: Int16(POLLIN), revents: 0),
    |             `- error: cannot find 'pollfd' in scope
249 |         ]
250 |         let deadline = Date(timeIntervalSinceNow: timeout)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:248:45: error: cannot find 'POLLIN' in scope
246 |         var descriptors = [
247 |             pollfd(fd: output, events: Int16(POLLIN), revents: 0),
248 |             pollfd(fd: error, events: Int16(POLLIN), revents: 0),
    |                                             `- error: cannot find 'POLLIN' in scope
249 |         ]
250 |         let deadline = Date(timeIntervalSinceNow: timeout)
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:279:19: error: cannot find 'poll' in scope
277 |             }
278 |
279 |             guard poll(&descriptors, nfds_t(descriptors.count), Self.pollMilliseconds) > 0 else {
    |                   `- error: cannot find 'poll' in scope
280 |                 continue
281 |             }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:279:38: error: cannot find 'nfds_t' in scope
277 |             }
278 |
279 |             guard poll(&descriptors, nfds_t(descriptors.count), Self.pollMilliseconds) > 0 else {
    |                                      `- error: cannot find 'nfds_t' in scope
280 |                 continue
281 |             }
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:287:21: error: module 'Foundation' has no member named 'read'
285 |                 let descriptor = descriptors[index].fd
286 |                 let count = buffer.withUnsafeMutableBytes {
287 |                     Foundation.read(descriptor, $0.baseAddress, $0.count)
    |                     `- error: module 'Foundation' has no member named 'read'
288 |                 }
289 |                 if count > 0 {
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:292:42: error: cannot find 'errno' in scope
290 |                     data[index].append(contentsOf: buffer[0..<count])
291 |                     lastActivity = Date()
292 |                 } else if count == 0 || (errno != EINTR && errno != EAGAIN) {
    |                                          `- error: cannot find 'errno' in scope
293 |                     descriptors[index].fd = -1
294 |                 }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HammerCLI/Drivers/Android/Adb.swift:292:60: error: cannot find 'errno' in scope
290 |                     data[index].append(contentsOf: buffer[0..<count])
291 |                     lastActivity = Date()
292 |                 } else if count == 0 || (errno != EINTR && errno != EAGAIN) {
    |                                                            `- error: cannot find 'errno' in scope
293 |                     descriptors[index].fd = -1
294 |                 }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[61/84] Compiling HammerCLI SimulatorHID.swift
[62/84] Compiling HammerCLI HammerCLI.swift
[63/84] Compiling HammerCLI MCPServer.swift
[64/84] Compiling HammerCLI AndroidAgentClient.swift
[65/84] Compiling HammerCLI AndroidDevice.swift
[66/84] Compiling HammerCLI AndroidScreen.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
BUILD FAILURE 6.2 android