[Insight-developers] /usr/lib/ccache does not detect warning flags

Bill Lorensen bill.lorensen at gmail.com
Wed Aug 31 12:53:18 EDT 2011


Double maybe.

If I create a src.cxx file on my tmp directory, ccache runs just fine.


On Wed, Aug 31, 2011 at 12:33 PM, David Cole <david.cole at kitware.com> wrote:

> On Wed, Aug 31, 2011 at 12:29 PM, Bill Lorensen <bill.lorensen at gmail.com>
> wrote:
> > Dave,
> >
> > /usr/lib/ccache/c++ does not detect the warnings flags that c++ does.
> >
> > I looked at the CMakeError.log file and here is a typical entry:
> > Building CXX object CMakeFiles/cmTryCompileExec.dir/src.cxx.o
> > /usr/lib/ccache/c++    -g -O0  -fprofile-arcs -ftest-coverage
> > -DCXX_HAS_WARNING-Wcast-align   -o
> CMakeFiles/cmTryCompileExec.dir/src.cxx.o
> > -c
> >
> /home/lorensen/ProjectsGIT/ITKGerritCoverage-linux/CMakeFiles/CMakeTmp/src.cxx
> > <command-line>: warning: missing whitespace after the macro name
> >
> /home/lorensen/ProjectsGIT/ITKGerritCoverage-linux/CMakeFiles/CMakeTmp/src.cxx:1:
> > error: expected unqualified-id before ‘-’ token
> >
> > NOTE: warning: missing whitespace after the macro name appears for both
> c==
> > and cccahce so it is not an issue.
> >
> > Bill
> >
> >
>
>
> Is this in reference to why the warnings are not showing up on some
> SimpleITK dashboards?
>
> Perhaps ccache is not even compiling the files that we think it should
> be... Maybe it's got results cached somewhere, and doesn't need to run
> the compile, and therefore.... doesn't have any warnings.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110831/0d37e66e/attachment.htm>


More information about the Insight-developers mailing list