Build Information
Failed to build Hammer, reference 2.3.2 (51f95a), with Swift 6.1 for Android on 22 Nov 2026 20:52:47 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lyft/hammer.git
Reference: 2.3.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/lyft/hammer
* tag 2.3.2 -> FETCH_HEAD
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 2.3.2
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/lyft/hammer.git
https://github.com/lyft/hammer.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/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.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 saguaro1/spi-images
Digest: sha256:4a2fa435ac333753e63ed6c656fe70fcece760f0601ff6567c222f81f55cb110
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
Building for debugging...
[0/9] Write sources
[4/9] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/53] Emitting module Hammer
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 HammerAgentCore JSONValue.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[8/58] Compiling Hammer HammerError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
[9/58] Compiling Hammer HammerWindow.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
[10/58] Compiling Hammer MainRunLoop.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
[11/58] Compiling Hammer Subviews.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
[12/58] Compiling Hammer EventGenerator+Keyboard.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 KeyboardKey.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 EventGenerator+Marker.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 EventGenerator+Readiness.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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+Settings.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 AccessibilityElements.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 CoreGraphic+Extensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 Deadline.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 FrameTracker.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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] Emitting module HammerAgentCore
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[27/58] Compiling HammerAgentCore BuiltinCommands+Editing.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[28/58] Compiling Hammer EventGenerator+Stylus+Synchronous.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[29/58] Compiling Hammer EventGenerator+Synchronous.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[30/58] Compiling Hammer EventGenerator+Waiting+Synchronous.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[31/58] Compiling Hammer DebugVisualizerWindow.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[32/58] Compiling HammerAgentCore CommandDescriptor.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[33/58] Compiling HammerAgentCore BuiltinCommands.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[34/58] Compiling HammerAgentCore BuiltinCommands+Android.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[35/58] Compiling Hammer SwiftErrorHooks.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 Hammer TouchStorage.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
[37/58] Compiling Hammer UIKit+Extensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
[38/58] Compiling Hammer Waiting.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
[39/58] Compiling HammerAgentCore PinchDistances.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[40/59] Wrapping AST for HammerAgentCore for debugging
[42/81] Emitting module HammerCLI
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[43/84] Compiling HammerCLI AndroidSystemCommands.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 | }
[44/84] Compiling HammerCLI AndroidSystemDriver.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 | }
[45/84] Compiling HammerCLI AndroidSystemHelper.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 | }
[46/84] Compiling HammerCLI SystemReads.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[47/84] Compiling HammerCLI SystemScreen.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[48/84] Compiling HammerCLI AgentClient.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[49/84] Compiling HammerCLI SHA256.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[50/84] Compiling HammerCLI ScreenImage.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[51/84] Compiling HammerCLI SystemHelperAPK.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[52/84] Compiling HammerCLI SimulatorHID.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[53/84] Compiling HammerCLI HammerCLI.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[54/84] Compiling HammerCLI MCPServer.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[55/84] Compiling HammerCLI Driver.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[56/84] Compiling HammerCLI ScreenElements.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[57/84] Compiling HammerCLI CoreSimulator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[58/84] Compiling HammerCLI SimulatorAccessibility.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[59/84] Compiling HammerCLI SimulatorCommands.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[60/84] Compiling HammerCLI SimulatorDriver.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[61/84] Compiling HammerCLI AndroidAgentClient.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[62/84] Compiling HammerCLI AndroidDevice.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[63/84] Compiling HammerCLI AndroidScreen.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[64/84] Compiling HammerCLI CLIOptions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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: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 {
[65/84] Compiling HammerCLI CommandArguments.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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: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 {
[66/84] Compiling HammerCLI Adb.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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: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 {
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:4a2fa435ac333753e63ed6c656fe70fcece760f0601ff6567c222f81f55cb110
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
[2/49] 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
[3/49] 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
[4/49] 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
[5/49] 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
[6/49] 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
[7/53] Compiling HammerAgentCore JSONValue.swift
[8/54] 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
[9/54] 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
[10/54] 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
[11/54] 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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/54] 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
[13/54] Compiling HammerAgentCore PinchDistances.swift
[14/54] 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
[15/54] 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
[16/54] 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
[17/54] 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
[18/54] 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
[19/54] 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
[20/54] 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
[21/54] 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
[22/54] Compiling HammerAgentCore BuiltinCommands.swift
[23/54] Compiling HammerAgentCore BuiltinCommands+Android.swift
[24/54] Compiling HammerAgentCore BuiltinCommands+Editing.swift
[25/54] Compiling HammerAgentCore CommandDescriptor.swift
[26/54] Compiling Hammer EventGenerator+Waiting+Synchronous.swift
[27/54] Compiling Hammer DebugVisualizerWindow.swift
[28/54] Emitting module HammerAgentCore
[29/54] Compiling Hammer EventGenerator+Stylus+Synchronous.swift
[30/54] Compiling Hammer EventGenerator+Synchronous.swift
[31/55] 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
[32/55] 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
[33/55] 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
[34/55] 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
[35/55] 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
[37/76] 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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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: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 {
[38/76] 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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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: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 {
[39/76] 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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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: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 {
[40/79] Emitting module HammerCLI
[41/79] Compiling HammerCLI SimulatorAccessibility.swift
[42/79] Compiling HammerCLI SimulatorCommands.swift
[43/79] Compiling HammerCLI SimulatorDriver.swift
[44/79] Compiling HammerCLI SHA256.swift
[45/79] Compiling HammerCLI ScreenImage.swift
[46/79] Compiling HammerCLI SystemHelperAPK.swift
[47/79] Compiling HammerCLI SystemReads.swift
[48/79] Compiling HammerCLI SystemScreen.swift
[49/79] Compiling HammerCLI AgentClient.swift
[50/79] Compiling HammerCLI Driver.swift
[51/79] Compiling HammerCLI ScreenElements.swift
[52/79] Compiling HammerCLI CoreSimulator.swift
[53/79] Compiling HammerCLI AndroidAgentClient.swift
[54/79] Compiling HammerCLI AndroidDevice.swift
[55/79] Compiling HammerCLI AndroidScreen.swift
[56/79] 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 | }
[57/79] 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 | }
[58/79] 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 | }
[59/79] Compiling HammerCLI SimulatorHID.swift
[60/79] Compiling HammerCLI HammerCLI.swift
[61/79] Compiling HammerCLI MCPServer.swift
BUILD FAILURE 6.1 android