You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When llvm-cov tries to open an .gcda file created by clang the following error is showed:
warning: Using the gcov compatible mode (this behaviour may be dropped in the future).
Unexpected number of edges (in _Z4testi).
Invalid .gcda File!
And when I tried to open with gcov (4.6.4) the following message appeared:
test.gcno:version '402*', prefer '406*'
test.gcda:version '402*', prefer version '406*'
test.gcno:'_Z4testi' has arcs from exit block
test.gcno:'main' has arcs from exit block
File 'test.cpp'
Lines executed:83.33% of 6
test.cpp:creating 'test.cpp.gcov'
The text was updated successfully, but these errors were encountered:
So I am planning on applying something like the patch that's here, as it makes sense to warn instead of failing, but the real problem is that clang's generating bogus coverage data right now.
In r223193 we started emitting the exit block second instead of last, but this isn't compatible with how gcov worked before 4.7 or 4.8. Since we claim we're generating gcov 4.2 compatible output, the gcov data we're outputting is pretty bogus. Some discussion of this is ongoing on the r223193 review thread:
Extended Description
When llvm-cov tries to open an .gcda file created by clang the following error is showed:
warning: Using the gcov compatible mode (this behaviour may be dropped in the future).
Unexpected number of edges (in _Z4testi).
Invalid .gcda File!
And when I tried to open with gcov (4.6.4) the following message appeared:
test.gcno:version '402*', prefer '406*'
test.gcda:version '402*', prefer version '406*'
test.gcno:'_Z4testi' has arcs from exit block
test.gcno:'main' has arcs from exit block
File 'test.cpp'
Lines executed:83.33% of 6
test.cpp:creating 'test.cpp.gcov'
The text was updated successfully, but these errors were encountered: