From owner-freebsd-toolchain@FreeBSD.ORG Mon Sep 2 20:04:34 2013 Return-Path: Delivered-To: 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 ESMTP id 2746C186; Mon, 2 Sep 2013 20:04:34 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DBD802F3A; Mon, 2 Sep 2013 20:04:33 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::516e:d65:dc6:78f8] (unknown [IPv6:2001:7b8:3a7:0:516e:d65:dc6:78f8]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 666D25C44; Mon, 2 Sep 2013 22:04:20 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_932AA156-535F-49F8-A661-54D54F48E6CB"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: clang -fprofile-generate From: Dimitry Andric In-Reply-To: <20130902214024.2af1096d@kalimero.tijl.coosemans.org> Date: Mon, 2 Sep 2013 22:04:07 +0200 Message-Id: References: <20130902214024.2af1096d@kalimero.tijl.coosemans.org> To: Tijl Coosemans X-Mailer: Apple Mail (2.1508) Cc: toolchain@FreeBSD.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Sep 2013 20:04:34 -0000 --Apple-Mail=_932AA156-535F-49F8-A661-54D54F48E6CB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Sep 2, 2013, at 21:40, Tijl Coosemans wrote: > I was trying to build multimedia/x264 using clang as follows: > In the Makefile remove USE_GCC=3Dany. > In option dialog on leave PGO on. >=20 > It ends in the following linker error: >=20 > cc -o x264 x264.o input/input.o input/timecode.o input/raw.o = input/y4m.o output/raw.o output/matroska.o output/matroska_ebml.o = output/flv.o output/flv_bytestream.o filters/filters.o = filters/video/video.o filters/video/source.o filters/video/internal.o = filters/video/resize.o filters/video/cache.o filters/video/fix_vfr_pts.o = filters/video/select_every.o filters/video/crop.o filters/video/depth.o = input/thread.o libx264.a -m32 -fstack-protector -fstack-protector = -L/usr/local/lib -lm -pthread -fprofile-generate > /usr/bin/ld: /usr/bin/../lib/libprofile_rt.a: No such file: No such = file or directory > cc: error: linker command failed with exit code 1 (use -v to see = invocation) >=20 > Isn't libprofile_rt.a included with the base system llvm? Nope, not currently. Last time I tried building it, it didn't yet work properly. The library gets used in at link time, but I don't see where any entry point to it gets called. I did not have time yet to take a deeper look at it. For now, profile generation should be disabled for x264. -Dimitry --Apple-Mail=_932AA156-535F-49F8-A661-54D54F48E6CB Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iEYEARECAAYFAlIk70EACgkQsF6jCi4glqPAJgCfX0j0oPUBZ1D/dZz1KVFxMK6t z6kAn0dH8m0p95swHAAuiLvD7emsntwW =KuNm -----END PGP SIGNATURE----- --Apple-Mail=_932AA156-535F-49F8-A661-54D54F48E6CB--