[CMake] Coverage Tests
Daniel Stonier
d.stonier at gmail.com
Mon Dec 28 18:16:52 EST 2009
2009/12/29 Bill Hoffman <bill.hoffman at kitware.com>
> Daniel Stonier wrote:
>
>> Had a problem with coverage tests on gentoo today.
>>
>> Cmake 2.6.4-r3, g++ 4.3.2-r3, ccache 2.4-r7.
>> It couldn't find the coverage files, even with cflags and link flags
>> enabling "-fprofile-arcs -ftest-coverage". Similar worked on ubuntu no
>> problem.
>>
>> 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".
>>
>> Is this expected/normal?
>>
>>
> 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....
>
> -Bill
>
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.
--
Phone : +82-10-5400-3296 (010-5400-3296)
HomePage: http://snorriheim.dnsdojo.com/
Yujin Robot: http://www.yujinrobot.com/
Projects: http://snorriheim.dnsdojo.com/redmine/projects
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091229/41bb5192/attachment.htm>
More information about the CMake
mailing list