If I have this correct, you want LLDB to be able to debug software compiled with clang 3.5. You don't care what version LLDB is built against, it just has to be able to debug clang 3.5 executables.<div><br></div><div>If this is the case, you will need to create a separate repository for building clang and lldb. The repository you build LLDB against should have LLVM, clang, and LLDB all at trunk. You can still build clang against 3.5 in your separate repository.</div><div><br></div><div>The issue here seems to be that an API change was made in LLVM 3.5 which LLDB at trunk won't build against.<br><br><div class="gmail_quote">On Mon Dec 15 2014 at 11:29:09 AM Enrico Granata <<a href="mailto:egranata@apple.com" target="_blank">egranata@apple.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>To be honest, things have been compiling just fine around here for a while, but I work on OS X with clang, so your luck may vary.</div><div><br></div><div>Do you have a trunk LLVM as well?</div><div>As for bugs, LLVM has a bugzilla you could use.</div></div><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On Dec 15, 2014, at 10:40 AM, Richard Hadsell <<a href="mailto:hadsell@blueskystudios.com" target="_blank">hadsell@blueskystudios.com</a>> wrote:</div><br><div>
<div bgcolor="#FFFFFF" text="#000000">
I misunderstood what my sys admin told me. He was building lldb
from the trunk, when g++ 4.8.3 gave that error. Has there been a
fix for it in the last few days? How do I report a bug like this?<br>
<br>
<div>On 12/12/2014 07:58 PM, Richard Hadsell
wrote:<br>
</div>
<blockquote type="cite">
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.<br>
<br>
<div>On 12/12/2014 05:26 PM, Enrico
Granata wrote:<br>
</div>
<blockquote type="cite">
<div>Have you tried checking out LLDB trunk?</div>
<div>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!</div>
<br>
<div>
<blockquote type="cite">
<div>On Dec 12, 2014, at 2:21 PM, Richard Hadsell
<<a href="mailto:hadsell@blueskystudios.com" target="_blank">hadsell@blueskystudios.com</a>>
wrote:</div>
<br>
<div>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.<br>
<br>
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:<br>
<br>
llvm[2]: Compiling SBDebugger.cpp for Release+Asserts
build<br>
/usr/local/src/llvm-3.5.0.src/<u></u>tools/lldb/source/API/<u></u>SBDebugger.cpp:
In function ‘llvm::sys::DynamicLibrary LoadPlugin(const
DebuggerSP&, const lldb_private::FileSpec&,
lldb_private::Error&)’:<br>
/usr/local/src/llvm-3.5.0.src/<u></u>tools/lldb/source/API/<u></u>SBDebugger.cpp:87:137:
warning: ISO C++ forbids casting between
pointer-to-function and pointer-to-object [-Wpedantic]<br>
LLDBCommandPluginInit init_func =
(LLDBCommandPluginInit)dynlib.<u></u>getAddressOfSymbol("_<u></u>ZN4lldb16PluginInitializeENS_<u></u>10SBDebuggerE");<br>
^<br>
In file included from
/usr/local/src/llvm-3.5.0.src/<u></u>tools/lldb/source/API/<u></u>SBDebugger.cpp:47:0:<br>
/usr/local/src/llvm-3.5.0.src/<u></u>include/llvm/Support/<u></u>DynamicLibrary.h:46:14:
error: ‘llvm::sys::DynamicLibrary::<u></u>DynamicLibrary(void*)’
is private<br>
explicit DynamicLibrary(void *data = &Invalid) :
Data(data) {}<br>
^<br>
/usr/local/src/llvm-3.5.0.src/<u></u>tools/lldb/source/API/<u></u>SBDebugger.cpp:107:38:
error: within this context<br>
return llvm::sys::DynamicLibrary();<br>
<u></u> ^<br>
<br>
How can we download, build, and install a version of lldb
that will debug our clang-3.5-built software on CentOS
6.5?<br>
<br>
</div>
</blockquote>
</div>
<br>
<div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div>Thanks,</div>
<div><i>- Enrico</i><br>
📩 egranata@<font color="#ff2600"></font>.com ☎️
27683</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</blockquote>
<br>
<pre cols="256">--
Dick Hadsell 203-992-6320 Fax: 203-992-6001
Reply-to: <a href="mailto:hadsell@blueskystudios.com" target="_blank">hadsell@blueskystudios.com</a>
Blue Sky Studios <a href="http://www.blueskystudios.com/" target="_blank">http://www.blueskystudios.com</a>
1 American Lane, Greenwich, CT 06831-2560
</pre>
</div>
</div></blockquote></div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div>Thanks,</div><div><i>- Enrico</i><br>📩 egranata@<font color="#ff2600"></font>.com ☎️ 27683</div><div><br></div></div></div></div></div></div><br><br>
</div>
<br></div>______________________________<u></u><u></u>_________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailm<u></u>an/listinfo/lldb-dev</a><br>
</blockquote></div></div>