[cfe-dev] error while compiling Clang

Foivos Zakkak foivos at zakkak.net
Sat May 19 19:25:45 PDT 2012


Hello,

i am trying to compile clang (Revision: 157140)
following this steps
http://clang.llvm.org/get_started.html

but i am getting

llvm[4]: Compiling CGDebugInfo.cpp for Debug+Asserts build
.../llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp: In member function 
‘llvm::DIType 
clang::CodeGen::CGDebugInfo::CreatePointerLikeType(unsigned int, const 
clang::Type*, clang::QualType, llvm::DIFile)’:
.../llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp:582: error: no matching 
function for call to ‘llvm::DIBuilder::createReferenceType(unsigned 
int&, llvm::DIType)’
.../llvm/include/llvm/Analysis/DIBuilder.h:131: note: candidates are: 
llvm::DIType llvm::DIBuilder::createReferenceType(llvm::DIType)
.../llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp: In member function 
‘void clang::CodeGen::CGDebugInfo::EmitDeclare(const clang::VarDecl*, 
unsigned int, llvm::Value*, unsigned int, clang::CodeGen::CGBuilderTy&)’:
.../llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp:2244: error: no 
matching function for call to 
‘llvm::DIBuilder::createReferenceType(llvm::dwarf::dwarf_constants, 
llvm::DIType&)’
.../llvm/include/llvm/Analysis/DIBuilder.h:131: note: candidates are: 
llvm::DIType llvm::DIBuilder::createReferenceType(llvm::DIType)
.../llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp:2251: error: no 
matching function for call to 
‘llvm::DIBuilder::createReferenceType(llvm::dwarf::dwarf_constants, 
llvm::DIType&)’
.../llvm/include/llvm/Analysis/DIBuilder.h:131: note: candidates are: 
llvm::DIType llvm::DIBuilder::createReferenceType(llvm::DIType)
make[4]: *** 
[.../llvm_build/tools/clang/lib/CodeGen/Debug+Asserts/CGDebugInfo.o] Error 1

Is this a bug in the svn or am i doing something wrong?

Thank you
Foivos



More information about the cfe-dev mailing list