[cfe-dev] Almost there...

AlisdairM(public) public at alisdairm.net
Fri Jun 5 05:24:18 PDT 2009


> -----Original Message-----
> From: Eli Friedman [mailto:eli.friedman at gmail.com]
> Sent: 04 June 2009 22:21
> To: AlisdairM(public)
> Cc: cfe-dev at cs.uiuc.edu
> Subject: Re: [cfe-dev] Almost there...

> TableGen isn't a builtin CMake command; it's part of LLVM.  AFAIK, if
> you have clang source tree in "tools/clang" in an LLVM source tree,
> building LLVM with CMake should automatically build clang as well.

Thanks - that seemed to do the trick <g>
I had downloaded Clang before LLVM so it was not nested in the LLVM tree.

Now my last problem - I am getting a couple of compiler errors trying to
build the CodeGen library, so can't link the final clang-cc.  Are these a
known issue?

...\clang\lib\CodeGen\CGBuiltin.cpp(271) : error C2039: 'BIalloca' : is not
a member of 'clang::Builtin'
...\clang\lib\CodeGen\CGBuiltin.cpp(271) : error C2065: 'BIalloca' :
undeclared identifier
...\clang\lib\CodeGen\CGBuiltin.cpp(271) : error C2051: case expression not
constant

...\clang\lib\CodeGen\CGCall.cpp(1757) : error C2039: 'NoRedZone' : is not a
member of 'llvm::Attribute'
...\clang\lib\CodeGen\CGCall.cpp(1757) : error C2065: 'NoRedZone' :
undeclared identifier


Otherwise, I look ready-to-go.

AlisdairM





More information about the cfe-dev mailing list