The Swift Package Index logo.Swift Package Index

Build Information

Failed to build sentencepiece, reference master (a39a5b), with Swift 6.1 for Android on 3 Apr 2026 07:44:48 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 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:         android
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-0":/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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:8d42880410d691f231f1a6445d3941a4c9d6c7af65062a9750a54d2059944963
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest
Building for debugging...
[0/93] Compiling spm_export_vocab spm_export_vocab_main.cc
[1/93] Compiling spm_normalize spm_normalize_main.cc
[2/93] Compiling spm_test char_model_trainer_test.cc
[3/93] Compiling spm_test bpe_model_test.cc
[4/93] Compiling spm_test bpe_model_trainer_test.cc
[5/93] Compiling spm_decode spm_decode_main.cc
[6/93] Compiling spm_test builder_test.cc
[7/93] Compiling zero_copy_stream_impl_lite.cc
[8/93] Compiling spm_encode spm_encode_main.cc
[9/93] Compiling zero_copy_stream.cc
[10/93] Compiling zero_copy_stream_impl.cc
[11/93] Compiling time.cc
[12/93] Compiling wire_format_lite.cc
[13/93] Compiling structurally_valid.cc
[14/93] Compiling strutil.cc
[15/93] Compiling io_win32.cc
[16/93] Compiling stringpiece.cc
[17/93] Compiling stringprintf.cc
[18/93] Compiling status.cc
[19/93] Compiling statusor.cc
[20/93] Compiling message_lite.cc
[21/93] Compiling parse_context.cc
[22/93] Compiling repeated_field.cc
[23/93] Compiling int128.cc
[24/93] Compiling implicit_weak_message.cc
[25/93] Compiling common.cc
[26/93] Compiling generated_enum_util.cc
[27/93] Compiling generated_message_util.cc
[28/93] Compiling generated_message_table_driven_lite.cc
[29/93] Compiling coded_stream.cc
[30/93] Compiling bytestream.cc
[31/93] Compiling log.cc
[32/93] Compiling arenastring.cc
[33/93] Compiling arena.cc
[34/93] Compiling extension_set.cc
[35/93] Compiling util.cc
[36/93] Compiling flag.cc
[37/93] Compiling word_model_trainer.cc
[38/93] Compiling word_model.cc
[39/93] Compiling unicode_script.cc
[40/93] Compiling pretokenizer_for_training.cc
[41/93] Compiling trainer_factory.cc
[42/93] Compiling unigram_model.cc
[43/93] Compiling normalizer.cc
[44/93] Compiling trainer_interface.cc
/host/spi-builder-workspace/src/sentencepiece_trainer.cc:207:16: warning: 'done' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
  207 |   virtual bool done() const { return iter_ == end_; }
      |                ^
/host/spi-builder-workspace/src/sentencepiece_trainer.h:52:16: note: overridden virtual function is here
   52 |   virtual bool done() const = 0;
      |                ^
1 warning generated.
[45/93] Compiling sentencepiece_trainer.cc
[46/93] Compiling unigram_model_trainer.cc
[47/93] Compiling sentencepiece_processor.cc
[48/93] Compiling init.cc
[49/93] Compiling model_factory.cc
[50/93] Compiling error.cc
[51/93] Compiling filesystem.cc
[52/93] Compiling model_interface.cc
[53/93] Compiling sentencepiece.pb.cc
[54/93] Compiling char_model.cc
[55/93] Compiling char_model_trainer.cc
[56/93] Compiling sentencepiece_model.pb.cc
[57/93] Compiling spm_train spm_train_main.cc
[58/93] Compiling bpe_model.cc
[59/93] Compiling bpe_model_trainer.cc
[60/93] Compiling builder.cc
[61/93] Write Objects.LinkFileList
[62/93] Compiling spm_test word_model_trainer_test.cc
[63/93] Compiling spm_test util_test.cc
[64/93] Compiling spm_test word_model_test.cc
error: link command failed with exit code 1 (use -v to see invocation)
ld.lld: error: undefined symbol: logf
>>> referenced by logarithms.h:26 (/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/c++/v1/__math/logarithms.h:26)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/char_model_trainer.cc.o:(std::__ndk1::__math::log[abi:ne180000](float))
ld.lld: error: undefined symbol: exp
>>> referenced by sentencepiece_processor.cc:717 (src/sentencepiece_processor.cc:717)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/sentencepiece_processor.cc.o:(_ZZNK13sentencepiece22SentencePieceProcessor12SampleEncodeENSt6__ndk117basic_string_viewIcNS1_11char_traitsIcEEEEifPNS_17SentencePieceTextEENK3$_1clIdEEDaRKT_)
>>> referenced by unigram_model.cc:57 (src/unigram_model.cc:57)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(sentencepiece::unigram::(anonymous namespace)::LogSumExp(float, float, bool))
>>> referenced by unigram_model.cc:254 (src/unigram_model.cc:254)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(sentencepiece::unigram::Lattice::PopulateMarginal(float, std::__ndk1::vector<float, std::__ndk1::allocator<float>>*) const)
>>> referenced 3 more times
ld.lld: error: undefined symbol: log
>>> referenced by unigram_model.cc:57 (src/unigram_model.cc:57)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(sentencepiece::unigram::(anonymous namespace)::LogSumExp(float, float, bool))
>>> referenced by unigram_model.cc:823 (src/unigram_model.cc:823)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(sentencepiece::unigram::Model::SampleEncodeAndScore(std::__ndk1::basic_string_view<char, std::__ndk1::char_traits<char>>, float, int, bool, bool) const)
>>> referenced by unigram_model_trainer.cc:53 (src/unigram_model_trainer.cc:53)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model_trainer.cc.o:(sentencepiece::unigram::(anonymous namespace)::Digamma(double))
>>> referenced 6 more times
ld.lld: error: undefined symbol: log1p
>>> referenced by util.cc:273 (src/util.cc:273)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/util.cc.o:(sentencepiece::log_domain::LogSum(std::__ndk1::vector<double, std::__ndk1::allocator<double>> const&)::$_0::operator()(double, double) const)
ld.lld: error: undefined symbol: expm1
>>> referenced by unigram_model.cc:823 (src/unigram_model.cc:823)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(sentencepiece::unigram::Model::SampleEncodeAndScore(std::__ndk1::basic_string_view<char, std::__ndk1::char_traits<char>>, float, int, bool, bool) const)
ld.lld: error: undefined symbol: expf
>>> referenced by exponential_functions.h:29 (/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/c++/v1/__math/exponential_functions.h:29)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(std::__ndk1::__math::exp[abi:ne180000](float))
ld.lld: error: undefined symbol: log1pf
>>> referenced by logarithms.h:74 (/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/c++/v1/__math/logarithms.h:74)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(std::__ndk1::__math::log1p[abi:ne180000](float))
ld.lld: error: undefined symbol: pow
>>> referenced by exponential_functions.h:153 (/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/c++/v1/__math/exponential_functions.h:153)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(double std::__ndk1::__math::pow[abi:ne180000]<int>(double, double))
ld.lld: error: undefined symbol: __android_log_write
>>> referenced by common.cc:150 (third_party/protobuf-lite/common.cc:150)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/third_party/protobuf-lite/common.cc.o:(google::protobuf::internal::DefaultLogHandler(google::protobuf::LogLevel, char const*, int, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&))
>>> referenced by common.cc:158 (third_party/protobuf-lite/common.cc:158)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/third_party/protobuf-lite/common.cc.o:(google::protobuf::internal::DefaultLogHandler(google::protobuf::LogLevel, char const*, int, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&))
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[65/93] Linking spm_train
[65/93] Compiling spm_test testharness.cc
[65/93] Compiling spm_test test_main.cc
[65/93] Compiling spm_test trainer_factory_test.cc
[65/93] Compiling spm_test trainer_interface_test.cc
[65/93] Compiling spm_test unicode_script_test.cc
[65/93] Compiling spm_test unigram_model_test.cc
[65/93] Compiling spm_test unigram_model_trainer_test.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:8d42880410d691f231f1a6445d3941a4c9d6c7af65062a9750a54d2059944963
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/28] Compiling spm_test test_main.cc
[1/28] Compiling spm_test testharness.cc
error: link command failed with exit code 1 (use -v to see invocation)
ld.lld: error: undefined symbol: logf
>>> referenced by logarithms.h:26 (/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/c++/v1/__math/logarithms.h:26)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/char_model_trainer.cc.o:(std::__ndk1::__math::log[abi:ne180000](float))
ld.lld: error: undefined symbol: exp
>>> referenced by sentencepiece_processor.cc:717 (src/sentencepiece_processor.cc:717)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/sentencepiece_processor.cc.o:(_ZZNK13sentencepiece22SentencePieceProcessor12SampleEncodeENSt6__ndk117basic_string_viewIcNS1_11char_traitsIcEEEEifPNS_17SentencePieceTextEENK3$_1clIdEEDaRKT_)
>>> referenced by unigram_model.cc:57 (src/unigram_model.cc:57)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(sentencepiece::unigram::(anonymous namespace)::LogSumExp(float, float, bool))
>>> referenced by unigram_model.cc:254 (src/unigram_model.cc:254)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(sentencepiece::unigram::Lattice::PopulateMarginal(float, std::__ndk1::vector<float, std::__ndk1::allocator<float>>*) const)
>>> referenced 3 more times
ld.lld: error: undefined symbol: log
>>> referenced by unigram_model_trainer.cc:53 (src/unigram_model_trainer.cc:53)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model_trainer.cc.o:(sentencepiece::unigram::(anonymous namespace)::Digamma(double))
>>> referenced by unigram_model.cc:57 (src/unigram_model.cc:57)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(sentencepiece::unigram::(anonymous namespace)::LogSumExp(float, float, bool))
>>> referenced by unigram_model_trainer.cc:470 (src/unigram_model_trainer.cc:470)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model_trainer.cc.o:(sentencepiece::unigram::Trainer::PruneSentencePieces(sentencepiece::unigram::TrainerModel const&) const)
>>> referenced 6 more times
ld.lld: error: undefined symbol: expm1
>>> referenced by unigram_model.cc:823 (src/unigram_model.cc:823)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(sentencepiece::unigram::Model::SampleEncodeAndScore(std::__ndk1::basic_string_view<char, std::__ndk1::char_traits<char>>, float, int, bool, bool) const)
ld.lld: error: undefined symbol: expf
>>> referenced by exponential_functions.h:29 (/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/c++/v1/__math/exponential_functions.h:29)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(std::__ndk1::__math::exp[abi:ne180000](float))
ld.lld: error: undefined symbol: log1pf
>>> referenced by logarithms.h:74 (/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/c++/v1/__math/logarithms.h:74)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(std::__ndk1::__math::log1p[abi:ne180000](float))
ld.lld: error: undefined symbol: pow
>>> referenced by exponential_functions.h:153 (/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/c++/v1/__math/exponential_functions.h:153)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(double std::__ndk1::__math::pow[abi:ne180000]<int>(double, double))
ld.lld: error: undefined symbol: log1p
>>> referenced by util.cc:273 (src/util.cc:273)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/src/util.cc.o:(sentencepiece::log_domain::LogSum(std::__ndk1::vector<double, std::__ndk1::allocator<double>> const&)::$_0::operator()(double, double) const)
ld.lld: error: undefined symbol: __android_log_write
>>> referenced by common.cc:150 (third_party/protobuf-lite/common.cc:150)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/third_party/protobuf-lite/common.cc.o:(google::protobuf::internal::DefaultLogHandler(google::protobuf::LogLevel, char const*, int, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&))
>>> referenced by common.cc:158 (third_party/protobuf-lite/common.cc:158)
>>>               /host/spi-builder-workspace/.build/aarch64-unknown-linux-android24/debug/swift_package_support_sentencepiece.build/third_party/protobuf-lite/common.cc.o:(google::protobuf::internal::DefaultLogHandler(google::protobuf::LogLevel, char const*, int, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char>> const&))
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[2/28] Linking spm_train
[2/28] Compiling spm_test sentencepiece_processor_test.cc
[2/28] Compiling spm_test sentencepiece_trainer_test.cc
[2/28] Compiling spm_test trainer_interface_test.cc
[2/28] Compiling spm_test unicode_script_test.cc
[2/28] Compiling spm_test unigram_model_test.cc
[2/28] Compiling spm_test unigram_model_trainer_test.cc
[2/28] Compiling spm_test trainer_factory_test.cc
BUILD FAILURE 6.1 android