Re: Attemts to write to CCACHE_DIR when CCACHE_READONLY 1

Joel Rosdahl <[email protected]>
Newsgroups gmane.comp.compilers.ccache
Message-ID <CAK8D=pi9ozPhf7Qa4mCm0Tsaj5n6T7wJhtmNfABfxfoMsiNryA@mail.gmail.com>
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 <[email protected]> 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
> [email protected]
> https://lists.samba.org/mailman/listinfo/ccache
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.