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.
This commit is contained in:
@@ -52,10 +52,8 @@ RUN mkdir -p build && cd build && \
|
|||||||
cmake --build . -- -l $(nproc) && \
|
cmake --build . -- -l $(nproc) && \
|
||||||
cmake --install . --component HIP --strip --prefix /build/dist
|
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 CGO_ENABLED=1
|
||||||
ENV CC=clang
|
|
||||||
ENV CXX=clang++
|
|
||||||
RUN go build -trimpath -o /build/dist/ollama .
|
RUN go build -trimpath -o /build/dist/ollama .
|
||||||
|
|
||||||
# ---------- Runtime image ----------
|
# ---------- Runtime image ----------
|
||||||
|
|||||||
Reference in New Issue
Block a user