[ccache] ccache compression patch (was: The future of ccache)

2010-01-07 Thread Joel Rosdahl
On Thu, 7 Jan 2010 09:22:27 +1100 tridge at samba.org wrote: For example, the compression patch is badly done I think (it doesn't cope with changing the compression option - it should either use a .gz extension for compressed cache files, or recognise them by reading the header). Hm, I don't

Re: [ccache] [PATCH] Always close(fd) as soon as file is mmap()'d.

2010-02-28 Thread Joel Rosdahl
On Sat, 27 Feb 2010 22:15:54 -0300 Ramiro Polla ramiro.po...@gmail.com wrote: On remember_include_file(), close() wasn't even being called. On unify_hash() and process_preprocessed_file(), it might not be closed if mmap fails. Thanks for finding this! But I think you forgot to attach your

Re: [ccache] [PATCH] Always close(fd) as soon as file is mmap()'d.

2010-02-28 Thread Joel Rosdahl
On Sun, 28 Feb 2010 12:22:56 -0300 Ramiro Polla ramiro.po...@gmail.com wrote: On Sun, Feb 28, 2010 at 5:52 AM, Joel Rosdahl j...@rosdahl.net wrote: On Sat, 27 Feb 2010 22:15:54 -0300 Ramiro Polla ramiro.po...@gmail.com wrote: On remember_include_file(), close() wasn't even being called

[ccache] Release plan

2010-02-28 Thread Joel Rosdahl
Hi, I now don't have any features left on my TODO list for the next ccache release, which I plan to name 3.0. The main thing left, except more testing and fixing any bugs that are found, is some work on the documentation, and maybe some portability stuff. There are still some features that I

[ccache] ccache 3.0pre0 has been released

2010-02-28 Thread Joel Rosdahl
Hi, I'm pleased to announce ccache version 3.0pre0. I expect this prerelease (or call it beta release if you want) to not differ much from the upcoming 3.0 release functionality-wise, so I encourage everyone to try it out. And please report any bugs or misbehaviours you find to this mailing list

Re: [ccache] Release plan

2010-03-01 Thread Joel Rosdahl
On Sun, 28 Feb 2010 17:29:55 -0300 Ramiro Polla ramiro.po...@gmail.com wrote: I have a win32 port almost done. But since it touches *a lot* of code I'd rather wait for after 3.0 so it can receive more testing. Nice. Yes, that sounds like a good plan. -- Joel

Re: [ccache] Release plan

2010-03-01 Thread Joel Rosdahl
On Sun, 28 Feb 2010 22:26:48 + William S Fulton w...@fultondesigns.co.uk wrote: I have a semi-fork of ccache for SWIG. See http://swig.svn.sourceforge.net/viewvc/swig/trunk/CCache/. It adds support for the SWIG compiler in addition to C/C++ compilers. The main difference to a traditional

Re: [ccache] GPLv3

2010-03-02 Thread Joel Rosdahl
On Mon, 01 Mar 2010 23:12:45 + William S Fulton w...@fultondesigns.co.uk wrote: [...] As the copyright holders have already licensed it under GPLv2 or later (later version is the key point here) and as GPL is copyleft, anyone can take the source and license it as GPLv3 or GPLv3 or later,

[ccache] Compression on or off by default?

2010-03-02 Thread Joel Rosdahl
Hi, Lars Gustäbel's compression patch (which will be incorporated in ccache 3.0) enables compression by default, and if you don't want compression you have to set CCACHE_NOCOMPRESS. I'm still a bit undecided about whether defaulting to compression is a good idea, though. Maybe we should be more

Re: [ccache] Compression on or off by default?

2010-03-04 Thread Joel Rosdahl
On Wed, 3 Mar 2010 05:00:48 -0500 Mike Frysinger vapier@gmail.com wrote: make the default a ./configure option that defaults to off I would prefer not to make a build-time option of this, because then the documentation has say something in line with whether files are compressed by default

Re: [ccache] Compression on or off by default?

2010-03-04 Thread Joel Rosdahl
On Wed, 3 Mar 2010 10:39:47 + Dalton, Tom tdal...@hp.com wrote: I would say for the first release of a new feature, default it to off. That gives people a chance to 'play' with it without potentially breaking existing installations that are simply upgrading. If there are no major problems

Re: [ccache] Inline assembly .incbin directive

2010-03-05 Thread Joel Rosdahl
On Tue, 2 Mar 2010 22:21:08 + Stefan Hajnoczi stefa...@gmail.com wrote: ccache does not detect when the GNU assembler .incbin directive [1] is used to include a binary file. [...] Since this bug breaks the idea that ccache does not affect the semantics of the build, only the performance,

Re: [ccache] Temporary Files vs NFS

2010-04-14 Thread Joel Rosdahl
On 2010-04-13 19:56, DATACOM - Samuel Lucas wrote: I'm considering using a shared cache over NFS, but I'm a bit concerned about creating the temporary files over NFS. Wouldn't the network become a performance bottleneck? I haven't done any measurements of NFS-based caches myself, but it

Re: [ccache] Question about features and release date

2010-04-14 Thread Joel Rosdahl
On 2010-04-14 03:58, Yoda, Kiwamu wrote: Q1. In future, will ccache support other compilers besides gcc? Especially RealView. I have no personal interest in working on supporting other compilers than GCC, but if anyone wants to, please go ahead. But keep in mind that to do this

Re: [ccache] [PATCH] Add support for the -x GCC switch

2010-04-16 Thread Joel Rosdahl
On 2010-04-16 22:11, Dirk Best wrote: this patch adds support for the -x GCC switch that allows one to specify the language of the source file independently of the file extension. Sorry, but I guess the mailing list software has eaten your patch (or you forgot to attach it). I've loosened

Re: [ccache] [PATCH] Add support for the -x GCC switch

2010-04-17 Thread Joel Rosdahl
On 2010-04-16 22:11, Dirk Best wrote: this patch adds support for the -x GCC switch that allows one to specify the language of the source file independently of the file extension. Thanks! I see that you reuse the extensions array to find out the language, but that will only handle the c and

Re: [ccache] Temporary Files vs NFS

2010-04-17 Thread Joel Rosdahl
On 2010-04-14 18:48, Joel Rosdahl wrote: Unless I find any problem, I will remove the CCACHE_TEMPDIR setting and just use mkstemp(3) to create temporary files. After thinking about this, I will keep CCACHE_TEMPDIR. While ccache would perform better by default for caches on NFS if /tmp were

Re: [ccache] [PATCH] Add support for the -x GCC switch

2010-04-19 Thread Joel Rosdahl
On 2010-04-19 10:11, Dirk Best wrote: I see that you reuse the extensions array to find out the language, but that will only handle the c and c++ cases. It would be nice to handle c-cpp-output and c++-cpp-output as well. I haven't really looked into that yet, as the project I added support

Re: [ccache] Corrupt objects from three colliding compiles

2010-05-09 Thread Joel Rosdahl
On 2010-05-06 19:14, Wilson Snyder wrote: [...] [1273161404.432174,2424 ] === 2010-05-06 11:56:44 === [1273161404.432636,2424 ] Hostname: maserati [1273161404.432643,2424 ] Cwd: /nfs/compiling/dir02 [1273161404.432646,2424 ] Source file: INV.c [1273161404.432648,2424 ] Object file: INV.o

[ccache] ccache 3.0pre1 has been released

2010-05-10 Thread Joel Rosdahl
Hi, I'm pleased to announce ccache version 3.0pre1. I expect this prerelease (or call it beta release if you want) to be very close to the upcoming 3.0 release functionality-wise, so I encourage everyone to try it out. And please report any bugs or misbehaviours you find to this mailing list or

Re: [ccache] amd64 buildworld (FreeBSD 8.0p2) consistently fails with ccache

2010-05-10 Thread Joel Rosdahl
On 2010-05-10 03:24, Christer Edwards wrote: I've enabled logging and I would attach the logfile, but it is 12M total size. I've included the tail end, just leading up to the failure: [...] [78047] Running real compiler [78047] Compiler gave exit status 1 This build had no CFLAGS or

Re: [ccache] amd64 buildworld (FreeBSD 8.0p2) consistently fails with ccache

2010-05-12 Thread Joel Rosdahl
On 2010-05-11 01:38, Christer Edwards wrote: I've got another failure (same place) on 3.0pre1.Below are the details: I executed 'ccache make buildworld' at /usr/src. Putting ccache before make doesn't gain anything (but doesn't do any harm either, except that an error counter in ccache's

Re: [ccache] [PATCH] Some patches for Xcode support

2010-06-03 Thread Joel Rosdahl
On 2010-05-25 00:58, Bernhard Bauer wrote: Turns out, the -x option was overriding the language auto-detection based on the filename. I ended up rewriting the -x patch similar to the way you suggested to Dirk, so now it supports properly changing the language for preprocessed files, using a

Re: [ccache] [PATCH] Some patches for Xcode support

2010-06-13 Thread Joel Rosdahl
On 2010-06-11 16:33, Bernhard Bauer wrote: Also, I added the -x option for compiling preprocessed code again if there was an -x option on the original command line. Otherwise, when compiling Objective-C code on a different machine, distcc wouldn't recognize the code as preprocessed

Re: [ccache] [PATCH] Some patches for Xcode support

2010-06-13 Thread Joel Rosdahl
On 2010-06-13 20:22, Bernhard Bauer wrote: On Sun, Jun 13, 2010 at 18:38, Joel Rosdahl j...@rosdahl.net wrote: [...] #!/bin/sh CCACHE_PREFIX=distcc exec ccache $@ That should work, provided PATH is modified to exclude /X, otherwise ccache would call this script again when calling distcc

Re: [ccache] [PATCH] Some patches for Xcode support

2010-06-14 Thread Joel Rosdahl
On 2010-06-14 19:13, Bernhard Bauer wrote: The bug is actually more subtle: distcc has global variables indicating whether whether it has seen an -x option and the last value of its argument, and forgets to clear them between running multiple jobs on the server, so it assumes an incorrect

Re: [ccache] globally unique hashes

2010-06-20 Thread Joel Rosdahl
On 2010-06-20 17:26, Reuben Hawkins wrote: I was wondering if the hash values generated by ccache are globally unique. I was thinking about adding a multicast feature where after not finding a cached object file in the local cache, but before trying to compile the file, ccache will multicast

Re: [ccache] ccache on windows

2010-06-23 Thread Joel Rosdahl
On 2010-06-23 22:18, Ramiro Polla wrote: I sent an e-mail to the list a couple of days ago regarding a github fork I had created with those patches and pointing out some initial uncontroversial patches that could get applied early but got no answer yet. [...] Don't worry, your recent mail is

Re: [ccache] Win32 support.

2010-06-25 Thread Joel Rosdahl
On Sun, Jun 20, 2010 at 7:07 PM, Ramiro Polla ramiro.po...@gmail.com wrote: Now that 3.0 has been released, do you intend to keep a branch of backports only (for 3.0.1 or something) or can we start working on the bigger changes required for win32 support? I will use the branch maint for

Re: [ccache] ccache and precompiled headers

2010-06-27 Thread Joel Rosdahl
Hi, On 2010-06-21 13:09, Tor Arne Vestbø wrote: I ran into a problem where ccache would log Preprocessor gave exit status 1 and fail to cache builds. Closer inspection revealed that this was due to the use of precompiled headers though an -include argument to gcc. When ccache then tried to

Re: [ccache] globally unique hashes

2010-06-27 Thread Joel Rosdahl
On 2010-06-24 00:58, Reuben Hawkins wrote: On Wed, Jun 23, 2010 at 1:05 PM, Joel Rosdahl j...@rosdahl.net wrote: If your version become unknown, then I guess you neither built an official release nor from a Git tree? [...] $ echo `git describe --dirty` fatal: No names found, cannot

Re: [ccache] Win32 support.

2010-06-27 Thread Joel Rosdahl
On 2010-06-25 11:01, Joel Rosdahl wrote: I haven't looked at the others in detail yet. I'll get back to you when I have more time. Introduce and use x_fmmap(): Nice cleanup in general. A comment with some documention of x_fmmap's semantics and parameters would be nice. And maybe remove trailing

Re: [ccache] Win32 support.

2010-07-16 Thread Joel Rosdahl
On 2010-07-15 22:07, Ramiro Polla wrote: I updated the fork at http://github.com/ramiropolla/ccache I also went through all the issues from other forks from http://code.google.com/p/ccache-win32/ and http://gitorious.org/ccache-win and fixed them. Splendid! Run stat() before open() on some

Re: [ccache] ccache and distcc-pump

2010-08-05 Thread Joel Rosdahl
On 2010-08-05 00:24, Bernhard Bauer wrote: what is the current state of ccache together with distcc pump mode? I'd assume that direct mode cache hits would go nicely with pump mode, but for cache misses we would still need to run the preprocessor locally to calculate the hash for the manifest

Re: [ccache] ccache and precompiled headers

2010-08-21 Thread Joel Rosdahl
On 2010-07-03 14:22, Tor Arne Vestbø wrote: [...] As you can see removing pch from the build increases the total build time for the initial build (empty cache), but speeds up builds when there's something in the cache since we're hitting direct mode in almost all cases. When pch and ccache is

Re: [ccache] ccache and precompiled headers

2010-08-28 Thread Joel Rosdahl
On 2010-08-27 15:59, Tor Arne Vestbø wrote: On 27.08.10 13.15, Tor Arne Vestbø wrote: I'm sorry to report that I'm seeing build issues with master when building Qt on Mac OS X (but the issue should be fixable): I'm assuming the hash is based solely on the contents of the preprocessed

[ccache] ccache version 3.1 has been released

2010-09-16 Thread Joel Rosdahl
I'm happy to announce ccache version 3.1, which contains new features and some bug fixes. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html Source archives are available here: http://samba.org/ftp/ccache/ccache-3.1.tar.bz2

Re: [ccache] PATCH: Print temp file name in debug message

2010-09-17 Thread Joel Rosdahl
On 2010-09-17 21:56, Wilson Snyder wrote: First, congrats on finishing the latest release. It's so wonderful to have great progress. Thanks. Anyhow, here's a trivial patch I'd like considered. I had to resolve a conflict around it in git when I updated so might as well feed it up, as it

Re: [ccache] More win32 patches

2010-09-26 Thread Joel Rosdahl
On 2010-09-22 05:17, Ramiro Polla wrote: I've updated my github fork at: http://github.com/ramiropolla/ccache All applied, except for the strtok_r and AR patches. - There is no strtok_r() on Windows, I've implemented an ugly replacement using strtok(). I switched to use strtok_r because I

Re: [ccache] PATCH: Fix version.c for older gits

2010-09-26 Thread Joel Rosdahl
On 2010-09-24 20:46, Wilson Snyder wrote: git describe --dirty is a very recent addition. I would suggest the following so that the version works properly on older versions. Thanks, applied. -- Joel ___ ccache mailing list ccache@lists.samba.org

Re: [ccache] More win32 patches

2010-09-27 Thread Joel Rosdahl
On 2010-09-27 06:32, Ramiro Polla wrote: At first I tried using a naive wrapper of strtok_r() around strtok() but I've been bitten by the reentrancy issue. It involved that function that hashes multiple commands and find_executable. I'm certain my version works, but I'm certain it's a hack too

Re: [ccache] PATCH: Fix NFS object corruption

2010-10-09 Thread Joel Rosdahl
On 2010-10-08 13:28, Wilson Snyder wrote: The following patch fixes this issue by always calling rename before a unlink - a new x_unlink function. There are some places where temp files are being unlinked; for performance these can remain as the ordinary unlink. Seems good to me. Thanks! --

Re: [ccache] Would backdating source files allow sharing hardlinks between trees?

2010-11-28 Thread Joel Rosdahl
On 2010-11-25 21:56, Justin Lebar wrote: [...] 1) Update the object file's mtime to now. If we do this, then when we rebuild in another tree, the object file will be newer than the things which depend on it (e.g. shared libraries which include the file), so we'll have to relink. 2) Leave

[ccache] ccache version 3.1.4 has been released

2011-01-09 Thread Joel Rosdahl
I'm happy to announce ccache version 3.1.4, which is a bug fix release. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html Source archives are available here: http://samba.org/ftp/ccache/ccache-3.1.4.tar.bz2

Re: [ccache] How to make ccache not interpret 'multiple' compiler options

2011-01-20 Thread Joel Rosdahl
On 2011-01-20 21:01, NITIN KHOSLA, BLOOMBERG/ 731 LEXIN wrote: Facing an issue with solaris compiler options. Our solaris compiler command takes many -xflags. Command: ccache CC -xcode=pic32 -xdebugformat=stabs -c -o file.o file.c [2011-01-20T14:54:50.499872 9962 ] Unsupported language:

Re: [ccache] How to make ccache not interpret 'multiple'

2011-01-23 Thread Joel Rosdahl
On 2011-01-20 23:29, NITIN KHOSLA, BLOOMBERG/ 731 LEXIN wrote: Though it works even when I do 'not' use --ccache-skip flag at all. a) Is that what you expect? Yes. -- Joel ___ ccache mailing list ccache@lists.samba.org

Re: [ccache] ccache and gcc triplet

2011-01-24 Thread Joel Rosdahl
On 2011-01-23 22:43, Gilles Espinasse wrote: [...] I had think to add triplet symlink (i486-linux-gnu-gcc) to ccache. Is there another solution? The other option is to add ccache as a prefix to the compilation row, so that i486-linux-gnu-gcc arg ... becomes ccache

Re: [ccache] ccache and gcc triplet

2011-01-31 Thread Joel Rosdahl
On 2011-01-25 08:32, Gilles Espinasse wrote: Then I had the issue that the 1 G default size is slightly less than what is needed. If you look at the stats after the full distrib build, you may see a 'cache size' a bit below the limit and think the size is enought. But that may be wrong. I

Re: [ccache] Preprocessor stdout regression since v2.4

2011-02-20 Thread Joel Rosdahl
On 2011-02-15 13:51, Mike Crowe wrote: It might not be expected for cpp to be a symlink to ccache but with ccache-v2.4 it did used to work so I found it easier for our build system just to symlink everything in the toolchain directory to ccache. Unfortunately between v2.4 (Debian Lenny

Re: [ccache] ccache shared cache - fails to rename

2011-04-03 Thread Joel Rosdahl
On 2011-04-02 08:37, devsk wrote: I see a lot of [2011-04-01T23:31:16.190840 26563] Failed to rename /var/tmp/ccache/8/7/007a9f0d4b791e3c439260a8b86724-2049.manifest.tmp.localhost.26563 to /var/tmp/ccache/8/7/007a9f0d4b791e3c439260a8b86724-2049.manifest in the log file. The source is

Re: [ccache] PATCH: -F/-iframework GCC options

2011-04-17 Thread Joel Rosdahl
On 2011-04-07 14:16, Grigory Entin wrote: Attached is a simple ccache patch for -F/-iframework GCC options that affect search paths for frameworks (that are directories that are searched for header files). I use it daily for half a year already, for compiling lots of Objective-C code, without

Re: [ccache] Configuration file plan

2011-04-27 Thread Joel Rosdahl
On 2011-04-06 23:25, Owen Mann wrote: Question: for an NFS-mounted cache, wouldn't different users' CCACHE_MAX values conflict? It seems to me it's better as a one-time or per-cache setting. I can definitely see how it would have value in a single-user setup, though. One of my reasons for

Re: [ccache] Configuration file plan

2011-04-27 Thread Joel Rosdahl
On 2011-04-07 02:30, Martin Pool wrote: I would think about not putting ccache.conf inside .ccache, because that directory might often be excluded from backups or in some other way treated as disposable. Aside from that it sounds really good. I'd prefer the configuration to be tied to the

Re: [ccache] Generated dep file newer than object file

2011-05-01 Thread Joel Rosdahl
On 2011-05-01 23:02, Andrew Gallagher wrote: [...] foo.o: foo.c gcc -c -MD ... foo.o: foo.d .d files aren't supposed to be dependencies, so I'd argue that such a Makefile is badly written. However, letting ccache update mtime of the .d file before the .o file couldn't hurt, so that would

Re: [ccache] problems with buildworld gcc45 on ports

2011-06-23 Thread Joel Rosdahl
Hi, On 2011-06-21 20:29, Beeblebrox wrote: [...FreeBSD-specific questions...] You will will probably get better answers to these questions on some FreeBSD list. At least I don't know much about FreeBSD. I have one comment, though: 2. Is is necessary to include cpp in the 1st conditional, or

Re: [ccache] Automatic fallback from preprocessed to direct mode in case of cache miss

2011-06-23 Thread Joel Rosdahl
Hi, On 2011-06-23 17:15, Rémi Delmas wrote: [...] Another solution would be for ccache to automatically fallback to preprocessed mode in case direct mode fails. That's precisely what ccache does already (and direct mode is the default; you don't need to set CCACHE_BASEDIR to activate it). See

Re: [ccache] problems with buildworld gcc45 on ports

2011-06-24 Thread Joel Rosdahl
On 2011-06-24 06:40, Beeblebrox wrote: Thanks for the answer. The main question has been posted on a forum for a while, and judging from the number of views / hits the post has had, this appears to be a broader issue. I have also gone through the ccache manual many times, to the best of my

Re: [ccache] Support for -fprofile-generate, -fprofile-use, -fprofile-arcs

2011-07-22 Thread Joel Rosdahl
On 2011-07-21 20:22, Chris AtLee wrote: I recently did some work to get ccache to support gcc's various -fprofile-* options. In some local testing in works great. Thanks! I've got the code up on github right now: https://github.com/catlee/ccache/compare/jrosdahl:master...catlee:profile

Re: [ccache] Support for -fprofile-generate, -fprofile-use, -fprofile-arcs

2011-07-29 Thread Joel Rosdahl
On 2011-07-25 21:19, Chris AtLee wrote: I've pushed some changes up here that I hope addresses all the comments: https://github.com/catlee/ccache/compare/jrosdahl:master...catlee:profile Looks mostly good! Thanks for working in this. Regarding TODO: Disable base_dir if profile_dir is NULL?:

Re: [ccache] Support for -fprofile-generate, -fprofile-use, -fprofile-arcs

2011-08-15 Thread Joel Rosdahl
On 2011-08-15 15:58, Chris AtLee wrote: Assuming -fprofile-generate/-fprofile-use also work on windows, that code shouldn't be ifdef'ed out. Instead I need an equivalent to x_realpath for windows (or windows support for x_realpath). Right. I'm blissfully ignorant about Windows APIs; does

[ccache] ccache version 3.1.6 has been released

2011-08-21 Thread Joel Rosdahl
I'm happy to announce ccache version 3.1.6, which is a release with bug fixes and other minor improvements. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html Source archives are available here: http://samba.org/ftp/ccache/ccache-3.1.6.tar.bz2

Re: [ccache] basename of source file in hashed name in ccache

2011-11-08 Thread Joel Rosdahl
On 5 November 2011 01:26, Frank Klotz frank.kl...@alcatel-lucent.com wrote: [...] I remember quite clearly (and I just confirmed with a colleague who is still there) that the file names in the cache contained BOTH the hash AND the basename of the object file. As far as I know, the object files

Re: [ccache] Duplicate object files in the ccache - possible optimization?

2011-11-08 Thread Joel Rosdahl
On 7 November 2011 18:49, Frank Klotz frank.kl...@alcatel-lucent.com wrote: [...] That aside, however, with the advent of direct mode, there ARE two hashes possible for any given object file - the direct mode hash (hashing all the sources that go into the compilation) and the preprocessed hash

Re: [ccache] Duplicate object files in the ccache - possible optimization?

2011-11-08 Thread Joel Rosdahl
On 8 November 2011 23:18, Frank Klotz frank.kl...@alcatel-lucent.com wrote: On 11/08/2011 01:49 PM, Joel Rosdahl wrote: It doesn't sound like a good idea to me, at least, since you would need to store duplicate copies of the object file for two compilations where the source content is the same

Re: [ccache] basename of source file in hashed name in ccache

2011-11-09 Thread Joel Rosdahl
On 9 November 2011 18:46, Frank Klotz frank.kl...@alcatel-lucent.com wrote: On 11/08/2011 11:08 PM, Joel Rosdahl wrote: I don't think you can in an acceptable way find an existing file to reuse when you're about to store a new file -- you'll have to list the directory and iterate through its

Re: [ccache] basename of source file in hashed name in ccache

2011-12-20 Thread Joel Rosdahl
On 2011-12-20 20:09, Frank Klotz wrote: Suggestion: Put the below 2-line solution in the Corrupt object files section of http://ccache.samba.org/manual.html [...] It's a LOT lighter-weight solution than clearing the cache, and much easier than messing with the log. Good suggestion. I'll do

[ccache] What to do when there are problems writing to the cache directory?

2012-01-09 Thread Joel Rosdahl
Hi, I would like to get some feedback on what ccache users think ccache's behavior should be when it fails to create files or directories in the cache directory. Here are some different cases to consider: 1. CCACHE_DIR is set to a directory that doesn't exist and can't be created. 2. CCACHE_DIR

Re: [ccache] Minor enhancement request: Handling of CCACHE_PREFIX when it is defined as a null string

2012-02-07 Thread Joel Rosdahl
On 7 February 2012 19:38, Frank Klotz frank.kl...@alcatel-lucent.com wrote:  Could a CCACHE_PREFIX defined as a null string please be treated as if it were undefined, rather than as a fatal error? [...] And you might want to consider refactoring this almost-but-not-quite-identical code into a

[ccache] Configuration file: please test and comment

2012-03-12 Thread Joel Rosdahl
Hi, Many moons ago, I mentioned that I planned to add a ccache configuration file (see http://www.mail-archive.com/ccache@lists.samba.org/msg00656.html). I've now implemented it mostly according to the sketch in the aforementioned mail and merged it to the master branch. If you're interested in

Re: [ccache] Support for -fprofile-generate, -fprofile-use, -fprofile-arcs

2012-04-01 Thread Joel Rosdahl
11 no input file 4 On Sun, Aug 14, 2011 at 1:53 PM, Joel Rosdahl j...@rosdahl.net wrote: On 2011-08-02 03:52, Chris AtLee wrote: My latest code on github should address all the comments so far: https://github.com/catlee/ccache/compare/jrosdahl:master

Re: [ccache] Suggested patch to add local strtok_r for systems lacking it

2012-05-13 Thread Joel Rosdahl
Hi, On 12 April 2012 08:32, Jürgen Buchmüller pullm...@t-online.de wrote: here's a suggested patch for config.h.in and util.c to add a local implementation of strtok_r for systems that don't have it (e.g. mingw32 plus libgw32c). A lot of Windows build related work has already been done in the

Re: [ccache] PATCH: Look at include files' mtimes

2012-05-23 Thread Joel Rosdahl
On 22 May 2012 04:00, Justin Lebar justin.le...@gmail.com wrote: I can't say I'm particularly interested in supporting two manifest versions simultaneously I agree that supporting only the latest should be enough. Coming to think of it, perhaps it would be a good idea to include the manifest

Re: [ccache] Old code ccache hit always come back unless CCACHE_DISABLE is used

2012-06-02 Thread Joel Rosdahl
On 1 June 2012 12:12, g@free.fr wrote: On the no-fPIE case, using CCACHE_CPP2=1 change compilation to work. Any next recompilation even without CCACHE_CPP2=1 result in cache hit. Yes, so this means that the compiler has a bug. You should be able to reproduce it by running these two

Re: [ccache] [PATCH] Support for Clang precompiled headers

2012-07-13 Thread Joel Rosdahl
On 13 July 2012 11:48, Lubos Lunak l.lu...@suse.cz wrote: Right. I guess that was an oversight when I moved the Multiple precompiled headers used error to one place. Fixed version attached. Thanks, applied. -- Joel ___ ccache mailing list

Re: [ccache] ccache problem with CCACHE_BASEDIR

2012-07-27 Thread Joel Rosdahl
function that doesn't expand symlinks and doesn't care whether the path exists or not. I'm not aware of such an existing (and portable) function, though, so we likely will have to write it ourselves. -- Joel On 20 July 2012 19:45, Eric Blau eric.b...@tekelec.com wrote: On 2012-07-20 13:09, Joel

Re: [ccache] ccache problem with CCACHE_BASEDIR

2012-07-28 Thread Joel Rosdahl
On 27 July 2012 14:33, Joel Rosdahl j...@rosdahl.net wrote: [...] So, the code needs to handle x_realpath returning NULL. Eric, I've now applied your patch with some tweaks in 2df269a3121889ebcdfa5d98dfb4d675f690e039 (see http://git.samba.org/?p=ccache.git;a=commit;h

Re: [ccache] [PATCH] CCACHE_BASEDIR and dependency file creation (-MD/-MMD)

2012-07-29 Thread Joel Rosdahl
On 27 July 2012 17:27, Lalit Chhabra lchha...@linuxmail.org wrote: Here is an updated patch that also fixes -MT/-MQ options on the command line. It also keeps the arg formatting the same, so that make test passes. Applied, thanks! -- Joel ___

Re: [ccache] [PATCH] Hash also Clang plugins

2012-07-30 Thread Joel Rosdahl
On 30 July 2012 19:03, Lubos Lunak l.lu...@suse.cz wrote: please review and push the attached patch, which adds Clang plugins to the hash, similarly as is already done with GCC plugins. Thanks, applied. -- Joel ___ ccache mailing list

Re: [ccache] [PATCH] make git revision detection code work if building outside of src dir

2012-08-07 Thread Joel Rosdahl
On 2 August 2012 16:51, Patrick von Reth patrick.vonr...@gmail.com wrote: This fixes git description if building outside of src. Applied, thanks! -- Joel ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache

Re: [ccache] tmpfs + aufs use with ccache

2012-08-07 Thread Joel Rosdahl
On 3 August 2012 23:39, Craig A. Cox craig...@yahoo.com wrote: I am using version 2.4 of ccache Time to upgrade? [...] I have setup an aufs filesystem for ccache. That way a reboot will have a completely fresh initialized ccache setup. What do you mean with a completely fresh initialized

Re: [ccache] permit ccache to build with clang

2012-09-22 Thread Joel Rosdahl
On 18 September 2012 18:21, Eitan Adler li...@eitanadler.com wrote: I needed the following patch for ccache to build with clang. [...] -all_cppflags = @DEFS@ @extra_cppflags@ -DSYSCONFDIR=$(sysconfdir) -I. -I$(srcdir) $(CPPFLAGS) (Your patch doesn't apply since it's garbled. The above two

Re: [ccache] permit ccache to build with clang

2012-09-23 Thread Joel Rosdahl
On 23 September 2012 14:40, Eitan Adler li...@eitanadler.com wrote: After some more experimentation this seems to only happen under ccache OK. Then this is another instance of https://bugzilla.samba.org/show_bug.cgi?id=8118 (which I should have realized, sorry about that), which has been

Re: [ccache] Why not cache compile failures?

2012-11-04 Thread Joel Rosdahl
On 24 September 2012 10:44, Andrew Stubbs a...@codesourcery.com wrote: On 22/09/12 13:13, Joel Rosdahl wrote: I would be OK with caching failures if it's off by default and doesn't affect the default's performance. Have you thought about how to store the exit code in the cache? The simplest

[ccache] direct mode design bug

2012-11-04 Thread Joel Rosdahl
Hi, The direct mode, which was introduced in version 3.0 almost three years ago, has a design bug. The essence of the problem is that in the direct mode, ccache records header files that were used by the compiler, but it doesn't record header files that were not used but could have been used if

Re: [ccache] direct mode design bug

2012-11-07 Thread Joel Rosdahl
Many thanks for the answer! On 5 November 2012 14:53, Andrew Stubbs a...@codesourcery.com wrote: My first reaction to this issue, rightly or wrongly, is that it's more of a documentation issue than a real bug. I mean, it can only occur if two people share a cache, or if the user installs new

Re: [ccache] direct mode design bug

2012-11-07 Thread Joel Rosdahl
On 5 November 2012 16:31, Andrew Stubbs a...@codesourcery.com wrote: Incidentally, you appear to have committed a patch updating the documentation stating that direct mode is off by default, but in the code direct_mode is still true, by default. Yes, I started sketching on disabling it by

Re: [ccache] Fwd: [PATCH] Detect __DATE__ and __TIME__ correctly.

2012-11-07 Thread Joel Rosdahl
On 5 November 2012 13:38, Andrew Stubbs andrew_stu...@mentor.com wrote: That one look right to me. Applied, thanks. I also wrote a bunch of unit tests for check_for_temporal_macros. -- Joel ___ ccache mailing list ccache@lists.samba.org

Re: [ccache] [PATCH] Use bash for test.sh.

2012-11-07 Thread Joel Rosdahl
On 5 November 2012 18:55, Andrew Stubbs a...@codesourcery.com wrote: The test script fails with shells other than bash. At least dash doesn't work. test.sh is intended to work even on Solaris's /bin/sh, which is even more restricted than dash. Current test.sh on master and maint works well

Re: [ccache] ccache: FATAL: Could not create xxx.o.tmp.stdout.yyy.zzz (permission denied?)

2012-11-11 Thread Joel Rosdahl
Hi Lalit, On 2 November 2012 00:40, Lalit Chhabra lchha...@linuxmail.org wrote: My initial guess was that there is some race condition between one users' ccache process doing a clean-up, while another users' compile is going on. But looking at the code, temp files have to be at least one hour

Re: [ccache] Single 'source' collection, multiple targets

2012-11-11 Thread Joel Rosdahl
On 9 November 2012 15:48, Mathias De Maré mathias.de_m...@alcatel-lucent.com wrote: [...] Is there any other way to achieve the desired effect? As you already mentioned, building identical objects only once or changing working directory to the target directory would solve the problem. I have no

Re: [ccache] ccache cache dir

2012-11-11 Thread Joel Rosdahl
Hi Matthew, On 11 November 2012 01:35, Matthew Millar mattmil...@googlemail.com wrote: I've noticed that ccache stores it's cached data within /var/tmp, and I'm wondering whether the developer has chosen not to store the data within /var/cache as the File System Hierarchy standard states?

Re: [ccache] [PATCH] Speed up copy4, copy64 on little-endian systems.

2013-01-01 Thread Joel Rosdahl
On 21 November 2012 18:46, Andrew Stubbs a...@codesourcery.com wrote: The copy64 function implements an endian-safe copy routine for an array of 16 32-bit integers, but this is sub-optimal on machines where the byte-order is already correct. Likewise for copy4. This patch replaces the

Re: [ccache] basedir testsuite fails as non-root

2013-01-01 Thread Joel Rosdahl
On 29 November 2012 00:56, Matt m...@use.net wrote: I'm getting this on RHEL 6.1 when trying to build from source RPM, or with a fresh checkout. Thanks in advance for any suggestions/fixes :) mhargett@pyrite:~/rpmbuild/BUILD/ccache-3.1.8$ CC='gcc' ./test.sh starting testsuite base starting

Re: [ccache] Bug? ccache: error: Could not stat cache file (permission denied when creating?): No such file or directory

2013-01-06 Thread Joel Rosdahl
On 7 December 2012 03:51, Michael Ellerman mich...@ellerman.id.au wrote: [...] The error we see is like: ccache: error: Could not stat /scratch/kisskb/ccache/0/d/01dfc7d17f46f8d9b361ba9323e8c9-1921690.o.tmp.stdout.Sprygo.8282 (permission denied when creating?): No such file

[ccache] ccache version 3.1.9 has been released

2013-01-06 Thread Joel Rosdahl
I'm happy to announce ccache version 3.1.9, which is a bug fix release. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html Source archives are available here: http://samba.org/ftp/ccache/ccache-3.1.9.tar.bz2

Re: [ccache] fcntl - windows build broken

2013-01-08 Thread Joel Rosdahl
Hi, On 8 January 2013 10:16, Patrick von Reth patrick.vonr...@gmail.com wrote: http://gitweb.samba.org/?p=ccache.git;a=commitdiff ;h=6b6a109779033ffbb8ddab7cca6574f24c2e4bfb broke the windows build because the FD_ flags are not available on windows, see

Re: [ccache] Support for Clang plugins (still) not working in 3.1.9

2013-01-08 Thread Joel Rosdahl
Hi, On 8 January 2013 10:28, Lubos Lunak l.lu...@suse.cz wrote: it looks like my patch 06be1c4cc33bf2def9c6e64483b397128f57dbe3 got included incorrectly into the maint branch. Well, it was included in 3.1.8 as intended. I don't know how exactly the maint branch works, I expect my patch

Re: [ccache] PATCH: Look at include files' mtimes

2013-03-03 Thread Joel Rosdahl
Hi Justin, I've resurrected these patches to look at files' mtimes and ctimes. [...] I just found out that I forgot to have a look at your patches. Sorry about the delay. I seem fine, so I've applied them. I did need to fix the unit tests since they failed, though. Please have a look and see

Re: [ccache] Bug compiling package freetype

2013-03-21 Thread Joel Rosdahl
Hi Giacomo, On 18 March 2013 15:30, Giacomo Comes co...@naic.edu wrote: I have found a bug in ccache as it fails to compile the package freetype. [...] make CC=ccache gcc It looks like a bug in freetype's build system, not in ccache - you will get the same error if you run this: make

Re: [ccache] Backing up ccache

2013-04-10 Thread Joel Rosdahl
Hi Radovan, I was woundering if it is possible to backup the .ccache and use it on another device. Sure, that's possible. However, to get cache hits you need to (by default) use exactly the same compiler (same modification timestamp, same size) in both contexts. I have just tried this but I

  1   2   3   >