From 793a24d6695d950c58e5c3cd5803b61e46786bd3 Mon Sep 17 00:00:00 2001 From: Liam Broza Date: Tue, 9 Jun 2026 19:24:09 -0700 Subject: [PATCH] fix(build): link libgomp + fetch llama.cpp submodules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two link failures remained after LLAMA_CURL=ON (which doesn't help — b8250 uses cpp-httplib for downloads regardless): - ggml-cpu.c needs OpenMP (GOMP_*/omp_*) but libgomp wasn't linked -> add gomp. - llama.cpp common/download.cpp references cpp-httplib symbols that resolve to nothing; fetch llama.cpp's vendored submodules (--recurse-submodules) so its bundled cpp-httplib implementation is present at build. Co-Authored-By: Claude Opus 4.8 (1M context) --- CMakeLists.txt | 2 +- Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 53aa2b3..fcd8532 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -148,7 +148,7 @@ set(COMMON_LIBS nlohmann_json httplib Threads::Threads - m dl stdc++ pthread + m dl stdc++ pthread gomp ) # ── jic-server ─────────────────────────────────────────────────────── diff --git a/Dockerfile b/Dockerfile index 9227228..885752b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ --no-install-recommends && rm -rf /var/lib/apt/lists/* WORKDIR /build -RUN git clone --depth 1 --branch ${LLAMA_CPP_TAG} \ +RUN git clone --depth 1 --recurse-submodules --shallow-submodules --branch ${LLAMA_CPP_TAG} \ https://github.com/ggml-org/llama.cpp.git && \ cd llama.cpp && \ cmake -B build \ @@ -53,7 +53,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ --no-install-recommends && rm -rf /var/lib/apt/lists/* WORKDIR /build -RUN git clone --depth 1 --branch ${MUPDF_TAG} \ +RUN git clone --depth 1 --recurse-submodules --shallow-submodules --branch ${MUPDF_TAG} \ --recurse-submodules --shallow-submodules \ https://github.com/ArtifexSoftware/mupdf.git && \ cd mupdf && \