The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AgentAdapter, reference 0.0.10 (9aca9e), with Swift 6.3 for Android on 19 Nov 2026 09:53:57 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mtj0928/agent-adapter.git
Reference: 0.0.10
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/mtj0928/agent-adapter
 * tag               0.0.10     -> FETCH_HEAD
HEAD is now at 9aca9e2 Fix Linux build for file locking
Cloned https://github.com/mtj0928/agent-adapter.git
Revision (git rev-parse @):
9aca9e20bc381102b0df59941b96472e71145b74
SUCCESS checkout https://github.com/mtj0928/agent-adapter.git at 0.0.10
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/mtj0928/agent-adapter.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:41afcdb97864bf5406d0ae8aa5bcfcef33b811a9f32d0153a8ac0739abb37de2
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/jpsim/Yams.git
[1/11910] Fetching yams
[6195/31350] Fetching yams, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.96s)
Fetched https://github.com/jpsim/Yams.git from cache (0.96s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.4.0 (1.86s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (0.16s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.4.0
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/21] Write sources
[7/21] Compiling writer.c
[8/21] Compiling reader.c
[9/21] Compiling parser.c
[10/21] Compiling api.c
[11/21] Write swift-version-272D24FF697CF451.txt
[12/21] Compiling emitter.c
[13/23] Compiling scanner.c
[15/43] Emitting module Yams
[16/45] Compiling Yams Mark.swift
[17/45] Compiling Yams Node.Alias.swift
[18/45] Compiling Yams Node.Mapping.swift
[19/45] Compiling Yams Tag.swift
[20/45] Compiling Yams YamlAnchorProviding.swift
[21/45] Compiling ArgumentParserToolInfo ToolInfo.swift
[22/45] Emitting module ArgumentParserToolInfo
[23/46] Wrapping AST for ArgumentParserToolInfo for debugging
[25/93] Compiling ArgumentParser Foundation.swift
[26/93] Compiling ArgumentParser Name.swift
[27/93] Compiling ArgumentParser MessageInfo.swift
[28/93] Compiling ArgumentParser UsageGenerator.swift
[29/93] Compiling ArgumentParser CollectionExtensions.swift
[30/93] Compiling ArgumentParser NameSpecification.swift
[31/93] Compiling ArgumentParser Option.swift
[32/93] Compiling ArgumentParser OptionGroup.swift
[33/93] Compiling ArgumentParser ZshCompletionsGenerator.swift
[34/93] Compiling ArgumentParser Argument.swift
[35/93] Compiling ArgumentParser ArgumentDiscussion.swift
[36/93] Compiling ArgumentParser Errors.swift
[37/93] Compiling ArgumentParser Flag.swift
[38/93] Compiling ArgumentParser BashCompletionsGenerator.swift
[39/93] Compiling ArgumentParser CompletionsGenerator.swift
[40/93] Compiling ArgumentParser FishCompletionsGenerator.swift
[41/94] Wrapping AST for Yams for debugging
[43/102] Emitting module ArgumentParser
[44/108] Compiling ArgumentParser ParentCommand.swift
[45/108] Compiling ArgumentParser AsyncParsableCommand.swift
[46/108] Compiling ArgumentParser CommandConfiguration.swift
[47/108] Compiling ArgumentParser CommandGroup.swift
[48/108] Compiling ArgumentParser EnumerableFlag.swift
[49/108] Compiling ArgumentParser ExpressibleByArgument.swift
[50/108] Compiling ArgumentParser ParsableArguments.swift
[51/108] Compiling AgentAdapterCore Agent.swift
[52/108] Compiling AgentAdapterCore AgentAdapterConfiguration.swift
[53/108] Emitting module AgentAdapterCore
[54/109] Compiling AgentAdapterCore AgentAdapterGitignore.swift
[55/109] Compiling AgentAdapterCore CodexAgentFormat.swift
/host/spi-builder-workspace/Sources/AgentAdapterCore/CodexAgentFormat.swift:47:9: error: switch must be exhaustive
 45 |
 46 |     private static func tomlValue(_ node: Node, source: URL) throws -> String {
 47 |         switch node {
    |         |- error: switch must be exhaustive
    |         `- note: add missing case: '.alias(_)'
 48 |         case .scalar(let scalar):
 49 |             if let value = stringValue(node) { return quote(value) }
[56/109] Compiling AgentAdapterCore FileSystem.swift
/host/spi-builder-workspace/Sources/AgentAdapterCore/FileSystem.swift:45:26: error: cannot find 'open' in scope
43 |     public func withExclusiveAccess<T>(to directory: URL, perform: () throws -> T) throws -> T {
44 |         try createDirectory(at: directory, withIntermediateDirectories: true)
45 |         let descriptor = open(directory.path, O_RDONLY)
   |                          `- error: cannot find 'open' in scope
46 |         guard descriptor != -1 else { throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO) }
47 |         defer { close(descriptor) }
/host/spi-builder-workspace/Sources/AgentAdapterCore/FileSystem.swift:45:47: error: cannot find 'O_RDONLY' in scope
43 |     public func withExclusiveAccess<T>(to directory: URL, perform: () throws -> T) throws -> T {
44 |         try createDirectory(at: directory, withIntermediateDirectories: true)
45 |         let descriptor = open(directory.path, O_RDONLY)
   |                                               `- error: cannot find 'O_RDONLY' in scope
46 |         guard descriptor != -1 else { throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO) }
47 |         defer { close(descriptor) }
/host/spi-builder-workspace/Sources/AgentAdapterCore/FileSystem.swift:46:56: error: cannot find 'POSIXErrorCode' in scope
44 |         try createDirectory(at: directory, withIntermediateDirectories: true)
45 |         let descriptor = open(directory.path, O_RDONLY)
46 |         guard descriptor != -1 else { throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO) }
   |                                                        `- error: cannot find 'POSIXErrorCode' in scope
47 |         defer { close(descriptor) }
48 |         while flock(descriptor, LOCK_EX) == -1 {
/host/spi-builder-workspace/Sources/AgentAdapterCore/FileSystem.swift:46:81: error: cannot find 'errno' in scope
44 |         try createDirectory(at: directory, withIntermediateDirectories: true)
45 |         let descriptor = open(directory.path, O_RDONLY)
46 |         guard descriptor != -1 else { throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO) }
   |                                                                                 `- error: cannot find 'errno' in scope
47 |         defer { close(descriptor) }
48 |         while flock(descriptor, LOCK_EX) == -1 {
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.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/AgentAdapterCore/FileSystem.swift:47:17: error: cannot find 'close' in scope
45 |         let descriptor = open(directory.path, O_RDONLY)
46 |         guard descriptor != -1 else { throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO) }
47 |         defer { close(descriptor) }
   |                 `- error: cannot find 'close' in scope
48 |         while flock(descriptor, LOCK_EX) == -1 {
49 |             if errno != EINTR { throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO) }
/host/spi-builder-workspace/Sources/AgentAdapterCore/FileSystem.swift:48:15: error: cannot find 'flock' in scope
46 |         guard descriptor != -1 else { throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO) }
47 |         defer { close(descriptor) }
48 |         while flock(descriptor, LOCK_EX) == -1 {
   |               `- error: cannot find 'flock' in scope
49 |             if errno != EINTR { throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO) }
50 |         }
/host/spi-builder-workspace/Sources/AgentAdapterCore/FileSystem.swift:48:33: error: cannot find 'LOCK_EX' in scope
46 |         guard descriptor != -1 else { throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO) }
47 |         defer { close(descriptor) }
48 |         while flock(descriptor, LOCK_EX) == -1 {
   |                                 `- error: cannot find 'LOCK_EX' in scope
49 |             if errno != EINTR { throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO) }
50 |         }
/host/spi-builder-workspace/Sources/AgentAdapterCore/FileSystem.swift:49:16: error: cannot find 'errno' in scope
47 |         defer { close(descriptor) }
48 |         while flock(descriptor, LOCK_EX) == -1 {
49 |             if errno != EINTR { throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO) }
   |                `- error: cannot find 'errno' in scope
50 |         }
51 |         defer { flock(descriptor, LOCK_UN) }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.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/AgentAdapterCore/FileSystem.swift:49:50: error: cannot find 'POSIXErrorCode' in scope
47 |         defer { close(descriptor) }
48 |         while flock(descriptor, LOCK_EX) == -1 {
49 |             if errno != EINTR { throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO) }
   |                                                  `- error: cannot find 'POSIXErrorCode' in scope
50 |         }
51 |         defer { flock(descriptor, LOCK_UN) }
/host/spi-builder-workspace/Sources/AgentAdapterCore/FileSystem.swift:49:75: error: cannot find 'errno' in scope
47 |         defer { close(descriptor) }
48 |         while flock(descriptor, LOCK_EX) == -1 {
49 |             if errno != EINTR { throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO) }
   |                                                                           `- error: cannot find 'errno' in scope
50 |         }
51 |         defer { flock(descriptor, LOCK_UN) }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.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/AgentAdapterCore/FileSystem.swift:51:17: error: cannot find 'flock' in scope
49 |             if errno != EINTR { throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO) }
50 |         }
51 |         defer { flock(descriptor, LOCK_UN) }
   |                 `- error: cannot find 'flock' in scope
52 |         return try perform()
53 |     }
/host/spi-builder-workspace/Sources/AgentAdapterCore/FileSystem.swift:51:35: error: cannot find 'LOCK_UN' in scope
49 |             if errno != EINTR { throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO) }
50 |         }
51 |         defer { flock(descriptor, LOCK_UN) }
   |                                   `- error: cannot find 'LOCK_UN' in scope
52 |         return try perform()
53 |     }
[57/109] Compiling AgentAdapterCore AgentAdapterDirectory.swift
[58/109] Compiling AgentAdapterCore AgentAdapterGenerator.swift
[59/109] Compiling AgentAdapterCore AgentAdapterFormat.swift
BUILD FAILURE 6.3 android