Re: [ccache] ccache - .d files with absolute system header paths

2017-09-04 Thread Joel Rosdahl via ccache
Hi Karanam, > From just ccache's point of view, is there a way to force relative paths into the > .d files at all? Yes, ccache version 3.3 and newer knows how to do this. See the release notes for ccache 3.3: http://ccache.samba.org/releasenotes.html#_ccache_3_3 -- Joel

Re: [ccache] base_dir and symbolic links

2017-12-30 Thread Joel Rosdahl via ccache
Hi Andreas, > [...] I understand that it makes > sense to make the current working directory canonic, but I do not > see why this done for the path given to `make_relative_path`. Is > it really necessary? Some background can be found in this mail thread:

Re: [ccache] use_relative_paths_in_depfile not called in preprocessor mode

2017-12-30 Thread Joel Rosdahl via ccache
Hi Venkat, > cache hit(preprocessed) puts the .d file from the workspace as-is into the > cache, thus, if such a compilation resulted in absolute paths in the .d > file(in workspace), then, the cache will also contain .d files with > absolute paths, resulting in troubles later on(from another

Re: [ccache] why is limit_multiple ignored?

2018-01-04 Thread Joel Rosdahl via ccache
Hi Scott, On 19 December 2017 at 02:16, Scott Bennett via ccache < ccache@lists.samba.org> wrote: > I set "limit_multiple = 0.95" in ccache.conf and "max_size = 30.0G" > in ccache.conf, but cleanups are triggered when space usage reaches 24 GB, > which is the default of 0.8. Why is this

Re: [ccache] Insufficient environment sanitization in test.sh

2018-01-06 Thread Joel Rosdahl via ccache
On 23 December 2017 at 14:49, Radu Rendec via ccache wrote: > I ran across a weird issue where test.sh fails in the CCACHE_NOHASHDIR > test because the CCACHE_HASHDIR variable happens to be set in my > environment. [...] My idea is to iterate through the output of

Re: [ccache] why is limit_multiple ignored?

2018-01-16 Thread Joel Rosdahl via ccache
On 7 January 2018 at 14:02, Scott Bennett wrote: > The design problem is that there is no centralized index maintained of > cache entries' paths, their sizes, and their timestamps, necessitating > the plumbing of the directory trees. [...] Thanks for sharing your ideas! I fully agree that the

Re: [ccache] Possible to merge ccache dirs?

2018-01-15 Thread Joel Rosdahl via ccache
On 14 January 2018 at 12:01, Michael Bazzinotti via ccache wrote: > My ccache was separate for both my root user and main user account. Now, I > have a shared ccache pointing to the main user's cache. > How can I merge the root and user ccache directories? Try something

[ccache] ccache version 3.3.5 has been released

2018-01-13 Thread Joel Rosdahl via ccache
ccache version 3.3.5 is now available. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html#_ccache_3_3_5 Source archives are available here: https://www.samba.org/ftp/ccache/ccache-3.3.5.tar.bz2 https://www.samba.org/ftp/ccache/ccache-3.3.5.tar.gz

Re: [ccache] why is limit_multiple ignored?

2018-01-29 Thread Joel Rosdahl via ccache
On 29 January 2018 at 07:14, Scott Bennett wrote: > Countless data base software implementations handle these situations > acceptably well. Sigh. I see. You're talking about a completely different model than what ccache currently uses, which was not clear to me when I read

[ccache] ccache version 3.3.6 has been released

2018-01-28 Thread Joel Rosdahl via ccache
ccache version 3.3.6 is now available. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html#_ccache_3_3_6 Source archives are available here: https://www.samba.org/ftp/ccache/ccache-3.3.6.tar.bz2 https://www.samba.org/ftp/ccache/ccache-3.3.6.tar.gz

[ccache] ccache version 3.4 has been released

2018-02-11 Thread Joel Rosdahl via ccache
ccache version 3.4 is now available. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html#_ccache_3_4 Source archives are available here: https://www.samba.org/ftp/ccache/ccache-3.4.tar.bz2 https://www.samba.org/ftp/ccache/ccache-3.4.tar.gz

[ccache] ccache version 3.4.1 has been released

2018-02-11 Thread Joel Rosdahl via ccache
ccache version 3.4.1 is now available. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html#_ccache_3_4_1 Source archives are available here: https://www.samba.org/ftp/ccache/ccache-3.4.1.tar.bz2 https://www.samba.org/ftp/ccache/ccache-3.4.1.tar.gz

[ccache] ccache version 3.4.3 has been released

2018-09-02 Thread Joel Rosdahl via ccache
ccache version 3.4.3 is now available. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html#_ccache_3_4_3 Source archives are available here: https://www.samba.org/ftp/ccache/ccache-3.4.3.tar.bz2 https://www.samba.org/ftp/ccache/ccache-3.4.3.tar.gz

[ccache] ccache version 3.4.2 has been released

2018-03-25 Thread Joel Rosdahl via ccache
ccache version 3.4.2 is now available. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html#_ccache_3_4_2 Source archives are available here: https://www.samba.org/ftp/ccache/ccache-3.4.2.tar.bz2 https://www.samba.org/ftp/ccache/ccache-3.4.2.tar.gz

Re: [ccache] ccache test failures

2018-03-19 Thread Joel Rosdahl via ccache
On 16 March 2018 at 12:52, Forte, Greg via ccache wrote: > Tried this with and without CCACHE_DIR set and exported - with it, I see the > same output you showed, including the unset, and the test still fails: [...] OK. What's common between the two tests that fail for

[ccache] ccache version 3.5 has been released

2018-10-15 Thread Joel Rosdahl via ccache
ccache version 3.5 is now available. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html#_ccache_3_5 Source archives are available here: https://www.samba.org/ftp/ccache/ccache-3.5.tar.bz2 https://www.samba.org/ftp/ccache/ccache-3.5.tar.gz

[ccache] ccache version 3.5.1 has been released

2019-01-02 Thread Joel Rosdahl via ccache
ccache version 3.5.1 is now available. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html#_ccache_3_5_1 Source archives are available here: https://www.samba.org/ftp/ccache/ccache-3.5.1.tar.bz2 https://www.samba.org/ftp/ccache/ccache-3.5.1.tar.gz

[ccache] ccache version 3.6 has been released

2019-01-14 Thread Joel Rosdahl via ccache
ccache version 3.6 is now available. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html#_ccache_3_6 Source archives are available here: https://www.samba.org/ftp/ccache/ccache-3.6.tar.bz2 https://www.samba.org/ftp/ccache/ccache-3.6.tar.gz

Re: [ccache] [PATCH 2/2] Fix Segmentation fault error when gcc -o /dev/null

2019-01-23 Thread Joel Rosdahl via ccache
On Tue, 22 Jan 2019 at 10:36, Robert Yang via ccache wrote: > Fixed: > $ export CCACHE_DEBUG=1 > $ ccache gcc -c hello.c -o /dev/null > > Segmentation fault (core dumped) > > This is because failed to open /dev/null.foo (Permission denied), check file > stream before write to it can fix the

Re: [ccache] [PATCH 1/2] dev.mk.in: fix file name too long error

2019-01-23 Thread Joel Rosdahl via ccache
On Tue, 22 Jan 2019 at 10:36, Robert Yang via ccache wrote: > The all_cppflags changes path to filename which causes file name too long > error when the path is longer than NAME_MAX (usually 255). Strip srcdir > to fix the problem. Thanks, applied on master. -- Joel

Re: [ccache] Support for guile scheme?

2018-12-21 Thread Joel Rosdahl via ccache
Hi, On Sat, 22 Dec 2018 at 04:25, swedebugia--- via ccache wrote: > The site-ccache of guile does not support partials of files and every > update to our scheme-files. What is "site-ccache"? After reading https://www.gnu.org/software/guile/manual/html_node/Build-Config.html, it does not sound

Re: [ccache] Header-file paths in external build directories

2018-11-19 Thread Joel Rosdahl via ccache
On Fri, 16 Nov 2018 at 19:46, Nico Huber via ccache wrote: > [...] > If I'm looking at the right spot in the code, I can see that 1. happens > on purpose (in process_preprocessed_file(), ccache.c:945). Though, I > wonder why? The history of that code is that

Re: [ccache] Help with adding support to custom language

2019-01-03 Thread Joel Rosdahl via ccache
On Thu, 3 Jan 2019 at 23:02, Andre Calfa wrote: > One of the motivations is that our current compiler cache is only supported > locally for each build server. In some cases the compilation of a single > input file takes a long time due to its size, and we cannot avoid its > compilation when the

[ccache] New source archives for ccache 3.5.1 are now available

2019-01-03 Thread Joel Rosdahl via ccache
The ccache 3.5.1 release archives announced yesterday unfortunately included an incorrectly generated configure script, so they have been pulled. Fixed source archives are available here: https://www.samba.org/ftp/ccache/ccache-3.5.1a.tar.bz2

Re: [ccache] Help with adding support to custom language

2019-01-03 Thread Joel Rosdahl via ccache
Hi Andre, On Thu, 3 Jan 2019 at 20:39, Andre Calfa via ccache wrote: > We currently have our own compiler cache for the compiler we developed, but > we would like to switch to ccache if possible. Our compiler takes as input > a custom language and generates both a .cpp file and a .h file. I

Re: [ccache] icecc with cache: cache -s always 0.00 % ?

2019-02-20 Thread Joel Rosdahl via ccache
On Wed, 20 Feb 2019 at 12:46, Haio Maio via ccache wrote: > Any suggestion of how to use successfully icecc with ccache? The following > doesnt work ... > > export CCACHE_PREFIX=icecc > > compile > > ccache -s > [...] It looks like ccache is never called in the compile step, so you need to make

Re: [ccache] icecc with cache: cache -s always 0.00 % ?

2019-02-22 Thread Joel Rosdahl via ccache
On Fri, 22 Feb 2019 at 19:42, Haio Maio via ccache wrote: > Im afraid, I didnt understand your question? > > Im trying to use icecc/icecream as a wrapper for the compiler. Could you be > more specific of what did you mean? Before trying to set up icecc as a wrapper together with ccache, you

Re: [ccache] icecc with cache: cache -s always 0.00 % ?

2019-03-07 Thread Joel Rosdahl via ccache
On Tue, 5 Mar 2019 at 08:08, Haio Maio via ccache wrote: > On February 22, 2019 at 8:42 PM Joel Rosdahl wrote: > > > Before trying to set up icecc as a wrapper together with ccache, you need > > to make sure that ccache is used by the command(s) that you abbreviated as > > "compile". > > > >

Re: [ccache] BUG: ccache -o = -- illegal values not rejected

2019-06-18 Thread Joel Rosdahl via ccache
Hi Henri, Verifying the value sounds like a good improvement. The fix you suggested doesn't quite work since there is no conf variable available, so I guess you have made other changes as well. Also, there is an optional "verifier" for some configuration items that should be run as well. I made

Re: [ccache] ccache on generated C++ files...

2019-06-25 Thread Joel Rosdahl via ccache
On Tue, 25 Jun 2019 at 00:28, Malfettone, Kris via ccache wrote: > So what I seem to be observing is only when I do a ninja -t clean or make > clean. This removes all of my generated files (.h and .cpp files) and of > course the normal build outputs. A subsequent run is then mostly cache >

Re: [ccache] ccache on generated C++ files...

2019-06-23 Thread Joel Rosdahl via ccache
Hi Kris, On Fri, 21 Jun 2019 at 02:43, Malfettone, Kris wrote: > My project uses a large number of generated C++ files (.h/.cpp files). On a > clean build these files are cleaned up as well. As a result during the next > build since they are generated again they will all have a newer mtime and >

[ccache] ccache version 3.7.1 has been released

2019-05-01 Thread Joel Rosdahl via ccache
ccache version 3.7.1 is now available. Source archives: https://github.com/ccache/ccache/releases/download/v3.7.1/ccache-3.7.1.tar.bz2 https://github.com/ccache/ccache/releases/download/v3.7.1/ccache-3.7.1.tar.gz

Re: [ccache] Intent to package: Snaps are universal Linux packages

2019-05-07 Thread Joel Rosdahl via ccache
On Wed, 10 Apr 2019 at 17:46, 林博仁 via ccache wrote: > I've [...] built a working snap [of ccache] Cool, thanks for the notice. > I'm also looking forward to working with you to make the packaging > work upstream (if you're interested). I'm happy if you would like to continue maintaining the

Re: [ccache] Compression

2019-05-07 Thread Joel Rosdahl via ccache
Hi Francios, On Tue, 7 May 2019 at 12:17, Francois E via ccache wrote: > We use a shared ccache server hosted on a remote server, some of us > experience slow connection to that server. I was wondering if > compression would help in this case, i.e does the (un)compression occur > at the server

[ccache] ccache version 3.7 has been released (correction of changelog)

2019-04-23 Thread Joel Rosdahl via ccache
[The previous mail contained changelog entries for ccache 3.6. Sorry about that, I've rewritten my scripts for doing releases and this one slipped through.] ccache version 3.7 is now available. Source archives: https://github.com/ccache/ccache/releases/download/v3.7/ccache-3.7.tar.bz2

[ccache] ccache version 3.7 has been released

2019-04-23 Thread Joel Rosdahl via ccache
ccache version 3.7 is now available. Details may be read in the release notes: http://ccache.dev/releasenotes.html#_ccache_3_7 Source archives are available here: https://github.com/ccache/ccache/releases/download/v3.7/ccache-3.7.tar.bz2

[ccache] ccache version 3.7.3 has been released

2019-08-17 Thread Joel Rosdahl via ccache
ccache version 3.7.3 is now available. Source archives: https://github.com/ccache/ccache/releases/download/v3.7.3/ccache-3.7.3.tar.gz https://github.com/ccache/ccache/releases/download/v3.7.3/ccache-3.7.3.tar.xz The source archives have been signed with my OpenPGP key (ID 5594ADB8,

[ccache] ccache version 3.7.4 has been released

2019-09-12 Thread Joel Rosdahl via ccache
ccache version 3.7.4 is now available. Source archives: https://github.com/ccache/ccache/releases/download/v3.7.4/ccache-3.7.4.tar.gz https://github.com/ccache/ccache/releases/download/v3.7.4/ccache-3.7.4.tar.xz The source archives have been signed with my OpenPGP key (ID 5594ADB8,

[ccache] ccache version 3.7.2 has been released

2019-07-19 Thread Joel Rosdahl via ccache
ccache version 3.7.2 is now available. Source archives: https://github.com/ccache/ccache/releases/download/v3.7.2/ccache-3.7.2.tar.gz https://github.com/ccache/ccache/releases/download/v3.7.2/ccache-3.7.2.tar.xz The source archives have been signed with my OpenPGP key (ID 5594ADB8,

[ccache] ccache version 3.7.6 has been released

2019-11-17 Thread Joel Rosdahl via ccache
Source archives: https://github.com/ccache/ccache/releases/download/v3.7.6/ccache-3.7.6.tar.gz https://github.com/ccache/ccache/releases/download/v3.7.6/ccache-3.7.6.tar.xz The source archives have been signed with my OpenPGP key (ID 5594ADB8, fingerprint 5A93 9A71 A467 92CF 5786 6A51

[ccache] ccache version 3.7.5 has been released

2019-10-22 Thread Joel Rosdahl via ccache
ccache version 3.7.5 is now available. Source archives: https://github.com/ccache/ccache/releases/download/v3.7.5/ccache-3.7.5.tar.gz https://github.com/ccache/ccache/releases/download/v3.7.5/ccache-3.7.5.tar.xz The source archives have been signed with my OpenPGP key (ID 5594ADB8,

[ccache] ccache version 3.7.7 has been released

2020-01-05 Thread Joel Rosdahl via ccache
ccache version 3.7.7 is now available. Source archives: https://github.com/ccache/ccache/releases/download/v3.7.7/ccache-3.7.7.tar.gz https://github.com/ccache/ccache/releases/download/v3.7.7/ccache-3.7.7.tar.xz The source archives have been signed with my OpenPGP key (ID 5594ADB8,

[ccache] ccache version 3.7.9 has been released

2020-03-29 Thread Joel Rosdahl via ccache
ccache version 3.7.9 is now available. Release archives can be found here: https://ccache.dev/download.html Bug fixes: - Fixed replacing of /dev/null when building as root with hard link mode enabled and using “-o /dev/null”. - Removed incorrect assertion resulting in “ccache:

[ccache] ccache version 3.7.8 has been released

2020-03-16 Thread Joel Rosdahl via ccache
ccache version 3.7.8 is now available. Release archives are available here: https://ccache.dev/download.html Note: There are now 32 and 64 bit Windows binary releases available as well. Bug fixes: - Use “$PWD” instead of the real CWD (current working directory) when checking for CWD

Re: [ccache] Using a shared ccache in cmake environment (linux)

2020-03-21 Thread Joel Rosdahl via ccache
On Tue, 17 Mar 2020 at 10:06, Steffen Dettmer via ccache wrote: > As workaround for a special unrelated issue currently we redefine > __FILE__ (and try to remove that redefinition). I understand that > ccache still works thanks to CCACHE_BASEDIR even for __FILE__ usage > inside files. Is that

Re: [ccache] Using a shared ccache in cmake environment (linux)

2020-03-24 Thread Joel Rosdahl via ccache
On Mon, 23 Mar 2020 at 17:11, Steffen Dettmer via ccache wrote: > Just BTW, isn't it common to build in some $builddir different from top > $srcdir (e.g. automake, cmake) and in that case couldn't the common case need > two base directories? Note that base_dir doesn't have to be the top source

[ccache] Ccache version 4.0 has been released

2020-10-18 Thread Joel Rosdahl via ccache
Ccache version 4.0 is now available. Release archives can be found here: https://ccache.dev/download.html Summary of major changes: - Changed the default cache directory location to follow the XDG base directory specification. - Changed compression algorithm from Deflate (zlib) to

Re: [ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-08-18 Thread Joel Rosdahl via ccache
On Mon, 17 Aug 2020 at 15:34, Christian Ledergerber wrote: > [...] The point is: I think this is not a coner-case, but people use this > configuration abundantly. I just wanted to stress the point that tools need to handle all configurations correctly, regardless of whether they are popular or

Re: [ccache] Increase in cache size on every run

2020-08-28 Thread Joel Rosdahl via ccache
Hi Vijay, On Fri, 28 Aug 2020 at 13:17, Vijay Tandeker wrote: > Every night I do the compilation. I don't know but whenever I do the > compilation, cache size increases by few GBs (sometimes by few MBs). That sounds perfectly normal for a build that generates parts of its source code with

Re: [ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-08-14 Thread Joel Rosdahl via ccache
On Fri, 14 Aug 2020 at 08:39, Christian Ledergerber wrote: > > I have created the following issue for cmake to launch the discussion: > https://gitlab.kitware.com/cmake/cmake/-/issues/21092 When you described your idea I didn't think you meant making changes for incorporation in the upstream

[ccache] ccache version 3.7.12 has been released

2020-10-01 Thread Joel Rosdahl via ccache
ccache version 3.7.12 is now available. Release archives can be found here: https://ccache.dev/download.html Bug fixes: - Coverage files (“.gcno”) produced by GCC 9+ when using “-fprofile-dir=dir” are now handled gracefully by falling back to running the compiler. - Fixed writing

[ccache] ccache version 3.7.11 has been released

2020-07-21 Thread Joel Rosdahl via ccache
ccache version 3.7.11 is now available. Release archives can be found here: https://ccache.dev/download.html Bug fixes: - Added knowledge about “-fprofile-{correction,reorder-functions,values}”. - ccache now handles the Intel compiler option “-xCODE” (where “CODE” is a processor

Re: [ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-08-04 Thread Joel Rosdahl via ccache
On Sun, 2 Aug 2020 at 19:49, Christian Ledergerber via ccache wrote: > In the mean-time I have been thinking some more and what I am afraid of > is that the result will not be correct if the flags to clang-tidy change. > > A typical command run by make looks like this: > > cd

Re: [ccache] Speeding up builds with clang-tidy, clang-analyzer and iwyu

2020-08-02 Thread Joel Rosdahl via ccache
On Sun, 2 Aug 2020 at 18:55, Christian Ledergerber via ccache wrote: > [...] > To me it seems like the following should work: > > 1. try to use ccache > > 2. if no hit: > > - run clang-tidy > > - run clang > > For this I would need to know whether ccache generated a hit - lets say > as return

[ccache] ccache version 3.7.10 has been released

2020-06-22 Thread Joel Rosdahl via ccache
ccache version 3.7.10 is now available. Release archives can be found here: https://ccache.dev/download.html Bug fixes: - Improved handling of profiling options. ccache should now work correctly for profiling options like “-fprofile-{generate,use}[=path]” for GCC ≥ 9 and Clang as

Re: [ccache] Migrating to ccache 4: a "drop-in replacement"?

2020-12-05 Thread Joel Rosdahl via ccache
On Thu, 3 Dec 2020 at 11:28, Steffen Dettmer wrote: > Is upgrading to ccache 4 a "drop-in replacement" even if sharing the cache > directory with still running ccache 3 versions? > [...] > Does it really make new versions a "plug-in replacement"? > [...] > So in short: I would not need to change

Re: [ccache] Migrating to ccache 4: a "drop-in replacement"?

2020-12-08 Thread Joel Rosdahl via ccache
On Mon, 7 Dec 2020 at 22:55, Steffen Dettmer via ccache wrote: > I just tested with ccache 3.7.12 and "ccache -s" that it seems to work as I > expect Cool, my memory was wrong about this! Or alternatively, it might be that the final implementation of the config file handling did not become what

[ccache] Ccache version 4.1 has been released

2020-11-22 Thread Joel Rosdahl via ccache
Ccache version 4.1 is now available. Release archives can be found here: https://ccache.dev/download.html New features: - Symlinks are now followed when guessing the compiler. This makes ccache able to guess compiler type “GCC” for a common symlink chain like this: “/usr/bin/cc” →

[ccache] Ccache version 4.2 has been released

2021-02-01 Thread Joel Rosdahl via ccache
Ccache version 4.2 is now available. Release archives can be found here: https://ccache.dev/download.html New features: - Improved calculation of relative paths when using “base_dir” to also consider canonical paths (i.e. paths with dereferenced symlinks) as candidates. - Added

[ccache] Ccache version 4.3 has been released

2021-05-09 Thread Joel Rosdahl via ccache
Ccache version 4.3 is now available. Release archives can be found here: https://ccache.dev/download.html New features: - Ccache now ignores the Clang compiler option “-ivfsoverlay” and its argument if you opt in to “ivfsoverlay sloppiness”. This is useful if you use Xcode, which

Re: [ccache] Long pauses due to automatic cache clean-up

2021-04-27 Thread Joel Rosdahl via ccache
On Sun, 18 Apr 2021 at 10:04, R. Diez via ccache wrote: > First of all, I have been using ccache for years. Many thanks for this great > tool. You're welcome. > I have come to the conclusion that these particular pauses are due to ccache > automatically pruning its cache. I haven't really

[ccache] Ccache version 4.2.1 has been released

2021-03-27 Thread Joel Rosdahl via ccache
Ccache version 4.2.1 is now available. Release archives can be found here: https://ccache.dev/download.html Bug fixes: - Ccache now only “dup2”s stderr into “$UNCACHED_ERR_FD” for calls to the preprocessor/compiler. This works around a complex bug in interaction with GNU Make, LTO

Re: [ccache] gmake and ccache conspiring together in creating gremlins

2021-02-07 Thread Joel Rosdahl via ccache
On Sun, 7 Feb 2021 at 12:26, Sam Varshavchik via ccache wrote: > I've been chasing down non-deterministic, random build fails. Thanks for the thorough investigation! > So, now what? Both ccache, and the linker are contributing to this situation. > ccache leaks the file descriptor (to distcc