Build Information
Failed to build sentencepiece, reference master (a39a5b), with Swift 6.2 for Wasm on 3 Apr 2026 07:48:52 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/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/weiyanlin117/swift-package-support-sentencepiece.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/weiyanlin117/swift-package-support-sentencepiece
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at a39a5be update naming to swift-package-support-sentencepiece in package.swift
Cloned https://github.com/weiyanlin117/swift-package-support-sentencepiece.git
Revision (git rev-parse @):
a39a5be0b3e3ad9bcb19b085af7dd891c00aa3d2
SUCCESS checkout https://github.com/weiyanlin117/swift-package-support-sentencepiece.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/weiyanlin117/swift-package-support-sentencepiece.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/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:de1420b02d93a9deec3e168cca69275e06e27da7632503e71651af6daad007b1
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/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
Building for debugging...
[0/93] Compiling spm_test init_test.cc
[1/93] Compiling spm_test freelist_test.cc
In file included from /host/spi-builder-workspace/src/filesystem_test.cc:18:
/host/spi-builder-workspace/src/util.h:484:20: error: no member named 'thread' in namespace 'std'; did you mean 'fread'?
484 | std::vector<std::thread> tasks_;
| ~~~~~^~~~~~
| fread
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cstdio:141:9: note: 'fread' declared here
141 | using ::fread _LIBCPP_USING_IF_EXISTS;
| ^
In file included from /host/spi-builder-workspace/src/filesystem_test.cc:18:
/host/spi-builder-workspace/src/util.h:484:15: error: template argument for template type parameter must be a type
484 | std::vector<std::thread> tasks_;
| ^~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/vector:388:17: note: template parameter is declared here
388 | template <class _Tp, class _Allocator /* = allocator<_Tp> */>
| ^
2 errors generated.
[2/93] Compiling spm_test filesystem_test.cc
[2/93] Compiling spm_export_vocab spm_export_vocab_main.cc
[2/93] Compiling zero_copy_stream_impl.cc
[2/93] Compiling zero_copy_stream_impl_lite.cc
[2/93] Compiling spm_normalize spm_normalize_main.cc
[2/93] Compiling spm_test model_factory_test.cc
[2/93] Compiling spm_test bpe_model_test.cc
In file included from /host/spi-builder-workspace/src/char_model_trainer_test.cc:18:
In file included from /host/spi-builder-workspace/src/char_model_trainer.h:19:
In file included from /host/spi-builder-workspace/src/trainer_interface.h:31:
/host/spi-builder-workspace/src/util.h:484:20: error: no member named 'thread' in namespace 'std'; did you mean 'fread'?
484 | std::vector<std::thread> tasks_;
| ~~~~~^~~~~~
| fread
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/cstdio:141:9: note: 'fread' declared here
141 | using ::fread _LIBCPP_USING_IF_EXISTS;
| ^
In file included from /host/spi-builder-workspace/src/char_model_trainer_test.cc:18:
In file included from /host/spi-builder-workspace/src/char_model_trainer.h:19:
In file included from /host/spi-builder-workspace/src/trainer_interface.h:31:
/host/spi-builder-workspace/src/util.h:484:15: error: template argument for template type parameter must be a type
484 | std::vector<std::thread> tasks_;
| ^~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/vector:388:17: note: template parameter is declared here
388 | template <class _Tp, class _Allocator /* = allocator<_Tp> */>
| ^
[2/93] Compiling spm_test char_model_trainer_test.cc
BUILD FAILURE 6.2 wasm