From owner-freebsd-toolchain@FreeBSD.ORG Mon Sep 2 19:40:31 2013 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 903DB7D5 for ; Mon, 2 Sep 2013 19:40:31 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay001.isp.belgacom.be (mailrelay001.isp.belgacom.be [195.238.6.51]) by mx1.freebsd.org (Postfix) with ESMTP id 27D802DB9 for ; Mon, 2 Sep 2013 19:40:30 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AswLAGvoJFJbsU3F/2dsb2JhbABagwd6rl4BkzsXdIMBXzQqiD2YIKB6kByEBwOQI4dRkWeDIjo Received: from 197.77-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.77.197]) by relay.skynet.be with ESMTP; 02 Sep 2013 21:40:29 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id r82JeShA058616 for ; Mon, 2 Sep 2013 21:40:28 +0200 (CEST) (envelope-from tijl@FreeBSD.org) Date: Mon, 2 Sep 2013 21:40:24 +0200 From: Tijl Coosemans To: toolchain@FreeBSD.org Subject: clang -fprofile-generate Message-ID: <20130902214024.2af1096d@kalimero.tijl.coosemans.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA256; boundary="Sig_/Qsn84yBS0B2iNkemX64=CcR"; protocol="application/pgp-signature" 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 19:40:31 -0000 --Sig_/Qsn84yBS0B2iNkemX64=CcR Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, 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. It ends in the following linker error: cc -o x264 x264.o input/input.o input/timecode.o input/raw.o input/y4m.o o= utput/raw.o output/matroska.o output/matroska_ebml.o output/flv.o output/fl= v_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 fi= lters/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) Isn't libprofile_rt.a included with the base system llvm? --Sig_/Qsn84yBS0B2iNkemX64=CcR Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iF4EAREIAAYFAlIk6awACgkQfoCS2CCgtivwjAD/YuM6UkG3rbJQYcQEZdG/UHw9 ZG8dAXrh9fWFOgE6hAkA/jFQg2CnB4ZIKselM6UJ4Mj2dHnWkkxLIJkxs05TEYpv =DWSH -----END PGP SIGNATURE----- --Sig_/Qsn84yBS0B2iNkemX64=CcR--