Build Information
Failed to build sentencepiece, reference master (a39a5b), with Swift 6.3 for Android on 19 Apr 2026 18:20:34 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
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.3
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-4609320-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.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-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 bpe_model_test.cc
[3/93] Compiling spm_test char_model_test.cc
[4/93] Compiling spm_test bpe_model_trainer_test.cc
[5/93] Compiling spm_test builder_test.cc
[6/93] Compiling spm_decode spm_decode_main.cc
[7/93] Compiling zero_copy_stream_impl_lite.cc
[8/93] Compiling zero_copy_stream_impl.cc
[9/93] Compiling zero_copy_stream.cc
[10/93] Compiling spm_encode spm_encode_main.cc
[11/93] Compiling wire_format_lite.cc
[12/93] Compiling structurally_valid.cc
[13/93] Compiling time.cc
[14/93] Compiling strutil.cc
[15/93] Compiling io_win32.cc
[16/93] Compiling stringpiece.cc
[17/93] Compiling status.cc
[18/93] Compiling statusor.cc
[19/93] Compiling stringprintf.cc
[20/93] Compiling int128.cc
[21/93] Compiling parse_context.cc
[22/93] Compiling repeated_field.cc
[23/93] Compiling message_lite.cc
[24/93] Compiling implicit_weak_message.cc
[25/93] Compiling generated_enum_util.cc
[26/93] Compiling generated_message_util.cc
[27/93] Compiling generated_message_table_driven_lite.cc
[28/93] Compiling common.cc
[29/93] Compiling coded_stream.cc
[30/93] Compiling bytestream.cc
[31/93] Compiling log.cc
[32/93] Compiling arena.cc
[33/93] Compiling arenastring.cc
[34/93] Compiling extension_set.cc
[35/93] Compiling util.cc
[36/93] Compiling word_model.cc
[37/93] Compiling flag.cc
[38/93] Compiling word_model_trainer.cc
[39/93] Compiling unicode_script.cc
[40/93] Compiling trainer_factory.cc
[41/93] Compiling pretokenizer_for_training.cc
[42/93] Compiling unigram_model.cc
[43/93] Compiling trainer_interface.cc
[44/93] Compiling sentencepiece_processor.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 normalizer.cc
[48/93] Compiling model_interface.cc
[49/93] Compiling init.cc
[50/93] Compiling error.cc
[51/93] Compiling model_factory.cc
[52/93] Compiling filesystem.cc
[53/93] Compiling char_model_trainer.cc
[54/93] Compiling char_model.cc
[55/93] Compiling sentencepiece_model.pb.cc
[56/93] Compiling sentencepiece.pb.cc
[57/93] Compiling bpe_model.cc
[58/93] Compiling spm_test word_model_trainer_test.cc
[59/93] Compiling spm_train spm_train_main.cc
[60/93] Compiling bpe_model_trainer.cc
[61/93] Compiling builder.cc
[62/93] Compiling spm_test util_test.cc
[63/93] Write Objects.LinkFileList
[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.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/c++/v1/__math/logarithms.h:26)
>>> /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/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-android28/debug/swift_package_support_sentencepiece.build/src/sentencepiece_processor.cc.o:(_ZZNK13sentencepiece22SentencePieceProcessor12SampleEncodeENSt6__ndk117basic_string_viewIcNS1_11char_traitsIcEEEEifPNS_17SentencePieceTextEENK3$_1clIdEEDaRKT_)
>>> referenced by util.cc:273 (src/util.cc:273)
>>> /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/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)
>>> referenced by unigram_model.cc:57 (src/unigram_model.cc:57)
>>> /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/swift_package_support_sentencepiece.build/src/unigram_model.cc.o:(sentencepiece::unigram::(anonymous namespace)::LogSumExp(float, float, bool))
>>> referenced 3 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-android28/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: log
>>> referenced by unigram_model_trainer.cc:53 (src/unigram_model_trainer.cc:53)
>>> /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/swift_package_support_sentencepiece.build/src/unigram_model_trainer.cc.o:(sentencepiece::unigram::(anonymous namespace)::Digamma(double))
>>> referenced by unigram_model_trainer.cc:470 (src/unigram_model_trainer.cc:470)
>>> /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/debug/swift_package_support_sentencepiece.build/src/unigram_model_trainer.cc.o:(sentencepiece::unigram::Trainer::PruneSentencePieces(sentencepiece::unigram::TrainerModel const&) const)
>>> referenced by unigram_model_trainer.cc:488 (src/unigram_model_trainer.cc:488)
>>> /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/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-android28/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.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/c++/v1/__math/exponential_functions.h:29)
>>> /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/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.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/c++/v1/__math/logarithms.h:74)
>>> /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/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.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/c++/v1/__math/exponential_functions.h:153)
>>> /host/spi-builder-workspace/.build/aarch64-unknown-linux-android28/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-android28/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-android28/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 test_main.cc
[65/93] Compiling spm_test trainer_interface_test.cc
[65/93] Compiling spm_test trainer_factory_test.cc
[65/93] Compiling spm_test unigram_model_test.cc
[65/93] Compiling spm_test testharness.cc
[65/93] Compiling spm_test unicode_script_test.cc
[65/93] Compiling spm_test unigram_model_trainer_test.cc
BUILD FAILURE 6.3 android