Thanks Alysson.<br>Unfortunately, those instructions don't work for me (I followed them exactly using <br>a clean system) -- probably because of the recent changes<br>to the svn heads.<br><br>After fixing EscapeAnalysis in vmkit to use the updated CallInst.getArgOperand interface<br>
I hit the error below.<br><br>I was interested in using mmtk with the system (as recommended), but that requires a llvm-gcc build (and additional<br>config parameters). None of this works for me despite multiple tries (32bit, 64bit, different distros of Ubuntu).<br>
<br>If anyone is able to build vmkit and get it to run without a segfault (for any <br>distro/arch), using mmtk or the default collector/installation (as described in the vmkit page or <br>Alysson's writeup) using the svn head of llvm and vmkit, please let me know.  <br>
<br>thanks<br>Z<br><br>...<br>llvm[1]: Compiling vmjc.cpp for Debug build<br>llvm[1]: Linking Debug executable vmjc<br>/home/zoewolk/RESEARCH/vmkit/Debug/lib/libGCMmap2.a(gcinit.o): In function `mvm::Collector::initialise()':<br>
/home/zoewolk/RESEARCH/vmkit/lib/Mvm/GCMmap2/gcinit.cpp:22: undefined reference to `GCAllocator::operator new(unsigned long)'<br>/home/zoewolk/RESEARCH/vmkit/lib/Mvm/GCMmap2/gcinit.cpp:22: undefined reference to `GCAllocator::GCAllocator()'<br>
/home/zoewolk/RESEARCH/vmkit/Debug/lib/libGCMmap2.a(gcinit.o): In function `mvm::Collector::destroy()':<br>/home/zoewolk/RESEARCH/vmkit/lib/Mvm/GCMmap2/gcinit.cpp:42: undefined reference to `GCAllocator::~GCAllocator()'<br>
/home/zoewolk/RESEARCH/vmkit/lib/Mvm/GCMmap2/gcinit.cpp:42: undefined reference to `GCAllocator::operator delete(void*)'<br>collect2: ld returned 1 exit status<br>make[1]: *** [/home/zoewolk/RESEARCH/vmkit/Debug/bin/vmjc] Error 1<br>
make[1]: Leaving directory `/home/zoewolk/RESEARCH/vmkit/tools/vmjc'<br><br><br><div class="gmail_quote">On Sun, Jul 4, 2010 at 6:58 PM, Alysson <span dir="ltr"><<a href="mailto:aishofpf@gmail.com">aishofpf@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Zoe,<br>maybe you've already solved your problem with VMKit configuration, but here you can find a mini-tutorial<br>
that I've done to guide people on VMKit installation.<br><br><a href="http://www2.dcc.ufmg.br/laboratorios/llp/wiki/doku.php?id=afpf" target="_blank">http://www2.dcc.ufmg.br/laboratorios/llp/wiki/doku.php?id=afpf</a><br>


<br>Best regards,<br><font color="#888888">Alysson</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Wed, Jun 30, 2010 at 1:34 PM, nicolas geoffray <span dir="ltr"><<a href="mailto:nicolas.geoffray@gmail.com" target="_blank">nicolas.geoffray@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Zoe,<div><br></div><div>Unfortunately, I don't have access to a x64 machine anymore, so I can't test that architecture on vmkit. Could you install a virtual machine on your machine that is x86_32? I know it has been successfully built and ran on x86_32 on different systems.</div>



<div><br></div><div>Cheers,</div><div>Nicolas</div><div><br></div><div><br><br><div class="gmail_quote"><div><div></div><div>On Wed, Jun 30, 2010 at 7:49 AM, Zoe Wolk <span dir="ltr"><<a href="mailto:zoewolk@gmail.com" target="_blank">zoewolk@gmail.com</a>></span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>Hi again Nicolas,<br><br>Can you please tell me the output of your llvm-gcc -v<br>


and llvm-config -version?<br>Mine is below, perhaps its because I built llvm with enable-jit?<br>
<br>Do you have users of vmkit?  ie has anyone other than<br>
the llvm team been successful at building and running<br>vmkit?  <br><br>I tried on a core2 machine (albeit also karmic) and have<br>the same problem.<br><br>Can you build a fresh machine (virtual machine) <br>using svn llvm, llvm-gcc, and vmkit successfully<br>




and send out your steps?  If not, can you please send<br>me the output of 'dpkg -l |grep ii'?<br><br>thanks<br>Z<br><br>llvm-gcc -v<br><br>Using built-in specs.<br>Target: x86_64-unknown-linux-gnu<br>Configured with: ../llvm-gcc-4.2/configure --prefix=/home/zoewolk/RESEARCH/LLVMSystem --enable-languages=c,c++ --enable-checking --enable-llvm=/home/zoewolk/RESEARCH/LLVMSystem/llvm --disable-bootstrap --disable-multilib --program-prefix=llvm-<br>




Thread model: posix<br><br>llvm config.status:<br>It was created by llvm configure 2.8svn, which was<br>generated by GNU Autoconf 2.60.  Invocation command line was<br><br>  $ ./configure --prefix=/home/zoewolk/RESEARCH/LLVMSystem --enable-optimized --enable-jit --enable-targets=x86,cpp --with-udis86=/home/zoewolk/RESEARCH/udis86/lib --with-llvmgccdir=/home/zoewolk/RESEARCH/LLVMSystem<br>




<br>Linux karmic kernel 2.6.27.5 x86_64 SMP<br>gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build)<div><div></div><div><br><br><br><div class="gmail_quote">On Tue, Jun 29, 2010 at 6:58 PM, Zoe Wolk <span dir="ltr"><<a href="mailto:zoewolk@gmail.com" target="_blank">zoewolk@gmail.com</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Nicolas,<br>No, I built llvm-gcc myself by checking it out via svn, using<br>these instructions:<br>




<a href="http://llvm.org/docs/GCCFEBuildInstrs.html" target="_blank">http://llvm.org/docs/GCCFEBuildInstrs.html</a><br>thanks<br><font color="#888888">-Z</font><div><div></div><div><br>
<br><br>> Hi Zoe<br>> (Please, try to reply to the same thread)<br>> I think you may have an old version of llvm-gcc. Did you compile<br>> llvm-gcc yourself? The provided llvm-gcc binary for llvm 2.7 is <br>> too old for vmkit.<br>





> <br>> Nicolas<br>><br><br>
</div></div></blockquote></div><br>
</div></div><br></div></div><div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">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>
<br></div></blockquote></div><br></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">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>
<br></blockquote></div><br>
</div></div></blockquote></div><br>