<div>>> grumble, grumble, I was hoping that there were no dependencies that require clang to be built with RTTI. I'll undo this change. std::tr1::shared_ptr requiring RTTI looks like a bug in libstdc++. Maybe we can get the owner >of the lldb-linux buildbot to update g++ on that machine.<br>
>Peter? Galina?<br></div>
<div>Sounds reasonable to me.<br>Peter, could you take care of this, please?</div>
<div> </div>
<div>Thanks</div>
<div> </div>
<div>Galina<br><br></div>
<div class="gmail_quote">On Wed, Feb 22, 2012 at 1:11 PM, Charles Davis <span dir="ltr"><<a href="mailto:cdavis@mymail.mines.edu">cdavis@mymail.mines.edu</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><br>On Feb 22, 2012, at 2:02 PM, Benjamin Kramer wrote:<br><br>><br>> On 22.02.2012, at 21:52, Charles Davis wrote:<br>
><br>>> Hi Benjamin,<br>>><br>>> On Feb 22, 2012, at 12:19 PM, Benjamin Kramer wrote:<br>>><br>>>> Author: d0k<br>>>> Date: Wed Feb 22 13:19:01 2012<br>>>> New Revision: 151187<br>
>>><br>>>> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=151187&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=151187&view=rev</a><br>>>> Log:<br>>>> Enable RTTI for the Makefile build, hopefully getting the linux build a bit further.<br>
>> You do realize that with this change, LLVM and Clang must now also be built with RTTI on, right? Otherwise, at least I get linker failures like these:<br>><br>> grumble, grumble, I was hoping that there were no dependencies that require clang to be built with RTTI. I'll undo this change. std::tr1::shared_ptr requiring RTTI looks like a bug in libstdc++. Maybe we can get the owner of the lldb-linux buildbot to update g++ on that machine.<br>
Peter? Galina?<br><br>Chip<br><br>><br>> - Ben<br>><br>>><br>>> llvm[3]: Linking Release Shared Library liblldb.dylib<br>>> Undefined symbols for architecture x86_64:<br>>> "__ZTIN5clang12SemaConsumerE", referenced from:<br>
>>     __ZTIN12lldb_private20ASTResultSynthesizerE in liblldbExpression.a(ASTResultSynthesizer.o)<br>>>     __ZTIN12lldb_private18ASTStructExtractorE in liblldbExpression.a(ASTStructExtractor.o)<br>>> "__ZTIN4llvm16JITMemoryManagerE", referenced from:<br>
>>     __ZTIN12lldb_private22RecordingMemoryManagerE in liblldbExpression.a(RecordingMemoryManager.o)<br>>> "__ZTIN5clang18DiagnosticConsumerE", referenced from:<br>>>     __ZTI22NullDiagnosticConsumer in liblldbSymbol.a(ClangASTContext.o)<br>
>> "__ZTIN5clang11ASTImporterE", referenced from:<br>>>     __ZTIN12lldb_private16ClangASTImporter6MinionE in liblldbSymbol.a(ClangASTImporter.o)<br>>> "__ZTIN5clang17ExternalASTSourceE", referenced from:<br>
>>     __ZTIN12lldb_private28ClangExternalASTSourceCommonE in liblldbSymbol.a(ClangExternalASTSourceCommon.o)<br>>> ld: symbol(s) not found for architecture x86_64<br>>> clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>
>><br>>> (Note: I'm on a Mac, so YMMV.)<br>>><br>>> Chip<br>>><br>>>><br>>>> Modified:<br>>>>  lldb/trunk/Makefile<br>>>><br>>>> Modified: lldb/trunk/Makefile<br>
>>> URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/Makefile?rev=151187&r1=151186&r2=151187&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/Makefile?rev=151187&r1=151186&r2=151187&view=diff</a><br>
>>> ==============================================================================<br>>>> --- lldb/trunk/Makefile (original)<br>>>> +++ lldb/trunk/Makefile Wed Feb 22 13:19:01 2012<br>>>> @@ -25,6 +25,9 @@<br>
>>> # Set LLVM source root level.<br>>>> LEVEL := $(LLDB_LEVEL)/../..<br>>>><br>>>> +# shared_ptr from libstdc++ requires RTTI.<br>>>> +REQUIRES_RTTI := 1<br>>>> +<br>
>>> # Include LLVM common makefile.<br>>>> include $(LEVEL)/Makefile.common<br>>>><br>>>><br>>>><br>>>> _______________________________________________<br>>>> lldb-commits mailing list<br>
>>> <a href="mailto:lldb-commits@cs.uiuc.edu">lldb-commits@cs.uiuc.edu</a><br>>>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits</a><br>
>><br>><br><br></blockquote></div><br>