llvm and llvm-gcc have been installed by ubuntu package ( apt-get install llvm llvm-gcc ).
llvm-2.8 or llvm-2.9 and llvm-gcc-4.5 were tested.
llvm-gcc hello.c -> ok.
llvm -gcc -O3 -emit-llvm hello.c -c -o hello.b-> ok
but
lli hello.bc -> error : invalid bitcode signature
In googling, I found below, but it was not useful.
There are two solution.
1. build all of things on your PC not packages, llvm and llvm-gcc.
2. using llvm-clang , I chosen this option.
apt-get insatll llvm-clang
llvm-clang ........ -> it's still ok !.
댓글 없음:
댓글 쓰기