[LLVMdev] GCC compatibility code coverage issue .

Justin Bogner justin at justinbogner.com
Tue Apr 28 08:02:11 PDT 2015


On Tuesday, April 28, 2015, Umesh Kalappa <umesh.kalappa0 at gmail.com> wrote:

> Hi All,
>
> We trying  to use clang+llvm to generate the gcc  coverage format as
>
> clang version 3.6.0
>
> $clang  --coverage -Xclang -coverage-cfg-checksum -Xclang
> -coverage-no-function-names-in-data -Xclang -coverage-version='407*'
> test.c
>
> $a.out
>
> $llvm-cov gcov test.gcda
>
> Unexpected version: *704.
> Invalid .gcno File!


The llvm-cov tool supports the 402* format, which is what clang emits by
default. If you remove the -Xclang arguments from your compilation it
should work.


> Debugging the above cause ,But any hints from experts here ,will help a
> lot .
>
> Appreciate your time ,Thank you
> ~Umesh
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu <javascript:;>         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150428/0636d93f/attachment.html>


More information about the llvm-dev mailing list