llvm-devel 5.0.d20170114 The libclang_rt libraries are installed in /usr/local/llvm-devel/lib/freebsd while the compiler looks for them in /usr/local/llvm-devel/lib/clang/5.0.0/lib/freebsd, failing with errors like: configure:3749: clang-devel -g -O1 -march=native -mtune=native -Qunused-arguments -fsanitize=thread -I/usr/local/include -lcxxrt -L/usr/local/lib conftest.c >&5 /usr/bin/ld: /usr/local/llvm-devel/bin/../lib/clang/5.0.0/lib/freebsd/libclang_rt.tsan-x86_64.a: No such file: No such file or directory clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation) FWIW, in llvm37 they are indeed in /usr/local/llvm37/lib/clang/3.7.1/lib/freebsd so the regression must have happened between this version and -devel.
A commit references this bug: Author: brooks Date: Wed Sep 20 01:08:58 UTC 2017 New revision: 450182 URL: https://svnweb.freebsd.org/changeset/ports/450182 Log: Update to a new snapshot. Fix location of compiler_rt libraries. [0] Fix hardcoded clang-format version. [1] PR: 216950 [0], 220995 [1] Changes: head/devel/llvm-devel/Makefile head/devel/llvm-devel/Makefile.snapshot head/devel/llvm-devel/distinfo head/devel/llvm-devel/files/clang-patch-tools_clang_tools_clang-format_clang-format-sublime.py head/devel/llvm-devel/files/clang-patch-tools_clang_tools_clang-format_clang-format.py head/devel/llvm-devel/files/clang-patch-tools_clang_tools_clang-format_git-clang-format head/devel/llvm-devel/pkg-plist
I've committed a patch that seems to do the right thing for a trivial test case. Sorry for the long delay.