Re: [ccache] [PATCH] Use bash for test.sh.

2012-11-12 Thread Eitan Adler
On 12 November 2012 13:52, Paul Smith wrote: > On Mon, 2012-11-12 at 13:11 -0500, Eitan Adler wrote: >> #!/bin/sh which is mandated to exist by POSIX > > Actually, unless there's been a change, POSIX doesn't mandate that the > POSIX shell appear as /bin/sh. Okay. Taking a deeper look here, I'm w

Re: [ccache] [PATCH] Use bash for test.sh.

2012-11-12 Thread Paul Smith
On Mon, 2012-11-12 at 13:11 -0500, Eitan Adler wrote: > #!/bin/sh which is mandated to exist by POSIX Actually, unless there's been a change, POSIX doesn't mandate that the POSIX shell appear as /bin/sh. Unfortunately, this means that systems are free to provide definitively non-POSIX /bin/sh an

Re: [ccache] [PATCH] Use bash for test.sh.

2012-11-12 Thread Eitan Adler
On 12 November 2012 13:11, Eitan Adler wrote: > On 12 November 2012 13:04, Mike Frysinger wrote: >> yes, when people tell you forcing asinine behavior is wrong, you label them >> trolls. i guess that's how you "win" arguments. > > Claiming that systems without /bin/bash are "crap" shows a level

Re: [ccache] [PATCH] Use bash for test.sh.

2012-11-12 Thread Eitan Adler
On 12 November 2012 13:04, Mike Frysinger wrote: > yes, when people tell you forcing asinine behavior is wrong, you label them > trolls. i guess that's how you "win" arguments. Claiming that systems without /bin/bash are "crap" shows a level of naivete that only someone new to the open source wo

Re: [ccache] BSDiff for cache objects

2012-11-12 Thread Bogdan Harjoc
Initial results from a small .ccache (3.0) dir: - 6476 objects - 300MB - probably about 500-1000 compiles/recompiles of around 100 small to large projects The test was: 1. Find the candidates for compression, based on: objdump -t | grep " g " (defined symbols). If two objects had at least 4 symbo

Re: [ccache] [PATCH] Use bash for test.sh.

2012-11-12 Thread Mike Frysinger
On Monday 12 November 2012 06:03:37 Andrew Stubbs wrote: > Running "sh -x test.sh" shows that the gcc command producing the error: > > + CCACHE_DISABLE=1 gcc -c test1.c -o reference_test1.o -O -O > gcc: error trying to exec 'cc1': execvp: No such file or directory > > I don't understand what's wr

Re: [ccache] [PATCH] Use bash for test.sh.

2012-11-12 Thread Mike Frysinger
On Saturday 10 November 2012 05:08:40 Joel Rosdahl wrote: > On 10 November 2012 06:45, Mike Frysinger wrote: > > i see old style portable code in there that could easily be modernized to > > recent POSIX > > Please don't strive to do that. Solaris's /bin/sh isn't POSIX. autoconf searches well kn

Re: [ccache] [PATCH] Use bash for test.sh.

2012-11-12 Thread Mike Frysinger
On Sunday 11 November 2012 06:31:14 Eitan Adler wrote: > On 11 November 2012 00:46, Mike Frysinger wrote: > > On Saturday 10 November 2012 00:41:52 Eitan Adler wrote: > >> On 10 November 2012 00:41, Mike Frysinger wrote: > >> > if the script is written in bash and is intended to be, then > >> > /b

Re: [ccache] [PATCH] Use bash for test.sh.

2012-11-12 Thread Eitan Adler
On 12 November 2012 13:00, Eitan Adler wrote: > On 12 November 2012 06:03, Andrew Stubbs wrote: >> Running "sh -x test.sh" shows that the gcc command producing the error: >> >> + CCACHE_DISABLE=1 gcc -c test1.c -o reference_test1.o -O -O >> gcc: error trying to exec 'cc1': execvp: No such file or

Re: [ccache] [PATCH] Use bash for test.sh.

2012-11-12 Thread Eitan Adler
On 12 November 2012 06:03, Andrew Stubbs wrote: > Running "sh -x test.sh" shows that the gcc command producing the error: > > + CCACHE_DISABLE=1 gcc -c test1.c -o reference_test1.o -O -O > gcc: error trying to exec 'cc1': execvp: No such file or directory > > I don't understand what's wrong with t

Re: [ccache] BSDiff for cache objects

2012-11-12 Thread Andrew Stubbs
On 12/11/12 14:08, Bogdan Harjoc wrote: No but there is room for improvement. This could be optional, like a CCACHE_COMPRESS that saves 99% instead of 40% when I routinely recompile 20 kernel branches, for example (v2.6.x, 3.0.x, 3.4.x, -git, -next, -ubuntu, etc). I realise that the more diverg

Re: [ccache] BSDiff for cache objects

2012-11-12 Thread Bogdan Harjoc
On Mon, Nov 12, 2012 at 3:39 PM, Andrew Stubbs wrote: > On 12/11/12 11:49, Bogdan Harjoc wrote: > >> Alternatively, a "compact" operation could be run periodically, that >> compresses the cache using the same approach. >> > > Is cache size/capacity a very big issue for you? > No but there is roo

Re: [ccache] BSDiff for cache objects

2012-11-12 Thread Andrew Stubbs
On 12/11/12 11:49, Bogdan Harjoc wrote: Alternatively, a "compact" operation could be run periodically, that compresses the cache using the same approach. Is cache size/capacity a very big issue for you? Have you tried the CCACHE_COMPRESS feature? That simply gzips the binaries in the cache.

Re: [ccache] BSDiff for cache objects

2012-11-12 Thread Bogdan Harjoc
On Mon, Nov 12, 2012 at 2:30 PM, Jürgen Buchmüller wrote: > Am Montag, den 12.11.2012, 13:49 +0200 schrieb Bogdan Harjoc: > > Basically, before writing a new object file, ccache could find a similar > > object in the cache (based on object-code or source-code hashes for > > example) > > The main g

Re: [ccache] BSDiff for cache objects

2012-11-12 Thread Jürgen Buchmüller
Am Montag, den 12.11.2012, 13:49 +0200 schrieb Bogdan Harjoc: > Basically, before writing a new object file, ccache could find a similar > object in the cache (based on object-code or source-code hashes for > example) The main goal of most hashes is to give very distinct results even for even smal

[ccache] BSDiff for cache objects

2012-11-12 Thread Bogdan Harjoc
I just did a quick search, and couldn't find discussions on the idea of caching compiled objects as binary diffs from other existing objects. Basically, before writing a new object file, ccache could find a similar object in the cache (based on object-code or source-code hashes for example) and st

Re: [ccache] [PATCH] Use bash for test.sh.

2012-11-12 Thread Andrew Stubbs
On 11/11/12 11:31, Eitan Adler wrote: Mike, http://www.technollama.co.uk/wordpress/wp-content/uploads/2011/05/obvious-troll.jpg Insulting respected members of the Linux community will get you nowhere. I realise that some might call you the same, and BSD also, so you should know better. An