[ccache] Attemts to write to CCACHE_DIR when CCACHE_READONLY 1

Joel Rosdahl joel at rosdahl.net
Sun Nov 4 05:20:26 MST 2012


Hi Barry,

You're not doing anything wrong - ccache does. It will be fixed in the
next ccache version. Thanks for the report (and sorry for the delayed
answer).

-- Joel

On 2 October 2012 00:12, Barry OReilly <gundaetiapo at gmail.com> wrote:
> I set the following env vars:
>
> CCACHE_DIR=/proj/user/user2
> CCACHE_TEMPDIR=/tmp
> CCACHE_COMPRESS=1
> CCACHE_READONLY=1
>
> I have read access to /proj/user/user2 but not write access.  user2 built
> one .o file already, but not the one in this example.  I issue a
> compilation command directly:
>
> ~boreilly/sw/ccache-3.1.8/install/bin/ccache g++
> -D_CSU_NAME=\"FooTypeAlgorithm\" -D_CSC_NAME=\"Foo\" [several -I snipped]
> -Wall -O2 -fno-strict-aliasing -fPIC -c -o
> src/Processing/Foo/FooTypeAlgorithm/obj/Bar.o
> src/Processing/Foo/FooTypeAlgorithm/src/Bar.cc
>
> I get error:
> ccache: FATAL: Failed to create /proj/user/user2/8: Permission denied
>
> But I set CCACHE_READONLY to 1.
>
> OS: RHEL5
> g++ version: 4.4
> ccache version: 3.1.8
>
> I've attached the strace output.  What am I doing wrong?
>
> _______________________________________________
> ccache mailing list
> ccache at lists.samba.org
> https://lists.samba.org/mailman/listinfo/ccache
>


More information about the ccache mailing list