Skip to content

Unbuildable Source #1287

New issue

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

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

Already on GitHub? # to your account

Closed
ghost opened this issue May 2, 2023 · 7 comments
Closed

Unbuildable Source #1287

ghost opened this issue May 2, 2023 · 7 comments

Comments

@ghost
Copy link

ghost commented May 2, 2023

Hello,

my device is samsung s10+ and I can no longer compile your source files.

I expect that downloading the source files and typing make to compile is suffecient.

make LLAMA_OPENBLAS=1
I llama.cpp build info:
I UNAME_S: Linux
I UNAME_P: unknown
I UNAME_M: aarch64
I CFLAGS: -I. -O3 -std=c11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -pthread -DGGML_USE_OPENBLAS -I/usr/local/include/openblas -mcpu=native
I CXXFLAGS: -I. -I./examples -O3 -std=c++11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -pthread -mcpu=native
I LDFLAGS: -lopenblas
I CC: clang version 16.0.2
I CXX: clang version 16.0.2

/data/data/com.termux/files/usr/bin/sh: 1: scripts/build-info.sh: Permission denied
make: *** [Makefile:216: build-info.h] Error 126

The error message makes no sense to me.

@slaren
Copy link
Member

slaren commented May 2, 2023

Maybe you copied it in such a way that build-info.sh lost the execute permission. Try chmod +x scripts/build-info.sh.

@ghost
Copy link
Author

ghost commented May 2, 2023

I didn't know that was possible. Your solution allows me to compile.

Thank you very much.

@slaren
Copy link
Member

slaren commented May 2, 2023

Maybe this could be prevented by running the script explicitly with sh in the Makefile ie. sh scripts/build-info.sh.
cc @DannyDaemonic

@prusnak
Copy link
Collaborator

prusnak commented May 2, 2023

Maybe this could be prevented by running the script explicitly with sh in the Makefile ie. sh scripts/build-info.sh.

This sounds like a good way how to fix this.

@DannyDaemonic
Copy link
Contributor

DannyDaemonic commented May 2, 2023

@slaren Yeah, that's a good idea. I can put in a PR.

This was referenced May 2, 2023
@DannyDaemonic
Copy link
Contributor

Fixed in #1294

@ghost
Copy link
Author

ghost commented May 3, 2023

Thanks fellas. I downloaded the newest source, and it compiled withour a problem. I appreciate!

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

No branches or pull requests

3 participants