[llvm-bugs] [Bug 51653] New: [llvm-cov] convert-for-testing results in llvm-cov failure

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 27 13:52:21 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51653

            Bug ID: 51653
           Summary: [llvm-cov] convert-for-testing results in llvm-cov
                    failure
           Product: Runtime Libraries
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: libprofile library
          Assignee: unassignedbugs at nondot.org
          Reporter: keithbsmiley at gmail.com
                CC: llvm-bugs at lists.llvm.org

With these files:

```
% cat main.c
int foo() {
  return 1;
}

int main() {
  return 0;
}

% cat bar.c
int bar() {
  return 5;
}
```

Doing this:

```
clang -fprofile-instr-generate -fcoverage-mapping main.c bar.c -o main
LLVM_PROFILE_FILE="main.raw" ./main
llvm-profdata merge main.raw -o main.profdata
llvm-cov convert-for-testing  ./main -o ./main.covmapping
llvm-cov report -instr-profile main.profdata ./main.covmapping
```

Results in this failure:

```
error: ./main.covmapping: Failed to load coverage: Malformed coverage data
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210827/d7a12bbc/attachment.html>


More information about the llvm-bugs mailing list