From d6481c2ed02b3dd07c3700b879c550145ead29d2 Mon Sep 17 00:00:00 2001 From: Zbigniew Herman Date: Tue, 19 May 2026 18:13:13 +0200 Subject: [PATCH] tts-cpp : add missing include in chatterbox_tts.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit g_s3gen_cache_refcount (line ~189) is declared as `static std::atomic` and is later used with `.fetch_add()`, `.fetch_sub()`, `.store()`, but the translation unit only pulls in ggml/cstring/stl headers — never `` directly. libstdc++ happens to expose `std::atomic` transitively via `` on most hosts so the build appears clean, but on the ggml-speech sync path where header transitivity changes (the qvac-ext-ggml@speech merge of ggml-org v0.10.2 cuts a few of those transitive paths) the translation unit fails with: chatterbox_tts.cpp:189: variable `std::atomic g_s3gen_cache_refcount' has initializer but incomplete type Reproduces on the pre-merge speech HEAD too -- it was previously hidden by header transitivity. Add `#include ` explicitly. Verified by a clean rebuild of tts-cpp against an `-DBUILD_SHARED_LIBS=ON` install of qvac-ext-ggml@speech HEAD (45dbdecd, day-2 ggml-speech). Co-authored-by: Cursor --- tts-cpp/src/chatterbox_tts.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tts-cpp/src/chatterbox_tts.cpp b/tts-cpp/src/chatterbox_tts.cpp index edd762a7285..603cbc74f3f 100644 --- a/tts-cpp/src/chatterbox_tts.cpp +++ b/tts-cpp/src/chatterbox_tts.cpp @@ -43,6 +43,7 @@ #endif #include +#include #include #include #include