Created attachment 200545 [details]
- clang_7.0 tag
- uses LLVM's CMake files now
- https URL
This fails to build for me with poudriere/12.0-p2 the following error:
CMake Error at /usr/local/llvm70/lib/cmake/clang/ClangTargets.cmake:535 (message):
The imported target "clangDoc" references the file
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
but not all the files it references.
Call Stack (most recent call first):
-- Configuring incomplete, errors occurred!
I note that IWYU mentions changes to the cmake build system in the 0.11 notes:
This leads to the following pull request:
In the following commit in that PR, the docs now mention using a CMAKE_PREFIX_PATH variable for 0.11 and later:
@Greg What references were used to modify the ports CMAKE_ARGS to use LLVM_DIR and Clang_DIR?
Need to investigate further
(In reply to Kubilay Kocak from comment #1)
Well, these dirs are where the .cmake config files are, and you can see that it found them:
Looking at the pkg-plist for LLVM70, libclangDoc.a is marked with %%DOCS%%:
That looks like a mistake, DOCS is for, well, docs — not docs-related libraries.
So, that library actually belongs to %%EXTRAS%%: https://reviews.freebsd.org/D19068
A commit references this bug:
Date: Tue Apr 23 05:29:46 UTC 2019
New revision: 499716
devel/include-what-you-use: Update to 0.11
Submitted by: Greg V <greg unrelenting.technology>
Committed, thank you Greg!