[ccache] ccache version 3.2.3 has been released
Tom Lane
tgl at sss.pgh.pa.us
Sun Aug 16 17:39:18 UTC 2015
Joel Rosdahl <joel at 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 -DHAVE_CONFIG_H -DSYSCONFDIR=/usr/local/etc -I. -I. -g -O2 -Wall -W -c -o conf.o conf.c
make: *** No rule to make target `-lz', needed by `ccache'. Stop.
The reason appears to be that the Makefile gets generated like so:
$ 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) $(all_cflags) -o $@ $(base_objs) $(test_objs) $(all_ldflags) $(extra_libs) $(LIBS)
and of course "-lz" isn't a valid dependency. Manually removing
$(extra_libs) from these two dependency lists fixes it.
I do not recall having had this problem the last time I built ccache,
but that was 3.2.1, so I don't know whether it was introduced in
3.2.2 or 3.2.3.
regards, tom lane
More information about the ccache
mailing list