FS#37172 - [clang] code coverage is non-functional
Attached to Project:
Arch Linux
Opened by Cody Maloney (maloney) - Thursday, 03 October 2013, 00:24 GMT
Last edited by Evangelos Foutras (foutrelis) - Thursday, 10 July 2014, 17:37 GMT
Opened by Cody Maloney (maloney) - Thursday, 03 October 2013, 00:24 GMT
Last edited by Evangelos Foutras (foutrelis) - Thursday, 10 July 2014, 17:37 GMT
|
Details
Description:
Compiling code with clang 3.3 with code coverage turned on results in several 'undefined reference' linker errors. Bug is known upstream and has been fixed in SVN: http://llvm.org/bugs/show_bug.cgi?id=15953 Could the patches be applied to the clang package? Additional info: * clang 3.3-1 * upstream bug: http://llvm.org/bugs/show_bug.cgi?id=15953 Steps to reproduce: $cat a.c int main(){} $clang a.c --coverage /tmp/a-nq1XLY.o:a.c:function __llvm_gcov_writeout: error: undefined reference to 'llvm_gcda_start_file' /tmp/a-nq1XLY.o:a.c:function __llvm_gcov_writeout: error: undefined reference to 'llvm_gcda_emit_function' /tmp/a-nq1XLY.o:a.c:function __llvm_gcov_writeout: error: undefined reference to 'llvm_gcda_emit_arcs' /tmp/a-nq1XLY.o:a.c:function __llvm_gcov_writeout: error: undefined reference to 'llvm_gcda_end_file' /tmp/a-nq1XLY.o:a.c:function __llvm_gcov_init: error: undefined reference to 'llvm_gcov_init' clang: error: linker command failed with exit code 1 (use -v to see invocation) |
This task depends upon
Closed by Evangelos Foutras (foutrelis)
Thursday, 10 July 2014, 17:37 GMT
Reason for closing: Fixed
Additional comments about closing: clang 3.4-1
Thursday, 10 July 2014, 17:37 GMT
Reason for closing: Fixed
Additional comments about closing: clang 3.4-1
Comment by Foudil (foudfou) -
Thursday, 10 July 2014, 01:13 GMT
Comment by
Evangelos Foutras (foutrelis) -
Thursday, 10 July 2014, 01:14 GMT
- Field changed: Percent Complete (100% → 0%)
Seems broken in clang version 3.4.2 (tags/RELEASE_34/dot2-final).
Define broken; the test case provided by the original submitter
works fine for me.