Build Information
Failed to build swift-sentencepiece, reference main (4c8baf), with Swift 6.1 for Wasm on 10 Aug 2026 19:57:50 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 729ceb5fcd9493dc13ee340bc4f0908bd201f85d
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/liuliu/swift-sentencepiece.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/liuliu/swift-sentencepiece
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4c8baf1 Update to 0.2.2
Cloned https://github.com/liuliu/swift-sentencepiece.git
Revision (git rev-parse @):
4c8baf1b03569428ab38dda7fdecf27886a16c1f
SUCCESS checkout https://github.com/liuliu/swift-sentencepiece.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/liuliu/swift-sentencepiece.git
https://github.com/liuliu/swift-sentencepiece.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Fetching https://github.com/liuliu/swift-package-support-sentencepiece
[1/7649] Fetching swift-package-support-sentencepiece
Fetched https://github.com/liuliu/swift-package-support-sentencepiece from cache (1.83s)
Creating working copy for https://github.com/liuliu/swift-package-support-sentencepiece
Working copy of https://github.com/liuliu/swift-package-support-sentencepiece resolved at 48f1241971c19dc79c314e5a9c5b9c38cbf25a53
Building for debugging...
[0/3] Write sources
[1/3] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/Sources/C_sentencepiece/sentencepiece.cc:2:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/include/src/sentencepiece_processor.h:33:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/include/third_party/absl/status/status.h:67:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/include/absl/status/internal/status_internal.h:29:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/include/absl/strings/cord.h:94:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/include/absl/strings/internal/cordz_info.h:31:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/include/absl/synchronization/mutex.h:69:
/host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/include/absl/base/internal/thread_identity.h:24:10: fatal error: 'pthread.h' file not found
24 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[2/3] Compiling C_sentencepiece sentencepiece.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/2] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/Sources/C_sentencepiece/sentencepiece.cc:2:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/include/src/sentencepiece_processor.h:33:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/include/third_party/absl/status/status.h:67:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/include/absl/status/internal/status_internal.h:29:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/include/absl/strings/cord.h:94:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/include/absl/strings/internal/cordz_info.h:31:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/include/absl/synchronization/mutex.h:69:
/host/spi-builder-workspace/.build/checkouts/swift-package-support-sentencepiece/include/absl/base/internal/thread_identity.h:24:10: fatal error: 'pthread.h' file not found
24 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[1/2] Compiling C_sentencepiece sentencepiece.cc
BUILD FAILURE 6.1 wasm