<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 - ClangTidyTests fail to link w/ shared libclang-cpp+libLLVM: undefined reference to `llvm::Annotations::Annotations(llvm::StringRef)'"
href="https://bugs.llvm.org/show_bug.cgi?id=48931">48931</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ClangTidyTests fail to link w/ shared libclang-cpp+libLLVM: undefined reference to `llvm::Annotations::Annotations(llvm::StringRef)'
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>mgorny@gentoo.org
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Blocks</th>
<td>48902
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24436" name="attach_24436" title="sys-devel:clang-12.0.0_rc1:20210129-005431.log.xz">attachment 24436</a> <a href="attachment.cgi?id=24436&action=edit" title="sys-devel:clang-12.0.0_rc1:20210129-005431.log.xz">[details]</a></span>
sys-devel:clang-12.0.0_rc1:20210129-005431.log.xz
Attaching the complete build log.
The linker errors follow. I suspect it's missing proper linking to
libLLVMTestingSupport, I am going to try patching it in a minute.
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
tools/extra/unittests/clang-tidy/CMakeFiles/ClangTidyTests.dir/ClangTidyOptionsTest.cpp.o:
in function
`clang::tidy::test::ParseConfiguration_CollectDiags_Test::TestBody()':
ClangTidyOptionsTest.cpp:(.text._ZN5clang4tidy4test36ParseConfiguration_CollectDiags_Test8TestBodyEv+0x62):
undefined reference to `llvm::Annotations::Annotations(llvm::StringRef)'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
ClangTidyOptionsTest.cpp:(.text._ZN5clang4tidy4test36ParseConfiguration_CollectDiags_Test8TestBodyEv+0x24c):
undefined reference to `llvm::Annotations::range(llvm::StringRef) const'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
ClangTidyOptionsTest.cpp:(.text._ZN5clang4tidy4test36ParseConfiguration_CollectDiags_Test8TestBodyEv+0x263):
undefined reference to `llvm::Annotations::range(llvm::StringRef) const'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
ClangTidyOptionsTest.cpp:(.text._ZN5clang4tidy4test36ParseConfiguration_CollectDiags_Test8TestBodyEv+0x39a):
undefined reference to `llvm::Annotations::Annotations(llvm::StringRef)'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
ClangTidyOptionsTest.cpp:(.text._ZN5clang4tidy4test36ParseConfiguration_CollectDiags_Test8TestBodyEv+0x88f):
undefined reference to `llvm::Annotations::range(llvm::StringRef) const'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
ClangTidyOptionsTest.cpp:(.text._ZN5clang4tidy4test36ParseConfiguration_CollectDiags_Test8TestBodyEv+0x8a6):
undefined reference to `llvm::Annotations::range(llvm::StringRef) const'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
tools/extra/unittests/clang-tidy/CMakeFiles/ClangTidyTests.dir/ClangTidyOptionsTest.cpp.o:
in function `clang::tidy::test::(anonymous
namespace)::DiagRangeMatcherP<llvm::Annotations::Range>::gmock_Impl<clang::tidy::test::(anonymous
namespace)::DiagCollecter::Diag const&>::FormatDescription(bool) const':
ClangTidyOptionsTest.cpp:(.text._ZNK5clang4tidy4test12_GLOBAL__N_117DiagRangeMatcherPIN4llvm11Annotations5RangeEE10gmock_ImplIRKNS2_13DiagCollecter4DiagEE17FormatDescriptionEb+0xe4):
undefined reference to `llvm::operator<<(llvm::raw_ostream&,
llvm::Annotations::Range const&)'
collect2: error: ld returned 1 exit status</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - [meta] 12.0.0 Release Blockers"
href="https://bugs.llvm.org/show_bug.cgi?id=48902">Bug 48902</a>] [meta] 12.0.0 Release Blockers
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>