error while compiling Clang

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

You checked out in the middle of a patch series that went to llvm and clang. It
should be fine now if you update.

-eric

Thanks a lot!
Now it builds fine :slight_smile:

Foivos