[lldb-dev] [Bug 33817] New: Fails to build on gcc 5.4.0 and libstdc++ 6 because bind is missing in TaskPool.h

via lldb-dev lldb-dev at lists.llvm.org
Mon Jul 17 07:44:32 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33817

            Bug ID: 33817
           Summary: Fails to build on gcc 5.4.0 and libstdc++ 6 because
                    bind is missing in TaskPool.h
           Product: lldb
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: joshkergan at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18805
  --> https://bugs.llvm.org/attachment.cgi?id=18805&action=edit
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’

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20170717/2bb1699a/attachment.html>


More information about the lldb-dev mailing list