[ccache] Ccache version 4.3 has been released

2021-05-09 Thread Joel Rosdahl via ccache
ITHDEBINFO}” or “${CMAKE_CXX_FLAGS_RELWITHDEBINFO}” expands to the empty string. Contributors (in alphabetical order) to this release: - Bin Li - Joel Rosdahl - Josh Triplett - Nicholas Hutchinson - Olle Liljenzin - Peter Steinberger - Petr Štetiar - Yoshimasa Niwa Thanks

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
h” configuration option. Contributors (in alphabetical order) to this release: - Abubakar Nur Khalil - Aleksander Salwa - Evangelos Foutras - Joel Rosdahl - Jon Petrissans - Nicholas Hutchinson - Pawel Krysiak - Sergei Trofimovich - Thomas

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

[ccache] Ccache version 4.2 has been released

2021-02-01 Thread Joel Rosdahl via ccache
documentation of configuration option “cache_dir”. - Added hint on how to link statically with libzstd. - Mention that ccache requires the “-c” compiler option. Contributors (in alphabetical order) to this release: - Alexander Lanin - Azat Khuzhin - Erik Flodin - Joel Rosdahl - Ka Ho Ng

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

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

[ccache] Ccache version 4.1 has been released

2020-11-22 Thread Joel Rosdahl via ccache
nin - Erik Flodin - Joel Rosdahl - Orgad Shaneh - Yoshimasa Niwa Thanks! -- Joel ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache

[ccache] Ccache version 4.0 has been released

2020-10-18 Thread Joel Rosdahl via ccache
- Joel Rosdahl - Loïc Yhuel - Luboš Luňák - Matt Whitlock - Mizuha Himuraki - Olle Liljenzin - Paul Bunch - Paul Fultz II - Pavol Sakac - Philipp Storz - Rafael Kitover - Ryan Egesdahl - Steffen Dettmer - Sumit Jamgade - Thomas Otto Thanks! -- Joel

[ccache] ccache version 3.7.12 has been released

2020-10-01 Thread Joel Rosdahl via ccache
: - Deepak Yadav - Joel Rosdahl Thanks! -- Joel ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache

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

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

[ccache] ccache version 3.7.10 has been released

2020-06-22 Thread Joel Rosdahl via ccache
SIGTERM and SIGINT instead of some time later in a cleanup phase. - Fixed a bug that affected ccache's “-o/--set-config” option for the “base_dir” and “cache_dir_levels” keys. Contributors (in alphabetical order) to this release: - Alexander Lanin - Joel Rosdahl - Olle Liljenzin

[ccache] ccache version 3.7.9 has been released

2020-03-29 Thread Joel Rosdahl via ccache
: - Alexander Korsunsky - Joel Rosdahl Thanks! -- Joel ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache

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

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

[ccache] ccache version 3.7.8 has been released

2020-03-16 Thread Joel Rosdahl via ccache
in the dependency file. - Clarified “include_file_ctime sloppiness” in the Performance section in the manual. Contributors (in alphabetical order) to this release: - Cristian Adam - Joel Rosdahl - Steffen Dettmer Thanks! -- Joel ___ ccache

[ccache] ccache version 3.7.7 has been released

2020-01-05 Thread Joel Rosdahl via ccache
will now be updated for read-only cache misses, making it consistent with the cache hit case. Contributors (in alphabetical order) to this release: - Joel Rosdahl - Mizuha Himuraki Thanks! -- Joel ___ ccache mailing list ccache@lists.samba.org

[ccache] ccache version 3.7.6 has been released

2019-11-17 Thread Joel Rosdahl via ccache
handle color diagnostics in the depend mode as well. Contributors (in alphabetical order) to this release: - Joel Rosdahl - Luboš Luňák - Russell King - Thomas Otto Thanks! -- Joel ___ ccache mailing list ccache@lists.samba.org https

[ccache] ccache version 3.7.5 has been released

2019-10-22 Thread Joel Rosdahl via ccache
itself. - Fixed warning during configure in out-of-tree build in developer mode. Contributors (in alphabetical order) to this release: - Erik Johansson - Joel Rosdahl Thanks! -- Joel ___ ccache mailing list ccache@lists.samba.org https

[ccache] ccache version 3.7.4 has been released

2019-09-12 Thread Joel Rosdahl via ccache
like “/c/users/...” into relative paths on Windows. Contributors (in alphabetical order) to this release: - Cristian Adam - Joel Rosdahl Thanks! -- Joel ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo

[ccache] ccache version 3.7.3 has been released

2019-08-17 Thread Joel Rosdahl via ccache
a related problem with ccache's own test suite when run on such filesystems. - Fixed a regression in 3.7.2 when using the compiler option “-Werror” and then “-Wno-error” later on the command line. Contributors (in alphabetical order) to this release: - Ivan Volnov - Joel Rosdahl Thanks

[ccache] ccache version 3.7.2 has been released

2019-07-19 Thread Joel Rosdahl via ccache
Björklund - Joel Rosdahl - Luboš Luňák - luzpaz Thanks! -- Joel ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache

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 >

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

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

[ccache] ccache version 3.7.1 has been released

2019-05-01 Thread Joel Rosdahl via ccache
commandlines are now handled gracefully on Windows by using the “@file” syntax to avoid hitting the commandline size limit. - Fixed complaint from GCC 9’s “-Werror=format-overflow” when compiling ccache itself. Contributors (in alphabetical order) to this release: - Anders F Björklund - Joel

[ccache] ccache version 3.7 has been released

2019-04-23 Thread Joel Rosdahl via ccache
. - The algorithm that scans for “__DATE_” and “__TIME__” tokens in the hashed source code now doesn't produce false positives for tokens where “__DATE__” or “__TIME__” is a substring. Contributors (in alphabetical order) to this release: - Anders F Björklund - Doug Anderson - Joel Rosdahl - Pavol

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

2019-04-23 Thread Joel Rosdahl via ccache
) to this release: - Anders F Björklund - Doug Anderson - Joel Rosdahl - Pavol Sakac - Robert Yang Thanks! -- Joel ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache

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 abbreviat

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

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

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

[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

[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

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

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

Re: [ccache] why is limit_multiple ignored?

2018-01-29 Thread Joel Rosdahl via ccache
8 at 07:14, Scott Bennett <benn...@sdf.org> wrote: > Joel Rosdahl <j...@rosdahl.net> wrote: > >> On 7 January 2018 at 14:02, Scott Bennett wrote: >> >> > The design problem is that there is no centralized index maintained of >> > cache entries'

[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

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

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

[ccache] ccache version 3.3.4 has been released

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

Re: [ccache] CCACHE_DISABLE vs. unreadable ccache.conf

2017-02-08 Thread Joel Rosdahl
On 31 January 2017 at 13:00, mar...@mejor.pl wrote: > So if I set CCACHE_DISABLE=1 is any reason to read other variables from config files? Well, ccache currently notes in the log file (if enabled) that it is has been disabled before handing over to the compiler. And how to

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

[ccache] ccache version 3.3.2 has been released

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

Re: [ccache] [PATH]: test: elide which stderr

2016-09-25 Thread Joel Rosdahl
Hi Eric, On 23 September 2016 at 06:41, Eric Bavier wrote: > While running ccache's test suite via `make check` I get output from > 'which': [...] Thanks for the report and suggestion! I made an alternative fix like this (which also should work with various shells'

[ccache] ccache version 3.3.1 has been released

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

[ccache] ccache version 3.2.8 has been released

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

Re: [ccache] clang modules (-fmodules) support

2016-08-25 Thread Joel Rosdahl
On 24 August 2016 at 22:51, Piotr Wach wrote: > I have seen that "-fmodules" compiler flag has been recently marked as > "hard" / unsupported (?) Yes, "too hard" here means unsupported, which could mean either impossible to implement or not yet implemented. > is this

[ccache] ccache version 3.2.7 has been released

2016-07-20 Thread Joel Rosdahl
I'm happy to announce ccache version 3.2.7. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html#_ccache_3_2_7 Source archives are available here: https://www.samba.org/ftp/ccache/ccache-3.2.7.tar.bz2

Re: [ccache] Migration from autotools to cmake

2016-07-19 Thread Joel Rosdahl
On 12 July 2016 at 12:03, Иван Вайгульт wrote: > In order to enable visual studio build I did full build replica using > cmake. [...] > Any feedback from you is desired. Thanks for working on this. After some thinking I'm positive to getting rid of autotools. Although I

Re: [ccache] Cache misses are extremely expensive.

2016-07-12 Thread Joel Rosdahl
On 23 June 2016 at 21:14, Guillaume Campagna wrote: > Just started using ccache based on this tutorial and so far I like it. > However, caches miss being extremely slow. [..] Note that I do use a pch, > if that changes something. [...] Since you included

[ccache] ccache version 3.2.6 has been released

2016-07-12 Thread Joel Rosdahl
I'm happy to announce ccache version 3.2.6. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html#_ccache_3_2_6 Source archives are available here: https://www.samba.org/ftp/ccache/ccache-3.2.6.tar.bz2

[ccache] ccache version 3.1.12 has been released

2016-07-12 Thread Joel Rosdahl
I'm happy to announce ccache version 3.1.12. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html#_ccache_3_1_12 Source archives are available here: https://www.samba.org/ftp/ccache/ccache-3.1.12.tar.bz2

[ccache] Moving to github

2016-05-23 Thread Joel Rosdahl
Hi, Ever since Tridge handed over the project to me, the main ccache Git repository has been hosted on git.samba.org and bugs handled in bugzilla.samba.org. I also have kept an unofficial mirror on github. Since some time now, almost all activity regarding new features and bug reports have been

Re: [ccache] Multiple directories for CCACHE_DIR?

2016-05-17 Thread Joel Rosdahl
Hi Wilson, On 17 May 2016 at 08:50, Wilson Hong wrote: > One thing I wanna try is to have multiple folders specified in CCACHE_DIR. > [...] Is that supported in ccache? Nope. > If not, would be a good idea to implement that? I think that it could be interesting to

Re: [ccache] preprocessor mode

2016-05-17 Thread Joel Rosdahl
Hi Yoav, > I've dug a bit deeper, and found that when doing a diff between the output > of the preprocessor the resolved include path is emitted as part of the > output as a comment, in our case it's > > # 1 "a/a.h" 1 > > There's a flag -P to the preprocessor to remove these comments. It sounds

Re: [ccache] ccache-3.2.4 and 3.1.11 fail to build

2016-03-25 Thread Joel Rosdahl
On 23 March 2016 at 20:34, Britton Kerin wrote: > I unpacked it and did ./configure then make I get this: > > $ ./configure > [...] > $ make > make: *** No rule to make target `main.o', needed by `ccache'. Stop. > > Same thing for 3.1.11 That's peculiar. What OS are you

Re: [ccache] base_dir and -Xclang option - bug or incompleteness?

2016-03-25 Thread Joel Rosdahl
On 23 March 2016 at 17:56, Michael Kolomeytsev < michael.kolomeyt...@gmail.com> wrote: > I looked into the ccache source code > https://github.com/jrosdahl/ccache/blob/master/ccache.c#L1696 - that > special Xlang options processing is exactly what I need. But it doesn't > work 'cause "i+=3" is

Re: [ccache] Shared ccache directory between docker containers

2016-02-06 Thread Joel Rosdahl
> > Thanks, i'll try upgrading although I made sure hostname is unique now. > Whats the mechanism for uniqueness in 3.2? Using mkstemp . -- Joel ___ ccache mailing list ccache@lists.samba.org

Re: [ccache] Shared ccache directory between docker containers

2016-02-06 Thread Joel Rosdahl
Hi, On 5 February 2016 at 12:05, Ragnar Rova wrote: Is it safe to share the ccache directory between docker containers wrt > to locking? I think so. ccache version 3.1.10 > ccache: FATAL: Failed to open >

Re: [ccache] ccacje direct mode without fall back to running the preprocessor

2016-01-03 Thread Joel Rosdahl
On 10 December 2015 at 20:32, vkr wrote: > Sorry. It is not the manifest file that it tries to update. But the ".d" > files. I think it is a real bug. [...] > Yes, good catch. Thanks! Fixed like suggested in a7ab503f07e31ebeaaec34fbaa30e264308a299d

Re: [ccache] ccache trying to update cache in read-only mode

2016-01-03 Thread Joel Rosdahl
On 29 December 2015 at 22:55, ganesh subramonian wrote: > [..] Shouldn't put_file_in_cache have a check for conf->read_only > Yes, should be fixed on the 3.2-maint and master branches now. Thanks for reporting the problem! -- Joel

Re: [ccache] MinGW compiler error

2015-12-19 Thread Joel Rosdahl
Hi André, I tried to build ccache v3.2.4 and [...] ccache v3.2.3 works without any > problems here. Is it possible to fix this to get a working MinGW build > again? It should be possible with some well-crafted #ifdefs or so, but I have personally neither interest, time nor knowledge about how

Re: [ccache] ccache's cleanup algorithm

2015-11-05 Thread Joel Rosdahl
Hi Scott, In ccache's cleanup.c module, the comments say that files are deleted from > the cache on a LRU basis. However, the code refers to mtime, not atime, so > it appears that ccache is, in reality, using a Least Recently *Modified* basis > upon which to expire files from the cache. Is that

Re: [ccache] Shared CCACHE_DIR, different ccache releases?

2015-10-20 Thread Joel Rosdahl
> > How can I know if it's OK to use different versions of the ccache program > with the same CCACHE_DIR location? If you by "OK to use different versions" mean "works to share and reuse cache results between different versions", then no, there are no such guarantees and no list of compatible

Re: [ccache] Duplicated -arch option results in "unsupported compiler option"

2015-10-20 Thread Joel Rosdahl
> > When invoking ccache with twice -arch option, it fails to use its cache > and "unsupported compiler option" counter increment. That's because -arch options can be given multiple times (with different values) to create "fat binaries" on Darwin, and ccache can't handle that, so it bails out.

[ccache] ccache version 3.2.4 has been released

2015-10-08 Thread Joel Rosdahl
I'm happy to announce ccache version 3.2.4. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html#_ccache_3_2_4 Source archives are available here: http://samba.org/ftp/ccache/ccache-3.2.4.tar.bz2 http://samba.org/ftp/ccache/ccache-3.2.4.tar.gz

Re: [ccache] -Bprefix compiler option - resulting in cache miss

2015-09-19 Thread Joel Rosdahl
On 11 September 2015 at 12:02, vkr wrote: > I believe I found a potential bug with ccache that results in cache-miss if > -Bprfix compilation option is used, where prefix specifies where to find > the executables, libraries, include files, and data files of the

Re: [ccache] Build failure

2015-09-14 Thread Joel Rosdahl
Oops, fixed now. -- Joel On 14 September 2015 at 14:45, Andrew Stubbs wrote: > Unless I'm missing something, the ccache sources are currently not > buildable. :-( > > ccache.c: In function ‘put_file_in_cache’: > ccache.c:808:42: error: ‘struct conf’ has no member named

Re: [ccache] Trouble sharing cache results when compiling with -isystem instead of -I

2015-09-05 Thread Joel Rosdahl
Robert Houghton wrote: > Is looks like ccache v3.2.1 will not use the CCACHE_BASEDIR option when > considering paths provided by -isystem. Is this intentional, an oversight, > or a bug? ccache does recognize -isystem, but only when used like "-isystem foo", not in the form "-isystemfoo" (it's

Re: [ccache] ccache interrupt handling bug

2015-08-29 Thread Joel Rosdahl
On 20 August 2015 at 21:04, Joel Rosdahl j...@rosdahl.net wrote: I will not have time to work on improving the signal handler until next week at the earliest. I've now had a look at improving the signal handler. It would be appreciated if somebody wants to review it: https://git.samba.org/?p

Re: [ccache] ccache interrupt handling bug

2015-08-20 Thread Joel Rosdahl
On 19 August 2015 at 15:45, Mike Frysinger vap...@gentoo.org wrote: this wouldn't solve things entirely. calling _exit(1) is fundamentally wrong. here's a pretty good page giving a rundown: [...] Interesting, thank you. And thanks to Nadav and Eitan as well for good input. I will not have

Re: [ccache] Compiler warnings in ccache 3.2.3

2015-08-17 Thread Joel Rosdahl
I got a few warnings about assignments of pointers to bool values. I think these are legitimate gripes, because on platforms where bool is only a byte wide, the net effect will be to assign the pointer's low-order byte to the bool. There's at least a 1-in-256 chance of a non-null pointer

Re: [ccache] ccache version 3.2.3 has been released

2015-08-17 Thread Joel Rosdahl
Tom Lane t...@sss.pgh.pa.us wrote: [...] this fails to build for me on late-model OS X: Bummer. Here's my proposed fix: https://git.samba.org/?p=ccache.git;a=commitdiff;h=f74c76107933046309861680b741adc67ac2a34e. Perhaps you could try it out? -- Joel

[ccache] ccache version 3.2.3 has been released

2015-08-16 Thread Joel Rosdahl
I'm happy to announce ccache version 3.2.3. Details may be read in the release notes: http://ccache.samba.org/releasenotes.html#_ccache_3_2_3 Source archives are available here: http://samba.org/ftp/ccache/ccache-3.2.3.tar.bz2 http://samba.org/ftp/ccache/ccache-3.2.3.tar.gz

Re: [ccache] ccache miss increasing on making same build

2015-08-16 Thread Joel Rosdahl
://search.cpan.org/dist/perl-5.18.0/pod/perldelta.pod#Hash_randomization ). -- Joel On 11 August 2015 at 21:45, Joel Rosdahl j...@rosdahl.net wrote: Hi Vijay, For me, ccache is not working properly on compiling the already compiled build again. I can see ccache miss count increasing instead

Re: [ccache] ccache miss increasing on making same build

2015-08-11 Thread Joel Rosdahl
Hi Vijay, For me, ccache is not working properly on compiling the already compiled build again. I can see ccache miss count increasing instead of ccache hit count. To be able to understand why, it would help to get a ccache log that contains: 1. A compilation of a source file X, leading to a

  1   2   3   >