go-skynet / go-llama.cpp

LLama.cpp golang bindings
MIT License
614 stars 78 forks source link

docker install error #290

Closed ChinaGISboyYang closed 7 months ago

ChinaGISboyYang commented 7 months ago

make libbinding.a `I llama.cpp build info: I UNAME_S: Linux I UNAME_P: x86_64 I UNAME_M: x86_64 I CFLAGS: -I./llama.cpp -I. -O3 -DNDEBUG -std=c11 -fPIC -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wno-unused-function -pthread -march=native -mtune=native I CXXFLAGS: -I./llama.cpp -I. -I./llama.cpp/common -I./common -O3 -DNDEBUG -std=c++11 -fPIC -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -pthread I CGO_LDFLAGS:
I LDFLAGS:
I BUILD_TYPE:
I CMAKE_ARGS:
I EXTRA_TARGETS:
I CC: cc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) I CXX: g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)

cd llama.cpp && patch -p1 < ../patches/1902-cuda.patch (Stripping trailing CRs from patch; use --binary to disable.) patching file common/common.cpp Hunk #1 FAILED at 1268 (different line endings). 1 out of 1 hunk FAILED -- saving rejects to file common/common.cpp.rej (Stripping trailing CRs from patch; use --binary to disable.) patching file common/common.h Hunk #1 FAILED at 209 (different line endings). 1 out of 1 hunk FAILED -- saving rejects to file common/common.h.rej make: *** [prepare] Error 1` it installed in docker (Images:2yongbum/centos7-cmake-go:latest)