[lldb-dev] Errors generated when building lldb in Ubuntu 12.04
Malea, Daniel
daniel.malea at intel.com
Tue Aug 28 08:17:45 PDT 2012
I have seen similar (maybe even the same) errors when I accidentally tried to build lldb with HEAD revisions of llvm/clang/both; lldb requires a slightly older revision. To determine the current requirement, do:
> grep -m 1 llvm_revision $lldb/scripts/build-llvm.pl
As of this morning, I am able to build lldb HEAD (on Ubuntu 11.10) with the following revisions of llvm and clang:
llvm - git sha1 61dfa77fce2b6b6261e43334aec060129eac5c6c - svn rev 152264
clang - git sha1 9ea396a886d46a9329817ad0a8c423510634d889 - svn rev 152239
Good luck,
Dan
On 2012-08-28, at 9:54 AM, Bo Zheng wrote:
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
_______________________________________________
lldb-dev mailing list
lldb-dev at cs.uiuc.edu<mailto:lldb-dev at cs.uiuc.edu>
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
More information about the lldb-dev
mailing list