Re: [ccache] ccache version 3.2.3 has been released

2015-08-16 Thread Mike Frysinger
On 16 Aug 2015 13:39, Tom Lane wrote: > $ grep extra_libs Makefile > extra_libs = -lz > ccache$(EXEEXT): $(ccache_objs) $(extra_libs) > $(CC) $(all_cflags) -o $@ $(ccache_objs) $(all_ldflags) $(extra_libs) > $(LIBS) > test/main$(EXEEXT): $(base_objs) $(test_objs) $(extra_libs) > $(

Re: [ccache] ccache interrupt handling bug

2015-08-16 Thread Tom Lane
"Nadav Har'El" writes: > On Mon, Aug 17, 2015 at 12:50 AM, Tom Lane wrote: >> * make launches "ccache gcc -o test.o test.c" >> * user types control-C >> * ccache receives SIGINT and exits >> * make does unlink("test.o") to clean up after failed compile step, which >> it thinks is done >> * gcc cr

Re: [ccache] ccache interrupt handling bug

2015-08-16 Thread Nadav Har'El
On Mon, Aug 17, 2015 at 12:50 AM, Tom Lane wrote: > > * make launches "ccache gcc -o test.o test.c" > * user types control-C > * ccache receives SIGINT and exits > * make does unlink("test.o") to clean up after failed compile step, which > it thinks is done > * gcc creates test.o > Stupid ques

Re: [ccache] ccache interrupt handling bug

2015-08-16 Thread Tom Lane
"Nadav Har'El" writes: > First of all, thanks. This indeed fixes the bug, and is exactly the first > patch I tried to fix it this problem. > I want to explain, though, why I ended up sending a different patch for > this problem - a 4-line patch instead of this one-liner. The explanation is > not

Re: [ccache] ccache interrupt handling bug

2015-08-16 Thread Nadav Har'El
On Sun, Aug 9, 2015 at 11:23 PM, Joel Rosdahl wrote: > Hi Nadav, > > (Sorry for the delayed reply.) > > Hi, I found a bug in ccache, which makes it impossible to >> correctly interrupt a compilation with a control-C (I tried this on Linux). >> [...] > > > Thanks for the bug report and analysis. T

[ccache] Compiler warnings in ccache 3.2.3

2015-08-16 Thread Tom Lane
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 erroneo

Re: [ccache] ccache version 3.2.3 has been released

2015-08-16 Thread Tom Lane
Joel Rosdahl writes: > I'm happy to announce ccache version 3.2.3. Hate to be the bearer of bad news, but this fails to build for me on late-model OS X: $ ./configure $ make gcc -DHAVE_CONFIG_H -DSYSCONFDIR=/usr/local/etc -I. -I. -g -O2 -Wall -W -c -o main.o main.c ... gcc -DHAVE_CONFIG_H -

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

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

2015-08-16 Thread Joel Rosdahl
Follow-up: We continued debugging the problem off-list. There were actually two problems: 1. The cache size was too small so a second build never even had a chance to get cache hits. 2. There was a generated header file with unstable content (due to Perl 5.18's randomization of hashes

Re: [ccache] [PATCH] Bail out on --save-temps, an alias for -save-temps

2015-08-16 Thread Joel Rosdahl
Applied, thanks. -- Joel On 9 July 2015 at 22:42, Michael Marineau wrote: > --- > NEWS.txt | 2 ++ > compopt.c | 1 + > 2 files changed, 3 insertions(+) > > diff --git a/NEWS.txt b/NEWS.txt > index c1e121d..19b0ae2 100644 > --- a/NEWS.txt > +++ b/NEWS.txt > @@ -18,6 +18,8 @@ Bug fixes > > -