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

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@cs.uiuc.edu
Reporter hadsell@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();
                                      ^