[lldb-dev] Linker error on fresh working copy

Félix Cloutier felixcca at yahoo.ca
Thu Nov 21 22:56:05 PST 2013


Hello people,

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:

Undefined symbols for architecture x86_64:
  "llvm::SmallPtrSetImpl::SmallPtrSetImpl(void const**, unsigned int, llvm::SmallPtrSetImpl&&)", referenced from:
      llvm::SmallPtrSet<DWARFDebugInfoEntry const*, 4u>::SmallPtrSet(llvm::SmallPtrSet<DWARFDebugInfoEntry const*, 4u>&&) in liblldb-core.a(SymbolFileDWARF.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Looking deeper, I found that it is declared like that:

#if LLVM_HAS_RVALUE_REFERENCES
  SmallPtrSetImpl(const void **SmallStorage, unsigned SmallSize,
                  SmallPtrSetImpl &&that);
#endif

Could it be that llvm is built without LLVM_HAS_RVALUE_REFERENCES but lldb is built with it?

Félix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20131122/5a883276/attachment.html>


More information about the lldb-dev mailing list