[llvm-dev] Is profile data collection broken in clang-13?

Ian Collins via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 4 23:59:39 PST 2022


Hello,  I hop that this is the right place to ask this...


My system is Ubuntu 20.04.

I have a pretty standard build process for some C++ targets that runs a
bunch of tests with instrumentation enabled (-fprofile-instr-generate
and -fcoverage-mapping on compile and link) which has been working fine
up until I changed from clang-12 to clang-13 tools.


Now llvm-profdata merge reports
"warning: file.profraw: malformed instrumentation profile data"
for each profraw file.


The only change is the tool chain.


"file" describes the profraw files as LLVM raw profile data, version 6.
Running any other version of llvm-profdata produces
"unsupported instrumentation profile format version"
warnings, so the profraw file generation appears to be correctly generated.


Thanks,

Ian



More information about the llvm-dev mailing list