The Swift Package Index logo.Swift Package Index

Build Information

Failed to build sentencepiece, reference master (a39a5b), with Swift 6.4 for Linux on 24 Sep 2026 16:15:46 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/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:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.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:         linux
Swift version:             6.4
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-54344845-0":/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:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Building for debugging...
[Pre-planning 1 / 241]
[35 / 91] swift-package-support-sentencepiece
[41 / 91] swift-package-support-sentencepiece
[43 / 91] swift-package-support-sentencepiece
[46 / 91] swift-package-support-sentencepiece
[47 / 91] swift-package-support-sentencepiece
[50 / 91] swift-package-support-sentencepiece
[51 / 91] swift-package-support-sentencepiece
[52 / 91] swift-package-support-sentencepiece
[53 / 91] swift-package-support-sentencepiece
[56 / 91] swift-package-support-sentencepiece
[58 / 91] swift-package-support-sentencepiece
[60 / 91] spm_test-product
[61 / 91] swift-package-support-sentencepiece
[63 / 91] spm_test-product
[68 / 91] spm_test-product
[69 / 91] spm_test-product
[70 / 91] spm_test-product
[72 / 91] spm_test-product
[73 / 91] spm_test-product
[75 / 91] spm_test-product
[78 / 91] spm_test-product
[80 / 91] spm_test-product
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:167: error: undefined reference to 'sentencepiece::ParseCommandLineFlags(char const*, int*, char***, bool)'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:178: error: undefined reference to 'sentencepiece::SetRandomGeneratorSeed(unsigned int)'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:218: error: undefined reference to 'sentencepiece::util::StrSplitAsCSV[abi:cxx11](std::basic_string_view<char, std::char_traits<char> >)'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:256: error: undefined reference to 'sentencepiece::util::StrSplitAsCSV[abi:cxx11](std::basic_string_view<char, std::char_traits<char> >)'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:257: error: undefined reference to 'sentencepiece::util::StrSplitAsCSV[abi:cxx11](std::basic_string_view<char, std::char_traits<char> >)'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:258: error: undefined reference to 'sentencepiece::util::StrSplitAsCSV[abi:cxx11](std::basic_string_view<char, std::char_traits<char> >)'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:281: error: undefined reference to 'sentencepiece::SentencePieceTrainer::PopulateModelTypeFromString(std::basic_string_view<char, std::char_traits<char> >, sentencepiece::TrainerSpec*)'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:281: error: undefined reference to 'sentencepiece::util::Status::ToString[abi:cxx11]() const'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:281: error: undefined reference to 'sentencepiece::util::Status::~Status()'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:284: error: undefined reference to 'sentencepiece::SentencePieceTrainer::Train(sentencepiece::TrainerSpec const&, sentencepiece::NormalizerSpec const&, sentencepiece::NormalizerSpec const&, sentencepiece::SentenceIterator*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:284: error: undefined reference to 'sentencepiece::util::Status::ToString[abi:cxx11]() const'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:284: error: undefined reference to 'sentencepiece::util::Status::~Status()'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:288: error: undefined reference to 'sentencepiece::NormalizerSpec::~NormalizerSpec()'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:288: error: undefined reference to 'sentencepiece::NormalizerSpec::~NormalizerSpec()'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:288: error: undefined reference to 'sentencepiece::TrainerSpec::~TrainerSpec()'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:281: error: undefined reference to 'sentencepiece::util::Status::~Status()'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:284: error: undefined reference to 'sentencepiece::util::Status::~Status()'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:288: error: undefined reference to 'sentencepiece::NormalizerSpec::~NormalizerSpec()'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:288: error: undefined reference to 'sentencepiece::NormalizerSpec::~NormalizerSpec()'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:288: error: undefined reference to 'sentencepiece::TrainerSpec::~TrainerSpec()'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:183: error: undefined reference to 'sentencepiece::filesystem::NewReadableFile(std::basic_string_view<char, std::char_traits<char> >, bool)'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:184: error: undefined reference to 'sentencepiece::util::Status::ToString[abi:cxx11]() const'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/spm_train_main.cc:0: error: undefined reference to 'sentencepiece::TrainerSpec::~TrainerSpec()'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/builtin_pb/sentencepiece_model.pb.h:133: error: undefined reference to 'sentencepiece::TrainerSpec::TrainerSpec(google::protobuf::Arena*)'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/builtin_pb/sentencepiece_model.pb.h:1093: error: undefined reference to 'sentencepiece::NormalizerSpec::NormalizerSpec(google::protobuf::Arena*)'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/builtin_pb/sentencepiece_model.pb.h:3536: error: undefined reference to 'sentencepiece::TrainerSpec::_i_give_permission_to_break_this_code_default_unk_piece_'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/builtin_pb/sentencepiece_model.pb.h:3610: error: undefined reference to 'sentencepiece::TrainerSpec::_i_give_permission_to_break_this_code_default_bos_piece_'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/builtin_pb/sentencepiece_model.pb.h:3684: error: undefined reference to 'sentencepiece::TrainerSpec::_i_give_permission_to_break_this_code_default_eos_piece_'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/builtin_pb/sentencepiece_model.pb.h:3758: error: undefined reference to 'sentencepiece::TrainerSpec::_i_give_permission_to_break_this_code_default_pad_piece_'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/builtin_pb/sentencepiece_model.pb.h:3832: error: undefined reference to 'sentencepiece::TrainerSpec::_i_give_permission_to_break_this_code_default_unk_surface_'
/host/spi-builder-workspace/Package.swift: spm_train-product: spi-builder-workspace/src/init.h:30: error: undefined reference to 'sentencepiece::ShutdownLibrary()'
/host/spi-builder-workspace/Package.swift: spm_train-product: clang++: error: linker command failed with exit code 1 (use -v to see invocation)
error: Ld /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/spm_train normal failed with a nonzero exit code. Command line:     cd /host/spi-builder-workspace
    /usr/bin/clang++ -target x86_64-unknown-linux-gnu --sysroot / -O0 -L/host/spi-builder-workspace/.build/out/Intermediates.noindex/EagerLinkingTBDs/Debug-linux-x86_64 -L/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 @/host/spi-builder-workspace/.build/out/Intermediates.noindex/sentencepiece.build/Debug-linux-x86_64/spm_train-p.build/Objects-normal/x86_64/spm_train.LinkFileList -Xlinker -rpath -Xlinker \$ORIGIN -Xlinker -rpath -Xlinker /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/PackageFrameworks -Xlinker --gc-sections -rdynamic -lstdc++ -o /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/spm_train
error: Build failed
BUILD FAILURE 6.4 linux