Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2013 22:04:07 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Tijl Coosemans <tijl@freebsd.org>
Cc:        toolchain@FreeBSD.org
Subject:   Re: clang -fprofile-generate
Message-ID:  <C09B4DBB-8CDF-4C97-89E2-1144EAF4013A@FreeBSD.org>
In-Reply-To: <20130902214024.2af1096d@kalimero.tijl.coosemans.org>
References:  <20130902214024.2af1096d@kalimero.tijl.coosemans.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Sep 2, 2013, at 21:40, Tijl Coosemans <tijl@freebsd.org> wrote:
> I was trying to build multimedia/x264 using clang as follows:
> In the Makefile remove USE_GCC=any.
> 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/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)
> 
> 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


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)

iEYEARECAAYFAlIk70EACgkQsF6jCi4glqPAJgCfX0j0oPUBZ1D/dZz1KVFxMK6t
z6kAn0dH8m0p95swHAAuiLvD7emsntwW
=KuNm
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C09B4DBB-8CDF-4C97-89E2-1144EAF4013A>