The Swift Package Index logo.Swift Package Index

Build Information

Failed to build sentencepiece, reference master (a39a5b), with Swift 6.1 for Wasm on 3 Apr 2026 07:46:00 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build 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.1
Building package at path:  $PWD
https://github.com/weiyanlin117/swift-package-support-sentencepiece.git
https://github.com/weiyanlin117/swift-package-support-sentencepiece.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "cxx_language_standard" : "c++17",
  "dependencies" : [
  ],
  "manifest_display_name" : "sentencepiece",
  "name" : "sentencepiece",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "swift-package-support-sentencepiece",
      "targets" : [
        "swift-package-support-sentencepiece"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "spm_encode",
      "targets" : [
        "spm_encode"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "spm_decode",
      "targets" : [
        "spm_decode"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "spm_normalize",
      "targets" : [
        "spm_normalize"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "spm_train",
      "targets" : [
        "spm_train"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "spm_export_vocab",
      "targets" : [
        "spm_export_vocab"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "spm_test",
      "targets" : [
        "spm_test"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "swift_package_support_sentencepiece",
      "module_type" : "ClangTarget",
      "name" : "swift-package-support-sentencepiece",
      "path" : ".",
      "product_memberships" : [
        "swift-package-support-sentencepiece",
        "spm_encode",
        "spm_decode",
        "spm_normalize",
        "spm_train",
        "spm_export_vocab",
        "spm_test"
      ],
      "sources" : [
        "src/bpe_model.cc",
        "src/bpe_model_trainer.cc",
        "src/builder.cc",
        "src/builtin_pb/sentencepiece.pb.cc",
        "src/builtin_pb/sentencepiece_model.pb.cc",
        "src/char_model.cc",
        "src/char_model_trainer.cc",
        "src/error.cc",
        "src/filesystem.cc",
        "src/init.cc",
        "src/model_factory.cc",
        "src/model_interface.cc",
        "src/normalizer.cc",
        "src/pretokenizer_for_training.cc",
        "src/sentencepiece_processor.cc",
        "src/sentencepiece_trainer.cc",
        "src/trainer_factory.cc",
        "src/trainer_interface.cc",
        "src/unicode_script.cc",
        "src/unigram_model.cc",
        "src/unigram_model_trainer.cc",
        "src/util.cc",
        "src/word_model.cc",
        "src/word_model_trainer.cc",
        "third_party/absl/flags/flag.cc",
        "third_party/absl/log/log.cc",
        "third_party/protobuf-lite/arena.cc",
        "third_party/protobuf-lite/arenastring.cc",
        "third_party/protobuf-lite/bytestream.cc",
        "third_party/protobuf-lite/coded_stream.cc",
        "third_party/protobuf-lite/common.cc",
        "third_party/protobuf-lite/extension_set.cc",
        "third_party/protobuf-lite/generated_enum_util.cc",
        "third_party/protobuf-lite/generated_message_table_driven_lite.cc",
        "third_party/protobuf-lite/generated_message_util.cc",
        "third_party/protobuf-lite/implicit_weak_message.cc",
        "third_party/protobuf-lite/int128.cc",
        "third_party/protobuf-lite/io_win32.cc",
        "third_party/protobuf-lite/message_lite.cc",
        "third_party/protobuf-lite/parse_context.cc",
        "third_party/protobuf-lite/repeated_field.cc",
        "third_party/protobuf-lite/status.cc",
        "third_party/protobuf-lite/statusor.cc",
        "third_party/protobuf-lite/stringpiece.cc",
        "third_party/protobuf-lite/stringprintf.cc",
        "third_party/protobuf-lite/structurally_valid.cc",
        "third_party/protobuf-lite/strutil.cc",
        "third_party/protobuf-lite/time.cc",
        "third_party/protobuf-lite/wire_format_lite.cc",
        "third_party/protobuf-lite/zero_copy_stream.cc",
        "third_party/protobuf-lite/zero_copy_stream_impl.cc",
        "third_party/protobuf-lite/zero_copy_stream_impl_lite.cc"
      ],
      "type" : "library"
    },
    {
      "c99name" : "spm_train",
      "module_type" : "ClangTarget",
      "name" : "spm_train",
      "path" : "src",
      "product_memberships" : [
        "spm_train"
      ],
      "sources" : [
        "spm_train_main.cc"
      ],
      "target_dependencies" : [
        "swift-package-support-sentencepiece"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "spm_test",
      "module_type" : "ClangTarget",
      "name" : "spm_test",
      "path" : "src",
      "product_memberships" : [
        "spm_test"
      ],
      "sources" : [
        "bpe_model_test.cc",
        "bpe_model_trainer_test.cc",
        "builder_test.cc",
        "char_model_test.cc",
        "char_model_trainer_test.cc",
        "filesystem_test.cc",
        "freelist_test.cc",
        "init_test.cc",
        "model_factory_test.cc",
        "model_interface_test.cc",
        "normalizer_test.cc",
        "pretokenizer_for_training_test.cc",
        "sentencepiece_processor_test.cc",
        "sentencepiece_trainer_test.cc",
        "test_main.cc",
        "testharness.cc",
        "trainer_factory_test.cc",
        "trainer_interface_test.cc",
        "unicode_script_test.cc",
        "unigram_model_test.cc",
        "unigram_model_trainer_test.cc",
        "util_test.cc",
        "word_model_test.cc",
        "word_model_trainer_test.cc"
      ],
      "target_dependencies" : [
        "swift-package-support-sentencepiece"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "spm_normalize",
      "module_type" : "ClangTarget",
      "name" : "spm_normalize",
      "path" : "src",
      "product_memberships" : [
        "spm_normalize"
      ],
      "sources" : [
        "spm_normalize_main.cc"
      ],
      "target_dependencies" : [
        "swift-package-support-sentencepiece"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "spm_export_vocab",
      "module_type" : "ClangTarget",
      "name" : "spm_export_vocab",
      "path" : "src",
      "product_memberships" : [
        "spm_export_vocab"
      ],
      "sources" : [
        "spm_export_vocab_main.cc"
      ],
      "target_dependencies" : [
        "swift-package-support-sentencepiece"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "spm_encode",
      "module_type" : "ClangTarget",
      "name" : "spm_encode",
      "path" : "src",
      "product_memberships" : [
        "spm_encode"
      ],
      "sources" : [
        "spm_encode_main.cc"
      ],
      "target_dependencies" : [
        "swift-package-support-sentencepiece"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "spm_decode",
      "module_type" : "ClangTarget",
      "name" : "spm_decode",
      "path" : "src",
      "product_memberships" : [
        "spm_decode"
      ],
      "sources" : [
        "spm_decode_main.cc"
      ],
      "target_dependencies" : [
        "swift-package-support-sentencepiece"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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.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 swiftpackageindex/spi-images
Digest: sha256:c3bd0c8eb125dea46564a1eb8b09ee779ba7ae350b1ee58b5e9d6ff6c39cef37
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Building for debugging...
[0/93] Compiling zero_copy_stream.cc
[1/93] Compiling time.cc
[2/93] Compiling zero_copy_stream_impl_lite.cc
[3/93] Compiling wire_format_lite.cc
In file included from /host/spi-builder-workspace/src/builder_test.cc:23:
/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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/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/builder_test.cc:23:
/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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/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.
[4/93] Compiling spm_test builder_test.cc
[4/93] Compiling stringpiece.cc
In file included from /host/spi-builder-workspace/src/char_model_test.cc:17:
In file included from /host/spi-builder-workspace/src/char_model.h:18:
In file included from /host/spi-builder-workspace/src/model_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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/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_test.cc:17:
In file included from /host/spi-builder-workspace/src/char_model.h:18:
In file included from /host/spi-builder-workspace/src/model_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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/vector:388:17: note: template parameter is declared here
  388 | template <class _Tp, class _Allocator /* = allocator<_Tp> */>
      |                 ^
[4/93] Compiling structurally_valid.cc
[4/93] Compiling spm_test char_model_test.cc
[4/93] Compiling strutil.cc
[4/93] Compiling stringprintf.cc
[4/93] Compiling zero_copy_stream_impl.cc
[4/93] Compiling spm_test bpe_model_trainer_test.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:c3bd0c8eb125dea46564a1eb8b09ee779ba7ae350b1ee58b5e9d6ff6c39cef37
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/89] Compiling stringpiece.cc
[1/89] Compiling statusor.cc
[2/89] Compiling stringprintf.cc
[3/89] Compiling io_win32.cc
[4/89] Compiling structurally_valid.cc
[5/89] Compiling zero_copy_stream_impl.cc
[6/89] Compiling status.cc
[7/89] Compiling strutil.cc
[8/89] Compiling repeated_field.cc
[9/89] 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.
[10/89] Compiling message_lite.cc
[10/89] Compiling common.cc
[10/89] Compiling generated_enum_util.cc
[10/89] Compiling implicit_weak_message.cc
[10/89] Compiling generated_message_table_driven_lite.cc
[10/89] Compiling extension_set.cc
In file included from /host/spi-builder-workspace/third_party/protobuf-lite/generated_message_util.cc:54:
/host/spi-builder-workspace/include/google/protobuf/stubs/mutex.h:107:8: error: no type named 'mutex' in namespace 'std'
  107 |   std::mutex mu_;
      |   ~~~~~^
/host/spi-builder-workspace/third_party/protobuf-lite/generated_message_util.cc:769:27: error: no member named 'thread' in namespace 'std'
  769 |   static std::atomic<std::thread::id> runner;
      |                      ~~~~~^
/host/spi-builder-workspace/third_party/protobuf-lite/generated_message_util.cc:770:18: error: no member named 'this_thread' in namespace 'std'
  770 |   auto me = std::this_thread::get_id();
      |             ~~~~~^
/host/spi-builder-workspace/third_party/protobuf-lite/generated_message_util.cc:794:21: error: no member named 'thread' in namespace 'std'
  794 |   runner.store(std::thread::id{}, std::memory_order_relaxed);
      |                ~~~~~^
[10/89] Compiling generated_message_util.cc
[10/89] Compiling parse_context.cc
BUILD FAILURE 6.1 wasm