Hi Tim,<div><br></div><div>I just updated vmkit to the new LLVM API. Please try it out with llvm ToT and vmkit ToT and let me know if it works for you.</div><div><br></div><div>Cheers,</div><div>Nicolas<br><br><div class="gmail_quote">
On Mon, Oct 22, 2012 at 9:49 PM, Tim Hartley <span dir="ltr"><<a href="mailto:poobahtim@gmail.com" target="_blank">poobahtim@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 folks,<br>
<br>
I'm trying to compile VMKit (and eventually J3) with LLVM/Clang head.<br>
There seem to be some recent commits (starting with roughly 165505)<br>
that break the VMKit compile with the following errors:<br>
<br>
$ make ENABLE_OPTIMIZED=1<br>
llvm[0]: Constructing LLVMBuild project information.<br>
make[1]: Entering directory `.../vmkit/lib/vmkit/StaticGCPass'<br>
llvm[1]: Compiling StaticGCPass.cpp for Release+Asserts build (PIC)<br>
llvm[1]: Linking Release+Asserts Loadable Module StaticGCPass.so<br>
llvm[1]: Compiling StaticGCPass.cpp for Release+Asserts build (bytecode)<br>
llvm[1]: Compiling StaticGCPass.ll to StaticGCPass.bc for<br>
Release+Asserts build (bytecode)<br>
llvm[1]: Building Release+Asserts Bytecode Archive libStaticGCPass.bca<br>
make[1]: Leaving directory `.../vmkit/lib/vmkit/StaticGCPass'<br>
make[1]: Entering directory `.../vmkit/lib/vmkit/StaticGCPrinter'<br>
llvm[1]: Compiling VmkitGCPrinter.cpp for Release+Asserts build (PIC)<br>
VmkitGCPrinter.cpp: In member function ‘virtual void<br>
{anonymous}::VmkitAOTGCMetadataPrinter::finishAssembly(llvm::AsmPrinter&)’:<br>
VmkitGCPrinter.cpp:292:63: error: no matching function for call to<br>
‘llvm::DataLayout::getPointerSize() const’<br>
VmkitGCPrinter.cpp:292:63: note: candidate is:<br>
.../llvm_investigation/llvm/include/llvm/DataLayout.h:250:12: note:<br>
unsigned int llvm::DataLayout::getPointerSize(unsigned int) const<br>
.../llvm_investigation/llvm/include/llvm/DataLayout.h:250:12: note:<br>
candidate expects 1 argument, 0 provided<br>
/bin/rm: cannot remove<br>
`.../vmkit/lib/vmkit/StaticGCPrinter/Release+Asserts/VmkitGCPrinter.d.tmp':<br>
No such file or directory<br>
make[1]: *** [.../vmkit/lib/vmkit/StaticGCPrinter/Release+Asserts/VmkitGCPrinter.o]<br>
Error 1<br>
make[1]: Leaving directory `.../vmkit/lib/vmkit/StaticGCPrinter'<br>
make: *** [all] Error 1<br>
<br>
I realize these are extremely recent commits, but I thought I'd ask<br>
when the last time someone was able to successfully compile vmkit was,<br>
to save myself the time of going searching.<br>
<br>
Thanks,<br>
Tim<br>
<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>
</blockquote></div><br></div>