[cfe-dev] failed to compile clange on FreeBSD7.1

Douglas Gregor dgregor at apple.com
Tue Jan 13 08:03:20 PST 2009


On Jan 13, 2009, at 4:06 AM, Jiandong Lu wrote:
>
> void InitHeaderSearch::AddDefaultSystemIncludePaths(const  
> LangOptions &Lang)
> in file clang/lib/Driver/InitHeaderSearch.cpp
> then gmake clang,it failed.Its output is
> "llvm[2]: Compiling CGExprConstant.cpp for Debug build
> CGExprConstant.cpp: In member function  
> 'llvm 
> ::Constant 
> *< 
> unnamed 
> >::ConstExprEmitter::EmitUnionInitialization(clang::InitListExpr*)':
> CGExprConstant.cpp:241: error: 'const class llvm::TargetData' has no  
> member named 'getTypePaddedSize'
> gmake[2]: *** [/usr/home/lujd/projects/llvm/tools/clang/lib/CodeGen/ 
> Debug/CGExprConstant.o] Error 1
> gmake[2]: Leaving directory `/usr/home/lujd/projects/llvm/tools/ 
> clang/lib/CodeGen'
> gmake[1]: *** [CodeGen/.makeall] Error 2
> gmake[1]: Leaving directory `/usr/home/lujd/projects/llvm/tools/ 
> clang/lib'
> gmake: *** [all] Error 1"

You need to update to the latest LLVM in Subversion.

   - Doug

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


More information about the cfe-dev mailing list