[LLVMdev] llvm-gcc-4.2-2.6 build failed,
tianshuo_1
tianshuo_1 at 163.com
Fri Nov 6 03:41:29 PST 2009
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>
More information about the llvm-dev
mailing list