JackZeng0208 / llama.cpp-android-tutorial

llama.cpp tutorial on Android phone
MIT License
67 stars 4 forks source link

LD_LIBRARY_PATH variable affects linking #6

Open Davids048 opened 1 month ago

Davids048 commented 1 month ago

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?

JackZeng0208 commented 1 month ago

pkg upgrade Please upgrade the packages and try again