Bug 10923 - CCache could filter IceCC output when retrieving files from cache
Summary: CCache could filter IceCC output when retrieving files from cache
Alias: None
Product: ccache
Classification: Unclassified
Component: ccache (show other bugs)
Version: 3.1.9
Hardware: All All
: P5 enhancement
Target Milestone: ---
Assignee: Joel Rosdahl
QA Contact: Joel Rosdahl
Depends on:
Reported: 2014-11-06 16:27 UTC by Xabier Rodríguez Calvar
Modified: 2014-11-17 08:42 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Xabier Rodríguez Calvar 2014-11-06 16:27:50 UTC
I find necessary that CCache of course returns you the error output of the cached file when it retrieves a previously compiled file from the cache.

In many cases, ccache is used together with IceCC for cached and distributed compilation.

In some cases, if there are problems in any node when compiling the file, icecc sends those errors to the standard error and compiles locally, which can endup in a successful compilation. When you just recompile the same code, everything will be retrieved from cache, together with the IceCC errors, which in this case make no sense because the file is not compiled remotely (actually the file is not even compiled).
Comment 1 Joel Rosdahl 2014-11-15 15:31:05 UTC
Hola Xaiber,

The similar problem for distcc was solved many years ago: ccache sets the environment variable called UNCACHED_ERR_FD to a file descriptor to which distcc sends error messages it does not want to be cached by ccache.

I think that IceCC should be modified to do the same. Does that sound reasonable?
Comment 2 Xabier Rodríguez Calvar 2014-11-17 08:42:17 UTC
It seems so. I'll comment that to the IceCC developers then.