<html><head></head><body bgcolor="#FFFFFF"><div>Edit <lldb>/lib/Makefile and add 'clangEdit.a' to the USEDLIBS variable.<br><br><div>Chip</div><div><br></div>Sent from my iPod</div><div><br>On Mar 8, 2012, at 8:41 AM, Francesco Fucci <<a href="mailto:fr.fucci@hotmail.it">fr.fucci@hotmail.it</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
Hi all,<div>I tried to compile lldb following the instructions provided on the build instruction section, but i get this issue when i launch make command.</div><div>It doesn't create the shared library</div><div>...</div><div><div>llvm[3]: Linking Debug+Asserts Shared Library liblldb.so</div><div>/home/rlexps/Desktop/llvm/build/Debug+Asserts/lib/libclangFrontend.a(DiagnosticRenderer.o): In function `mergeFixits':</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Frontend/DiagnosticRenderer.cpp:160: undefined reference to `clang::edit::Commit::insertFromRange(clang::SourceLocation, clang::CharSourceRange, bool, bool)'</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Frontend/DiagnosticRenderer.cpp:164: undefined reference to `clang::edit::Commit::remove(clang::CharSourceRange)'</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Frontend/DiagnosticRenderer.cpp:168: undefined reference to `clang::edit::Commit::replace(clang::CharSourceRange, llvm::StringRef)'</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Frontend/DiagnosticRenderer.cpp:170: undefined reference to `clang::edit::Commit::insert(clang::SourceLocation, llvm::StringRef, bool, bool)'</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Frontend/DiagnosticRenderer.cpp:176: undefined reference to `clang::edit::EditedSource::commit(clang::edit::Commit const&)'</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Frontend/DiagnosticRenderer.cpp:178: undefined reference to `clang::edit::EditedSource::applyRewrites(clang::edit::EditsReceiver&)'</div><div>/home/rlexps/Desktop/llvm/build/Debug+Asserts/lib/libclangFrontend.a(DiagnosticRenderer.o): In function `clang::edit::EditsReceiver::EditsReceiver()':</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Frontend/../../include/clang/Edit/EditsReceiver.h:21: undefined reference to `vtable for clang::edit::EditsReceiver'</div><div>/home/rlexps/Desktop/llvm/build/Debug+Asserts/lib/libclangFrontend.a(DiagnosticRenderer.o):(.data.rel.ro+0x78): undefined reference to `clang::edit::EditsReceiver::remove(clang::CharSourceRange)'</div><div>/home/rlexps/Desktop/llvm/build/Debug+Asserts/lib/libclangRewrite.a(FixItRewriter.o): In function `clang::FixItRewriter::WriteFixedFiles(std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > >*)':</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Rewrite/FixItRewriter.cpp:83: undefined reference to `clang::edit::EditedSource::applyRewrites(clang::edit::EditsReceiver&)'</div><div>/home/rlexps/Desktop/llvm/build/Debug+Asserts/lib/libclangRewrite.a(FixItRewriter.o): In function `clang::FixItRewriter::HandleDiagnostic(clang::DiagnosticsEngine::Level, clang::Diagnostic const&)':</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Rewrite/FixItRewriter.cpp:143: undefined reference to `clang::edit::Commit::Commit(clang::edit::EditedSource&)'</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Rewrite/FixItRewriter.cpp:150: undefined reference to `clang::edit::Commit::insertFromRange(clang::SourceLocation, clang::CharSourceRange, bool, bool)'</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Rewrite/FixItRewriter.cpp:154: undefined reference to `clang::edit::Commit::remove(clang::CharSourceRange)'</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Rewrite/FixItRewriter.cpp:158: undefined reference to `clang::edit::Commit::replace(clang::CharSourceRange, llvm::StringRef)'</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Rewrite/FixItRewriter.cpp:160: undefined reference to `clang::edit::Commit::insert(clang::SourceLocation, llvm::StringRef, bool, bool)'</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Rewrite/FixItRewriter.cpp:178: undefined reference to `clang::edit::EditedSource::commit(clang::edit::Commit const&)'</div><div>/home/rlexps/Desktop/llvm/build/Debug+Asserts/lib/libclangRewrite.a(FixItRewriter.o):(.data.rel.ro+0x68): undefined reference to `clang::edit::EditsReceiver::remove(clang::CharSourceRange)'</div><div>/home/rlexps/Desktop/llvm/build/Debug+Asserts/lib/libclangSema.a(SemaExprObjC.o): In function `checkCocoaAPI':</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Sema/SemaExprObjC.cpp:1684: undefined reference to `clang::edit::rewriteObjCRedundantCallWithLiteral(clang::ObjCMessageExpr const*, clang::NSAPI const&, clang::edit::Commit&)'</div><div>/home/rlexps/Desktop/llvm/build/Debug+Asserts/lib/libclangSema.a(SemaExprObjC.o): In function `applyCocoaAPICheck':</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Sema/SemaExprObjC.cpp:1673: undefined reference to `clang::edit::Commit::Edit::getInsertFromRange(clang::SourceManager&) const'</div><div>/home/rlexps/Desktop/llvm/tools/clang/lib/Sema/SemaExprObjC.cpp:1677: undefined reference to `clang::edit::Commit::Edit::getFileRange(clang::SourceManager&) const'</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div>make[3]: *** [/home/rlexps/Desktop/llvm/build/Debug+Asserts/lib/liblldb.so] Error 1</div><div>make[3]: Leaving directory `/home/rlexps/Desktop/llvm/build/tools/lldb/lib'</div><div>make[2]: *** [all] Error 1</div><div>make[2]: Leaving directory `/home/rlexps/Desktop/llvm/build/tools/lldb'</div><div>make[1]: *** [all] Error 1</div><div>make[1]: Leaving directory `/home/rlexps/Desktop/llvm/build/tools'</div><div>make: *** [all] Error 1</div></div><div><br></div><div><font face="Calibri, sans-serif"><span style="font-size: 15px;">Could you suggest me how to fix this issue?</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size: 15px;"><br></span></font></div><div><font face="Calibri, sans-serif"><span style="font-size: 15px;">Thanks</span></font></div><div><font face="Calibri, sans-serif"><span style="font-size: 15px;">Francesco</span></font></div> </div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>lldb-dev mailing list</span><br><span><a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a></span><br><span><a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a></span><br></div></blockquote></body></html>