Build Information
Failed to build SwiftTreeSitter, reference main (f97df5), with Swift 6.2 for Wasm on 15 Feb 2026 14:27:43 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/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/tree-sitter/swift-tree-sitter.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/tree-sitter/swift-tree-sitter
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f97df58 Merge pull request #47 from 1024jp/feature/publicIncrementalParsing
Submodule path 'tree-sitter-swift': checked out 'eda05af7ac41adb4eb19c346883c0fa32fe3bdd8'
Submodule 'tree-sitter-swift' (https://github.com/alex-pinkus/tree-sitter-swift) registered for path 'tree-sitter-swift'
Cloning into '/host/spi-builder-workspace/tree-sitter-swift'...
Cloned https://github.com/tree-sitter/swift-tree-sitter.git
Revision (git rev-parse @):
f97df585296977d8fcaf644cbde567151d1367b8
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/tree-sitter/swift-tree-sitter.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/tree-sitter/swift-tree-sitter.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/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/embedded-swift-sdk.json
Fetching https://github.com/tree-sitter/tree-sitter
[1/65643] Fetching tree-sitter
Fetched https://github.com/tree-sitter/tree-sitter from cache (3.60s)
Computing version for https://github.com/tree-sitter/tree-sitter
Computed https://github.com/tree-sitter/tree-sitter at 0.25.10 (3.91s)
Creating working copy for https://github.com/tree-sitter/tree-sitter
Working copy of https://github.com/tree-sitter/tree-sitter resolved at 0.25.10
Building for debugging...
[0/18] Compiling wasm_store.c
[1/18] Compiling stdlib.c
[2/18] Compiling scanner.c
[3/18] Compiling language.c
[4/18] Compiling lexer.c
[5/18] Write swift-version-24593BA9C3E375BF.txt
[6/18] Compiling tree.c
[7/18] Compiling subtree.c
[8/18] Compiling tree_cursor.c
[8/18] Write sources
[11/18] Compiling stack.c
[12/18] Compiling alloc.c
[13/18] Compiling node.c
[14/18] Compiling get_changed_ranges.c
[15/18] Compiling parser.c
[16/18] Compiling query.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/20] Emitting module SwiftTreeSitter
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Bundle+Extensions.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if !os(WASI)
[19/20] Compiling SwiftTreeSitter Bundle+Extensions.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/Bundle+Extensions.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | #if !os(WASI)
[19/20] Compiling parser.c
BUILD FAILURE 6.2 wasm