llama.cpp-android-tutorial icon indicating copy to clipboard operation
llama.cpp-android-tutorial copied to clipboard

LD_LIBRARY_PATH variable affects linking

Open Davids048 opened this issue 2 years ago • 1 comments

After I setup the LD_LIBRARY_PATH variable as the instruction described, when I try to execute llama-cli from /build/bin, I encountered the following error:

CANNOT LINK EXECUTABLE "./llama-cli": cannot locate symbol "__emutls_get_address" referenced by "/data/data/com.termux/files/home/llama.cpp/build/ggml/src/libggml.so"...

After I unset the variable, I could execute the program again. But I'm not sure if this is using any GPU to accelerate the program.

What is going on by setting LD_LIBRARY_PATH to /vendor/lib64? And is there any alternative to use GPU other than setting this variable?

Davids048 avatar Jul 30 '24 03:07 Davids048

pkg upgrade Please upgrade the packages and try again

JackZeng0208 avatar Jul 30 '24 03:07 JackZeng0208