From owner-freebsd-toolchain@FreeBSD.ORG Thu Nov 6 17:14:13 2014 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C7B40709; Thu, 6 Nov 2014 17:14:13 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0135.outbound.protection.outlook.com [157.56.110.135]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 21356C2E; Thu, 6 Nov 2014 17:14:09 +0000 (UTC) Received: from juniper.net (66.129.239.11) by BLUPR05MB182.namprd05.prod.outlook.com (10.255.190.142) with Microsoft SMTP Server (TLS) id 15.1.11.14; Thu, 6 Nov 2014 17:14:05 +0000 Date: Thu, 6 Nov 2014 09:13:57 -0800 From: Arthur Mesh To: Subject: clang and code coverage Message-ID: <20141106171357.GZ15335@juniper.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xjCTGciBHXp1jY+V" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [66.129.239.11] X-ClientProxiedBy: CO2PR06CA029.namprd06.prod.outlook.com (10.141.242.29) To BLUPR05MB182.namprd05.prod.outlook.com (10.255.190.142) X-MS-Exchange-Transport-FromEntityHeader: Hosted X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BLUPR05MB182; X-Exchange-Antispam-Report-Test: UriScan:; X-Forefront-PRVS: 0387D64A71 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(84326002)(110136001)(69596002)(71186001)(106356001)(101416001)(105586002)(95666004)(99396003)(120916001)(33026002)(19580395003)(81156004)(21056001)(19580405001)(102836001)(64706001)(512954002)(33656002)(66066001)(20776003)(54356999)(97736003)(50986999)(450100001)(36756003)(92726001)(92566001)(86362001)(229853001)(62966003)(46102003)(87976001)(77096003)(77156002)(122386002)(83506001)(2351001)(4396001)(107046002)(40100003)(31966008)(42186005); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR05MB182; H:juniper.net; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:3; A:1; LANG:en; X-OriginatorOrg: juniper.net Cc: marcel@freebsd.org 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: Thu, 06 Nov 2014 17:14:13 -0000 --xjCTGciBHXp1jY+V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Folks, Does FreeBSD's clang support code coverage? It appears to lack necessary run time libs: $ uname -a FreeBSD norse.englab.juniper.net 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r2733= 80M: Tue Oct 21 10:19:02 PDT 2014 root@norse.englab.juniper.net:/usr/ob= j/usr/src/sys/GENERIC amd64 $ clang -v FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: x86_64-unknown-freebsd11.0 Thread model: posix Selected GCC installation:=20 $ cat test.c #include =20 int main (void) { int i; =20 for (i =3D 1; i < 10; i++) { if (i % 3 =3D=3D 0) printf ("%d is divisible by 3\n", i); if (i % 11 =3D=3D 0) printf ("%d is divisible by 11\n", i); } =20 return 0; } $ clang -fprofile-arcs -ftest-coverage cov.c /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) FWIW, the same test work on MacOSX 10.10 clang. Thanks --=20 Arthur Mesh Juniper Networks +1 408 936-4968 --xjCTGciBHXp1jY+V Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQGcBAEBCAAGBQJUW6xVAAoJEO/ZUtudxDnttRAL/3SAtetBAlu0NwEZeJYQl/6y Kl6aOQzPSbpbz5eL3kc/Bw2LRWsjlpc4z8qNcFGH3dxI+ce0O0T/XbSqYES1D0YZ KaYWFhAVqziLBQShrnIuR5QKqwAcTarwaUWDQC1dslmbSVX6PvY8m4HxkCrejVEf jUyIBGDhjjZhhb8n60EloPhVliiVM50wVIOXPQEc3E77XPvC/OidS8Q1XOaU50oY DJWoFN64oUYGPmNE3Hu8YEKjLDWrWhzyBI+nxYbQKWJo5trZa4XrFs+ASLGV12cr E4HlwfAUVLuU8By7vWA27ReAWa8dFZDEuNvdLTvQBs5Kfnz3NH1rxPpE8V/bfYsC OUGzkpxvfuAnszP8QtspscCpjmyS0R5NYWN6AYR8pL2tdT8EqnuBaKxb8MlccrMc nor0cJgIBw6Qi2Mp/vLlCNSdR3IcQJ7Iby+o11ZznJnK3LdJ6cC2dbx3XB4sio1Y 7p6dLTaY7Scp9PxJOJ5kLbc7wKsq+upcmIuH0jr+Yg== =05Vi -----END PGP SIGNATURE----- --xjCTGciBHXp1jY+V-- From owner-freebsd-toolchain@FreeBSD.ORG Thu Nov 6 17:26:07 2014 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A4A07D19; Thu, 6 Nov 2014 17:26:07 +0000 (UTC) Received: from mail-lb0-x22f.google.com (mail-lb0-x22f.google.com [IPv6:2a00:1450:4010:c04::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 24EC5D62; Thu, 6 Nov 2014 17:26:07 +0000 (UTC) Received: by mail-lb0-f175.google.com with SMTP id n15so1325163lbi.34 for ; Thu, 06 Nov 2014 09:26:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=v+l6PSoejfrcp8XtfBHWy4agfJibVocYtNLUIMHoDzM=; b=VjI7pksWUed9nODuMU/C2Q6hDZ+YnSXocxWrzi7HF+R6YSzwA9f2GOytRG6hnzDW6P 6NcW6afdHhiN926Yl9TvDRy4af9mmMViiOSXqTiOWfeCNHtB5IIWdjBQycsMr5BENlan o3GNLvHVtF6kGEcRlGXqThNTqQizYJy8OC1EzvrSvi7l+kKNNPw6XJ+dCUKWmFOoeYlf uxXN+a28xPZbtzDgdm+/p+AaK6pk0FkOAa57HZjceBl170QemIZy4K6uyvCVTR28+z/p M4yzXZ6IvPAEw24cwmSiWjGmoxMC+TQCk5FAvAtTw6OV1bI/YjvMuNMFW7fmJ1szcR1+ 9Fhw== MIME-Version: 1.0 X-Received: by 10.112.16.39 with SMTP id c7mr6268194lbd.19.1415294765088; Thu, 06 Nov 2014 09:26:05 -0800 (PST) Sender: crodr001@gmail.com Received: by 10.112.130.168 with HTTP; Thu, 6 Nov 2014 09:26:04 -0800 (PST) In-Reply-To: <20141106171357.GZ15335@juniper.net> References: <20141106171357.GZ15335@juniper.net> Date: Thu, 6 Nov 2014 09:26:04 -0800 X-Google-Sender-Auth: o4ToXIdOY91aFR_gH-0oXASa7GA Message-ID: Subject: Re: clang and code coverage From: Craig Rodrigues To: Arthur Mesh Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: toolchain@freebsd.org, Marcel Moolenaar 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: Thu, 06 Nov 2014 17:26:07 -0000 On Thu, Nov 6, 2014 at 9:13 AM, Arthur Mesh wrote: > > /usr/bin/ld: /usr/bin/../lib/libprofile_rt.a: No such file: No such file > or directory > Prokash Sinha from Panasas asked the exact same question: https://lists.freebsd.org/pipermail/freebsd-toolchain/2014-August/001181.html but unfortunately no one on this list responded. It would be great if one of the toolchain experts could respond, because this would be a useful option to use in clang. -- Craig From owner-freebsd-toolchain@FreeBSD.ORG Thu Nov 6 22:27:27 2014 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E736F4CD; Thu, 6 Nov 2014 22:27:27 +0000 (UTC) Received: from tensor.andric.com (unknown [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A75F75E7; Thu, 6 Nov 2014 22:27:27 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::c3c:9f55:9881:4a18] (unknown [IPv6:2001:7b8:3a7:0:c3c:9f55:9881:4a18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id ABF6FB80A; Thu, 6 Nov 2014 23:27:23 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Subject: Re: clang and code coverage From: Dimitry Andric In-Reply-To: Date: Thu, 6 Nov 2014 23:27:21 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <9E6FCCAF-D519-4786-8E78-E0B14402E40D@FreeBSD.org> References: <20141106171357.GZ15335@juniper.net> To: Craig Rodrigues X-Mailer: Apple Mail (2.1990.1) Cc: toolchain@freebsd.org, Marcel Moolenaar , Arthur Mesh 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: Thu, 06 Nov 2014 22:27:28 -0000 On 06 Nov 2014, at 18:26, Craig Rodrigues wrote: >=20 > On Thu, Nov 6, 2014 at 9:13 AM, Arthur Mesh wrote: >=20 >>=20 >> /usr/bin/ld: /usr/bin/../lib/libprofile_rt.a: No such file: No such = file >> or directory >>=20 >=20 > Prokash Sinha from Panasas asked the exact same question: >=20 > = https://lists.freebsd.org/pipermail/freebsd-toolchain/2014-August/001181.h= tml >=20 > but unfortunately no one on this list responded. > It would be great if one of the toolchain experts could respond, = because > this would be a useful option to use in clang. It does not work now. I'm working on it in my very limited time, so I can't give any ETA. We will probably need to update compiler-rt first, though. -Dimitry