[lldb-dev] Issue make in Ubuntu 11.10

Charles Davis cdavis at mymail.mines.edu
Thu Mar 8 08:26:06 PST 2012


Edit <lldb>/lib/Makefile and add 'clangEdit.a' to the USEDLIBS variable.

Chip

Sent from my iPod

On Mar 8, 2012, at 8:41 AM, Francesco Fucci <fr.fucci at hotmail.it> wrote:

> Hi all,
> I tried to compile lldb following the instructions provided on the build instruction section, but i get this issue when i launch make command.
> It doesn't create the shared library
> ...
> llvm[3]: Linking Debug+Asserts Shared Library liblldb.so
> /home/rlexps/Desktop/llvm/build/Debug+Asserts/lib/libclangFrontend.a(DiagnosticRenderer.o): In function `mergeFixits':
> /home/rlexps/Desktop/llvm/tools/clang/lib/Frontend/DiagnosticRenderer.cpp:160: undefined reference to `clang::edit::Commit::insertFromRange(clang::SourceLocation, clang::CharSourceRange, bool, bool)'
> /home/rlexps/Desktop/llvm/tools/clang/lib/Frontend/DiagnosticRenderer.cpp:164: undefined reference to `clang::edit::Commit::remove(clang::CharSourceRange)'
> /home/rlexps/Desktop/llvm/tools/clang/lib/Frontend/DiagnosticRenderer.cpp:168: undefined reference to `clang::edit::Commit::replace(clang::CharSourceRange, llvm::StringRef)'
> /home/rlexps/Desktop/llvm/tools/clang/lib/Frontend/DiagnosticRenderer.cpp:170: undefined reference to `clang::edit::Commit::insert(clang::SourceLocation, llvm::StringRef, bool, bool)'
> /home/rlexps/Desktop/llvm/tools/clang/lib/Frontend/DiagnosticRenderer.cpp:176: undefined reference to `clang::edit::EditedSource::commit(clang::edit::Commit const&)'
> /home/rlexps/Desktop/llvm/tools/clang/lib/Frontend/DiagnosticRenderer.cpp:178: undefined reference to `clang::edit::EditedSource::applyRewrites(clang::edit::EditsReceiver&)'
> /home/rlexps/Desktop/llvm/build/Debug+Asserts/lib/libclangFrontend.a(DiagnosticRenderer.o): In function `clang::edit::EditsReceiver::EditsReceiver()':
> /home/rlexps/Desktop/llvm/tools/clang/lib/Frontend/../../include/clang/Edit/EditsReceiver.h:21: undefined reference to `vtable for clang::edit::EditsReceiver'
> /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)'
> /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> > >*)':
> /home/rlexps/Desktop/llvm/tools/clang/lib/Rewrite/FixItRewriter.cpp:83: undefined reference to `clang::edit::EditedSource::applyRewrites(clang::edit::EditsReceiver&)'
> /home/rlexps/Desktop/llvm/build/Debug+Asserts/lib/libclangRewrite.a(FixItRewriter.o): In function `clang::FixItRewriter::HandleDiagnostic(clang::DiagnosticsEngine::Level, clang::Diagnostic const&)':
> /home/rlexps/Desktop/llvm/tools/clang/lib/Rewrite/FixItRewriter.cpp:143: undefined reference to `clang::edit::Commit::Commit(clang::edit::EditedSource&)'
> /home/rlexps/Desktop/llvm/tools/clang/lib/Rewrite/FixItRewriter.cpp:150: undefined reference to `clang::edit::Commit::insertFromRange(clang::SourceLocation, clang::CharSourceRange, bool, bool)'
> /home/rlexps/Desktop/llvm/tools/clang/lib/Rewrite/FixItRewriter.cpp:154: undefined reference to `clang::edit::Commit::remove(clang::CharSourceRange)'
> /home/rlexps/Desktop/llvm/tools/clang/lib/Rewrite/FixItRewriter.cpp:158: undefined reference to `clang::edit::Commit::replace(clang::CharSourceRange, llvm::StringRef)'
> /home/rlexps/Desktop/llvm/tools/clang/lib/Rewrite/FixItRewriter.cpp:160: undefined reference to `clang::edit::Commit::insert(clang::SourceLocation, llvm::StringRef, bool, bool)'
> /home/rlexps/Desktop/llvm/tools/clang/lib/Rewrite/FixItRewriter.cpp:178: undefined reference to `clang::edit::EditedSource::commit(clang::edit::Commit const&)'
> /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)'
> /home/rlexps/Desktop/llvm/build/Debug+Asserts/lib/libclangSema.a(SemaExprObjC.o): In function `checkCocoaAPI':
> /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&)'
> /home/rlexps/Desktop/llvm/build/Debug+Asserts/lib/libclangSema.a(SemaExprObjC.o): In function `applyCocoaAPICheck':
> /home/rlexps/Desktop/llvm/tools/clang/lib/Sema/SemaExprObjC.cpp:1673: undefined reference to `clang::edit::Commit::Edit::getInsertFromRange(clang::SourceManager&) const'
> /home/rlexps/Desktop/llvm/tools/clang/lib/Sema/SemaExprObjC.cpp:1677: undefined reference to `clang::edit::Commit::Edit::getFileRange(clang::SourceManager&) const'
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make[3]: *** [/home/rlexps/Desktop/llvm/build/Debug+Asserts/lib/liblldb.so] Error 1
> make[3]: Leaving directory `/home/rlexps/Desktop/llvm/build/tools/lldb/lib'
> make[2]: *** [all] Error 1
> make[2]: Leaving directory `/home/rlexps/Desktop/llvm/build/tools/lldb'
> make[1]: *** [all] Error 1
> make[1]: Leaving directory `/home/rlexps/Desktop/llvm/build/tools'
> make: *** [all] Error 1
> 
> Could you suggest me how to fix this issue?
> 
> Thanks
> Francesco
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20120308/36624daf/attachment.html>


More information about the lldb-dev mailing list