Hi Callum,<div><br></div><div>You followed the instructions right. I just udpated vmkit to the new LLVM API and everything should compile now.</div><div><br></div><div>Cheers,</div><div>Nicolas<br><br><div class="gmail_quote">
On Sat, Oct 20, 2012 at 7:45 PM, Callum Rogers <span dir="ltr"><<a href="mailto:callum.a.rogers@gmail.com" target="_blank">callum.a.rogers@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I'm trying to compile vmkit but am running into some problems. I followed the instructions at <a href="http://vmkit.llvm.org/get_started.html" target="_blank">http://vmkit.llvm.org/get_<u></u>started.html</a> and checked out llvm and clang from svn, compiled them no problem and the same with classpath 0.97.2. I then checked out vmkit from svn and tried to build it. All these are located at /home/callum/vmkit/{llvm,<u></u>classpath-0.97.2,vmkit}.<br>

<br>
I used this to configure vmkit:<br>
<br>
PRE=/home/callum/vmkit<br>
./configure --with-llvmsrc="$PRE/llvm" \<br>
--with-llvmobj="$PRE/llvm" \<br>
--with-gnu-classpath-glibj="$<u></u>PRE/classpath-0.97.2/lib/<u></u>glibj.zip" \<br>
--with-gnu-classpath-libs="$<u></u>PRE/classpath-0.97.2/lib" \<br>
--with-mmtk-plan=<a href="http://org.mmtk.plan.marksweep.MS" target="_blank">org.mmtk.<u></u>plan.marksweep.MS</a><br>
<br>
but when I try make this happens:<br>
<br>
callum@callum-vm:~/vmkit/<u></u>vmkit$ make ENABLE_OPTIMIZED=1<br>
llvm[0]: Constructing LLVMBuild project information.<br>
make[1]: Entering directory `/home/callum/vmkit/vmkit/lib/<u></u>vmkit/StaticGCPass'<br>
make[1]: Nothing to be done for `all'.<br>
make[1]: Leaving directory `/home/callum/vmkit/vmkit/lib/<u></u>vmkit/StaticGCPass'<br>
make[1]: Entering directory `/home/callum/vmkit/vmkit/lib/<u></u>vmkit/StaticGCPrinter'<br>
llvm[1]: Compiling VmkitGCPrinter.cpp for Release+Asserts build (PIC)<br>
VmkitGCPrinter.cpp: In member function ‘virtual void {anonymous}::<u></u>VmkitAOTGCMetadataPrinter::<u></u>finishAssembly(llvm::<u></u>AsmPrinter&)’:<br>
VmkitGCPrinter.cpp:292:63: error: no matching function for call to ‘llvm::DataLayout::<u></u>getPointerSize() const’<br>
VmkitGCPrinter.cpp:292:63: note: candidate is:<br>
/home/callum/vmkit/llvm/<u></u>include/llvm/DataLayout.h:250:<u></u>12: note: unsigned int llvm::DataLayout::<u></u>getPointerSize(unsigned int) const<br>
/home/callum/vmkit/llvm/<u></u>include/llvm/DataLayout.h:250:<u></u>12: note: candidate expects 1 argument, 0 provided<br>
/bin/rm: cannot remove `/home/callum/vmkit/vmkit/lib/<u></u>vmkit/StaticGCPrinter/Release+<u></u>Asserts/VmkitGCPrinter.d.tmp': No such file or directory<br>
make[1]: *** [/home/callum/vmkit/vmkit/lib/<u></u>vmkit/StaticGCPrinter/Release+<u></u>Asserts/VmkitGCPrinter.o] Error 1<br>
make[1]: Leaving directory `/home/callum/vmkit/vmkit/lib/<u></u>vmkit/StaticGCPrinter'<br>
make: *** [all] Error 1<br>
<br>
Am I using the wrong versions of llvm/vmkit together? Or the configure options wrong? Is there a release of vmkit that works with llvm 3.1 (I can see up to llvm 3.0 on the website <a href="http://vmkit.llvm.org/releases/index.html" target="_blank">http://vmkit.llvm.org/<u></u>releases/index.html</a>) as the bindings library I'm using depends of llvm 3.1.<br>

<br>
Thanks in advance,<br>
Callum<br>
______________________________<u></u>_________________<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/<u></u>mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>