The Swift Package Index logo.Swift Package Index

Build Information

Failed to build sentencepiece, reference master (a39a5b), with Swift 6.0 for Linux on 3 Apr 2026 07:47:53 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 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:         linux
Swift version:             6.0
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-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:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:1db7dbcaf887dbb499f5976218948969b74406bfba66e3dcc9b7cf6b3e333907
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest
Building for debugging...
[0/93] Compiling spm_test char_model_trainer_test.cc
[1/93] Compiling spm_export_vocab spm_export_vocab_main.cc
[2/93] Compiling spm_test char_model_test.cc
[3/93] Compiling spm_normalize spm_normalize_main.cc
[4/93] Compiling spm_test pretokenizer_for_training_test.cc
[5/93] Compiling spm_test bpe_model_trainer_test.cc
[6/93] Compiling zero_copy_stream_impl_lite.cc
[7/93] Compiling spm_test bpe_model_test.cc
[8/93] Compiling spm_encode spm_encode_main.cc
[9/93] Compiling zero_copy_stream_impl.cc
[10/93] Compiling zero_copy_stream.cc
[11/93] Compiling time.cc
[12/93] Compiling structurally_valid.cc
[13/93] Compiling wire_format_lite.cc
[14/93] Compiling stringpiece.cc
[15/93] Compiling io_win32.cc
[16/93] Compiling statusor.cc
[17/93] Compiling stringprintf.cc
[18/93] Compiling status.cc
[19/93] Compiling strutil.cc
[20/93] Compiling parse_context.cc
[21/93] Compiling implicit_weak_message.cc
[22/93] Compiling int128.cc
[23/93] Compiling repeated_field.cc
[24/93] Compiling generated_enum_util.cc
[25/93] Compiling message_lite.cc
[26/93] Compiling generated_message_table_driven_lite.cc
[27/93] Compiling generated_message_util.cc
[28/93] Compiling common.cc
[29/93] Compiling log.cc
[30/93] Compiling bytestream.cc
[31/93] Compiling coded_stream.cc
[32/93] Compiling arenastring.cc
[33/93] Compiling arena.cc
[34/93] Compiling extension_set.cc
[35/93] Compiling flag.cc
[36/93] Compiling util.cc
[37/93] Compiling word_model_trainer.cc
[38/93] Compiling word_model.cc
[39/93] Compiling unicode_script.cc
[40/93] Compiling trainer_factory.cc
[41/93] Compiling unigram_model.cc
[42/93] Compiling pretokenizer_for_training.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.
[43/93] Compiling sentencepiece_trainer.cc
[44/93] Compiling unigram_model_trainer.cc
[45/93] Compiling normalizer.cc
[46/93] Compiling trainer_interface.cc
[47/93] Compiling error.cc
[48/93] Compiling init.cc
[49/93] Compiling model_interface.cc
[50/93] Compiling model_factory.cc
[51/93] Compiling filesystem.cc
[52/93] Compiling sentencepiece_processor.cc
[53/93] Compiling sentencepiece.pb.cc
[54/93] Compiling char_model_trainer.cc
[55/93] Compiling char_model.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 spm_test util_test.cc
[61/93] Compiling builder.cc
[62/93] Compiling spm_test word_model_trainer_test.cc
[63/93] Write Objects.LinkFileList
[64/93] Compiling spm_test word_model_test.cc
[65/93] Compiling spm_test unicode_script_test.cc
[66/93] Compiling spm_test unigram_model_trainer_test.cc
error: link command failed with exit code 1 (use -v to see invocation)
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/random.tcc:3373: error: undefined reference to 'nextafter'
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cmath:343: error: undefined reference to 'logl'
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cmath:339: error: undefined reference to 'logf'
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/hashtable_policy.h:460: error: undefined reference to 'ceil'
src/sentencepiece_processor.cc:717: error: undefined reference to 'exp'
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cmath:1757: error: undefined reference to 'roundf'
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cmath:464: error: undefined reference to 'sqrtf'
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cmath:1661: error: undefined reference to 'nextafterf'
src/unigram_model.cc:57: error: undefined reference to 'exp'
src/unigram_model.cc:57: error: undefined reference to 'log'
src/unigram_model.cc:254: error: undefined reference to 'exp'
src/unigram_model.cc:529: error: undefined reference to 'exp'
src/unigram_model.cc:823: error: undefined reference to 'expm1'
src/unigram_model.cc:823: error: undefined reference to 'log'
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cmath:223: error: undefined reference to 'expf'
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cmath:1552: error: undefined reference to 'log1pf'
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/cmath:418: error: undefined reference to 'pow'
src/unigram_model_trainer.cc:53: error: undefined reference to 'log'
src/unigram_model_trainer.cc:470: error: undefined reference to 'log'
src/util.cc:273: error: undefined reference to 'log1p'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[67/93] Linking spm_train
[67/93] Compiling spm_test sentencepiece_processor_test.cc
[67/93] Compiling spm_test test_main.cc
[67/93] Compiling spm_test sentencepiece_trainer_test.cc
[67/93] Compiling spm_test testharness.cc
[67/93] Compiling spm_test trainer_factory_test.cc
[67/93] Compiling spm_test trainer_interface_test.cc
[67/93] Compiling spm_test unigram_model_test.cc
BUILD FAILURE 6.0 linux