Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in docker installed it #291

Open
ChinaGISboyYang opened this issue Nov 16, 2023 · 1 comment
Open

error in docker installed it #291

ChinaGISboyYang opened this issue Nov 16, 2023 · 1 comment

Comments

@ChinaGISboyYang
Copy link

Hello, can't build go-llama.cpp, i got next error:
`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 worked in docker (images:2yongbum/centos7-cmake-go:latest)

@RobinHeitz
Copy link

Hi, did you fixed it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants