<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 11/22/2013 07:56 AM, Félix Cloutier
wrote:<br>
</div>
<blockquote cite="mid:88710638-4AF7-445C-8BEB-EE5E8D458BCE@yahoo.ca"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hello people,
<div><br>
</div>
<div>I got the lldb source fresh from SVN, and even after doing
the little Python dance for Mavericks (setting SDKROOT to
macosx10.8 like Jason Molenda suggested yesterday), I still get
compile errors. The linker bails out with this when it tries to
link lldb-platform:</div>
<div><br>
</div>
<div>
<div style="margin: 0px 0px 0px 12px; text-indent: -12px;
font-size: 11px; font-family: Menlo;">Undefined symbols for
architecture x86_64:</div>
<div style="margin: 0px 0px 0px 12px; text-indent: -12px;
font-size: 11px; font-family: Menlo;">
"llvm::SmallPtrSetImpl::SmallPtrSetImpl(void const**, unsigned
int, llvm::SmallPtrSetImpl&&)", referenced from:</div>
<div style="margin: 0px 0px 0px 12px; text-indent: -12px;
font-size: 11px; font-family: Menlo;">
llvm::SmallPtrSet<DWARFDebugInfoEntry const*,
4u>::SmallPtrSet(llvm::SmallPtrSet<DWARFDebugInfoEntry
const*, 4u>&&) in liblldb-core.a(SymbolFileDWARF.o)</div>
<div style="margin: 0px 0px 0px 12px; text-indent: -12px;
font-size: 11px; font-family: Menlo;">ld: symbol(s) not found
for architecture x86_64</div>
<div style="margin: 0px 0px 0px 12px; text-indent: -12px;
font-size: 11px; font-family: Menlo;">clang: error: linker
command failed with exit code 1 (use -v to see invocation)</div>
</div>
<div><br>
</div>
<div>Looking deeper, I found that it is declared like that:</div>
<div><br>
</div>
<div>
<div style="margin: 0px; font-size: 11px; font-family: Consolas;
color: rgb(120, 73, 42);">#if LLVM_HAS_RVALUE_REFERENCES</div>
<div style="margin: 0px; font-size: 11px; font-family:
Consolas;"> SmallPtrSetImpl(<span style="color: #bb2ca2">const</span>
<span style="color: #bb2ca2">void</span> **SmallStorage, <span
style="color: #bb2ca2">unsigned</span> SmallSize,</div>
<div style="margin: 0px; font-size: 11px; font-family:
Consolas;"> <span style="color: #4f8187">SmallPtrSetImpl</span>
&&that);</div>
<div style="margin: 0px; font-size: 11px; font-family: Consolas;
color: rgb(120, 73, 42);">#endif</div>
</div>
<div><br>
</div>
<div>Could it be that llvm is built without <span style="color:
rgb(120, 73, 42); font-family: Consolas; font-size: 11px;">LLVM_HAS_RVALUE_REFERENCES</span> but
lldb is built with it?</div>
<div><br>
</div>
</blockquote>
<br>
Hi Felix,<br>
<br>
I also got this problem. It comes from the fact that lldb is built
in c++11 mode (required), whereas your llvm codebase is built
without. You should compile llvm in c++11 as well, or some functions
will simply not be in the libraries.<br>
<br>
If your are using cmake, I submitted (but diid not commit) a patch
to optionally enable c++11 building with cmake a few hours ago on
the llvm-commit list. For an autoconf build, there is an
--enable-cxx11 to configure.<br>
<br>
Cheers,<br>
--<br>
Arnaud<br>
<br>
<blockquote cite="mid:88710638-4AF7-445C-8BEB-EE5E8D458BCE@yahoo.ca"
type="cite">
<div>Félix</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
lldb-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Arnaud A. de Grandmaison</pre>
</body>
</html>