Re: Shared ccache directory between docker containers
Ragnar Rova <[email protected]> Sat, 6 Feb 2016 20:10:42 +0100
| Newsgroups | gmane.comp.compilers.ccache |
|---|---|
| Message-ID | <CAOkV6uNj-t6iQpUsOKhV4zZZ+L5F5tgBbKTrqvQYzT4M7VKKbA@mail.gmail.com> |
Thanks, i'll try upgrading although I made sure hostname is unique now. Whats the mechanism for uniqueness in 3.2? On Sat, Feb 6, 2016 at 5:27 PM, Joel Rosdahl <[email protected]> wrote: > Hi, > > On 5 February 2016 at 12:05, Ragnar Rova <[email protected]> wrote: > > Is it safe to share the ccache directory between docker containers wrt >> to locking? > > > I think so. > > ccache version 3.1.10 >> ccache: FATAL: Failed to open >> /var/tmp/docker-build-ccache/tmp/tmp.cpp_stderr.docker-host.21810: No such >> file or directory > > > Yes, ccache 3.1.* and earlier rely on the tuple <hostname, pid> being > unique when creating temporary files. This has been fixed in the ccache 3.2 > series, so try upgrading if possible. > > -- Joel >