Re: [ccache] Fortran support issue

2016-10-18 Thread Joel Rosdahl
On 11 October 2016 at 18:07, Giacomo Comes  wrote:
> I have been using in the past the program f90cache to cache fortran compiling 
> jobs.
> Now that ccache 3.3 has support for Fortran 77 I have done some tests to see 
> if
> I can replace f90cache with ccache.

As you already have found out, ccache doesn't support Fortran 90
(modules). This is intentional, see
https://github.com/ccache/ccache/pull/90 for background. Sorry.

-- Joel

___
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-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  för Anders Björklund 

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  för Anders Björklund 

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  för Anders Björklund 

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