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] ccache version 3.2.3 has been released

2015-08-16 Thread Tom Lane
Joel Rosdahl j...@rosdahl.net 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

Re: [ccache] ccache interrupt handling bug

2015-08-16 Thread Tom Lane
Nadav Har'El n...@cloudius-systems.com 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

Re: [ccache] ccache interrupt handling bug

2015-08-16 Thread Tom Lane
Nadav Har'El n...@cloudius-systems.com writes: On Mon, Aug 17, 2015 at 12:50 AM, Tom Lane t...@sss.pgh.pa.us 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

[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

Re: [ccache] ccache interrupt handling bug

2015-08-16 Thread Nadav Har'El
On Sun, Aug 9, 2015 at 11:23 PM, Joel Rosdahl j...@rosdahl.net 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

Re: [ccache] ccache interrupt handling bug

2015-08-16 Thread Nadav Har'El
On Mon, Aug 17, 2015 at 12:50 AM, Tom Lane t...@sss.pgh.pa.us 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

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) $(CC)