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] base_dir and symbolic links

2018-01-04 Thread Joel Rosdahl via ccache
On 2 January 2018 at 13:49, Andreas Wettstein via ccache < ccache@lists.samba.org> wrote: > Hello Joel, > > > https://www.mail-archive.com/ccache@lists.samba.org/msg00802.html > > Thank you. It is trickier than I thought. > > > ccache has a test suite and it fails like this with your patch: > >

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 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