Skip to content

Permission denied when setting compiler cache #41

@donatoaz

Description

@donatoaz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions