[GH-ISSUE #49] Compile error after git pull to 0.1.13 in Linux #30

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

Originally created by @pdsmike on GitHub (Sep 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/49

The compilation error is caused by a missing #include <cmath> header in verify.cpp, which leads to the compiler not finding std::isfinite. After adding this it compiles properly.

Log:

Strata - Qwen3.8-Flash-Next on a normal PC (NVIDIA GPU + system RAM + CPU)
  [ok] build tools present (CUDA 13.3)
  The engine's source changed: compiling it again (only what changed, a few minutes) ...
  > /usr/bin/cmake -G Ninja -DCMAKE_MAKE_PROGRAM=/home/mike/Programs/Strata/.venv/bin/ninja -S /home/mike/Programs/Strata -B /home/mike/Programs/Strata/build -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_CUDA=ON -DSTRATA_BUILD_TESTS=OFF -DCMAKE_CUDA_ARCHITECTURES=120 -DCMAKE_CUDA_COMPILER=/usr/local/cuda-13.3/bin/nvcc -DSTRATA_GGML_DIR=/home/mike/Programs/Strata/third_party/llama.cpp
-- Strata: CUDA enabled, arch 120
-- strata: pack/full/experts.bin absent - the expert arena load test is NOT registered
-- Warning: ccache not found - consider installing it for faster compilation or disable this warning 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:  b89c989
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /home/mike/Programs/Strata/build
  > /usr/bin/cmake --build /home/mike/Programs/Strata/build --target strata -j 7
[2/22] Building CXX object CMakeFiles/strata_engine.dir/src/core/verify.cpp.o
FAILED: [code=1] CMakeFiles/strata_engine.dir/src/core/verify.cpp.o 
/usr/bin/c++ -DSTRATA_NATIVE_EXPERTS=1 -DSTRATA_VERSION=\"0.1.13\" -I/home/mike/Programs/Strata/include -I/home/mike/Programs/Strata/third_party/llama.cpp/ggml/src/../include -isystem /usr/local/cuda-13.3/targets/x86_64-linux/include -O3 -DNDEBUG -std=c++20 -Wall -Wextra -MD -MT CMakeFiles/strata_engine.dir/src/core/verify.cpp.o -MF CMakeFiles/strata_engine.dir/src/core/verify.cpp.o.d -o CMakeFiles/strata_engine.dir/src/core/verify.cpp.o -c /home/mike/Programs/Strata/src/core/verify.cpp
/home/mike/Programs/Strata/src/core/verify.cpp: In member function ‘bool strata::core::Verifier::run(int, const int32_t*, int64_t, strata::core::PoolMultiFn, void*, int32_t*, std::string&)’:
/home/mike/Programs/Strata/src/core/verify.cpp:864:69: error: ‘isfinite’ is not a member of ‘std’
  864 |                 for (int64_t v = 0; v < n_vocab_; ++v) bad += !std::isfinite(h[(size_t) t * n_vocab_ + v]);
      |                                                                     ^~~~~~~~
/home/mike/Programs/Strata/src/core/verify.cpp: In static member function ‘static void strata::core::Verifier::raise_flag(uint32_t*, uint32_t)’:
/home/mike/Programs/Strata/src/core/verify.cpp:900:20: warning: unused variable ‘f’ [-Wunused-variable]
  900 |     volatile long* f = (volatile long*) flag;
      |                    ^
[8/22] Building CUDA object CMakeFiles/strata_mmq.dir/third_party/...a.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-iq2_s.cu.o
ninja: build stopped: subcommand failed.

  [X]  command failed (exit 1): cmake

Setup stopped. Fix the item above and run it again - everything already done is kept and skipped.
  [!]  could not compile the updated engine: starting the installed one

Starting swift-1.5-iq3_xxs (loads 34-43 GB into RAM: 30-90 s). Close this window to stop it.
loading the model (the first start takes a minute or two) ...
Traceback (most recent call last):
  File "/home/mike/Programs/Strata/serve/server.py", line 1330, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/mike/Programs/Strata/serve/server.py", line 1274, in main
    engine = StrataEngine(cfg["exe"], cfg["args"], cwd=cfg.get("cwd"), log=cfg.get("log"), env=env)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mike/Programs/Strata/serve/server.py", line 115, in __init__
    raise RuntimeError("the engine exited before it was ready" + (f" (see {log})" if log else ""))
RuntimeError: the engine exited before it was ready (see /home/mike/Programs/Strata/strata-swift-iq3_xxs.log)
Originally created by @pdsmike on GitHub (Sep 28, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/49 The compilation error is caused by a missing ```#include <cmath>``` header in verify.cpp, which leads to the compiler not finding ```std::isfinite```. After adding this it compiles properly. Log: ``` Strata - Qwen3.8-Flash-Next on a normal PC (NVIDIA GPU + system RAM + CPU) [ok] build tools present (CUDA 13.3) The engine's source changed: compiling it again (only what changed, a few minutes) ... > /usr/bin/cmake -G Ninja -DCMAKE_MAKE_PROGRAM=/home/mike/Programs/Strata/.venv/bin/ninja -S /home/mike/Programs/Strata -B /home/mike/Programs/Strata/build -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_CUDA=ON -DSTRATA_BUILD_TESTS=OFF -DCMAKE_CUDA_ARCHITECTURES=120 -DCMAKE_CUDA_COMPILER=/usr/local/cuda-13.3/bin/nvcc -DSTRATA_GGML_DIR=/home/mike/Programs/Strata/third_party/llama.cpp -- Strata: CUDA enabled, arch 120 -- strata: pack/full/experts.bin absent - the expert arena load test is NOT registered -- Warning: ccache not found - consider installing it for faster compilation or disable this warning 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: b89c989 -- Configuring done (0.1s) -- Generating done (0.0s) -- Build files have been written to: /home/mike/Programs/Strata/build > /usr/bin/cmake --build /home/mike/Programs/Strata/build --target strata -j 7 [2/22] Building CXX object CMakeFiles/strata_engine.dir/src/core/verify.cpp.o FAILED: [code=1] CMakeFiles/strata_engine.dir/src/core/verify.cpp.o /usr/bin/c++ -DSTRATA_NATIVE_EXPERTS=1 -DSTRATA_VERSION=\"0.1.13\" -I/home/mike/Programs/Strata/include -I/home/mike/Programs/Strata/third_party/llama.cpp/ggml/src/../include -isystem /usr/local/cuda-13.3/targets/x86_64-linux/include -O3 -DNDEBUG -std=c++20 -Wall -Wextra -MD -MT CMakeFiles/strata_engine.dir/src/core/verify.cpp.o -MF CMakeFiles/strata_engine.dir/src/core/verify.cpp.o.d -o CMakeFiles/strata_engine.dir/src/core/verify.cpp.o -c /home/mike/Programs/Strata/src/core/verify.cpp /home/mike/Programs/Strata/src/core/verify.cpp: In member function ‘bool strata::core::Verifier::run(int, const int32_t*, int64_t, strata::core::PoolMultiFn, void*, int32_t*, std::string&)’: /home/mike/Programs/Strata/src/core/verify.cpp:864:69: error: ‘isfinite’ is not a member of ‘std’ 864 | for (int64_t v = 0; v < n_vocab_; ++v) bad += !std::isfinite(h[(size_t) t * n_vocab_ + v]); | ^~~~~~~~ /home/mike/Programs/Strata/src/core/verify.cpp: In static member function ‘static void strata::core::Verifier::raise_flag(uint32_t*, uint32_t)’: /home/mike/Programs/Strata/src/core/verify.cpp:900:20: warning: unused variable ‘f’ [-Wunused-variable] 900 | volatile long* f = (volatile long*) flag; | ^ [8/22] Building CUDA object CMakeFiles/strata_mmq.dir/third_party/...a.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-iq2_s.cu.o ninja: build stopped: subcommand failed. [X] command failed (exit 1): cmake Setup stopped. Fix the item above and run it again - everything already done is kept and skipped. [!] could not compile the updated engine: starting the installed one Starting swift-1.5-iq3_xxs (loads 34-43 GB into RAM: 30-90 s). Close this window to stop it. loading the model (the first start takes a minute or two) ... Traceback (most recent call last): File "/home/mike/Programs/Strata/serve/server.py", line 1330, in <module> sys.exit(main()) ^^^^^^ File "/home/mike/Programs/Strata/serve/server.py", line 1274, in main engine = StrataEngine(cfg["exe"], cfg["args"], cwd=cfg.get("cwd"), log=cfg.get("log"), env=env) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/mike/Programs/Strata/serve/server.py", line 115, in __init__ raise RuntimeError("the engine exited before it was ready" + (f" (see {log})" if log else "")) RuntimeError: the engine exited before it was ready (see /home/mike/Programs/Strata/strata-swift-iq3_xxs.log) ```
Author
Owner

@Niko1221 commented on GitHub (Sep 28, 2026):

Releasing new version within 1 hour. A lot of Linux improvements.

<!-- gh-comment-id:5866794495 --> @Niko1221 commented on GitHub (Sep 28, 2026): Releasing new version within 1 hour. A lot of Linux improvements.
Author
Owner

@Niko1221 commented on GitHub (Sep 28, 2026):

Thanks - fixed in 0.1.14 (#include <cmath>). Your log also showed a second bug: after the failed compile, setup kept the 0.1.12 engine but had already switched the config to --prefill auto, which 0.1.12 cannot read, so it did not start. Setup now records the version of an engine it compiles, reads it from the binary for older builds, and switches such a config back to 2048 until the engine is updated. Please reopen if it still does not build.

<!-- gh-comment-id:5867764127 --> @Niko1221 commented on GitHub (Sep 28, 2026): Thanks - fixed in 0.1.14 (`#include <cmath>`). Your log also showed a second bug: after the failed compile, setup kept the 0.1.12 engine but had already switched the config to `--prefill auto`, which 0.1.12 cannot read, so it did not start. Setup now records the version of an engine it compiles, reads it from the binary for older builds, and switches such a config back to 2048 until the engine is updated. Please reopen if it still does not build.
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#30
No description provided.