FS#29984 - [clang] -coverage is broken
Attached to Project:
Arch Linux
Opened by Cody Maloney (maloney) - Wednesday, 23 May 2012, 09:57 GMT
Last edited by Evangelos Foutras (foutrelis) - Wednesday, 23 May 2012, 19:30 GMT
Opened by Cody Maloney (maloney) - Wednesday, 23 May 2012, 09:57 GMT
Last edited by Evangelos Foutras (foutrelis) - Wednesday, 23 May 2012, 19:30 GMT
|
Details
Description:
Clang 3.1 doesn't find libprofile_rt.a when compiling with code coverage. Additional info: Currently using Clang 3.1-1 in testing Steps to reproduce: $cat a.cc int main() {} $clang++ -coverage a.cc /usr/bin/ld.gold: error: cannot open /usr/bin/../lib/libprofile_rt.a: No such file or directory /tmp/a-6Rfqa2.o:a.cc:function __llvm_gcov_writeout: error: undefined reference to 'llvm_gcda_start_file' /tmp/a-6Rfqa2.o:a.cc:function __llvm_gcov_writeout: error: undefined reference to 'llvm_gcda_emit_function' /tmp/a-6Rfqa2.o:a.cc:function __llvm_gcov_writeout: error: undefined reference to 'llvm_gcda_emit_arcs' /tmp/a-6Rfqa2.o:a.cc:function __llvm_gcov_writeout: error: undefined reference to 'llvm_gcda_end_file' clang: error: linker command failed with exit code 1 (use -v to see invocation) |
This task depends upon
Closed by Evangelos Foutras (foutrelis)
Wednesday, 23 May 2012, 19:30 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in clang 3.1-2.
Wednesday, 23 May 2012, 19:30 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in clang 3.1-2.