[cfe-dev] clang build error

Douglas Gregor dgregor at apple.com
Sat Feb 7 15:47:33 PST 2009


I think I have the fix, but I don't have GCC 4.3.3 easily available to  
test. Could you try the attached patch?

	- Doug



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/89518b6f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: operator-delete.patch
Type: application/octet-stream
Size: 620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090207/89518b6f/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090207/89518b6f/attachment-0001.html>


More information about the cfe-dev mailing list