Ian Collins via llvm-dev
2022-Jan-05 07:59 UTC
[llvm-dev] Is profile data collection broken in clang-13?
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