[lldb-dev] Unable to build lldb 3.5

Richard Hadsell hadsell at blueskystudios.com
Fri Dec 12 16:58:44 PST 2014


Thanks.  I'll recommend that to my guy.  We didn't realize that lldb wasn't vetted the way clang is for an llvm release.

On 12/12/2014 05:26 PM, Enrico Granata wrote:
> Have you tried checking out LLDB trunk?
> As far as I know, for LLDB specifically, the LLVM versioning does not mark any specific stable release point - following trunk (or at least something reasonably close to trunk) is usually a good bet though - at least, if that is broken, somebody will 
> chime in and fix it!
>
>> On Dec 12, 2014, at 2:21 PM, Richard Hadsell <hadsell at blueskystudios.com <mailto:hadsell at blueskystudios.com>> wrote:
>>
>> Our sys admin has been unsuccessful building lldb 3.5 on CentOS 6.5.  We are trying to install it for the first time, because we are compiling software with clang 3.5, and TotalView does not yet support the weird debug info produced by clang.  We hope 
>> that lldb will do better.
>>
>> He was unable to build lldb 3.5 with clang 3.5, so he is using gcc 4.8.3, which we are using as the gcc-toolchain for clang builds.  It dies with this error:
>>
>> 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();
>>                                      ^
>>
>> How can we download, build, and install a version of lldb that will debug our clang-3.5-built software on CentOS 6.5?
>>
>> -- 
>> Dick Hadsell203-992-6320  Fax: 203-992-6001
>> Reply-to:hadsell at blueskystudios.com <mailto:hadsell at blueskystudios.com>
>> Blue Sky Studios                http://www.blueskystudios.com
>> 1 American Lane, Greenwich, CT 06831-2560
>>
>>
>> _______________________________________________
>> lldb-dev mailing list
>> lldb-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>
> Thanks,
> /- Enrico/
> 📩 egranata@.com ☎️ 27683
>
>
>
>

-- 

Dick Hadsell			203-992-6320  Fax: 203-992-6001
Reply-to:			hadsell at blueskystudios.com
Blue Sky Studioshttp://www.blueskystudios.com
1 American Lane, Greenwich, CT 06831-2560

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20141212/2d314465/attachment.html>


More information about the lldb-dev mailing list