<div dir="ltr">I had the same problem. And I've fixed it by using <span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"> </span><samp style="color:rgb(0,0,0)"><span class="">-fprofile-arcs</span></samp><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"> </span><samp style="color:rgb(0,0,0)"><span class="">-ftest-coverage</span></samp> instead of <span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"> </span><samp style="color:rgb(0,0,0)"><span class="">--coverage flag.</span></samp><div><samp style="color:rgb(0,0,0)"><span class=""><br></span></samp></div><div><samp style><span class=""><font color="#000000"><a href="https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html">https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html</a></font><br></span></samp></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 28, 2015 at 6:52 AM, Umesh Kalappa <span dir="ltr"><<a href="mailto:umesh.kalappa0@gmail.com" target="_blank">umesh.kalappa0@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
We trying to use clang+llvm to generate the gcc coverage format as<br>
<br>
clang version 3.6.0<br>
<br>
$clang --coverage -Xclang -coverage-cfg-checksum -Xclang<br>
-coverage-no-function-names-in-data -Xclang -coverage-version='407*'<br>
test.c<br>
<br>
$a.out<br>
<br>
$llvm-cov gcov test.gcda<br>
<br>
Unexpected version: *704.<br>
Invalid .gcno File!<br>
<br>
Debugging the above cause ,But any hints from experts here ,will help a lot .<br>
<br>
Appreciate your time ,Thank you<br>
~Umesh<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>