[Lldb-commits] [lldb] r151187 - /lldb/trunk/Makefile

Charles Davis cdavis at mymail.mines.edu
Wed Feb 22 13:11:19 PST 2012


On Feb 22, 2012, at 2:02 PM, Benjamin Kramer wrote:

> 
> On 22.02.2012, at 21:52, Charles Davis wrote:
> 
>> Hi Benjamin,
>> 
>> On Feb 22, 2012, at 12:19 PM, Benjamin Kramer wrote:
>> 
>>> Author: d0k
>>> Date: Wed Feb 22 13:19:01 2012
>>> New Revision: 151187
>>> 
>>> URL: http://llvm.org/viewvc/llvm-project?rev=151187&view=rev
>>> Log:
>>> Enable RTTI for the Makefile build, hopefully getting the linux build a bit further.
>> 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:
> 
> 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.
Peter? Galina?

Chip

> 
> - Ben
> 
>> 
>> llvm[3]: Linking Release Shared Library liblldb.dylib
>> Undefined symbols for architecture x86_64:
>> "__ZTIN5clang12SemaConsumerE", referenced from:
>>     __ZTIN12lldb_private20ASTResultSynthesizerE in liblldbExpression.a(ASTResultSynthesizer.o)
>>     __ZTIN12lldb_private18ASTStructExtractorE in liblldbExpression.a(ASTStructExtractor.o)
>> "__ZTIN4llvm16JITMemoryManagerE", referenced from:
>>     __ZTIN12lldb_private22RecordingMemoryManagerE in liblldbExpression.a(RecordingMemoryManager.o)
>> "__ZTIN5clang18DiagnosticConsumerE", referenced from:
>>     __ZTI22NullDiagnosticConsumer in liblldbSymbol.a(ClangASTContext.o)
>> "__ZTIN5clang11ASTImporterE", referenced from:
>>     __ZTIN12lldb_private16ClangASTImporter6MinionE in liblldbSymbol.a(ClangASTImporter.o)
>> "__ZTIN5clang17ExternalASTSourceE", referenced from:
>>     __ZTIN12lldb_private28ClangExternalASTSourceCommonE in liblldbSymbol.a(ClangExternalASTSourceCommon.o)
>> ld: symbol(s) not found for architecture x86_64
>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>> 
>> (Note: I'm on a Mac, so YMMV.)
>> 
>> Chip
>> 
>>> 
>>> Modified:
>>>  lldb/trunk/Makefile
>>> 
>>> Modified: lldb/trunk/Makefile
>>> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/Makefile?rev=151187&r1=151186&r2=151187&view=diff
>>> ==============================================================================
>>> --- lldb/trunk/Makefile (original)
>>> +++ lldb/trunk/Makefile Wed Feb 22 13:19:01 2012
>>> @@ -25,6 +25,9 @@
>>> # Set LLVM source root level.
>>> LEVEL := $(LLDB_LEVEL)/../..
>>> 
>>> +# shared_ptr from libstdc++ requires RTTI.
>>> +REQUIRES_RTTI := 1
>>> +
>>> # Include LLVM common makefile.
>>> include $(LEVEL)/Makefile.common
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> lldb-commits mailing list
>>> lldb-commits at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits
>> 
> 





More information about the lldb-commits mailing list