docker-aosp
docker-aosp copied to clipboard
Permission denied when setting compiler cache
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.