<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">hi,everyone,as the 'getting started ' page <br>http://clang.llvm.org/get_started.html<br>says ,I check out llvm ,and compile it succssfully.<br>then I checked out clang source files.<br>I run commands:<br><tt>touch empty.c; gcc -v empty.c -fsyntax-only<br>its output is :<br>"<br>Using built-in specs.<br>Target: i386-undermydesk-freebsd<br>Configured with: FreeBSD/i386 system compiler<br>Thread model: posix<br>gcc version 4.2.1 20070719  [FreeBSD]<br> /usr/libexec/cc1 -quiet -v -D_LONGLONG empty.c -quiet -dumpbase empty.c -auxbase empty -version -fsyntax-only -o /dev/null<br>ignoring duplicate directory "/usr/include"<br>#include "..." search starts here:<br>#include <...> search starts here:<br> /usr/include<br>End of search list.<br>GNU C version 4.2.1 20070719  [FreeBSD]
 (i386-undermydesk-freebsd)<br>        compiled by GNU C version 4.2.1 20070719  [FreeBSD].<br>GGC heuristics: --param ggc-min-expand=46 --param ggc-min-heapsize=31156<br>Compiler executable checksum: 5208351120a90a18f603e3b485bf8c2b<br></tt>"<br>I append this statement:<br>    //FreeBSD<br>    AddPath("/usr/include", System, true, false, false);<br>to function <br>void InitHeaderSearch::AddDefaultSystemIncludePaths(const LangOptions &Lang) <br>in file clang/lib/Driver/<tt>InitHeaderSearch.cpp<br>then gmake clang,it failed.Its output is <br>"llvm[2]: Compiling CGExprConstant.cpp for Debug build <br>CGExprConstant.cpp: In member function 'llvm::Constant*<unnamed>::ConstExprEmitter::EmitUnionInitialization(clang::InitListExpr*)':<br>CGExprConstant.cpp:241: error: 'const class llvm::TargetData' has no member named 'getTypePaddedSize'<br>gmake[2]: ***
 [/usr/home/lujd/projects/llvm/tools/clang/lib/CodeGen/Debug/CGExprConstant.o] Error 1<br>gmake[2]: Leaving directory `/usr/home/lujd/projects/llvm/tools/clang/lib/CodeGen'<br>gmake[1]: *** [CodeGen/.makeall] Error 2<br>gmake[1]: Leaving directory `/usr/home/lujd/projects/llvm/tools/clang/lib'<br>gmake: *** [all] Error 1"<br><br>Please help me.Thanks.<br><br><br><br></tt></td></tr></table><br>


      <hr size=1><a href="http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/">  好玩贺卡等你发,邮箱贺卡全新上线!</a>