Hi Andrew,<div><br></div><div>Note that I never tried compiling vmkit on ARM. From the error message you get, it looks to me that the LLVMAssembly64.ll is wrongly being compiled. You should change the configure script to not include it in the list of files to compile (or you could also just remove the code in the file).</div>
<div><br></div><div>Let me know if it helps!</div><div>Nicolas<br><br><div class="gmail_quote">On Thu, Mar 10, 2011 at 10:32 PM, Andrew Wiley <span dir="ltr"><<a href="mailto:debio264@gmail.com">debio264@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I tried to build VMKit on an ARM device today (a Sheevaplug - armv5te)<br>
(native, not cross compiled), and got this error:<br>
<br>
llvm[3]: Building LLVM assembly with<br>
/home/debio/build/vmkit-build/vmkit/lib/Mvm/Runtime/LLVMAssembly.ll<br>
/home/debio/build/vmkit-build/vmkit/lib/Mvm/Runtime/LLVMAssembly64.ll<br>
ExpandIntegerResult #0: 0x16fbf88: i64,ch = AtomicCmpSwap 0x16e8d84,<br>
0x16fbf00, 0x16fc3c8, 0x16fc1a8<Volatile LDST8[%ptr]> [ORD=4] [ID=0]<br>
<br>
Do not know how to expand the result of this operator!<br>
UNREACHABLE executed at LegalizeIntegerTypes.cpp:982!<br>
Stack dump:<br>
0.      Program arguments:<br>
/home/debio/build/vmkit-build/vmkit/../llvm//Debug+Asserts/bin/llc -o<br>
LLVMAssembly.s<br>
1.      Running pass 'Function Pass Manager' on module '<stdin>'.<br>
2.      Running pass 'ARM Instruction Selection' on function<br>
'@llvm_atomic_cmp_swap_i64'<br>
/bin/sh: line 1: 16944 Done<br>
/home/debio/build/vmkit-build/vmkit/../llvm//Debug+Asserts/bin/llvm-as<br>
-f LLVMAssembly.gen.ll -o -<br>
     16945 Aborted                 |<br>
/home/debio/build/vmkit-build/vmkit/../llvm//Debug+Asserts/bin/llc -o<br>
LLVMAssembly.s<br>
make[3]: *** [LLVMAssembly.s] Error 134<br>
make[3]: Leaving directory `/home/debio/build/vmkit-build/vmkit/lib/Mvm/Runtime'<br>
make[2]: *** [all] Error 1<br>
make[2]: Leaving directory `/home/debio/build/vmkit-build/vmkit/lib/Mvm'<br>
make[1]: *** [Mvm/.makeall] Error 2<br>
make[1]: Leaving directory `/home/debio/build/vmkit-build/vmkit/lib'<br>
make: *** [all] Error 1<br>
<br>
<br>
I was following the instructions from<br>
<a href="http://vmkit.llvm.org/get_started.html" target="_blank">http://vmkit.llvm.org/get_started.html</a> although I didn't build my own<br>
classpath, as I have a packaged version installed and I was waiting to<br>
see whether configure would pick it up automatically. From what I can<br>
tell, that doesn't seem relevant to this error.<br>
Is this something that just isn't supported on my platform, is the<br>
trunk build currently broken somehow, or am I just doing it wrong?<br>
<br>
Thanks,<br>
<font color="#888888">Andrew Wiley<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto: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>
</font></blockquote></div><br></div>