<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 - Fails to build on gcc 5.4.0 and libstdc++ 6 because bind is missing in TaskPool.h"
href="https://bugs.llvm.org/show_bug.cgi?id=33817">33817</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Fails to build on gcc 5.4.0 and libstdc++ 6 because bind is missing in TaskPool.h
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>4.0
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>joshkergan@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=18805" name="attach_18805" title="Fixed header file">attachment 18805</a> <a href="attachment.cgi?id=18805&action=edit" title="Fixed header file">[details]</a></span>
Fixed header file
Error is return by ninja on gcc 5.4.0 on ArchLinux when linking against
libstdc++.
I attached the fix that allowed me to build lldb on my computer. I just added
<functional> to TaskPool.h
FAILED: tools/lldb/source/Utility/CMakeFiles/lldbUtility.dir/TaskPool.cpp.o
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -DHAVE_PROCESS_VM_READV -DHAVE_ROUND
-DLIBXML2_DEFINED -DLLDB_USE_BUILTIN_DEMANGLER -D_DEBUG -D_GNU_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Itools/lldb/source/Utility
-I/home/jkergan/Development/llvm/tools/lldb/source/Utility
-I/home/jkergan/Development/llvm/tools/lldb/include -Itools/lldb/include
-Iinclude -I/home/jkergan/Development/llvm/include -I/usr/include/python2.7
-I/home/jkergan/Development/llvm/tools/clang/include
-Itools/lldb/../clang/include -I/usr/include/libxml2
-I/home/jkergan/Development/llvm/tools/lldb/source/.
-I/home/jkergan/Development/llvm/tools/lldb/source/Plugins/Process/Linux
-I/home/jkergan/Development/llvm/tools/lldb/source/Plugins/Process/POSIX -fPIC
-fvisibility-inlines-hidden -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
-Werror=date-time -std=c++11 -Wno-deprecated-declarations -Wno-unknown-pragmas
-Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -g
-fno-exceptions -fno-rtti -MD -MT
tools/lldb/source/Utility/CMakeFiles/lldbUtility.dir/TaskPool.cpp.o -MF
tools/lldb/source/Utility/CMakeFiles/lldbUtility.dir/TaskPool.cpp.o.d -o
tools/lldb/source/Utility/CMakeFiles/lldbUtility.dir/TaskPool.cpp.o -c
/home/jkergan/Development/llvm/tools/lldb/source/Utility/TaskPool.cpp
In file included from
/home/jkergan/Development/llvm/tools/lldb/source/Utility/TaskPool.cpp:10:0:
/home/jkergan/Development/llvm/tools/lldb/include/lldb/Utility/TaskPool.h: In
static member function ‘static std::future<typename
std::result_of<_Functor(_ArgTypes ...)>::type> TaskPool::AddTask(F&&, Args&&
...)’:
/home/jkergan/Development/llvm/tools/lldb/include/lldb/Utility/TaskPool.h:122:12:
error: ‘bind’ is not a member of ‘std’
std::bind(std::forward<F>(f), std::forward<Args>(args)...));
^~~~
/home/jkergan/Development/llvm/tools/lldb/include/lldb/Utility/TaskPool.h:122:12:
note: suggested alternative: ‘end’
std::bind(std::forward<F>(f), std::forward<Args>(args)...));
^~~~
end
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-vla-extension’
cc1plus: warning: unrecognized command line option ‘-Wno-deprecated-register’</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>