FreeBSD Bugzilla – Attachment 238636 Details for
Bug 268247
devel/cvise: fix build with devel/llvm15 installed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
devel/cvise: fix build with devel/llvm15 installed
devel__cvise-fix-llvm15-build-1.diff (text/plain), 2.24 KB, created by
Dimitry Andric
on 2022-12-08 16:24:46 UTC
(
hide
)
Description:
devel/cvise: fix build with devel/llvm15 installed
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2022-12-08 16:24:46 UTC
Size:
2.24 KB
patch
obsolete
>commit dc30639f301905d382b40effac7ac3123ba1b1ee >Author: Dimitry Andric <dim@FreeBSD.org> >Date: Thu Dec 8 17:18:19 2022 +0100 > > devel/cvise: fix build with devel/llvm15 installed > > During an exp-run for llvm 15 (see bug 265425), it turned out that > devel/cvise failed to build if devel/llvm15 is also installed: > > /wrkdirs/usr/ports/devel/cvise/work/cvise-2.4.0/clang_delta/ExpressionDetector.cpp:62:16: error: 'InclusionDirective' marked 'override' but does not override any member functions > virtual void InclusionDirective(SourceLocation HashLoc, > ^ > /wrkdirs/usr/ports/devel/cvise/work/cvise-2.4.0/clang_delta/ExpressionDetector.cpp:62:16: warning: '(anonymous namespace)::IncludesPPCallbacks::InclusionDirective' hides overloaded virtual function [-Woverloaded-virtual] > /usr/local/llvm15/include/clang/Lex/PPCallbacks.h:127:16: note: hidden overloaded virtual function 'clang::PPCallbacks::InclusionDirective' declared here: type mismatch at 6th parameter ('Optional<clang::FileEntryRef>' vs 'const clang::FileEntry *') > virtual void InclusionDirective(SourceLocation HashLoc, > ^ > 1 warning and 1 error generated. > > This is because during the configure phase, it picks up > ClangConfig.cmake from the llvm13 package, but LLVMConfig.cmake from the > llvm15 package: > > -- Found LLVM 15.0.6 > -- Using LLVMConfig.cmake in /usr/local/llvm15/lib/cmake/llvm > -- Using ClangConfig.cmake in /usr/local/llvm13/lib/cmake/clang > -- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.9.15", minimum required is "3.6") > > Add a -DLLVM_DIR flag to CMAKE_ARGS to point to the correct directory > for LLVMConfig.cmake. > >diff --git a/devel/cvise/Makefile b/devel/cvise/Makefile >index db4966e611c5..ad0cbc1a1283 100644 >--- a/devel/cvise/Makefile >+++ b/devel/cvise/Makefile >@@ -30,6 +30,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \ > # 260 passed, 1 skipped in 64.82 seconds > > USES= cmake python:3.6+ shebangfix >+CMAKE_ARGS+= -DLLVM_DIR:PATH=${LOCALBASE}/llvm${LLVM_VER}/lib/cmake/llvm > CMAKE_ARGS+= -DClang_DIR:PATH=${LOCALBASE}/llvm${LLVM_VER}/lib/cmake/clang > LLVM_VER= 13 > SHEBANG_FILES= cvise-delta.py cvise.py
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 268247
: 238636