The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-package-support-sentencepiece, reference master (48f124), with Swift 6.1 for Wasm on 11 Aug 2026 06:47:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/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

Build Log

========================================
RunAll
========================================
Builder version: 729ceb5fcd9493dc13ee340bc4f0908bd201f85d
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/liuliu/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/liuliu/swift-package-support-sentencepiece
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 48f1241 Update to 0.2.2
Cloned https://github.com/liuliu/swift-package-support-sentencepiece.git
Revision (git rev-parse @):
48f1241971c19dc79c314e5a9c5b9c38cbf25a53
SUCCESS checkout https://github.com/liuliu/swift-package-support-sentencepiece.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/liuliu/swift-package-support-sentencepiece.git
https://github.com/liuliu/swift-package-support-sentencepiece.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/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
Building for debugging...
[0/235] Compiling io_win32.cc
[1/235] Compiling zero_copy_stream_impl_lite.cc
In file included from /host/spi-builder-workspace/src/spm_export_vocab_main.cc:17:
In file included from /host/spi-builder-workspace/src/common.h:24:
In file included from /host/spi-builder-workspace/include/third_party/absl/status/status.h:67:
In file included from /host/spi-builder-workspace/include/absl/status/internal/status_internal.h:29:
In file included from /host/spi-builder-workspace/include/absl/strings/cord.h:94:
In file included from /host/spi-builder-workspace/include/absl/strings/internal/cordz_info.h:31:
In file included from /host/spi-builder-workspace/include/absl/synchronization/mutex.h:69:
/host/spi-builder-workspace/include/absl/base/internal/thread_identity.h:24:10: fatal error: 'pthread.h' file not found
   24 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[2/235] Compiling spm_export_vocab spm_export_vocab_main.cc
[2/235] Compiling zero_copy_stream_impl.cc
In file included from /host/spi-builder-workspace/src/spm_normalize_main.cc:15:
In file included from /host/spi-builder-workspace/src/builder.h:22:
In file included from /host/spi-builder-workspace/src/common.h:24:
In file included from /host/spi-builder-workspace/include/third_party/absl/status/status.h:67:
In file included from /host/spi-builder-workspace/include/absl/status/internal/status_internal.h:29:
In file included from /host/spi-builder-workspace/include/absl/strings/cord.h:94:
In file included from /host/spi-builder-workspace/include/absl/strings/internal/cordz_info.h:31:
In file included from /host/spi-builder-workspace/include/absl/synchronization/mutex.h:69:
/host/spi-builder-workspace/include/absl/base/internal/thread_identity.h:24:10: fatal error: 'pthread.h' file not found
   24 | #include <pthread.h>
      |          ^~~~~~~~~~~
[2/235] Compiling spm_normalize spm_normalize_main.cc
In file included from /host/spi-builder-workspace/src/bpe_model_trainer_test.cc:15:
In file included from /host/spi-builder-workspace/src/bpe_model_trainer.h:26:
In file included from /host/spi-builder-workspace/include/third_party/absl/container/btree_set.h:65:
In file included from /host/spi-builder-workspace/include/absl/container/internal/btree.h:73:
In file included from /host/spi-builder-workspace/include/absl/strings/cord.h:94:
In file included from /host/spi-builder-workspace/include/absl/strings/internal/cordz_info.h:31:
In file included from /host/spi-builder-workspace/include/absl/synchronization/mutex.h:69:
/host/spi-builder-workspace/include/absl/base/internal/thread_identity.h:24:10: fatal error: 'pthread.h' file not found
   24 | #include <pthread.h>
      |          ^~~~~~~~~~~
[2/235] Compiling spm_test bpe_model_trainer_test.cc
In file included from /host/spi-builder-workspace/src/word_model_test.cc:15:
In file included from /host/spi-builder-workspace/src/word_model.h:18:
In file included from /host/spi-builder-workspace/src/model_interface.h:24:
In file included from /host/spi-builder-workspace/src/common.h:24:
In file included from /host/spi-builder-workspace/include/third_party/absl/status/status.h:67:
In file included from /host/spi-builder-workspace/include/absl/status/internal/status_internal.h:29:
In file included from /host/spi-builder-workspace/include/absl/strings/cord.h:94:
In file included from /host/spi-builder-workspace/include/absl/strings/internal/cordz_info.h:31:
In file included from /host/spi-builder-workspace/include/absl/synchronization/mutex.h:69:
/host/spi-builder-workspace/include/absl/base/internal/thread_identity.h:24:10: fatal error: 'pthread.h' file not found
   24 | #include <pthread.h>
      |          ^~~~~~~~~~~
[2/235] Compiling spm_test word_model_test.cc
In file included from /host/spi-builder-workspace/src/spm_encode_main.cc:20:
In file included from /host/spi-builder-workspace/src/common.h:24:
In file included from /host/spi-builder-workspace/include/third_party/absl/status/status.h:67:
In file included from /host/spi-builder-workspace/include/absl/status/internal/status_internal.h:29:
In file included from /host/spi-builder-workspace/include/absl/strings/cord.h:94:
In file included from /host/spi-builder-workspace/include/absl/strings/internal/cordz_info.h:31:
In file included from /host/spi-builder-workspace/include/absl/synchronization/mutex.h:69:
/host/spi-builder-workspace/include/absl/base/internal/thread_identity.h:24:10: fatal error: 'pthread.h' file not found
   24 | #include <pthread.h>
      |          ^~~~~~~~~~~
[2/235] Compiling spm_encode spm_encode_main.cc
In file included from /host/spi-builder-workspace/src/spm_decode_main.cc:19:
In file included from /host/spi-builder-workspace/src/common.h:24:
In file included from /host/spi-builder-workspace/include/third_party/absl/status/status.h:67:
In file included from /host/spi-builder-workspace/include/absl/status/internal/status_internal.h:29:
In file included from /host/spi-builder-workspace/include/absl/strings/cord.h:94:
In file included from /host/spi-builder-workspace/include/absl/strings/internal/cordz_info.h:31:
In file included from /host/spi-builder-workspace/include/absl/synchronization/mutex.h:69:
/host/spi-builder-workspace/include/absl/base/internal/thread_identity.h:24:10: fatal error: 'pthread.h' file not found
   24 | #include <pthread.h>
      |          ^~~~~~~~~~~
[2/235] Compiling spm_decode spm_decode_main.cc
In file included from /host/spi-builder-workspace/src/bpe_model_test.cc:15:
In file included from /host/spi-builder-workspace/src/bpe_model.h:18:
In file included from /host/spi-builder-workspace/src/model_interface.h:24:
In file included from /host/spi-builder-workspace/src/common.h:24:
In file included from /host/spi-builder-workspace/include/third_party/absl/status/status.h:67:
In file included from /host/spi-builder-workspace/include/absl/status/internal/status_internal.h:29:
In file included from /host/spi-builder-workspace/include/absl/strings/cord.h:94:
In file included from /host/spi-builder-workspace/include/absl/strings/internal/cordz_info.h:31:
In file included from /host/spi-builder-workspace/include/absl/synchronization/mutex.h:69:
/host/spi-builder-workspace/include/absl/base/internal/thread_identity.h:24:10: fatal error: 'pthread.h' file not found
   24 | #include <pthread.h>
      |          ^~~~~~~~~~~
[2/235] Compiling spm_test bpe_model_test.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/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/233] Compiling stringpiece.cc
[1/233] Compiling structurally_valid.cc
[2/233] Compiling zero_copy_stream.cc
[3/233] Compiling stringprintf.cc
[4/233] Compiling time.cc
[5/233] Compiling zero_copy_stream_impl.cc
[6/233] Compiling wire_format_lite.cc
[7/233] Compiling strutil.cc
[8/233] Compiling statusor.cc
[9/233] Compiling status.cc
[10/233] Compiling int128.cc
In file included from /host/spi-builder-workspace/third_party/protobuf-lite/message_lite.cc:56:
/host/spi-builder-workspace/include/google/protobuf/stubs/mutex.h:107:8: error: no type named 'mutex' in namespace 'std'
  107 |   std::mutex mu_;
      |   ~~~~~^
1 error generated.
[11/233] Compiling message_lite.cc
[11/233] Compiling parse_context.cc
[11/233] Compiling generated_message_table_driven_lite.cc
[11/233] Compiling generated_enum_util.cc
[11/233] Compiling extension_set.cc
[11/233] Compiling implicit_weak_message.cc
[11/233] Compiling generated_message_util.cc
[11/233] Compiling repeated_field.cc
BUILD FAILURE 6.1 wasm