[lldb-dev] Errors generated when building lldb in Ubuntu 12.04

Bo Zheng 54tianyaguke at gmail.com
Tue Aug 28 06:54:46 PDT 2012


Hi everyone,I tried to build lldb following the instructions provided on
the build instruction section <http://lldb.llvm.org/build.html>, but I got
these errors when making lldb. I now really donot know what to do or how to
fix them. If anyone suffered the same issue ever or knows how to fix these
errors, please let me konw.
Thank you.

/home/ponus/llvm/tools/lldb/source/Expression/ClangExpressionDeclMap.cpp:1458:45:
warning:
      implicit conversion of NULL constant to 'lldb::addr_t' (aka
      'unsigned long long') [-Wnull-conversion]
        m_material_vars->m_allocated_area = NULL;
                                          ~ ^~~~
                                            0
/home/ponus/llvm/tools/lldb/source/Expression/ClangExpressionDeclMap.cpp:2487:75:
 *error: *
      member access into incomplete type 'clang::ASTContext'
  ...= method_decl->getASTContext().getPointerType(class_qual_type);
                                   ^
/home/ponus/llvm/tools/clang/include/clang/AST/APValue.h:25:9: note: forward
      declaration of 'clang::ASTContext'
  class ASTContext;
        ^
/home/ponus/llvm/tools/lldb/source/Expression/ClangExpressionDeclMap.cpp:2567:75:
 *error: *
      member access into incomplete type 'clang::ASTContext'
                QualType class_pointer_type =
method_decl->getASTContext()....
                                                                          ^
/home/ponus/llvm/tools/clang/include/clang/AST/APValue.h:25:9: note: forward
      declaration of 'clang::ASTContext'
  class ASTContext;
        ^
/home/ponus/llvm/tools/lldb/source/Expression/ClangExpressionDeclMap.cpp:2577:67:
 *error: *
      member access into incomplete type 'clang::ASTContext'
  ...QualType class_type = method_decl->getASTContext().getObjCClassType();
                                                       ^
/home/ponus/llvm/tools/clang/include/clang/AST/APValue.h:25:9: note: forward
      declaration of 'clang::ASTContext'
  class ASTContext;
        ^
/home/ponus/llvm/tools/lldb/source/Expression/ClangExpressionDeclMap.cpp:2825:49:
 *error: *
      member access into incomplete type 'clang::ASTContext'
  ...= ast_context->getFunctionNoProtoType(ast_context->UnknownAnyTy);
                  ^
/home/ponus/llvm/tools/clang/include/clang/AST/APValue.h:25:9: note: forward
      declaration of 'clang::ASTContext'
  class ASTContext;
        ^
/home/ponus/llvm/tools/lldb/source/Expression/ClangExpressionDeclMap.cpp:2826:46:
 *error: *
      member access into incomplete type 'clang::ASTContext'
  ...= ast_context->getBlockPointerType(generic_function_type);
                  ^
/home/ponus/llvm/tools/clang/include/clang/AST/APValue.h:25:9: note: forward
      declaration of 'clang::ASTContext'
  class ASTContext;
        ^
In file included from
/home/ponus/llvm/tools/lldb/source/Expression/ClangExpressionDeclMap.cpp:24:
In file included from
/home/ponus/llvm/tools/lldb/source/Expression/../../include/lldb/Core/ValueObjectConstResult.h:17:
In file included from
/home/ponus/llvm/tools/lldb/source/Expression/../../include/lldb/Core/ValueObject.h:29:
/home/ponus/llvm/tools/lldb/source/Expression/../../include/lldb/Target/Process.h:3062:19:
warning:
      private field 'm_listener' is not used [-Wunused-private-field]
        Listener *m_listener;
                  ^
5 warnings and 5 errors generated.
make[2]: ***
[/home/ponus/llvm_build/tools/lldb/source/Expression/Release+Asserts/ClangExpressionDeclMap.o]
Error 1
make[2]: Leaving directory
`/home/ponus/llvm_build/tools/lldb/source/Expression'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/ponus/llvm_build/tools/lldb/source'
make: *** [all] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20120828/6f1021a5/attachment.html>


More information about the lldb-dev mailing list