Re: [ccache] How to omit caching of a specific compilation

2016-10-18 Thread Mats Nilsson
Dear Anders,


Our reason for avoiding caching of the specific file is because it is generated 
from a series of calls to git for calculating the version number.

I was afraid that caching would give us an old version number.

BR,

/Mats


Från: ccache <ccache-boun...@lists.samba.org> för Anders Björklund 
<and...@psqr.se>
Skickat: den 17 oktober 2016 21:17:25
Till: ccache@lists.samba.org
Ämne: Re: [ccache] How to omit caching of a specific compilation

Mats Nilsson wrote:
> Thank you very much!
>> Is there a way to instruct ccache to not cache the object file from a 
>> specific compilation?
>>
>  Look for the following configuration file options in the ccache(1) man
> page for disable, read_only, and read_only_direct to decide which one you
> need for your situation.

It would also be nice to know why it had to be disabled, if there is a
bug in ccache. Normally caching a compilation shouldn't hurt anything...

Now, certain compilations (e.g. timestamps) one might to avoid compiling
just to not fill the cache with junk. But normally that doesn't happen*.

/Anders


* i.e. it's a bad idea anyway, for other reasons (reproducability etc)

See https://reproducible-builds.org/ for more on the particular subject.
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


Re: [ccache] cacche 3.2 or higher for Ubuntu 14.0

2016-10-18 Thread Mats Nilsson
Thanks

/M



Från: ccache <ccache-boun...@lists.samba.org> för Anders Björklund 
<and...@psqr.se>
Skickat: den 17 oktober 2016 21:11:28
Till: ccache@lists.samba.org
Ämne: Re: [ccache] cacche 3.2 or higher for Ubuntu 14.0

Mats Nilsson wrote:
> I'm a new-bee on ccache and I run clang on Ubuntu 14.04/64bit.
>
> Where can I find an apt-get package with ccache 3.2 or higher?

I think you have to request a backport, or do a PPA repository:

https://wiki.ubuntu.com/UbuntuBackports
https://help.launchpad.net/Packaging/PPA

The current versions are:
precise (12.04LTS) (devel)  3.1.6-1
trusty (14.04LTS) (devel)   3.1.9-1
xenial (16.04LTS) (devel)   3.2.4-1

Or you could perhaps just build it yourself, from the source ?

https://ccache.samba.org/download.html

/Anders
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


Re: [ccache] NFS cache

2016-10-18 Thread Mats Nilsson
Thanks

/M


Från: ccache <ccache-boun...@lists.samba.org> för Anders Björklund 
<and...@psqr.se>
Skickat: den 17 oktober 2016 21:02:16
Till: ccache@lists.samba.org
Ämne: Re: [ccache] NFS cache

Mats Nilsson wrote:
> I'm experimenting with having a common NFS-disk as cacche for all build 
> agents in TeamCity.

It works, but is kinda slow and full of issues (like cleaning, for
instance). Using NFS only as secondary cache works (somewhat) better.

I wanted to focus on memcached, but people keep beating that poor old
dead horse. So maybe the "external" cache should be brought back... ?

It was also requested in: https://github.com/ccache/ccache/pull/139

Old code was at: https://github.com/afbjorklund/ccache/tree/external

> Should there be any form of semaphore/lock to support simultaneous access of 
> the cache?

There is a lockfile. That's the only way on NFS, since all forms of
flock/fcntl are broken (unfortunately). See lockfile.c for the code.

You will also want avoid the cache ever getting full, since that will
trigger a delete storm from all clients (at once). Including stat's.

Some more discussion in: https://github.com/ccache/ccache/issues/124

Not sure about all this NFS love. Better the devil you know, perhaps ?

/Anders
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


[ccache] NFS cache

2016-10-17 Thread Mats Nilsson
Hi!


I'm experimenting with having a common NFS-disk as cacche for all build agents 
in TeamCity.

Should there be any form of semaphore/lock to support simultaneous access of 
the cache?


BR,
/Mats
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


Re: [ccache] How to omit caching of a specific compilation

2016-10-11 Thread Mats Nilsson
Thank you very much!

BR,

/Mats


Från: Scott Bennett <benn...@sdf.org>
Skickat: den 10 oktober 2016 22:06:39
Till: Mats Nilsson
Kopia: ccache@lists.samba.org
Ämne: Re: [ccache] How to omit caching of a specific compilation

Mats Nilsson <mats.nils...@tobii.com> wrote:

> I'm new to ccache.
>
> Is there a way to instruct ccache to not cache the object file from a 
> specific compilation?
>
 Look for the following configuration file options in the ccache(1) man
page for disable, read_only, and read_only_direct to decide which one you
need for your situation.


  Scott Bennett, Comm. ASMELG, CFIAG
**
* Internet:   bennett at sdf.org   *xor*   bennett at freeshell.org  *
**
* "A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army."   *
*-- Gov. John Hancock, New York Journal, 28 January 1790 *
**
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


[ccache] cacche 3.2 or higher for Ubuntu 14.0

2016-10-10 Thread Mats Nilsson
Hi!

I'm a new-bee on ccache and I run clang on Ubuntu 14.04/64bit.

Where can I find an apt-get package with ccache 3.2 or higher?

BR,

/Mats
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


[ccache] How to omit caching of a specific compilation

2016-10-10 Thread Mats Nilsson
Hi!

I'm new to ccache.

Is there a way to instruct ccache to not cache the object file from a specific 
compilation?

BR,

/Mats
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


[ccache] Shared cache (Ubuntu 14, VMWare, TeamCity, gcc)

2016-10-03 Thread Mats Nilsson
Hi,

I'm a newcomer and I'm just about to start some tests with ccache and I'm 
unsure of how to arrange a shared cache for my builds in TeamCity.

We usually compile the same git commit in several ways (eg. shared or unshared 
libs) and with several cross compilers on our 16 build agents.

I wonder if the shared cache needs to be on a NFS-fileserver or if it's better 
to use a shared virtual disk?

BR,

/Mats

___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache