Skip to content

clang support? #30

Description

@suurjaak

Is this package expected to work with clang? When following the instructions, the result of a coverage run is:

/usr/bin/lcov -c -i -d . -o my_package_coverage_report.base
Capturing coverage data from .
Found gcov version: 9.3.0
Using intermediate gcov format
Scanning . for .gcno files ...
Found 9 graph files in .
Processing test_mytest.dir/test/test_mytest.cpp.gcno
/home/user/dev/build/my_package/CMakeFiles/test_mytest.dir/test/test_mytest.cpp.gcno:version '402*', prefer 'A93*'
geninfo: ERROR: GCOV failed for /home/user/dev/build/my_package/CMakeFiles/test_mytest.dir/test/test_mytest.cpp.gcno!
make[3]: *** [CMakeFiles/my_package_coverage_report_cleanup_cpp.dir/build.make:59: CMakeFiles/my_package_coverage_report_cleanup_cpp] Error 255

And when I do gcov /home/user/dev/build/my_package/CMakeFiles/test_mytest.dir/test/test_mytest.cpp.gcno manually, I get

/home/user/dev/build/my_package/CMakeFiles/test_mytest.dir/test/test_mytest.cpp.gcno:version '402*', prefer 'A93*'
Segmentation fault (core dumped)

But when I do llvm-cov gcov /home/user/dev/build/my_package/CMakeFiles/test_mytest.dir/test/test_mytest.cpp.gcno, it does display some coverage info.

Or is this just a local workspace configuration problem?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions