Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2013 21:40:24 +0200
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        toolchain@FreeBSD.org
Subject:   clang -fprofile-generate
Message-ID:  <20130902214024.2af1096d@kalimero.tijl.coosemans.org>

next in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130902214024.2af1096d>