[ccache] ccache test failures

Forte, Greg Greg.Forte at sig.com
Thu Mar 15 19:33:41 UTC 2018


I've run into a few failures with 'make test' after building ccache and I'm hoping someone here has insight into what might be causing them, or can provide some leads on how to investigate further.

ccache versions: 3.3.6 and 3.4.1

build process: straightforward: ./autogen.sh; ./configure; make; make test

Platforms and compilers: I'm tied to some fairly outdated platforms and compilers: the primary targets are Suse Linux Enterprise Server, v11 (service packs 2 and 3) and v12 (service packs 1 and 3).  I'm using the stock compiler packages for those systems, which are gcc-4.3.4 for SLES11 and gcc-4.8.5 for SLES12.  However, I've also reproduced the same results on a SLES12 system with spack and several more recent variants of gcc: 5.5.0, 6.4.0, 7.2.0.

Test failures: output below the .sig; note that I've jerry-rigged the test script by commenting out the "exit 1" in the test_failed function so that it would try them all; subsequent failures for the same test suite are likely just reflections of the first failure for each.  10 tests fail in total; the rest seem to be fine, and the same tests fail with the same unexpected values for all of the platform/compiler combinations I have tried.

Please let me know what other information might be useful.  Thanks!

Greg Forte
Susquehanna International Group
Development Tools & Components<https://confluence/pages/viewpage.action?pageId=11438522>
Desk: (610) 747-2380
Mobile: (610) 209-0793


Test suite:     base
Test case:      CCACHE_NOHASHDIR
Failure reason: Expected "cache hit (preprocessed)" to be 2, actual 1

ccache -s:
cache directory                     /hostname/forte/ccache-3.3.6/testdir.20265/.ccache
primary config                      /hostname/forte/ccache-3.3.6/testdir.20265/ccache.conf
secondary config      (readonly)
cache hit (direct)                     0
cache hit (preprocessed)               1
cache miss                             2
cache hit rate                     33.33 %
cleanups performed                     0
files in cache                         2
cache size                           8.2 kB
max cache size                       5.0 GB


Test suite:     base
Test case:      CCACHE_NOHASHDIR
Failure reason: Expected "cache miss" to be 1, actual 2

ccache -s:
cache directory                     /hostname/forte/ccache-3.3.6/testdir.20265/.ccache
primary config                      /hostname/forte/ccache-3.3.6/testdir.20265/ccache.conf
secondary config      (readonly)
cache hit (direct)                     0
cache hit (preprocessed)               1
cache miss                             2
cache hit rate                     33.33 %
cleanups performed                     0
files in cache                         2
cache size                           8.2 kB
max cache size                       5.0 GB


Test suite:     nocpp2
Test case:      CCACHE_NOHASHDIR
Failure reason: Expected "cache hit (preprocessed)" to be 2, actual 1

ccache -s:
cache directory                     /hostname/forte/ccache-3.3.6/testdir.20265/.ccache
primary config                      /hostname/forte/ccache-3.3.6/testdir.20265/ccache.conf
secondary config      (readonly)
cache hit (direct)                     0
cache hit (preprocessed)               1
cache miss                             2
cache hit rate                     33.33 %
cleanups performed                     0
files in cache                         2
cache size                           8.2 kB
max cache size                       5.0 GB


Test suite:     nocpp2
Test case:      CCACHE_NOHASHDIR
Failure reason: Expected "cache miss" to be 1, actual 2

ccache -s:
cache directory                     /hostname/forte/ccache-3.3.6/testdir.20265/.ccache
primary config                      /hostname/forte/ccache-3.3.6/testdir.20265/ccache.conf
secondary config      (readonly)
cache hit (direct)                     0
cache hit (preprocessed)               1
cache miss                             2
cache hit rate                     33.33 %
cleanups performed                     0
files in cache                         2
cache size                           8.2 kB
max cache size                       5.0 GB


Test suite:     debug_prefix_map
Test case:      Mapping of debug info CWD
Failure reason: Expected "cache hit (direct)" to be 1, actual 0

ccache -s:
cache directory                     /hostname/forte/ccache-3.3.6/testdir.20265/.ccache
primary config                      /hostname/forte/ccache-3.3.6/testdir.20265/ccache.conf
secondary config      (readonly)
cache hit (direct)                     0
cache hit (preprocessed)               0
cache miss                             2
cache hit rate                      0.00 %
cleanups performed                     0
files in cache                         4
cache size                          16.4 kB
max cache size                       5.0 GB


Test suite:     debug_prefix_map
Test case:      Mapping of debug info CWD
Failure reason: Expected "cache miss" to be 1, actual 2

ccache -s:
cache directory                     /hostname/forte/ccache-3.3.6/testdir.20265/.ccache
primary config                      /hostname/forte/ccache-3.3.6/testdir.20265/ccache.conf
secondary config      (readonly)
cache hit (direct)                     0
cache hit (preprocessed)               0
cache miss                             2
cache hit rate                      0.00 %
cleanups performed                     0
files in cache                         4
cache size                          16.4 kB
max cache size                       5.0 GB


Test suite:     debug_prefix_map
Test case:      Mapping of debug info CWD
Failure reason: Expected "files in cache" to be 2, actual 4

ccache -s:
cache directory                     /hostname/forte/ccache-3.3.6/testdir.20265/.ccache
primary config                      /hostname/forte/ccache-3.3.6/testdir.20265/ccache.conf
secondary config      (readonly)
cache hit (direct)                     0
cache hit (preprocessed)               0
cache miss                             2
cache hit rate                      0.00 %
cleanups performed                     0
files in cache                         4
cache size                          16.4 kB
max cache size                       5.0 GB


Test suite:     debug_prefix_map
Test case:      Multiple -fdebug-prefix-map
Failure reason: Expected "cache hit (direct)" to be 1, actual 0

ccache -s:
cache directory                     /hostname/forte/ccache-3.3.6/testdir.20265/.ccache
primary config                      /hostname/forte/ccache-3.3.6/testdir.20265/ccache.conf
secondary config      (readonly)
cache hit (direct)                     0
cache hit (preprocessed)               0
cache miss                             2
cache hit rate                      0.00 %
cleanups performed                     0
files in cache                         4
cache size                          16.4 kB
max cache size                       5.0 GB


Test suite:     debug_prefix_map
Test case:      Multiple -fdebug-prefix-map
Failure reason: Expected "cache miss" to be 1, actual 2

ccache -s:
cache directory                     /hostname/forte/ccache-3.3.6/testdir.20265/.ccache
primary config                      /hostname/forte/ccache-3.3.6/testdir.20265/ccache.conf
secondary config      (readonly)
cache hit (direct)                     0
cache hit (preprocessed)               0
cache miss                             2
cache hit rate                      0.00 %
cleanups performed                     0
files in cache                         4
cache size                          16.4 kB
max cache size                       5.0 GB


Test suite:     debug_prefix_map
Test case:      Multiple -fdebug-prefix-map
Failure reason: Expected "files in cache" to be 2, actual 4

ccache -s:
cache directory                     /hostname/forte/ccache-3.3.6/testdir.20265/.ccache
primary config                      /hostname/forte/ccache-3.3.6/testdir.20265/ccache.conf
secondary config      (readonly)
cache hit (direct)                     0
cache hit (preprocessed)               0
cache miss                             2
cache hit rate                      0.00 %
cleanups performed                     0
files in cache                         4
cache size                          16.4 kB
max cache size                       5.0 GB



________________________________

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.


More information about the ccache mailing list