[lldb-dev] [Bug 21918] New: Error compiling SBDebugger.cpp for lldb trunk

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 15 11:27:08 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21918

            Bug ID: 21918
           Summary: Error compiling SBDebugger.cpp for lldb trunk
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: hadsell at blueskystudios.com
    Classification: Unclassified

We are trying to build lldb from the trunk.  We are using gcc 4.8.3 on CentOS
6.5.  This error stops the build:

llvm[2]: Compiling SBDebugger.cpp for Release+Asserts build
/usr/local/src/llvm-3.5.0.src/tools/lldb/source/API/SBDebugger.cpp: In function
‘llvm::sys::DynamicLibrary LoadPlugin(const DebuggerSP&, const
lldb_private::FileSpec&, lldb_private::Error&)’:
/usr/local/src/llvm-3.5.0.src/tools/lldb/source/API/SBDebugger.cpp:87:137:
warning: ISO C++ forbids casting between pointer-to-function and
pointer-to-object [-Wpedantic]
         LLDBCommandPluginInit init_func =
(LLDBCommandPluginInit)dynlib.getAddressOfSymbol("_ZN4lldb16PluginInitializeENS_10SBDebuggerE");
                                                                               
                                                         ^
In file included from
/usr/local/src/llvm-3.5.0.src/tools/lldb/source/API/SBDebugger.cpp:47:0:
/usr/local/src/llvm-3.5.0.src/include/llvm/Support/DynamicLibrary.h:46:14:
error: ‘llvm::sys::DynamicLibrary::DynamicLibrary(void*)’ is private
     explicit DynamicLibrary(void *data = &Invalid) : Data(data) {}
              ^
/usr/local/src/llvm-3.5.0.src/tools/lldb/source/API/SBDebugger.cpp:107:38:
error: within this context
     return llvm::sys::DynamicLibrary();
                                      ^

-- 
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/20141215/7d2e5900/attachment.html>


More information about the lldb-dev mailing list