[LLVMdev] undefined reference to 'llvm_gcda_start_file', 'llvm_gcda_emit_arcs', etc
wendling at apple.com
Wed Mar 13 22:56:11 PDT 2013
On Mar 13, 2013, at 6:06 PM, Qun Fa <testforqunfa at gmail.com> wrote:
> I am trying to test my project and get the code coverage with a version of clang compiler that was built from the latest llvm/clang codebase.
> It worked for a while. But today, after I updated my local checkout, and re-build llvm, clang and compiler-rt, when I test my project again, I got the errors with undefined reference to 'llvm_gcda_start_file', 'llvm_gcda_emit_arcs', 'llvm_gcda_emit_function', and 'llvm_gcda_end_file'.
> I have searched the codebase, and have found the functions are defined in GCDAProfiling.c file, but not sure why this suddenly doesn't work for me.
> Anyone can give any suggestions?
The 'runtime' recently removed these. You'll need to download and build compiler-rt. Put it in the 'projects' directory and it should just build when you compile LLVM.
More information about the llvm-dev