From f6bc2b07a79cff31962a20a071716be9d22c18a7 Mon Sep 17 00:00:00 2001 From: Hermes Date: Sat, 9 May 2026 22:41:18 -0400 Subject: [PATCH] fix: remove nonexistent CC=clang for Go build step ROCm 6.1 image doesn't have clang/clang++ in PATH (only amdclang++). GCC is the default and works fine for CGo linking. --- ai/ollama/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ai/ollama/Dockerfile b/ai/ollama/Dockerfile index 172af7c..4fac4f8 100644 --- a/ai/ollama/Dockerfile +++ b/ai/ollama/Dockerfile @@ -52,10 +52,8 @@ RUN mkdir -p build && cd build && \ cmake --build . -- -l $(nproc) && \ cmake --install . --component HIP --strip --prefix /build/dist -# Build the Go binary +# Build the Go binary (use GCC for CGo linking) ENV CGO_ENABLED=1 -ENV CC=clang -ENV CXX=clang++ RUN go build -trimpath -o /build/dist/ollama . # ---------- Runtime image ----------