[cfe-dev] error while compiling Clang

Foivos Zakkak foivos at zakkak.net
Mon May 21 14:41:44 PDT 2012


On 05/21/2012 08:17 PM, Eric Christopher wrote:
>
> On May 19, 2012, at 7:25 PM, Foivos Zakkak<foivos at zakkak.net>  wrote:
>
>> 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?
>
> 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 :)

Foivos



More information about the cfe-dev mailing list