Details
-
Bug
-
Resolution: Fixed
-
Major
-
7.1.0
-
Untriaged
-
1
-
Unknown
-
KV-Engine Sprint 2021 June
Description
With the introduction of precompiled headers for targets in platform and kv_engine (MB-43677), I'm seeing ccache no longer work (find a matching cached object file) for targets using precompiled headers.
Instead, 'ccache -s' reports 'preprocessor error':
cache hit (direct) 0
|
cache hit (preprocessed) 0
|
cache miss 1
|
cache hit rate 0.00 %
|
preprocessor error 1
|
Enabling ccache debug mode and examinind a log file for a failing
object, we see the following:
[2021-06-17T10:57:43.280809 15720] Running preprocessor
|
[2021-06-17T10:57:43.280850 15720] Executing /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ <cut> -E ../platform/src/je_arena_malloc_stats.cc
|
[2021-06-17T10:57:43.508729 15720] Preprocessor gave exit status 1
|
[2021-06-17T10:57:43.508839 15720] Failed; falling back to running the real compiler
|
[2021-06-17T10:57:43.509102 15720] Result: preprocessor error
|
i.e. it failed to invoke the preprocessor (via c++ -E) and hence
couldn't lookup the file in the cache.
Attachments
Issue Links
- is caused by
-
MB-43677 Enable precompiled headers for KV-Engine build
- Closed
For Gerrit Dashboard: MB-46988 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
156025,5 | MB-46988: Specify link scope for all target_link_libraries() | master | platform | Status: MERGED | +2 | +1 |
156090,1 | MB-46988: Specify link scope for all target_link_libraries() | master | kv_engine | Status: ABANDONED | 0 | -1 |
156091,4 | MB-46988: Fix PCH headers causing ccache cache misses | master | tlm | Status: MERGED | +2 | +1 |
156092,5 | MB-46988: Specify link scope for all target_link_libraries() | master | kv_engine | Status: MERGED | +2 | +1 |
156119,3 | MB-46988: Fix CLion project indexing with CB_PCH | master | kv_engine | Status: MERGED | +2 | +1 |
156121,4 | MB-46988: Fix CLion project indexing with CB_PCH | master | platform | Status: MERGED | +2 | +1 |
156784,2 | MB-46988: Remove dummy precompiled_headers.cc file | master | platform | Status: ABANDONED | 0 | -1 |
156873,4 | MB-46988: Fix Windows LNK4221 warning after adding PCH support | master | tlm | Status: MERGED | +2 | +1 |