[LLVMdev] bug

sparkle spark727 at 163.com
Mon Jan 4 22:34:47 PST 2010


[spark at oxygen llvm]$ llvmc -clang ~/a.c 
/home2/yjhuang/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../x86_64-unknown-linux-gnu/bin/ld:
warning: cannot find entry symbol mit-llvm-bc; defaulting to
00000000004003c0
llc: bitcode didn't read correctly.
Reason: Bitcode stream should be a multiple of 4 bytes in length
出现error,加-v选项,发现是clang -x c -emit-llvm-bc /home2/spark/a.c -o
/tmp/llvm_HKq01o/a.bc 时出现warning,单独执行这一步,生成.bc文件,再用lli执行就出现了error。
[spark at oxygen llvm]$ llvmc -clang ~/a.c -v
clang -x c -emit-llvm-bc /home2/spark/a.c -o /tmp/llvm_HKq01o/a.bc 
/home2/yjhuang/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../x86_64-unknown-linux-gnu/bin/ld:
warning: cannot find entry symbol mit-llvm-bc; defaulting to
00000000004003c0
llc -f /tmp/llvm_HKq01o/a.bc -o /tmp/llvm_HKq01o/a.s 
llc: bitcode didn't read correctly.
Reason: Bitcode stream should be a multiple of 4 bytes in length
[spark at oxygen llvm]$ clang -x c -emit-llvm-bc /home2/spark/a.c -o a.bc
/home2/yjhuang/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../x86_64-unknown-linux-gnu/bin/ld:
warning: cannot find entry symbol mit-llvm-bc; defaulting to
00000000004003c0
[spark at oxygen llvm]$ lli a.bc 
lli: error loading program 'a.bc': Bitcode stream should be a multiple of 4
bytes in length
[spark at oxygen llvm]$ 

-- 
View this message in context: http://old.nabble.com/bug-tp27024284p27024284.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.





More information about the llvm-dev mailing list