]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Improve description on how to fix bad object files in the cache
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 20 Dec 2011 21:21:46 +0000 (22:21 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 20 Dec 2011 21:21:46 +0000 (22:21 +0100)
MANUAL.txt

index 0a67b9f1d59f3aca572d6dc45abaaa962ad62563..f15d6667e6e111bda3ec4eedcf9b1e8d48e292ca 100644 (file)
@@ -771,10 +771,15 @@ It should be noted that ccache is susceptible to general storage problems. If a
 bad object file sneaks into the cache for some reason, it will of course stay
 bad. Some possible reasons for erroneous object files are bad hardware (disk
 drive, disk controller, memory, etc), buggy drivers or file systems, a bad
-*CCACHE_PREFIX* command or compiler wrapper. If this happens, you can either
-find out which object file is broken by reading the debug log and then delete
-the bad object file from the cache, or you can simply clear the whole cache
-with *ccache -C* if you don't mind losing other cached results.
+*CCACHE_PREFIX* command or compiler wrapper. If this happens, the easiest way
+of fixing it is this:
+
+1. Build so that the bad object file ends up in the build tree.
+2. Remove the bad object file from the build tree.
+3. Rebuild with *CCACHE_RECACHE* set.
+
+An alternative is to clear the whole cache with *ccache -C* if you don't mind
+losing other cached results.
 
 There are no reported issues about ccache producing broken object files
 reproducibly. That doesn't mean it can't happen, so if you find a repeatable