From owner-freebsd-toolchain@FreeBSD.ORG Mon Sep 2 20:15:14 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 7875C3B3; Mon, 2 Sep 2013 20:15:14 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-pb0-x233.google.com (mail-pb0-x233.google.com [IPv6:2607:f8b0:400e:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4E7D72FAC; Mon, 2 Sep 2013 20:15:14 +0000 (UTC) Received: by mail-pb0-f51.google.com with SMTP id jt11so5062876pbb.38 for ; Mon, 02 Sep 2013 13:15:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=zlRyL4hjFRxvcwHGjq223cD1zIEsoo7opHT56T3FC6o=; b=R7mqESOsIpbxiGq5b3t54d1SNXoAIcRrZqRJY3DbMJ2y4wnrAzA/Oc5QZ/zynkt3X+ vCXKZbwCIcdUzQbUQHXwBvE+m/x1xmd9eYZaMlsvLZ6WOnEGWSOn4fI2Bv7ptx1ZbMfg QYYY6KB79oQ+BktQ28EcYjGrlvCiZuTmgBu82GfIeXKAY7WiF5t2V8jCdaLrPMj87VJi qERxEB8ck3pIRH76VEqw/QRPI39FATOFt9NnSxjQCXkEOgYoAL7vKVSnXlmdlVZilHVV iYgxDwiUVL5HRxLJ5wpavw2i+bskbWWtuNkcdrwQ4OrrtqdKzldGcEktMrl4BJuocbCa M0iA== MIME-Version: 1.0 X-Received: by 10.68.182.225 with SMTP id eh1mr3723044pbc.172.1378152913924; Mon, 02 Sep 2013 13:15:13 -0700 (PDT) Received: by 10.68.129.99 with HTTP; Mon, 2 Sep 2013 13:15:13 -0700 (PDT) In-Reply-To: <20130902214024.2af1096d@kalimero.tijl.coosemans.org> References: <20130902214024.2af1096d@kalimero.tijl.coosemans.org> Date: Mon, 2 Sep 2013 16:15:13 -0400 Message-ID: Subject: Re: clang -fprofile-generate From: "illoai@gmail.com" To: Tijl Coosemans Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:15:14 -0000 On 2 September 2013 15:40, Tijl Coosemans wrote: > 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= 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/sour= ce.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 invocati= on) > > Isn't libprofile_rt.a included with the base system llvm? -CURRENT or -STABLE? It seems to only exist here (9.2-RC3 amd64) as /usr/local/lib/libprofile_rt.a which is installed by devel/llvm-devel (3.4-something). --=20 --