We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Just in case someone else have this issue while compiling in Fedora 38 (after installing cmake: sudo dnf install cmake)
[nalonso@satellite build]$ cmake --build . --parallel [ 14%] Built target ggml [ 42%] Built target llama [ 57%] Linking CXX executable ../bin/chat /usr/bin/ld: cannot find -lstdc++: No such file or directory /usr/bin/ld: cannot find -lm: No such file or directory /usr/bin/ld: cannot find -lc: No such file or directory collect2: error: ld returned 1 exit status gmake[2]: *** [src/CMakeFiles/chat.dir/build.make:130: bin/chat] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:171: src/CMakeFiles/chat.dir/all] Error 2 gmake: *** [Makefile:91: all] Error 2
Run:
sudo dnf install libstdc++-static glibc-static
And it compiles fine:
[nalonso@satellite build]$ cmake --build . --parallel [ 57%] Building C object llama.cpp/CMakeFiles/ggml.dir/ggml.c.o [ 57%] Built target ggml [ 57%] Building CXX object llama.cpp/CMakeFiles/llama.dir/llama.cpp.o [ 57%] Linking CXX static library libllama.a [ 57%] Built target llama [ 57%] Building CXX object src/CMakeFiles/chat.dir//llm/llamamodel.cpp.o [ 57%] Building CXX object src/CMakeFiles/chat.dir/chat.cpp.o [ 57%] Building CXX object src/CMakeFiles/chat.dir//llama.cpp/examples/common.cpp.o [ 57%] Linking CXX executable ../bin/chat [ 57%] Built target chat
The text was updated successfully, but these errors were encountered:
I just want to say that I appreciate these kind of "this is how you fix it" -post a lot. :) Thank you!
Sorry, something went wrong.
No branches or pull requests
Just in case someone else have this issue while compiling in Fedora 38 (after installing cmake: sudo dnf install cmake)
[nalonso@satellite build]$ cmake --build . --parallel
[ 14%] Built target ggml
[ 42%] Built target llama
[ 57%] Linking CXX executable ../bin/chat
/usr/bin/ld: cannot find -lstdc++: No such file or directory
/usr/bin/ld: cannot find -lm: No such file or directory
/usr/bin/ld: cannot find -lc: No such file or directory
collect2: error: ld returned 1 exit status
gmake[2]: *** [src/CMakeFiles/chat.dir/build.make:130: bin/chat] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:171: src/CMakeFiles/chat.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
Run:
sudo dnf install libstdc++-static glibc-static
And it compiles fine:
[nalonso@satellite build]$ cmake --build . --parallel
[ 57%] Building C object llama.cpp/CMakeFiles/ggml.dir/ggml.c.o
[ 57%] Built target ggml
[ 57%] Building CXX object llama.cpp/CMakeFiles/llama.dir/llama.cpp.o
[ 57%] Linking CXX static library libllama.a
[ 57%] Built target llama
[ 57%] Building CXX object src/CMakeFiles/chat.dir//llm/llamamodel.cpp.o
[ 57%] Building CXX object src/CMakeFiles/chat.dir/chat.cpp.o
[ 57%] Building CXX object src/CMakeFiles/chat.dir//llama.cpp/examples/common.cpp.o
[ 57%] Linking CXX executable ../bin/chat
[ 57%] Built target chat
The text was updated successfully, but these errors were encountered: