<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Dear Ciao, Duncan,<div><br></div><div>Thank you for replying. I tried and the error goes away. But there comes a new error:</div><div><br></div><div>LLVM ERROR: Unknown object format!</div><div><br></div><div>How can I solve this problem?</div><div><br></div><div>Thank you!</div><div><br></div><div>Best</div><div>Andy<br>--- <b>12年9月18日,周二, Duncan Sands <i><baldrick@free.fr></i></b> 写道:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>发件人: Duncan Sands <baldrick@free.fr><br>主题: Re: [LLVMdev] Problems on getting UNREACHABLE executed<br>收件人: llvmdev@cs.uiuc.edu<br>日期: 2012年9月18日,周二,下午4:02<br><br><div class="plainMail">Hi Andy,<br><br>> I am currently using llvm to compile memcache to get the bitcode. I simply<br>> change all the "gcc
 -c" command to "clang -emit-llvm -c", and output ".o" to<br>> ".bc". And all gcc link command to llvm-ld. By these means, I successfully get<br>> the bitcode file, but when I run it using "lli", it fails with the error:<br>><br>> UNREACHABLE executed!<br>> 0 lli 0x087c2cab<br>> Stack dump:<br>> 0. Program arguments lli timedrun.bc<br>> 1. Running Pass 'X86 Machine Code Emitter' on function @main<br>> aborted<br>><br>> I encountered the same error when executing other executables in the project.<br>> Why does this happen? Is there any suggestions to get rid of such problem?<br><br>this probably means that the bitcode contains something that is not supported<br>by lli, such as inline assembler.  Try passing the -use-mcjit option to lli.<br>If that doesn't work, feel free to open a bugreport and attach the bitcode.<br><br>Ciao, Duncan.<br><br>_______________________________________________<br>LLVM Developers mailing
 list<br><a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="/mc/compose?to=LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></div></blockquote></div></td></tr></table>