Build Information
Failed to build SwiftIndexStore, reference master (26d3af), with Swift 6.2 for Wasm on 22 Feb 2026 11:47:00 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kateinoigakukun/swift-indexstore.git
Reference: master
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/kateinoigakukun/swift-indexstore
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 26d3af1 Merge pull request #17 from ileitch/bazel9
Cloned https://github.com/kateinoigakukun/swift-indexstore.git
Revision (git rev-parse @):
26d3af186fb38ec3a96c8a9a3172b7ccc3565524
SUCCESS checkout https://github.com/kateinoigakukun/swift-indexstore.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/kateinoigakukun/swift-indexstore.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:c50555b47c4db0b0576f9f25702fbe2fdff28194c4a4f4c23a7dce4b3504c85e
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
Fetching https://github.com/apple/swift-argument-parser
[1/17169] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.68s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.0 (1.06s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.0
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/14] Write sources
[6/14] Compiling _CIndexStore dummy.c
[7/14] Write swift-version-24593BA9C3E375BF.txt
[9/26] Compiling SwiftIndexStore IndexStoreUnit.swift
[10/27] Compiling SwiftIndexStore IndexStoreRelation.swift
[11/27] Compiling SwiftIndexStore IndexStoreSymbol.swift
[12/27] Compiling ArgumentParserToolInfo ToolInfo.swift
[13/27] Emitting module ArgumentParserToolInfo
[14/28] Wrapping AST for ArgumentParserToolInfo for debugging
[16/74] Compiling SwiftIndexStore UnfairLock.swift
[17/74] Compiling SwiftIndexStore OptionSetDisplayable.swift
[18/74] Compiling ArgumentParser FishCompletionsGenerator.swift
[19/74] Compiling ArgumentParser ZshCompletionsGenerator.swift
[20/74] Compiling ArgumentParser Foundation.swift
[21/74] Compiling ArgumentParser Mutex.swift
[22/74] Compiling ArgumentParser Platform.swift
[23/74] Compiling ArgumentParser SequenceExtensions.swift
[24/74] Compiling ArgumentParser StringExtensions.swift
[25/74] Compiling ArgumentParser SwiftExtensions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[26/74] 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 {
/host/spi-builder-workspace/Sources/SwiftIndexStore/Process+Extension.swift:3:11: error: cannot find type 'Process' in scope
1 | import Foundation
2 |
3 | extension Process {
| `- error: cannot find type 'Process' in scope
4 | enum ProcessError: Error {
5 | case nonZeroExit(
[27/80] Compiling SwiftIndexStore SwiftIndexStore.swift
[28/80] Compiling SwiftIndexStore Process+Extension.swift
/host/spi-builder-workspace/Sources/SwiftIndexStore/Process+Extension.swift:3:11: error: cannot find type 'Process' in scope
1 | import Foundation
2 |
3 | extension Process {
| `- error: cannot find type 'Process' in scope
4 | enum ProcessError: Error {
5 | case nonZeroExit(
/host/spi-builder-workspace/Sources/SwiftIndexStore/Process+Extension.swift:6:13: error: cannot find type 'TerminationReason' in scope
4 | enum ProcessError: Error {
5 | case nonZeroExit(
6 | TerminationReason, Int32, command: String,
| `- error: cannot find type 'TerminationReason' in scope
7 | stdout: String, stderr: String
8 | )
[29/80] 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 | }
/host/spi-builder-workspace/Sources/SwiftIndexStore/LibIndexStore.swift:91:32: error: cannot find 'Process' in scope
89 |
90 | public static func linuxSwiftDir() throws -> URL {
91 | let (binPath, _) = try Process.exec(bin: "/usr/bin/which", arguments: ["swift"])
| `- error: cannot find 'Process' in scope
92 | return URL(
93 | fileURLWithPath: binPath
/host/spi-builder-workspace/Sources/SwiftIndexStore/LibIndexStore.swift:100:38: error: cannot find 'Process' in scope
98 |
99 | private static func macOSDeveloperDir() throws -> URL {
100 | var (stdoutContent, _) = try Process.exec(
| `- error: cannot find 'Process' in scope
101 | bin: "/usr/bin/xcode-select",
102 | arguments: ["--print-path"]
[30/80] Emitting module ArgumentParser
BUILD FAILURE 6.2 wasm