Build Information
Failed to build swift-acp, reference main (71cb78), with Swift 6.2 for Android on 9 Apr 2026 21:14:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/TeamSloppy/swift-acp.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/TeamSloppy/swift-acp
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 71cb789 Fix macos error
Submodule path 'reference/agent-client-protocol': checked out '709a3cfe366fb7063aea284ef4f3b25dad1ac6ec'
Submodule path 'reference/kotlin-sdk': checked out 'eb2f16207e41febfa901d0bf0070f0213ae7df8d'
Submodule path 'reference/python-sdk': checked out '69c184c86a1ec7e77a718fcbbfdc7db7eb5351e6'
Submodule path 'reference/registry': checked out '2924f20806c51e1281e3f829ed8b59d1e4699ef6'
Submodule path 'reference/rust-sdk': checked out 'a0917aafe98c95d8e3654d5c441e0cd347df654f'
Submodule path 'reference/typescript-sdk': checked out '9609d922dc855dc4446dfaef082416d34e0f123a'
Submodule 'reference/agent-client-protocol' (https://github.com/agentclientprotocol/agent-client-protocol.git) registered for path 'reference/agent-client-protocol'
Submodule 'reference/kotlin-sdk' (https://github.com/agentclientprotocol/kotlin-sdk.git) registered for path 'reference/kotlin-sdk'
Submodule 'reference/python-sdk' (https://github.com/agentclientprotocol/python-sdk.git) registered for path 'reference/python-sdk'
Submodule 'reference/registry' (https://github.com/agentclientprotocol/registry.git) registered for path 'reference/registry'
Submodule 'reference/rust-sdk' (https://github.com/agentclientprotocol/rust-sdk.git) registered for path 'reference/rust-sdk'
Submodule 'reference/typescript-sdk' (https://github.com/agentclientprotocol/typescript-sdk.git) registered for path 'reference/typescript-sdk'
Cloning into '/host/spi-builder-workspace/reference/agent-client-protocol'...
Cloning into '/host/spi-builder-workspace/reference/kotlin-sdk'...
Cloning into '/host/spi-builder-workspace/reference/python-sdk'...
Cloning into '/host/spi-builder-workspace/reference/registry'...
Cloning into '/host/spi-builder-workspace/reference/rust-sdk'...
Cloning into '/host/spi-builder-workspace/reference/typescript-sdk'...
Cloned https://github.com/TeamSloppy/swift-acp.git
Revision (git rev-parse @):
71cb789b66355bbeb82b402a4b61b7cb1e584ad8
SUCCESS checkout https://github.com/TeamSloppy/swift-acp.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/TeamSloppy/swift-acp.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:cb98f9856cb1288a0028ff0e63d4de86ca92d5e7890400e3e915f7ea3943ed55
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-log.git
[1/6463] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.47s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.11.0 (0.90s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.11.0
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version--11D90AFD9DD3AB2.txt
[7/29] Emitting module ACPRegistry
[8/29] Compiling Logging MetadataProvider.swift
[9/29] Emitting module Logging
[10/29] Compiling Logging LogHandler.swift
[11/29] Compiling Logging LogEvent.swift
[12/29] Compiling Logging Locks.swift
[13/29] Compiling Logging Logging.swift
[15/30] Compiling ACPModel Config.swift
[16/30] Compiling ACPModel Content.swift
[17/31] Emitting module ACPModel
[18/31] Compiling ACPModel ACPModel.swift
[19/31] Compiling ACPModel Capabilities.swift
[20/31] Compiling ACPRegistry RegistryClient.swift
[21/31] Compiling ACPRegistry RegistryTypes.swift
[22/31] Compiling ACPRegistry AgentInstaller.swift
[24/32] Compiling ACPModel Terminal.swift
[25/32] Compiling ACPModel Permission.swift
[26/32] Compiling ACPModel Requests.swift
[27/32] Compiling ACPModel Errors.swift
[28/32] Compiling ACPModel Message.swift
[29/32] Compiling ACPModel Tool.swift
[30/32] Compiling ACPModel Responses.swift
[31/32] Compiling ACPModel Session.swift
[32/32] Compiling ACPModel Updates.swift
[34/56] Emitting module ACP
[35/56] Compiling ACP Permission.swift
[36/56] Compiling ACP Requests.swift
[37/56] Compiling ACP Responses.swift
[38/56] Compiling ACP ProcessRegistry.swift
/host/spi-builder-workspace/Sources/ACP/Internal/ProcessRegistry.swift:206:20: error: cannot find 'errno' in scope
204 | if let pgid = entry.pgid {
205 | if killpg(pgid, 0) == 0 { return true }
206 | return errno == EPERM
| `- error: cannot find 'errno' in scope
207 | }
208 | if kill(entry.pid, 0) == 0 { return true }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ACP/Internal/ProcessRegistry.swift:209:16: error: cannot find 'errno' in scope
207 | }
208 | if kill(entry.pid, 0) == 0 { return true }
209 | return errno == EPERM
| `- error: cannot find 'errno' in scope
210 | }
211 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[39/56] Compiling ACP RequestRouter.swift
/host/spi-builder-workspace/Sources/ACP/Internal/ProcessRegistry.swift:206:20: error: cannot find 'errno' in scope
204 | if let pgid = entry.pgid {
205 | if killpg(pgid, 0) == 0 { return true }
206 | return errno == EPERM
| `- error: cannot find 'errno' in scope
207 | }
208 | if kill(entry.pid, 0) == 0 { return true }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ACP/Internal/ProcessRegistry.swift:209:16: error: cannot find 'errno' in scope
207 | }
208 | if kill(entry.pid, 0) == 0 { return true }
209 | return errno == EPERM
| `- error: cannot find 'errno' in scope
210 | }
211 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[40/56] Compiling ACP Message.swift
/host/spi-builder-workspace/Sources/ACP/Internal/ProcessRegistry.swift:206:20: error: cannot find 'errno' in scope
204 | if let pgid = entry.pgid {
205 | if killpg(pgid, 0) == 0 { return true }
206 | return errno == EPERM
| `- error: cannot find 'errno' in scope
207 | }
208 | if kill(entry.pid, 0) == 0 { return true }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ACP/Internal/ProcessRegistry.swift:209:16: error: cannot find 'errno' in scope
207 | }
208 | if kill(entry.pid, 0) == 0 { return true }
209 | return errno == EPERM
| `- error: cannot find 'errno' in scope
210 | }
211 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[41/59] Compiling ACP ClientDelegate.swift
[42/59] Compiling ACP Config.swift
[43/59] Compiling ACP Content.swift
[44/59] Compiling ACP Updates.swift
/host/spi-builder-workspace/Sources/ACP/Utilities/Logger.swift:29:17: warning: 'log(level:message:metadata:source:file:function:line:)' is deprecated: renamed to 'log(event:)' [#DeprecatedDeclaration]
27 | private func log(level: Logging.Logger.Level, message: String) {
28 | let handler = StreamLogHandler.standardError(label: label)
29 | handler.log(level: level, message: .init(stringLiteral: message), metadata: nil, source: label, file: #fileID, function: #function, line: #line)
| |- warning: 'log(level:message:metadata:source:file:function:line:)' is deprecated: renamed to 'log(event:)' [#DeprecatedDeclaration]
| `- note: use 'log(event:)' instead
30 | }
31 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[45/59] Compiling ACP Logger.swift
/host/spi-builder-workspace/Sources/ACP/Utilities/Logger.swift:29:17: warning: 'log(level:message:metadata:source:file:function:line:)' is deprecated: renamed to 'log(event:)' [#DeprecatedDeclaration]
27 | private func log(level: Logging.Logger.Level, message: String) {
28 | let handler = StreamLogHandler.standardError(label: label)
29 | handler.log(level: level, message: .init(stringLiteral: message), metadata: nil, source: label, file: #fileID, function: #function, line: #line)
| |- warning: 'log(level:message:metadata:source:file:function:line:)' is deprecated: renamed to 'log(event:)' [#DeprecatedDeclaration]
| `- note: use 'log(event:)' instead
30 | }
31 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[46/59] Compiling ACP ShellEnvironment.swift
/host/spi-builder-workspace/Sources/ACP/Utilities/Logger.swift:29:17: warning: 'log(level:message:metadata:source:file:function:line:)' is deprecated: renamed to 'log(event:)' [#DeprecatedDeclaration]
27 | private func log(level: Logging.Logger.Level, message: String) {
28 | let handler = StreamLogHandler.standardError(label: label)
29 | handler.log(level: level, message: .init(stringLiteral: message), metadata: nil, source: label, file: #fileID, function: #function, line: #line)
| |- warning: 'log(level:message:metadata:source:file:function:line:)' is deprecated: renamed to 'log(event:)' [#DeprecatedDeclaration]
| `- note: use 'log(event:)' instead
30 | }
31 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[47/59] Compiling ACP Session.swift
[48/59] Compiling ACP Terminal.swift
[49/59] Compiling ACP TerminalDelegate.swift
[50/59] Compiling ACP Tool.swift
[51/59] Compiling ACP StdioTransport.swift
[52/59] Compiling ACP Transport.swift
[53/59] Compiling ACP Agent.swift
[54/59] Compiling ACP StdinTransport.swift
[55/59] Compiling ACP Capabilities.swift
[56/59] Compiling ACP Client.swift
[57/59] Compiling ACP Errors.swift
/host/spi-builder-workspace/Sources/ACP/Internal/ProcessManager.swift:148:16: error: cannot find 'setpgid' in scope
146 | if proc.processIdentifier > 0 {
147 | let pid = proc.processIdentifier
148 | if setpgid(pid, pid) == 0 {
| `- error: cannot find 'setpgid' in scope
149 | processGroupId = pid
150 | } else {
/host/spi-builder-workspace/Sources/ACP/Internal/ProcessManager.swift:151:104: error: cannot find 'errno' in scope
149 | processGroupId = pid
150 | } else {
151 | logger.warning("Failed to set process group for pid=\(pid): \(String(cString: strerror(errno)))")
| `- error: cannot find 'errno' in scope
152 | }
153 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[58/59] Compiling ACP FileSystemDelegate.swift
/host/spi-builder-workspace/Sources/ACP/Internal/ProcessManager.swift:148:16: error: cannot find 'setpgid' in scope
146 | if proc.processIdentifier > 0 {
147 | let pid = proc.processIdentifier
148 | if setpgid(pid, pid) == 0 {
| `- error: cannot find 'setpgid' in scope
149 | processGroupId = pid
150 | } else {
/host/spi-builder-workspace/Sources/ACP/Internal/ProcessManager.swift:151:104: error: cannot find 'errno' in scope
149 | processGroupId = pid
150 | } else {
151 | logger.warning("Failed to set process group for pid=\(pid): \(String(cString: strerror(errno)))")
| `- error: cannot find 'errno' in scope
152 | }
153 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[59/59] Compiling ACP ProcessManager.swift
/host/spi-builder-workspace/Sources/ACP/Internal/ProcessManager.swift:148:16: error: cannot find 'setpgid' in scope
146 | if proc.processIdentifier > 0 {
147 | let pid = proc.processIdentifier
148 | if setpgid(pid, pid) == 0 {
| `- error: cannot find 'setpgid' in scope
149 | processGroupId = pid
150 | } else {
/host/spi-builder-workspace/Sources/ACP/Internal/ProcessManager.swift:151:104: error: cannot find 'errno' in scope
149 | processGroupId = pid
150 | } else {
151 | logger.warning("Failed to set process group for pid=\(pid): \(String(cString: strerror(errno)))")
| `- error: cannot find 'errno' in scope
152 | }
153 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
BUILD FAILURE 6.2 android