Hi Andy,> I am currently using llvm to compile memcache to get the bitcode. I simply > change all the "gcc -c" command to "clang -emit-llvm -c", and output ".o" to > ".bc". And all gcc link command to llvm-ld. By these means, I successfully get > the bitcode file, but when I run it using "lli", it fails with the error: > > UNREACHABLE executed! > 0 lli 0x087c2cab > Stack dump: > 0. Program arguments lli timedrun.bc > 1. Running Pass 'X86 Machine Code Emitter' on function @main > aborted > > I encountered the same error when executing other executables in the project. > Why does this happen? Is there any suggestions to get rid of such problem?this probably means that the bitcode contains something that is not supported by lli, such as inline assembler. Try passing the -use-mcjit option to lli. If that doesn't work, feel free to open a bugreport and attach the bitcode. Ciao, Duncan.
Dear Ciao, Duncan, Thank you for replying. I tried and the error goes away. But there comes a new error: LLVM ERROR: Unknown object format! How can I solve this problem? Thank you! BestAndy --- 12年9月18日,周二, Duncan Sands <baldrick at free.fr> 写道: 发件人: Duncan Sands <baldrick at free.fr> 主题: Re: [LLVMdev] Problems on getting UNREACHABLE executed 收件人: llvmdev at cs.uiuc.edu 日期: 2012年9月18日,周二,下午4:02 Hi Andy,> I am currently using llvm to compile memcache to get the bitcode. I simply > change all the "gcc -c" command to "clang -emit-llvm -c", and output ".o" to > ".bc". And all gcc link command to llvm-ld. By these means, I successfully get > the bitcode file, but when I run it using "lli", it fails with the error: > > UNREACHABLE executed! > 0 lli 0x087c2cab > Stack dump: > 0. Program arguments lli timedrun.bc > 1. Running Pass 'X86 Machine Code Emitter' on function @main > aborted > > I encountered the same error when executing other executables in the project. > Why does this happen? Is there any suggestions to get rid of such problem?this probably means that the bitcode contains something that is not supported by lli, such as inline assembler. Try passing the -use-mcjit option to lli. If that doesn't work, feel free to open a bugreport and attach the bitcode. Ciao, Duncan. _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120918/71e1d554/attachment.html>
Hi Andy,> Thank you for replying. I tried and the error goes away. But there comes a new > error: > > LLVM ERROR: Unknown object format! > > How can I solve this problem?I don't know, sorry. Best wishes, Duncan.> > Thank you! > > Best > Andy > --- *12年9月18日,周二, Duncan Sands /<baldrick at free.fr>/* 写道: > > > 发件人: Duncan Sands <baldrick at free.fr> > 主题: Re: [LLVMdev] Problems on getting UNREACHABLE executed > 收件人: llvmdev at cs.uiuc.edu > 日期: 2012年9月18日,周二,下午4:02 > > Hi Andy, > > > I am currently using llvm to compile memcache to get the bitcode. I simply > > change all the "gcc -c" command to "clang -emit-llvm -c", and output ".o" to > > ".bc". And all gcc link command to llvm-ld. By these means, I > successfully get > > the bitcode file, but when I run it using "lli", it fails with the error: > > > > UNREACHABLE executed! > > 0 lli 0x087c2cab > > Stack dump: > > 0. Program arguments lli timedrun.bc > > 1. Running Pass 'X86 Machine Code Emitter' on function @main > > aborted > > > > I encountered the same error when executing other executables in the project. > > Why does this happen? Is there any suggestions to get rid of such problem? > > this probably means that the bitcode contains something that is not supported > by lli, such as inline assembler. Try passing the -use-mcjit option to lli. > If that doesn't work, feel free to open a bugreport and attach the bitcode. > > Ciao, Duncan. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Possibly Parallel Threads
- [LLVMdev] Problems on getting UNREACHABLE executed
- [LLVMdev] Problems on getting UNREACHABLE executed
- [LLVMdev] Find all backedges of CFG by MachineDominatorTree. please look at my jpg.
- [LLVMdev] Problems on getting the OPT resultant bitcode
- [LLVMdev] 转发: Re: Dear Evan Chang, Re: help: about how to use tblgen to constraint operand.