<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><font class="Apple-style-span" size="2">Hi,</font><div style="font-size: 10pt; "><br></div><div style="font-size: 10pt; ">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:</div><div style="font-size: 10pt; "><br></div><div style="font-size: 10pt; ">UNREACHABLE executed!</div><div style="font-size: 10pt; ">0 lli 0x087c2cab</div><div style="font-size: 10pt; ">Stack dump:</div><div style="font-size: 10pt; ">0. Program arguments lli timedrun.bc</div><div style="font-size: 10pt; ">1. Running Pass 'X86 Machine Code Emitter' on function @main</div><div style="font-size: 10pt; ">aborted</div><div style="font-size:
 10pt; "><br></div><div style="font-size: 10pt; ">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? </div><div style="font-size: 10pt; "><br></div><div style="font-size: 10pt; ">Thank you</div><div style="font-size: 10pt; "><br></div><div style="font-size: 10pt; ">Best</div><div style="font-size: 10pt; ">Andy</div><div><div id="yiv1424394391" style="font-size: 10pt; "></div></div></td></tr></table>