Build Information
Failed to build SwiftIndexStore, reference 9.0.4 (e0046a), with Swift 6.2 for Android on 20 Jun 2025 23:50:56 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ileitch/swift-indexstore.git
Reference: 9.0.4
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/ileitch/swift-indexstore
* tag 9.0.4 -> FETCH_HEAD
HEAD is now at e0046a1 Update IndexStoreSymbol
Cloned https://github.com/ileitch/swift-indexstore.git
Revision (git rev-parse @):
e0046a1704e2e7af88355883247ee1f9d47ed9ee
SUCCESS checkout https://github.com/ileitch/swift-indexstore.git at 9.0.4
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/ileitch/swift-indexstore.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-argument-parser
[1/15380] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.88s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (1.26s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.1
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/13] Write sources
[5/13] Write swift-version-8C5A4AE7A8CE2BA.txt
[6/13] Compiling _CIndexStore dummy.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/25] Emitting module SwiftIndexStore
/host/spi-builder-workspace/Sources/SwiftIndexStore/LibIndexStore.swift:24:21: error: cannot find 'RTLD_LAZY' in scope
22 | typealias Dylib = UnsafeMutableRawPointer
23 |
24 | var flags = RTLD_LAZY | RTLD_LOCAL
| `- error: cannot find 'RTLD_LAZY' in scope
25 |
26 | #if os(macOS)
/host/spi-builder-workspace/Sources/SwiftIndexStore/LibIndexStore.swift:24:33: error: cannot find 'RTLD_LOCAL' in scope
22 | typealias Dylib = UnsafeMutableRawPointer
23 |
24 | var flags = RTLD_LAZY | RTLD_LOCAL
| `- error: cannot find 'RTLD_LOCAL' in scope
25 |
26 | #if os(macOS)
/host/spi-builder-workspace/Sources/SwiftIndexStore/LibIndexStore.swift:30:21: error: cannot find 'dlopen' in scope
28 | #endif
29 |
30 | let dylib = dlopen(url.path, flags)!
| `- error: cannot find 'dlopen' in scope
31 | var api = indexstore_functions_t()
32 | func requireSym<T>(_ dylib: Dylib, _ symbol: String) throws -> T {
[9/26] Compiling SwiftIndexStore IndexStoreUnit.swift
[10/26] Compiling SwiftIndexStore OptionSetDisplayable.swift
[11/26] Compiling SwiftIndexStore IndexStoreRelation.swift
[12/26] Compiling SwiftIndexStore IndexStoreSymbol.swift
[13/26] Emitting module ArgumentParserToolInfo
[14/26] Compiling ArgumentParserToolInfo ToolInfo.swift
[15/27] Wrapping AST for ArgumentParserToolInfo for debugging
[17/65] Compiling ArgumentParser OptionGroup.swift
[18/65] Compiling ArgumentParser AsyncParsableCommand.swift
[19/65] Compiling ArgumentParser CommandConfiguration.swift
[20/65] Compiling ArgumentParser CommandGroup.swift
[21/65] Compiling ArgumentParser EnumerableFlag.swift
[22/70] Compiling ArgumentParser ArgumentVisibility.swift
[23/70] Compiling ArgumentParser CompletionKind.swift
[24/70] Compiling ArgumentParser Errors.swift
[25/70] Compiling ArgumentParser Flag.swift
[26/70] Compiling ArgumentParser NameSpecification.swift
[27/70] Compiling ArgumentParser Option.swift
[28/70] Emitting module ArgumentParser
[29/70] Compiling ArgumentParser BashCompletionsGenerator.swift
[30/70] Compiling ArgumentParser CompletionsGenerator.swift
[31/70] Compiling ArgumentParser FishCompletionsGenerator.swift
[32/70] Compiling ArgumentParser ZshCompletionsGenerator.swift
[33/70] Compiling ArgumentParser Argument.swift
[34/70] Compiling ArgumentParser ArgumentHelp.swift
[35/70] Compiling ArgumentParser Name.swift
[36/70] Compiling ArgumentParser Parsed.swift
[37/70] Compiling ArgumentParser ParsedValues.swift
[38/70] Compiling ArgumentParser ParserError.swift
[39/70] Compiling ArgumentParser SplitArguments.swift
[40/70] Compiling ArgumentParser CollectionExtensions.swift
[41/70] Compiling ArgumentParser Platform.swift
[42/70] Compiling ArgumentParser SequenceExtensions.swift
[43/70] Compiling ArgumentParser StringExtensions.swift
[44/70] Compiling ArgumentParser Tree.swift
[45/70] Compiling ArgumentParser ExpressibleByArgument.swift
[46/70] Compiling ArgumentParser ParsableArguments.swift
[47/70] Compiling ArgumentParser ParsableArgumentsValidation.swift
[48/70] Compiling ArgumentParser ParsableCommand.swift
[49/70] Compiling ArgumentParser ArgumentDecoder.swift
[50/70] Compiling ArgumentParser ArgumentDefinition.swift
[51/70] Compiling ArgumentParser ArgumentSet.swift
[52/70] Compiling ArgumentParser CommandParser.swift
[53/70] Compiling ArgumentParser InputKey.swift
[54/70] Compiling ArgumentParser InputOrigin.swift
[55/70] Compiling SwiftIndexStore LibIndexStore.swift
/host/spi-builder-workspace/Sources/SwiftIndexStore/LibIndexStore.swift:24:21: error: cannot find 'RTLD_LAZY' in scope
22 | typealias Dylib = UnsafeMutableRawPointer
23 |
24 | var flags = RTLD_LAZY | RTLD_LOCAL
| `- error: cannot find 'RTLD_LAZY' in scope
25 |
26 | #if os(macOS)
/host/spi-builder-workspace/Sources/SwiftIndexStore/LibIndexStore.swift:24:33: error: cannot find 'RTLD_LOCAL' in scope
22 | typealias Dylib = UnsafeMutableRawPointer
23 |
24 | var flags = RTLD_LAZY | RTLD_LOCAL
| `- error: cannot find 'RTLD_LOCAL' in scope
25 |
26 | #if os(macOS)
/host/spi-builder-workspace/Sources/SwiftIndexStore/LibIndexStore.swift:30:21: error: cannot find 'dlopen' in scope
28 | #endif
29 |
30 | let dylib = dlopen(url.path, flags)!
| `- error: cannot find 'dlopen' in scope
31 | var api = indexstore_functions_t()
32 | func requireSym<T>(_ dylib: Dylib, _ symbol: String) throws -> T {
/host/spi-builder-workspace/Sources/SwiftIndexStore/LibIndexStore.swift:33:29: error: cannot find 'dlsym' in scope
31 | var api = indexstore_functions_t()
32 | func requireSym<T>(_ dylib: Dylib, _ symbol: String) throws -> T {
33 | guard let sym = dlsym(dylib, symbol) else {
| `- error: cannot find 'dlsym' in scope
34 | throw IndexStoreError.missingSymbol(symbol)
35 | }
[56/70] Compiling SwiftIndexStore Process+Extension.swift
/host/spi-builder-workspace/Sources/SwiftIndexStore/Process+Extension.swift:15:17: warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
13 | static func exec(bin: String, arguments: [String], cwd: String? = nil) throws -> (stdout: String, stderr: String) {
14 | let process = Process()
15 | process.launchPath = bin
| |- warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
| `- note: use 'executableURL' instead
16 | process.arguments = arguments
17 | if let cwd = cwd {
/host/spi-builder-workspace/Sources/SwiftIndexStore/Process+Extension.swift:18:21: warning: 'currentDirectoryPath' is deprecated: renamed to 'currentDirectoryURL' [#DeprecatedDeclaration]
16 | process.arguments = arguments
17 | if let cwd = cwd {
18 | process.currentDirectoryPath = cwd
| |- warning: 'currentDirectoryPath' is deprecated: renamed to 'currentDirectoryURL' [#DeprecatedDeclaration]
| `- note: use 'currentDirectoryURL' instead
19 | }
20 |
/host/spi-builder-workspace/Sources/SwiftIndexStore/Process+Extension.swift:25:17: warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
23 | process.standardOutput = stdoutPipe
24 | process.standardError = stderrPipe
25 | process.launch()
| |- warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
| `- note: use 'run' instead
26 | process.waitUntilExit()
27 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[59/70] Compiling SwiftIndexStore UnfairLock.swift
[60/70] Compiling ArgumentParser DumpHelpGenerator.swift
[61/70] Compiling ArgumentParser HelpCommand.swift
[62/70] Compiling ArgumentParser HelpGenerator.swift
[63/70] Compiling ArgumentParser MessageInfo.swift
[64/70] Compiling ArgumentParser UsageGenerator.swift
[66/71] Compiling SwiftIndexStore SwiftIndexStore.swift
BUILD FAILURE 6.2 android