coverage option in clang of freebsd10

Sinha, Prokash psinha at panasas.com
Sat Aug 23 03:54:32 UTC 2014


Hello,

I was trying to get the clang/llvm going using coverage option, but it misses some archive lib.

echo "int main(void){}" | clang --coverage -v -xc -

FreeBSD pgh-octal-12-8 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

 echo "int main(void){}" | clang --coverage -v -xc -
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd10.0
Thread model: posix
 "/usr/bin/clang" -cc1 -triple x86_64-unknown-freebsd10.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name - -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -v -femit-coverage-notes -femit-coverage-data -resource-dir /usr/bin/../lib/clang/3.3 -fdebug-compilation-dir /net/panwest/sb14/sivak/clang-binaries-for-freebsd9-amd64/clang+llvm-3.3-amd64-freebsd9/bin -ferror-limit 19 -fmessage-length 128 -mstackrealign -fobjc-runtime=gnustep -fobjc-default-synthesize-properties -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o /tmp/--nHTJFB.o -x c -
clang -cc1 version 3.3 based upon LLVM 3.3 default target x86_64-unknown-freebsd10.0
ignoring nonexistent directory "/usr/bin/../lib/clang/3.3/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/clang/3.3
 /usr/include
End of search list.
 "/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=both --enable-new-dtags -o a.out /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib /tmp/--nHTJFB.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o /usr/bin/../lib/libprofile_rt.a
/usr/bin/ld: /usr/bin/../lib/libprofile_rt.a: No such file: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)

clang -v
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd10.0
Thread model: posix

Remark – An earlier version works -

-prokash



More information about the freebsd-toolchain mailing list