[GH-ISSUE #2899] error when compiling ubuntu 26 #1172

Closed
opened 2026-11-04 01:49:05 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @sohu001 on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2899

python3.13, ubuntu 26, RTX 3060 12G ,64G RAM

-- Strata: CUDA enabled, arch 86
-- strata: pack/full/experts.bin absent - the expert arena load test is NOT registered
-- ccache found, compilation results will be cached. Disable with GGML_CCACHE=OFF.
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- GGML_SYSTEM_ARCH: x86
-- Including CPU backend
-- x86 detected
-- Adding CPU backend variant ggml-cpu: -march=native
-- ggml version: 0.24.0
-- ggml commit: 477ac13c
-- Configuring done (0.5s)
-- Generating done (0.1s)
-- Build files have been written to: /home/ubuntu/Strata/build
(.venv) ubuntu@ubuntu:~/Strata$ /home/ubuntu/Strata/.venv/bin/cmake --build /home/ubuntu/Strata/build --target strata -j 12
[1/1] Linking CXX executable strata
FAILED: [code=1] strata
&& /usr/bin/c++ -O3 -DNDEBUG -Wl,--dependency-file=CMakeFiles/strata.dir/link.d CMakeFiles/strata.dir/src/program/generate.cpp.o -o strata -L/usr/lib/x86_64-linux-gnu/stubs -L/usr/lib/gcc/x86_64-linux-gnu/13 libstrata_engine.a libstrata_prefill.a libstrata_spec.a /usr/lib/x86_64-linux-gnu/libcudart.so libstrata_qwen35.a libstrata_prefill.a libstrata_engine.a /usr/lib/x86_64-linux-gnu/libcublas.so /usr/lib/x86_64-linux-gnu/libcublasLt.so /usr/lib/x86_64-linux-gnu/libculibos.a libstrata_mmq.a libstrata_mmq_w4a4.a /usr/lib/x86_64-linux-gnu/libcuda.so libstrata_kernels.a libstrata_core.a /usr/lib/x86_64-linux-gnu/libcudart.so -ldl /usr/lib/x86_64-linux-gnu/librt.a libstrata_kernels_cpu.a ggml/src/libggml-cpu.a ggml/src/libggml-base.a -lm -lcudadevrt -lcudart_static -lrt -lpthread -ldl && :
/usr/bin/x86_64-linux-gnu-ld.bfd: libstrata_prefill.a(prefill.cpp.o): in function std::default_delete<strata::prefill::(anonymous namespace)::HandWorker>::operator()(strata::prefill::(anonymous namespace)::HandWorker*) const [clone .part.0] [clone .cold]': prefill.cpp:(.text.unlikely+0x128c): undefined reference to __cxa_call_terminate'
/usr/bin/x86_64-linux-gnu-ld.bfd: libstrata_prefill.a(prefill.cpp.o): in function std::deque<std::packaged_task<bool ()>, std::allocator<std::packaged_task<bool ()> > >::~deque()': prefill.cpp:(.text._ZNSt5dequeISt13packaged_taskIFbvEESaIS2_EED2Ev[_ZNSt5dequeISt13packaged_taskIFbvEESaIS2_EED5Ev]+0xa6c): undefined reference to __cxa_call_terminate'
/usr/bin/x86_64-linux-gnu-ld.bfd: libstrata_prefill.a(prefill.cpp.o): in function strata::prefill::Prefill::Impl::~Impl()': prefill.cpp:(.text._ZN6strata7prefill7Prefill4ImplD2Ev[_ZN6strata7prefill7Prefill4ImplD5Ev]+0x1107): undefined reference to __cxa_call_terminate'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Originally created by @sohu001 on GitHub (Oct 17, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2899 python3.13, ubuntu 26, RTX 3060 12G ,64G RAM -- Strata: CUDA enabled, arch 86 -- strata: pack/full/experts.bin absent - the expert arena load test is NOT registered -- ccache found, compilation results will be cached. Disable with GGML_CCACHE=OFF. -- CMAKE_SYSTEM_PROCESSOR: x86_64 -- GGML_SYSTEM_ARCH: x86 -- Including CPU backend -- x86 detected -- Adding CPU backend variant ggml-cpu: -march=native -- ggml version: 0.24.0 -- ggml commit: 477ac13c -- Configuring done (0.5s) -- Generating done (0.1s) -- Build files have been written to: /home/ubuntu/Strata/build (.venv) ubuntu@ubuntu:~/Strata$ /home/ubuntu/Strata/.venv/bin/cmake --build /home/ubuntu/Strata/build --target strata -j 12 [1/1] Linking CXX executable strata FAILED: [code=1] strata : && /usr/bin/c++ -O3 -DNDEBUG -Wl,--dependency-file=CMakeFiles/strata.dir/link.d CMakeFiles/strata.dir/src/program/generate.cpp.o -o strata -L/usr/lib/x86_64-linux-gnu/stubs -L/usr/lib/gcc/x86_64-linux-gnu/13 libstrata_engine.a libstrata_prefill.a libstrata_spec.a /usr/lib/x86_64-linux-gnu/libcudart.so libstrata_qwen35.a libstrata_prefill.a libstrata_engine.a /usr/lib/x86_64-linux-gnu/libcublas.so /usr/lib/x86_64-linux-gnu/libcublasLt.so /usr/lib/x86_64-linux-gnu/libculibos.a libstrata_mmq.a libstrata_mmq_w4a4.a /usr/lib/x86_64-linux-gnu/libcuda.so libstrata_kernels.a libstrata_core.a /usr/lib/x86_64-linux-gnu/libcudart.so -ldl /usr/lib/x86_64-linux-gnu/librt.a libstrata_kernels_cpu.a ggml/src/libggml-cpu.a ggml/src/libggml-base.a -lm -lcudadevrt -lcudart_static -lrt -lpthread -ldl && : /usr/bin/x86_64-linux-gnu-ld.bfd: libstrata_prefill.a(prefill.cpp.o): in function `std::default_delete<strata::prefill::(anonymous namespace)::HandWorker>::operator()(strata::prefill::(anonymous namespace)::HandWorker*) const [clone .part.0] [clone .cold]': prefill.cpp:(.text.unlikely+0x128c): undefined reference to `__cxa_call_terminate' /usr/bin/x86_64-linux-gnu-ld.bfd: libstrata_prefill.a(prefill.cpp.o): in function `std::deque<std::packaged_task<bool ()>, std::allocator<std::packaged_task<bool ()> > >::~deque()': prefill.cpp:(.text._ZNSt5dequeISt13packaged_taskIFbvEESaIS2_EED2Ev[_ZNSt5dequeISt13packaged_taskIFbvEESaIS2_EED5Ev]+0xa6c): undefined reference to `__cxa_call_terminate' /usr/bin/x86_64-linux-gnu-ld.bfd: libstrata_prefill.a(prefill.cpp.o): in function `strata::prefill::Prefill::Impl::~Impl()': prefill.cpp:(.text._ZN6strata7prefill7Prefill4ImplD2Ev[_ZN6strata7prefill7Prefill4ImplD5Ev]+0x1107): undefined reference to `__cxa_call_terminate' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.
Author
Owner

@voodoo144 commented on GitHub (Oct 18, 2026):

Same here, narrowed it down to using wrong gcc13 libraries during linking.
Ubuntu 26 comes with gcc15 and gcc14 and gcc13. While compiler is used from gcc 15 -> linked somehow trying to use gcc13 libraries ( and 13 does not provide __cxa_call_terminate function )

Manual fix in build ninja

sed -i   's|/usr/lib/gcc/x86_64-linux-gnu/13|/usr/lib/gcc/x86_64-linux-gnu/15|g'   build/build.ninja

gcc 13 comes itself from nvcc as cuda-toolkit 12.4 reports that gcc 13 is max supported version.
fix to make everything compiles

export CC=/usr/bin/gcc-13 
export CXX=/usr/bin/g++-13 
export CUDAHOSTCXX=/usr/bin/g++-13 

./setup.sh
<!-- gh-comment-id:6244772407 --> @voodoo144 commented on GitHub (Oct 18, 2026): Same here, narrowed it down to using wrong gcc13 libraries during linking. Ubuntu 26 comes with gcc15 and gcc14 and gcc13. While compiler is used from gcc 15 -> linked somehow trying to use gcc13 libraries ( and 13 does not provide `__cxa_call_terminate ` function ) Manual fix in build ninja ``` sed -i 's|/usr/lib/gcc/x86_64-linux-gnu/13|/usr/lib/gcc/x86_64-linux-gnu/15|g' build/build.ninja ``` gcc 13 comes itself from nvcc as cuda-toolkit 12.4 reports that gcc 13 is max supported version. fix to make everything compiles ``` export CC=/usr/bin/gcc-13 export CXX=/usr/bin/g++-13 export CUDAHOSTCXX=/usr/bin/g++-13 ./setup.sh ```
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271355308 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1172
No description provided.