<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - libclangTidyHICPPModule.so.6.0.0svn link error"
href="https://bugs.llvm.org/show_bug.cgi?id=35417">35417</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libclangTidyHICPPModule.so.6.0.0svn link error
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>octoploid@yandex.com
</td>
</tr>
<tr>
<th>CC</th>
<td>alexfh@google.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>With -DBUILD_SHARED_LIBS=on:
...
[3108/3491] Linking CXX shared library lib/libclangTidyHICPPModule.so.6.0.0svn
FAILED: lib/libclangTidyHICPPModule.so.6.0.0svn
: && /usr/bin/g++ -fPIC -fPIC -fvisibility-inlines-hidden -Werror=date-time
-std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -
pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor
-Wno-comment -ffunction-sections -fdata-sections -fno-common
-Woverloaded-virtual -fno-strict-aliasing -
O3 -fdiagnostics-color=always -Wno-class-memaccess -Wno-implicit-fallthrough
-march=native -pipe -Wl,-z,defs -Wl,-O3 -Wl,--gc-sections -shared
-Wl,-soname,libclangTidyHICPPModu
le.so.6 -o lib/libclangTidyHICPPModule.so.6.0.0svn
tools/clang/tools/extra/clang-tidy/hicpp/CMakeFiles/clangTidyHICPPModule.dir/ExceptionBaseclassCheck.cpp.o
tools/clang/tools/ext
ra/clang-tidy/hicpp/CMakeFiles/clangTidyHICPPModule.dir/NoAssemblerCheck.cpp.o
tools/clang/tools/extra/clang-tidy/hicpp/CMakeFiles/clangTidyHICPPModule.dir/HICPPTidyModule.cpp.o
t
ools/clang/tools/extra/clang-tidy/hicpp/CMakeFiles/clangTidyHICPPModule.dir/SignedBitwiseCheck.cpp.o
-Wl,-rpath,"\$ORIGIN/../lib" lib/libclangAST.so.6.0.0svn lib/libclangASTMatch
ers.so.6.0.0svn lib/libclangBasic.so.6.0.0svn lib/libclangLex.so.6.0.0svn
lib/libclangTidy.so.6.0.0svn
lib/libclangTidyCppCoreGuidelinesModule.so.6.0.0svn lib/libclangTidyGoogleMo
dule.so.6.0.0svn lib/libclangTidyMiscModule.so.6.0.0svn
lib/libclangTidyModernizeModule.so.6.0.0svn
lib/libclangTidyReadabilityModule.so.6.0.0svn lib/libclangTidyUtils.so.6.0.0svn
lib/libLLVMSupport.so.6.0.0svn && :
tools/clang/tools/extra/clang-tidy/hicpp/CMakeFiles/clangTidyHICPPModule.dir/HICPPTidyModule.cpp.o:HICPPTidyModule.cpp:function
std::_Function_handler<clang::tidy::ClangTidyCheck*
(llvm::StringRef, clang::tidy::ClangTidyContext*), void
clang::tidy::ClangTidyCheckFactories::registerCheck<clang::tidy::bugprone::UseAfterMoveCheck>(llvm::StringRef)::{lambda(ll
vm::StringRef, clang::tidy::ClangTidyContext*)#1}>::_M_invoke(std::_Any_data
const&, llvm::StringRef&&, clang::tidy::ClangTidyContext*&&): error: undefined
reference to 'vtable fo
r clang::tidy::bugprone::UseAfterMoveCheck'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.0.0/../../../../x86_64-pc-linux-gnu/bin/ld:
the vtable symbol may be undefined because the class is missing its key
function
collect2: error: ld returned 1 exit status
Adding lib/libclangTidyBugproneModule.so to the link command fixes the issue.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>