[cfe-dev] Building clang on Win 7 with Vis C++ 2008,

Rolf Banting rolf.b.mr at gmail.com
Sun Sep 19 06:48:56 PDT 2010


My Configuration:

Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
Version 3.5 SP1

Installed Edition: VC Express

Microsoft Visual C++ 2008   91909-152-0000052-60589
Microsoft Visual C++ 2008

The Problem:

Followed steps on http://clang.llvm.org/get_started.html. Had to change the
svn co lines slightly.

Build mostly goes OK except for LLVMCodeGen:

1>..\..\..\..\..\llvm\tools\clang\lib\CodeGen\CGDebugInfo.cpp(67) : error
C2784: 'cast_retty<X,Y*>::ret_type llvm::dyn_cast_or_null(Y *)' : could not
deduce template argument for 'Y *' from 'llvm::WeakVH'
Refers to source line:     return
llvm::DIDescriptor(dyn_cast_or_null<llvm::MDNode>(I->second));

I: llvm::DenseMap<const Decl *, llvm::WeakVH>::iterator

1>..\..\..\..\..\llvm\tools\clang\lib\CodeGen\CGDebugInfo.cpp(1484) : error
C2784: 'cast_retty<X,Y*>::ret_type llvm::dyn_cast_or_null(Y *)' : could not
deduce template argument for 'Y *' from 'llvm::WeakVH'
Refers to source line:      llvm::DIDescriptor
SP(dyn_cast_or_null<llvm::MDNode>(FI->second));

FI : llvm::DenseMap<const FunctionDecl *, llvm::WeakVH>::iterator

Looks like compiler can't make a Y* from  llvmWeakVH.

Any ideas?

Thanks,

Rolf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100919/e7666d89/attachment.html>


More information about the cfe-dev mailing list