<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - undefined reference to pthread_create"
href="https://llvm.org/bugs/show_bug.cgi?id=31616">31616</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>undefined reference to pthread_create
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>libclang
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>xiangzhai83@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>klimek@google.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=17833" name="attach_17833" title="libclang-cmake-pthread.patch">attachment 17833</a> <a href="attachment.cgi?id=17833&action=edit" title="libclang-cmake-pthread.patch">[details]</a></span>
libclang-cmake-pthread.patch
Hi clang developers,
../../../../lib/libclangIncludeFixerPlugin.a(IncludeFixerPlugin.cpp.o): In
function
`std::__future_base::_Async_state_impl<std::_Bind_simple<std::function<std::unique_ptr<clang::include_fixer::SymbolIndex,
std::default_delete<clang::include_fixer::SymbolIndex> > ()> ()>,
std::unique_ptr<clang::include_fixer::SymbolIndex,
std::default_delete<clang::include_fixer::SymbolIndex> >
<span class="quote">>::_Async_state_impl(std::_Bind_simple<std::function<std::unique_ptr<clang::include_fixer::SymbolIndex,</span >
std::default_delete<clang::include_fixer::SymbolIndex> > ()> ()>&&)':
/data/project/LLVM/llvm/tools/clang/tools/extra/include-fixer/plugin/IncludeFixerPlugin.cpp:(.text._ZNSt13__future_base17_Async_state_implISt12_Bind_simpleIFSt8functionIFSt10unique_ptrIN5clang13include_fixer11SymbolIndexESt14default_deleteIS6_EEvEEvEES9_EC2EOSD_[_ZNSt13__future_base17_Async_state_implISt12_Bind_simpleIFSt8functionIFSt10unique_ptrIN5clang13include_fixer11SymbolIndexESt14default_deleteIS6_EEvEEvEES9_EC2EOSD_]+0xdf):
undefined reference to `pthread_create'
clang-3.9: error: linker command failed with exit code 1 (use -v to see
invocation)
tools/clang/tools/libclang/CMakeFiles/libclang.dir/build.make:631: recipe for
target 'lib/libclang.so.4.0' failed
make[2]: *** [lib/libclang.so.4.0] Error 1
CMakeFiles/Makefile2:32067: recipe for target
'tools/clang/tools/libclang/CMakeFiles/libclang.dir/all' failed
make[1]: *** [tools/clang/tools/libclang/CMakeFiles/libclang.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
Workaround patched! please give me some advice, thanks a lot!
Regards,
Leslie Zhai</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>