2009/12/29 Bill Hoffman <span dir="ltr"><<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Daniel Stonier wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Had a problem with coverage tests on gentoo today.<br>
<br>
Cmake 2.6.4-r3, g++ 4.3.2-r3, ccache 2.4-r7. <br>
It couldn't find the coverage files, even with cflags and link flags enabling "-fprofile-arcs -ftest-coverage". Similar worked on ubuntu no problem.<br>
<br>
A workaround for it I found was to explicitly link in the gcov library, so with link flags it became "-fprofile-arcs -ftest-coverage -lgcov".<br>
<br>
Is this expected/normal?<br>
<br>
</blockquote>
<br></div>
So, if you build a program on gentoo and do not add -lgcov does it produce coverage files when run? Sounds like a gcc issue. CMake just looks for the coverage files, if they are not there, it will not find them....<br>
<font color="#888888">
<br>
-Bill<br>
</font></blockquote><br>Actually, turned out I jumped the gun sorry - an earlier change didn't kick in till I did this and it seemed that this was the cause instead. The real problem is with ccache. I upgraded ccache to the unstable version - looks like they've fixed things there. Sorry for the false start.<br clear="all">
<br>-- <br>Phone : +82-10-5400-3296 (010-5400-3296)<br>HomePage: <a href="http://snorriheim.dnsdojo.com/">http://snorriheim.dnsdojo.com/</a><br>Yujin Robot: <a href="http://www.yujinrobot.com/">http://www.yujinrobot.com/</a><br>
Projects: <a href="http://snorriheim.dnsdojo.com/redmine/projects">http://snorriheim.dnsdojo.com/redmine/projects</a><br>