[cfe-dev] clang build error

Ted Kremenek kremenek at apple.com
Sat Feb 7 15:00:07 PST 2009


Interesting.  I'm not seeing that.  Is there a 'delete' on line 391 of  
CFG.cpp?  I see an allocation, but no delete.  I suppose the 'delete'  
can be triggered if the allocation fails, but (I believe) this should  
only occur with exceptions enabled (which we normally don't compile  
LLVM or clang with).

On Feb 7, 2009, at 2:52 PM, Csaba Hruska wrote:

> Hi!
> Unfortunately clang svn trunk does not compile on my 32 bit x86 arch  
> linux with gcc 4.3.3.
> Here is the error output.
>
> Output:
> Scanning dependencies of target clangAST
> [ 87%] Building CXX object tools/clang/lib/AST/CMakeFiles/ 
> clangAST.dir/ASTContext.cpp.o
> [ 87%] Building CXX object tools/clang/lib/AST/CMakeFiles/ 
> clangAST.dir/CFG.cpp.o
> /media/disk/download/llvm/svn/llvm/tools/clang/include/clang/AST/ 
> Stmt.h: In member function  
> 'clang::CFGBlock*<unnamed>::CFGBuilder::WalkAST(clang::Stmt*, bool)':
> /media/disk/download/llvm/svn/llvm/tools/clang/include/clang/AST/ 
> Stmt.h:113: error: 'static void clang::Stmt::operator delete(void*)'  
> is protected
> /media/disk/download/llvm/svn/llvm/tools/clang/lib/AST/CFG.cpp:391:  
> error: within this context
> make[2]: *** [tools/clang/lib/AST/CMakeFiles/clangAST.dir/CFG.cpp.o]  
> Error 1
> make[1]: *** [tools/clang/lib/AST/CMakeFiles/clangAST.dir/all] Error 2
> make: *** [all] Error 2
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090207/27b03934/attachment.html>


More information about the cfe-dev mailing list