The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftTreeSitter, reference master (3aa6f8), with Swift 6.2 (beta) for Wasm on 19 Jun 2025 12:27:35 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/viktorstrate/swift-tree-sitter.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/viktorstrate/swift-tree-sitter
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 3aa6f8d Pass string lengths as bytes rather than characters
Submodule path 'languages/css/tree-sitter-css': checked out 'a03f1d2d1dfbf6f8e0fdca5f9ff030228241eb57'
Submodule path 'languages/html/tree-sitter-html': checked out '161a92474a7bb2e9e830e48e76426f38299d99d1'
Submodule path 'languages/java/tree-sitter-java': checked out '8a6ab8e8adb119bc35b133040077b60f6cf539ea'
Submodule path 'languages/javascript/tree-sitter-javascript': checked out 'fdeb68ac8d2bd5a78b943528bb68ceda3aade2eb'
Submodule path 'languages/json/tree-sitter-json': checked out '203e239408d642be83edde8988d6e7b20a19f0e8'
Submodule path 'languages/php/tree-sitter-php': checked out '0ce134234214427b6aeb2735e93a307881c6cd6f'
Submodule path 'tree-sitter': checked out 'ccd6bf554d922596ce905730d98a77af368bba5c'
Submodule 'languages/css/tree-sitter-css' (https://github.com/tree-sitter/tree-sitter-css.git) registered for path 'languages/css/tree-sitter-css'
Submodule 'languages/html/tree-sitter-html' (https://github.com/tree-sitter/tree-sitter-html.git) registered for path 'languages/html/tree-sitter-html'
Submodule 'languages/java/tree-sitter-java' (https://github.com/tree-sitter/tree-sitter-java.git) registered for path 'languages/java/tree-sitter-java'
Submodule 'languages/javascript/tree-sitter-javascript' (https://github.com/tree-sitter/tree-sitter-javascript.git) registered for path 'languages/javascript/tree-sitter-javascript'
Submodule 'languages/json/tree-sitter-json' (https://github.com/tree-sitter/tree-sitter-json.git) registered for path 'languages/json/tree-sitter-json'
Submodule 'languages/php/tree-sitter-php' (https://github.com/tree-sitter/tree-sitter-php.git) registered for path 'languages/php/tree-sitter-php'
Submodule 'tree-sitter' (https://github.com/tree-sitter/tree-sitter.git) registered for path 'tree-sitter'
Cloning into '/host/spi-builder-workspace/languages/css/tree-sitter-css'...
Cloning into '/host/spi-builder-workspace/languages/html/tree-sitter-html'...
Cloning into '/host/spi-builder-workspace/languages/java/tree-sitter-java'...
Cloning into '/host/spi-builder-workspace/languages/javascript/tree-sitter-javascript'...
Cloning into '/host/spi-builder-workspace/languages/json/tree-sitter-json'...
Cloning into '/host/spi-builder-workspace/languages/php/tree-sitter-php'...
Cloning into '/host/spi-builder-workspace/tree-sitter'...
Cloned https://github.com/viktorstrate/swift-tree-sitter.git
Revision (git rev-parse @):
3aa6f8d567e1d4d96a71c5bc0f483173d8213159
SUCCESS checkout https://github.com/viktorstrate/swift-tree-sitter.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/viktorstrate/swift-tree-sitter.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Building for debugging...
[0/13] Compiling TreeSitterLanguages css_scanner.c
[1/13] Compiling TreeSitterLanguages html_parser.c
[2/13] Compiling TreeSitterLanguages json_parser.c
[3/13] Compiling TreeSitterLanguages java_scanner.c
[3/13] Write sources
[5/13] Compiling TreeSitterLanguages java_parser.c
[6/13] Compiling TreeSitterLanguages javascript_parser.c
[7/13] Write swift-version-24593BA9C3E375BF.txt
[8/13] Compiling lib.c
[9/13] Compiling TreeSitterLanguages php_scanner.cc
[10/13] Compiling TreeSitterLanguages css_parser.c
[11/13] Compiling TreeSitterLanguages html_scanner.cc
[12/13] Compiling TreeSitterLanguages php_parser.c
[14/26] Compiling SwiftTreeSitter STSTree.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/STSLanguage.swift:15:8: error: no such module 'Foundation'
 13 | import TreeSitterLanguages
 14 | #endif
 15 | import Foundation
    |        `- error: no such module 'Foundation'
 16 |
 17 | public class STSLanguage: Equatable, Hashable {
[15/27] Compiling SwiftTreeSitter STSNode.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/STSLanguage.swift:15:8: error: no such module 'Foundation'
 13 | import TreeSitterLanguages
 14 | #endif
 15 | import Foundation
    |        `- error: no such module 'Foundation'
 16 |
 17 | public class STSLanguage: Equatable, Hashable {
[16/27] Compiling SwiftTreeSitter STSParser.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/STSLanguage.swift:15:8: error: no such module 'Foundation'
 13 | import TreeSitterLanguages
 14 | #endif
 15 | import Foundation
    |        `- error: no such module 'Foundation'
 16 |
 17 | public class STSLanguage: Equatable, Hashable {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/27] Emitting module SwiftTreeSitter
/host/spi-builder-workspace/Sources/SwiftTreeSitter/STSLanguage.swift:15:8: error: no such module 'Foundation'
 13 | import TreeSitterLanguages
 14 | #endif
 15 | import Foundation
    |        `- error: no such module 'Foundation'
 16 |
 17 | public class STSLanguage: Equatable, Hashable {
[18/27] Compiling SwiftTreeSitter STSInputEdit.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/STSLanguage.swift:15:8: error: no such module 'Foundation'
 13 | import TreeSitterLanguages
 14 | #endif
 15 | import Foundation
    |        `- error: no such module 'Foundation'
 16 |
 17 | public class STSLanguage: Equatable, Hashable {
[19/27] Compiling SwiftTreeSitter STSLanguage.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/STSLanguage.swift:15:8: error: no such module 'Foundation'
 13 | import TreeSitterLanguages
 14 | #endif
 15 | import Foundation
    |        `- error: no such module 'Foundation'
 16 |
 17 | public class STSLanguage: Equatable, Hashable {
[20/27] Compiling SwiftTreeSitter STSPoint.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/STSLanguage.swift:15:8: error: no such module 'Foundation'
 13 | import TreeSitterLanguages
 14 | #endif
 15 | import Foundation
    |        `- error: no such module 'Foundation'
 16 |
 17 | public class STSLanguage: Equatable, Hashable {
[21/27] Compiling SwiftTreeSitter STSQuery.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/STSLanguage.swift:15:8: error: no such module 'Foundation'
 13 | import TreeSitterLanguages
 14 | #endif
 15 | import Foundation
    |        `- error: no such module 'Foundation'
 16 |
 17 | public class STSLanguage: Equatable, Hashable {
[22/27] Compiling SwiftTreeSitter STSRange.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/STSLanguage.swift:15:8: error: no such module 'Foundation'
 13 | import TreeSitterLanguages
 14 | #endif
 15 | import Foundation
    |        `- error: no such module 'Foundation'
 16 |
 17 | public class STSLanguage: Equatable, Hashable {
[23/27] Compiling SwiftTreeSitter STSQueryMatch.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/STSLanguage.swift:15:8: error: no such module 'Foundation'
 13 | import TreeSitterLanguages
 14 | #endif
 15 | import Foundation
    |        `- error: no such module 'Foundation'
 16 |
 17 | public class STSLanguage: Equatable, Hashable {
[24/27] Compiling SwiftTreeSitter STSQueryPredicates.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/STSLanguage.swift:15:8: error: no such module 'Foundation'
 13 | import TreeSitterLanguages
 14 | #endif
 15 | import Foundation
    |        `- error: no such module 'Foundation'
 16 |
 17 | public class STSLanguage: Equatable, Hashable {
[25/27] Compiling SwiftTreeSitter STSQueryCapture.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/STSLanguage.swift:15:8: error: no such module 'Foundation'
 13 | import TreeSitterLanguages
 14 | #endif
 15 | import Foundation
    |        `- error: no such module 'Foundation'
 16 |
 17 | public class STSLanguage: Equatable, Hashable {
[26/27] Compiling SwiftTreeSitter STSQueryCursor.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/STSLanguage.swift:15:8: error: no such module 'Foundation'
 13 | import TreeSitterLanguages
 14 | #endif
 15 | import Foundation
    |        `- error: no such module 'Foundation'
 16 |
 17 | public class STSLanguage: Equatable, Hashable {
[27/27] Compiling SwiftTreeSitter STSTreeCursor.swift
/host/spi-builder-workspace/Sources/SwiftTreeSitter/STSLanguage.swift:15:8: error: no such module 'Foundation'
 13 | import TreeSitterLanguages
 14 | #endif
 15 | import Foundation
    |        `- error: no such module 'Foundation'
 16 |
 17 | public class STSLanguage: Equatable, Hashable {
BUILD FAILURE 6.2 wasm