[ccache] Testsuite failure with GCC 4.8

Ryan Hill dirtyepic at gentoo.org
Sat Mar 16 20:21:38 MDT 2013

In GCC 4.8 the preprocessor automatically includes <stdc-predef.h> in C/C++
mode. This is causing a failure in the ccache testsuite:

(see "Pre-processor pre-includes" in http://gcc.gnu.org/gcc-4.8/porting_to.html)

CC='x86_64-pc-linux-gnu-gcc' ./test.sh
starting testsuite base
starting testsuite link
starting testsuite hardlink
starting testsuite cpp2
starting testsuite nlevels4
starting testsuite nlevels1
starting testsuite basedir
starting testsuite direct
SUITE: "direct", TEST: "-Wp,-MD" - Bad content of other.d.\nExpected: test.o: test.c test1.h test3.h test2.h\nActual: test.o: test.c /usr/include/stdc-predef.h test1.h test3.h test2.h
cache directory                     /var/tmp/portage/dev-util/ccache-3.1.9/work/ccache-3.1.9/testdir.32181/.ccache
cache hit (direct)                     0
cache hit (preprocessed)               0
cache miss                             1
files in cache                        15
cache size                            60 Kbytes
max cache size                       1.0 Gbytes
Test data and log file have been left in testdir.32181
make: *** [test] Error 1

I'm unsure if this will cause issues in practise or if it's just the test that
needs to be adjusted.

toolchain, wxwidgets                                     by design, by neglect
@ gentoo.org                                     for a fact or just for effect
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/ccache/attachments/20130316/d3125857/attachment.pgp>

More information about the ccache mailing list