View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013657CMakeCTestpublic2012-11-05 21:082013-05-06 09:32
ReporterMichi Henning 
Assigned ToDavid Cole 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSUbuntuOS Version12.10
Product VersionCMake 2.8.10 
Target VersionCMake 2.8.11Fixed in VersionCMake 2.8.11 
Summary0013657: Fix for bug 0013121 not working
DescriptionAfter 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']
TagsNo tags attached.
Attached Filesgz file icon SmallAndFast.tar.gz [^] (4,586 bytes) 2012-11-06 19:44

 Relationships
related to 0013121closedDavid Cole CTestCoverage Unknown gcov output line in gcc 4.7 

  Notes
(0031469)
Michi Henning (reporter)
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 (manager)
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 (reporter)
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 (reporter)
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 (manager)
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 (manager)
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 (manager)
2013-05-06 09:32

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-11-05 21:08 Michi Henning New Issue
2012-11-05 22:58 Michi Henning Note Added: 0031469
2012-11-06 01:12 Eric NOULARD Relationship added related to 0013121
2012-11-06 07:26 David Cole Note Added: 0031471
2012-11-06 08:08 Michi Henning Note Added: 0031472
2012-11-06 19:44 Michi Henning File Added: SmallAndFast.tar.gz
2012-11-06 19:47 Michi Henning Note Added: 0031476
2012-11-07 06:59 David Cole Note Added: 0031477
2012-11-07 07:00 David Cole Assigned To => David Cole
2012-11-07 07:00 David Cole Status new => assigned
2012-11-07 07:00 David Cole Target Version => CMake 2.8.11
2012-12-10 19:46 David Cole Note Added: 0031866
2012-12-10 19:46 David Cole Status assigned => resolved
2012-12-10 19:46 David Cole Fixed in Version => CMake 2.8.11
2012-12-10 19:46 David Cole Resolution open => fixed
2013-05-06 09:32 Robert Maynard Note Added: 0032985
2013-05-06 09:32 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team