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

Permission denied when setting compiler cache #41

Open
donatoaz opened this issue Feb 22, 2018 · 0 comments
Open

Permission denied when setting compiler cache #41

donatoaz opened this issue Feb 22, 2018 · 0 comments

Comments

@donatoaz
Copy link

I am trying to use this image on a google cloud compute engine VM, and right after syncing the repo, I get the following error:

+ prebuilts/misc/linux-x86/ccache/ccache -M 10G
/usr/local/bin/run.sh: line 23: prebuilts/misc/linux-x86/ccache/ccache: Permission denied

I tried disabling compiler cache, because I know it is not strictly necessary, but then I get permission errors when actually compiling.

/bin/bash: prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++: Permission denied
build/kati/Makefile.ckati:88: recipe for target 'out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/exec.o' failed
make: *** [out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/exec.o] Error 126
/bin/bash: prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++: Permission denied
build/kati/Makefile.ckati:88: recipe for target 'out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/eval.o' failed
make: *** [out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/eval.o] Error 126

I tried doing a harsh sudo chmod -R 0777 $AOSP_VOL and even so the error remained.

From reading the source I've seen there some special thing being done to create user aosp, and I suppose this issue must be related.

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

No branches or pull requests

1 participant