# Steps to reproduce Build any C or C++ project (e.g. PostgreSQL) using: ``` CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage" LDFLAGS="-lgcov" ``` # Expected result Code compiles and generates coverage information (*.gcda files) during `make check` # Actual result ./configure fails with following error --- /usr/bin/ld: /usr/local/llvm38/bin/../lib/clang/3.8.0/lib/freebsd/libclang_rt.profile-x86_64.a: No such file: No such file or directory
compiler-rt doesn't build in tree any more, but also doesn't build property out of tree. It should be entirely possible to fix, but I have not had time to do so. *** This bug has been marked as a duplicate of bug 208900 ***
A commit references this bug: Author: brooks Date: Sun Apr 24 16:14:09 UTC 2016 New revision: 413948 URL: https://svnweb.freebsd.org/changeset/ports/413948 Log: Upgrade to a new snapshot. Build compiler-rt alongside LLVM. It requires clang headers that we don't install because they are incompatible with FreeBSD headers. To make this work, configure and build compiler-rt in the post-build phase against the built, but not yet installed llvm tree. PR: 208900, 208923 Changes: head/MOVED head/devel/Makefile head/devel/compiler-rt-devel/ head/devel/llvm-devel/Makefile head/devel/llvm-devel/Makefile.snapshot head/devel/llvm-devel/distinfo head/devel/llvm-devel/pkg-plist
A commit references this bug: Author: brooks Date: Sun Apr 24 17:44:55 UTC 2016 New revision: 413953 URL: https://svnweb.freebsd.org/changeset/ports/413953 Log: Build compiler-rt on i386 and amd64. It should be possible to enable on other other architectures, but I have no way to build the PLIST_FILES variables. PR: 208900, 208923 Changes: head/devel/llvm38/Makefile head/devel/llvm38/distinfo head/devel/llvm38/files/compiler-rt-patch-svn-261229 head/devel/llvm38/pkg-plist