Date: Thu, 08 Dec 2022 16:24:23 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 268247] devel/cvise: fix build with devel/llvm15 installed Message-ID: <bug-268247-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268247 Bug ID: 268247 Summary: devel/cvise: fix build with devel/llvm15 installed Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dim@FreeBSD.org CC: brooks@FreeBSD.org, swills@FreeBSD.org CC: brooks@FreeBSD.org, swills@FreeBSD.org During an exp-run for llvm 15 (see bug 265425), it turned out that devel/cv= ise failed to build if devel/llvm15 is also installed: =20 /wrkdirs/usr/ports/devel/cvise/work/cvise-2.4.0/clang_delta/ExpressionDetec= tor.cpp:62:16: error: 'InclusionDirective' marked 'override' but does not override any mem= ber functions virtual void InclusionDirective(SourceLocation HashLoc, ^ =20 /wrkdirs/usr/ports/devel/cvise/work/cvise-2.4.0/clang_delta/ExpressionDetec= tor.cpp:62:16: warning: '(anonymous namespace)::IncludesPPCallbacks::InclusionDirective' h= ides overloaded virtual function [-Woverloaded-virtual] /usr/local/llvm15/include/clang/Lex/PPCallbacks.h:127:16: note: hidden overloaded virtual function 'clang::PPCallbacks::InclusionDirective' declar= ed here: type mismatch at 6th parameter ('Optional<clang::FileEntryRef>' vs 'c= onst 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 f= rom 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268247-7788>