I try to build llvm-gcc-4.2-2.6.source before build and install llvm-2.6, the configure is shown bellow ../llvm-gcc-4.2/configure --prefix=/home/ts/program/ --program-prefix=llvm- --enable-llvm=/home/ts/llvm/llvm-2.6 --enable-languages=c,c++ where, it is the path where llvm-2.6 source is stored, -enable-llvm=/home/ts/llvm/llvm-2.6 the "make" gave error message as bellow: ======================================================In file included from ../../llvm-gcc-4.2/gcc/llvm-backend.cpp:23: ../../llvm-gcc-4.2/gcc/llvm-internal.h:40:35: error: llvm/System/DataTypes.h: No such file or directory ../../llvm-gcc-4.2/gcc/llvm-internal.h:44:41: error: llvm/Support/raw_os_ostream.h: No such file or directory ../../llvm-gcc-4.2/gcc/llvm-backend.cpp: In function ‘void createPerFunctionOptimizationPasses()’: ../../llvm-gcc-4.2/gcc/llvm-backend.cpp:671: error: ‘Less’ is not a member of ‘llvm::CodeGenOpt’ ../../llvm-gcc-4.2/gcc/llvm-backend.cpp: In function ‘void llvm_asm_file_end()’: ../../llvm-gcc-4.2/gcc/llvm-backend.cpp:874: error: ‘getInt8PtrTy’ is not a member of ‘llvm::Type’ ../../llvm-gcc-4.2/gcc/llvm-backend.cpp:893: error: ‘getInt8PtrTy’ is not a member of ‘llvm::Type’ ../../llvm-gcc-4.2/gcc/llvm-backend.cpp: In function ‘void AddAnnotateAttrsToGlobal(llvm::GlobalValue*, tree_node*)’: ../../llvm-gcc-4.2/gcc/llvm-backend.cpp:1171: error: ‘getInt8PtrTy’ is not a member of ‘llvm::Type’ ../../llvm-gcc-4.2/gcc/llvm-backend.cpp: In function ‘void make_decl_llvm(tree_node*)’: ../../llvm-gcc-4.2/gcc/llvm-backend.cpp:1635: error: ‘const class llvm::Type’ has no member named ‘isVoidTy’ make[3]: *** [llvm-backend.o] Error 1 make[3]: Leaving directory `/home/ts/llvm/llvm-gcc-4.2-obj/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/home/ts/llvm/llvm-gcc-4.2-obj' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/ts/llvm/llvm-gcc-4.2-obj' make: *** [all] Error 2 =========================================================== and , I found no file ,System/DataTypes.h, exist in the directory llvm-2.6/include/llvm/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091105/b0381b5d/attachment.html>
Hello> I try to build llvm-gcc-4.2-2.6.source before build and install llvm-2.6, > the configure is shown bellow > ../llvm-gcc-4.2/configure --prefix=/home/ts/program/ --program-prefix=llvm- > --enable-llvm=/home/ts/llvm/llvm-2.6 --enable-languages=c,c++ > where, it is the path where llvm-2.6 source is stored, > -enable-llvm=/home/ts/llvm/llvm-2.6You need to build llvm itself first. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
tianshuo_1 wrote:> I try to build llvm-gcc-4.2-2.6.source before build and install > llvm-2.6, the configure is shown bellowYou need to build llvm first. --enable-llvm (and not -enable-llvm) should point to the directory in which you built llvm (this may be the same as the llvm source directory if you built llvm in place). Best wishes, Duncan.
Thank you for reply, I have tried building llvm-2.6 first in place, and configure llvm-gcc-4.2 with --enable-llvm=/path\to\llvm-2.6/, but, still the same problerm, 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/. 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? 在2009-11-05,"Duncan Sands" <baldrick at 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.==================================================== try to build llvm-gcc-4.2-2.6.source before build and install llvm-2.6, the configure is shown bellow ../llvm-gcc-4.2/configure --prefix=/home/ts/program/ --program-prefix=llvm- --enable-llvm=/home/ts/llvm/llvm-2.6 --enable-languages=c,c++ where, it is the path where llvm-2.6 source is stored, -enable-llvm=/home/ts/llvm/llvm-2.6 the "make" gave error message as bellow: ======================================================In file included from ../../llvm-gcc-4.2/gcc/llvm-backend.cpp:23: ../../llvm-gcc-4.2/gcc/llvm-internal.h:40:35: error: llvm/System/DataTypes.h: No such file or directory ../../llvm-gcc-4.2/gcc/llvm-internal.h:44:41: error: llvm/Support/raw_os_ostream.h: No such file or directory ../../llvm-gcc-4.2/gcc/llvm-backend.cpp: In function ‘void createPerFunctionOptimizationPasses()’: ../../llvm-gcc-4.2/gcc/llvm-backend.cpp:671: error: ‘Less’ is not a member of ‘llvm::CodeGenOpt’ ../../llvm-gcc-4.2/gcc/llvm-backend.cpp: In function ‘void llvm_asm_file_end()’: ../../llvm-gcc-4.2/gcc/llvm-backend.cpp:874: error: ‘getInt8PtrTy’ is not a member of ‘llvm::Type’ ../../llvm-gcc-4.2/gcc/llvm-backend.cpp:893: error: ‘getInt8PtrTy’ is not a member of ‘llvm::Type’ ../../llvm-gcc-4.2/gcc/llvm-backend.cpp: In function ‘void AddAnnotateAttrsToGlobal(llvm::GlobalValue*, tree_node*)’: ../../llvm-gcc-4.2/gcc/llvm-backend.cpp:1171: error: ‘getInt8PtrTy’ is not a member of ‘llvm::Type’ ../../llvm-gcc-4.2/gcc/llvm-backend.cpp: In function ‘void make_decl_llvm(tree_node*)’: ../../llvm-gcc-4.2/gcc/llvm-backend.cpp:1635: error: ‘const class llvm::Type’ has no member named ‘isVoidTy’ make[3]: *** [llvm-backend.o] Error 1 make[3]: Leaving directory `/home/ts/llvm/llvm-gcc-4.2-obj/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/home/ts/llvm/llvm-gcc-4.2-obj' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/ts/llvm/llvm-gcc-4.2-obj' make: *** [all] Error 2 =========================================================== and , I found no file ,System/DataTypes.h, exist in the directory llvm-2.6/include/llvm/ ? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091106/505afadc/attachment.html>
> and , I found no file ,System/DataTypes.h, exist in the directory llvm-2.6/include/llvm/Are you sure you are building llvm-gcc-4.2-2.6 against llvm-2.6 and not against a version of llvm checked out from subversion? Ciao, Duncan.
oooo. I check out llvm form svn by "svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm", but not "svn co https://user at llvm.org/svn/llvm-project/llvm/trunk llvm",,,, 在2009-11-06,"Duncan Sands" <baldrick at free.fr> 写道:>> and , I found no file ,System/DataTypes.h, exist in the directory llvm-2.6/include/llvm/ > >Are you sure you are building llvm-gcc-4.2-2.6 against llvm-2.6 and not against >a version of llvm checked out from subversion? > >Ciao, > >Duncan.-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091106/c0a91ca9/attachment.html>