File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,6 +235,10 @@ if(TRANSCRIBE_GGML_BACKEND_DL)
235235 "(backend modules are shared libraries loaded at runtime)" )
236236 endif ()
237237 set (GGML_BACKEND_DL ON CACHE BOOL "" FORCE )
238+ # ggml hard-errors on GGML_NATIVE + GGML_BACKEND_DL (x86): native tuning
239+ # is incompatible with feature-scored modules. A module build is a
240+ # distribution build, so never tune it to the build host.
241+ set (GGML_NATIVE OFF CACHE BOOL "" FORCE )
238242endif ()
239243
240244# ggml's CMake declares its own warning flags; let it.
Original file line number Diff line number Diff line change @@ -610,6 +610,8 @@ static bool valid_stream_commit_policy(int policy) {
610610 return false ;
611611}
612612
613+ } // namespace
614+
613615// ---------------------------------------------------------------------------
614616// Backend modules and device discovery
615617// ---------------------------------------------------------------------------
@@ -620,6 +622,11 @@ static bool valid_stream_commit_policy(int policy) {
620622// scans only that path. ggml tolerates every per-module failure (missing
621623// system deps such as the Vulkan loader -> dlopen fails -> module skipped),
622624// which is exactly the ship-Vulkan-by-default degradation contract.
625+ //
626+ // NOTE: these definitions must sit at FILE scope, outside the anonymous
627+ // namespace above. clang exports extern "C" functions defined inside an
628+ // unnamed namespace; gcc gives them internal linkage, which strips them
629+ // from the shared library on Linux (undefined references at link).
623630
624631extern " C" transcribe_status transcribe_init_backends (const char * artifact_dir) {
625632 if (artifact_dir == nullptr || artifact_dir[0 ] == ' \0 ' ) {
@@ -716,6 +723,8 @@ extern "C" bool transcribe_backend_available(transcribe_backend_request kind) {
716723 return false ;
717724}
718725
726+ namespace {
727+
719728enum class StreamStablePrefixImpl {
720729 GenericTextAgreement,
721730 FamilyTokenAgreement,
You can’t perform that action at this time.
0 commit comments