From owner-freebsd-toolchain@FreeBSD.ORG Sat Aug 23 03:54:32 2014 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6D69C46B for ; Sat, 23 Aug 2014 03:54:32 +0000 (UTC) Received: from natasha.panasas.com (natasha.panasas.com [209.166.131.148]) by mx1.freebsd.org (Postfix) with ESMTP id 2EE9C3829 for ; Sat, 23 Aug 2014 03:54:32 +0000 (UTC) Received: from seabiscuit.panasas.com (seabiscuit.panasas.com [172.17.132.204]) by natasha.panasas.com (8.13.1/8.13.1) with ESMTP id s7MIk2Qt009460 for ; Fri, 22 Aug 2014 14:46:03 -0400 Received: from SEABISCUIT.int.panasas.com ([172.17.132.204]) by seabiscuit ([172.17.132.204]) with mapi id 14.03.0181.006; Fri, 22 Aug 2014 11:46:03 -0700 From: "Sinha, Prokash" To: "freebsd-toolchain@freebsd.org" Subject: coverage option in clang of freebsd10 Thread-Topic: coverage option in clang of freebsd10 Thread-Index: AQHPvjlSPyw5HTdrBke87fdX8hxYgQ== Date: Fri, 22 Aug 2014 18:46:02 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.133.204] Content-Type: text/plain; charset="Windows-1252" Content-ID: <39ADF8DF4ED85D4FA4A9296F8DDC6C9E@panasas.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2014 03:54:32 -0000 Hello, I was trying to get the clang/llvm going using coverage option, but it miss= es 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 Ja= n 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENER= IC 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-mo= del static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-t= ables -target-cpu x86-64 -v -femit-coverage-notes -femit-coverage-data -res= ource-dir /usr/bin/../lib/clang/3.3 -fdebug-compilation-dir /net/panwest/sb= 14/sivak/clang-binaries-for-freebsd9-amd64/clang+llvm-3.3-amd64-freebsd9/bi= n -ferror-limit 19 -fmessage-length 128 -mstackrealign -fobjc-runtime=3Dgnu= step -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-fr= eebsd10.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-s= tyle=3Dboth --enable-new-dtags -o a.out /usr/lib/crt1.o /usr/lib/crti.o /us= r/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 /u= sr/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 invocat= ion) clang -v FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 Target: x86_64-unknown-freebsd10.0 Thread model: posix Remark =96 An earlier version works - -prokash