-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
genhtml: ERROR: unexpected .info file record 'BFH:0' #275
Comments
Looks like your version of llvm/12 is generating invalid lcov syntax. There is no valid key called The message from genhtml also tells you what to do, if you want to ignore this error rather than fixing it. WRT llvm and gcc - I had added discussion #234 on the topic, some months ago. It may (or may not) help to clarify the issues for you. |
If you say Where is the definition of the gcov format and its fields? |
There is another long discussion of exactly this in issue #113 |
llvm/llvm-project@9116211 changes the export in llvm-cov from |
I suggest replacing on #234 the text 9116211d180ca417fa93d4e97e60f4ba849d58d9 with a hyperlink to llvm/llvm-project@9116211 and the text 9f2967bcfe2f7d1fc02281f0098306c90c2c10a5 with a hyperlink to llvm/llvm-project@9f2967b . The first hyperlink makes easy to understand how to use old clang : substitute |
My understanding is that in fact the substitution |
Or just tell lcov to Seems like the bug is in certain versions of llvm/12 - but was fixed shortly after. |
I have these files:
Under Windows I execute
This utilizes clang 12 and then output1 has
In the same directory under Linux (WSL2) I execute
make linux-gcc
, which printsFor reference, the content of output2 is
My understanding is that gcov is somehow interchangeable format between clang, gcc and lcov. But BFH in this format is not understood by lcov.
LCOV version 2.0-1 (as reported on Fedora)
In any case I want to compile code under Windows with either cl.exe or clang-cl.exe and produce code coverage files. Then I want to compile and run the same source code under Linux with g++, produce other coverage files and at the end merge the code coverage files executed under both platforms. I want to see the code, which is never executed.
The text was updated successfully, but these errors were encountered: