<div>Thank you for reply, <br><br>I have tried building llvm-2.6 first in place, and configure llvm-gcc-4.2 with --enable-llvm=/path\to\llvm-2.6/,<br>but, still the same problerm,<br>and there's no files missed reported in the error message, such as "lvm/System/DataTypes.h", in the file system including /usr/include and ~/llvm/llvm-2.6/include/.<br><br>May these files should be generated during llvm-2.6 building? I have compiled llvm-2.6 successfully and installed it in another directory, what's the reason for the problem?<br><br></div><div></div><br><pre>在2009-11-05,"Duncan Sands" <baldrick@free.fr> 写道:
>Please do not reply to me personally: reply to the list.  That way
>others can comment, and the discussion is archived (which benefits
>people who have the same problem at some later time).
>
>> ok, I have tried building llvm-2.6 first, in the same directory as 
>> source, and installed it in another directory.....but, the same problerm
>
>Did you change -enable-llvm to --enable-llvm?
>
>Best wishes,
>
>Duncan.<br><br><br>=====================================================<br> try to build llvm-gcc-4.2-2.6.source before build and install llvm-2.6, the configure is shown bellow<br>../llvm-gcc-4.2/configure<br>--prefix=/home/ts/program/ --program-prefix=llvm-<br>--enable-llvm=/home/ts/llvm/llvm-2.6 --enable-languages=c,c++<br>where, it is the path where llvm-2.6 source is stored, -enable-llvm=/home/ts/llvm/llvm-2.6<br><br>the "make" gave error message as bellow:<br>=======================================================<br>In file included from ../../llvm-gcc-4.2/gcc/llvm-backend.cpp:23:<br>../../llvm-gcc-4.2/gcc/llvm-internal.h:40:35: error: llvm/System/DataTypes.h: No such file or directory<br>../../llvm-gcc-4.2/gcc/llvm-internal.h:44:41: error: llvm/Support/raw_os_ostream.h: No such file or directory<br>../../llvm-gcc-4.2/gcc/llvm-backend.cpp: In function ‘void createPerFunctionOptimizationPasses()’:<br>../../llvm-gcc-4.2/gcc/llvm-backend.cpp:671: error: ‘Less’ is not a member of ‘llvm::CodeGenOpt’<br>../../llvm-gcc-4.2/gcc/llvm-backend.cpp: In function ‘void llvm_asm_file_end()’:<br>../../llvm-gcc-4.2/gcc/llvm-backend.cpp:874: error: ‘getInt8PtrTy’ is not a member of ‘llvm::Type’<br>../../llvm-gcc-4.2/gcc/llvm-backend.cpp:893: error: ‘getInt8PtrTy’ is not a member of ‘llvm::Type’<br>../../llvm-gcc-4.2/gcc/llvm-backend.cpp: In function ‘void AddAnnotateAttrsToGlobal(llvm::GlobalValue*, tree_node*)’:<br>../../llvm-gcc-4.2/gcc/llvm-backend.cpp:1171: error: ‘getInt8PtrTy’ is not a member of ‘llvm::Type’<br>../../llvm-gcc-4.2/gcc/llvm-backend.cpp: In function ‘void make_decl_llvm(tree_node*)’:<br>../../llvm-gcc-4.2/gcc/llvm-backend.cpp:1635: error: ‘const class llvm::Type’ has no member named ‘isVoidTy’<br>make[3]: *** [llvm-backend.o] Error 1<br>make[3]: Leaving directory `/home/ts/llvm/llvm-gcc-4.2-obj/gcc'<br>make[2]: *** [all-stage1-gcc] Error 2<br>make[2]: Leaving directory `/home/ts/llvm/llvm-gcc-4.2-obj'<br>make[1]: *** [stage1-bubble] Error 2<br>make[1]: Leaving directory `/home/ts/llvm/llvm-gcc-4.2-obj'<br>make: *** [all] Error 2<br>============================================================<br><br>and , I found no file ,System/DataTypes.h, exist in the directory llvm-2.6/include/llvm/<br><br> </pre><br><br><span title="neteasefooter"/><hr/>
<a href="http://allyes.nie.163.com/main/adfclick?db=afanie&bid=1254,611,23&cid=145,4,1&sid=1351&show=ignore&url=http://tx2.163.com/fab.html">09年新晋3D主流网游《天下贰》,网易六年亿资打造</a>
</span>