[LLVMdev] llvm-gcc-4.2-2.6 build failed,

tianshuo_1 tianshuo_1 at 163.com
Thu Nov 5 03:44:34 PST 2009


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>


More information about the llvm-dev mailing list