MantisBT - CMake
View Issue Details
0013657CMakeCTestpublic2012-11-05 21:082013-05-06 09:32
Michi Henning 
David Cole 
normalminoralways
closedfixed 
LinuxUbuntu12.10
CMake 2.8.10 
CMake 2.8.11CMake 2.8.11 
0013657: Fix for bug /Bug/view.php?id=13121 not working
After running into the issue reported in bug 0013121, I grabbed the 2.8.10 source and built it. The problem is still there for me (see sample output below).

I compiled cmake with gcc 4.7.2 (the default for Ubuntu 12.10). gcov is also at version 4.7.2.

Here are the first few lines of the output I get (there are tons more like this):

$ make coverage
   Site: djembefola
   Build name: Linux-c++
Determine Nightly Start Time
   Specified time: 00:00:00 EDT
Create new tag: 20121105-0400 - Nightly
Performing coverage
   Processing coverage (each . represents one file):
    ....Unknown gcov output line: [No executable lines]
Unknown gcov output line: [Removing 'RuntimeImpl.cpp.gcda##streambuf.gcov']
Unknown gcov output line: [No executable lines]
Unknown gcov output line: [Removing 'RuntimeImpl.cpp.gcda##basic_ios.h.gcov']
Unknown gcov output line: [No executable lines]
Unknown gcov output line: [Removing 'RuntimeImpl.cpp.gcda##ostream.gcov']
.....Unknown gcov output line: [No executable lines]
Unknown gcov output line: [Removing 'ExceptionImpl.cpp.gcda##ostream.gcov']
...Unknown gcov output line: [No executable lines]
Unknown gcov output line: [Removing 'X11WEnv.cpp.gcda##allocator.h.gcov']
No tags attached.
related to 0013121closed David Cole CTestCoverage Unknown gcov output line in gcc 4.7 
gz SmallAndFast.tar.gz (4,586) 2012-11-06 19:44
https://public.kitware.com/Bug/file/4556/SmallAndFast.tar.gz
Issue History
2012-11-05 21:08Michi HenningNew Issue
2012-11-05 22:58Michi HenningNote Added: 0031469
2012-11-06 01:12Eric NOULARDRelationship addedrelated to 0013121
2012-11-06 07:26David ColeNote Added: 0031471
2012-11-06 08:08Michi HenningNote Added: 0031472
2012-11-06 19:44Michi HenningFile Added: SmallAndFast.tar.gz
2012-11-06 19:47Michi HenningNote Added: 0031476
2012-11-07 06:59David ColeNote Added: 0031477
2012-11-07 07:00David ColeAssigned To => David Cole
2012-11-07 07:00David ColeStatusnew => assigned
2012-11-07 07:00David ColeTarget Version => CMake 2.8.11
2012-12-10 19:46David ColeNote Added: 0031866
2012-12-10 19:46David ColeStatusassigned => resolved
2012-12-10 19:46David ColeFixed in Version => CMake 2.8.11
2012-12-10 19:46David ColeResolutionopen => fixed
2013-05-06 09:32Robert MaynardNote Added: 0032985
2013-05-06 09:32Robert MaynardStatusresolved => closed

Notes
(0031469)
Michi Henning   
2012-11-05 22:58   
Sorry, clarification: the issue in bug 0013121 is indeed fixed, but there is all this noise about unrecognized output from gcov. In addition, CTest terminates and does not run other post-processing commands that I have in my custom target (see below). It would be great to not get the noise and zero exit status.

Unknown gcov output line: [Removing 'ResourcePtr_test.cpp.gcda##streambuf.gcov']
Unknown gcov output line: [No executable lines]
Unknown gcov output line: [Removing 'ResourcePtr_test.cpp.gcda##istream.gcov']

   Accumulating results (each . represents one file):
    .............................................
    Covered LOC: 998
    Not covered LOC: 80
    Total LOC: 1078
    Percentage Coverage: 92.58%
Errors while running CTest
make[7]: *** [CMakeFiles/NightlyCoverage] Error 32
make[6]: *** [CMakeFiles/NightlyCoverage.dir/all] Error 2
make[5]: *** [CMakeFiles/NightlyCoverage.dir/rule] Error 2
make[4]: *** [NightlyCoverage] Error 2
make[3]: *** [CMakeFiles/coverage] Error 2
make[2]: *** [CMakeFiles/coverage.dir/all] Error 2
make[1]: *** [CMakeFiles/coverage.dir/rule] Error 2
make: *** [coverage] Error 2
(0031471)
David Cole   
2012-11-06 07:26   
Is your project publicly available? Or does it possibly demonstrate the same symptoms when building the https://github.com/dlrdave/SmallAndFast [^] project? Or can you modify that project minimally such that it does demonstrate the same symptoms?

Thanks.
(0031472)
Michi Henning   
2012-11-06 08:08   
I'm afraid the project isn't publicly available right now. I'll try and see whether I can come up with a stand-alone test case, or try with the SmallAndFast project and see what I get there.

Thanks,

Michi.
(0031476)
Michi Henning   
2012-11-06 19:47   
I can reproduce this with a trivial file added to the SmallAndFast project (attached).

To reproduce:

$ cmake .
$ make
$ make test
$ make NightlyCoverage

This produces:

$ make NightlyCoverage
Scanning dependencies of target NightlyCoverage
   Site: djembefola
   Build name: Linux-c++
Determine Nightly Start Time
   Specified time: 01:00:00 UTC
Create new tag: 20121106-0100 - Nightly
Performing coverage
   Processing coverage (each . represents one file):
    .Unknown gcov output line: [No executable lines]
Unknown gcov output line: [Removing 'x.cpp.gcda##ostream.gcov']

   Accumulating results (each . represents one file):
    .
    Covered LOC: 3
    Not covered LOC: 0
    Total LOC: 3
    Percentage Coverage: 100.00%
Errors while running CTest
make[3]: *** [CMakeFiles/NightlyCoverage] Error 32
make[2]: *** [CMakeFiles/NightlyCoverage.dir/all] Error 2
make[1]: *** [CMakeFiles/NightlyCoverage.dir/rule] Error 2
make: *** [NightlyCoverage] Error 2

My gcc version:

$ gcc --version
gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
(0031477)
David Cole   
2012-11-07 06:59   
Thanks for the steps to reproduce. I'll take a look at this one when I get a chance.
(0031866)
David Cole   
2012-12-10 19:46   
This should fix it (in CMake 'next' now):

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=61ace1df2616e472d056b302e4269cbf112fb020 [^]
(0032985)
Robert Maynard   
2013-05-06 09:32   
Closing resolved issues that have not been updated in more than 4 months.