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

Bug: make error #8313

Open
lorihuang opened this issue Jul 5, 2024 · 2 comments
Open

Bug: make error #8313

lorihuang opened this issue Jul 5, 2024 · 2 comments
Labels
bug-unconfirmed low severity Used to report low severity bugs in llama.cpp (e.g. cosmetic issues, non critical UI glitches)

Comments

@lorihuang
Copy link

What happened?

After git pull, I run "make" to compile the dir,then show some error

Name and Version

linux 4.18.7-1.el7.elrepo.x86_6

What operating system are you seeing the problem on?

No response

Relevant log output

I ccache found, compilation results will be cached. Disable with LLAMA_NO_CCACHE.
I llama.cpp build info: 
I UNAME_S:   Linux
I UNAME_P:   x86_64
I UNAME_M:   x86_64
I CFLAGS:    -Iggml/include -Iggml/src -Iinclude -Isrc -Icommon -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -DNDEBUG -DGGML_USE_OPENMP -DGGML_USE_LLAMAFILE  -std=c11   -fPIC -O3 -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes -Werror=implicit-int -Werror=implicit-function-declaration -pthread -march=native -mtune=native -fopenmp -Wdouble-promotion 
I CXXFLAGS:  -std=c++11 -fPIC -O3 -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wmissing-declarations -Wmissing-noreturn -pthread -fopenmp  -march=native -mtune=native -Wno-array-bounds -Iggml/include -Iggml/src -Iinclude -Isrc -Icommon -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -DNDEBUG -DGGML_USE_OPENMP -DGGML_USE_LLAMAFILE 
I NVCCFLAGS: -std=c++11 -O3 
I LDFLAGS:    
I CC:        cc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
I CXX:       c++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)

/usr/bin/ccache c++ -std=c++11 -fPIC -O3 -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wmissing-declarations -Wmissing-noreturn -pthread -fopenmp  -march=native -mtune=native -Wno-array-bounds -Iggml/include -Iggml/src -Iinclude -Isrc -Icommon -D_XOPEN_SOURCE=600 -D_GNU_SOURCE -DNDEBUG -DGGML_USE_OPENMP -DGGML_USE_LLAMAFILE  -c ggml/src/sgemm.cpp -o ggml/src/sgemm.o
ggml/src/sgemm.cpp:48:32: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas]
 #pragma GCC diagnostic ignored "-Wignored-attributes"
                                ^
ggml/src/sgemm.cpp: In function ‘float {anonymous}::hsum(__m128)’:
ggml/src/sgemm.cpp:164:14: error: ‘float {anonymous}::hsum(__m128)’ conflicts with a previous declaration
 inline float hsum(__m128 x) {
              ^
ggml/src/sgemm.cpp:180:14: note: previous declaration ‘float {anonymous}::hsum(__m256)’
 inline float hsum(__m256 x) {
              ^
ggml/src/sgemm.cpp:164:14: note: -fabi-version=6 (or =0) avoids this error with a change in mangling
 inline float hsum(__m128 x) {
              ^
make: *** [ggml/src/sgemm.o] Error 1
@lorihuang lorihuang added bug-unconfirmed low severity Used to report low severity bugs in llama.cpp (e.g. cosmetic issues, non critical UI glitches) labels Jul 5, 2024
@fairydreaming
Copy link
Collaborator

@lorihuang I think the problem may be the GCC version, 4.8.5 was released in 2015, it's ancient. Try upgrading the compiler or better yet, the entire system.

@lorihuang
Copy link
Author

lorihuang commented Jul 5, 2024

@fairydreaming Thank you very much for your reply. I'll try it right now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-unconfirmed low severity Used to report low severity bugs in llama.cpp (e.g. cosmetic issues, non critical UI glitches)
Projects
None yet
Development

No branches or pull requests

2 participants