[LLVMdev] VMKit: Problem compiling vmkit

Callum Rogers callum.a.rogers at gmail.com
Sat Oct 20 10:45:50 PDT 2012


I'm trying to compile vmkit but am running into some problems. I 
followed the instructions at http://vmkit.llvm.org/get_started.html 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 

I used this to configure vmkit:

./configure --with-llvmsrc="$PRE/llvm" \
--with-llvmobj="$PRE/llvm" \
--with-gnu-classpath-glibj="$PRE/classpath-0.97.2/lib/glibj.zip" \
--with-gnu-classpath-libs="$PRE/classpath-0.97.2/lib" \

but when I try make this happens:

callum at callum-vm:~/vmkit/vmkit$ make ENABLE_OPTIMIZED=1
llvm[0]: Constructing LLVMBuild project information.
make[1]: Entering directory 
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory 
make[1]: Entering directory 
llvm[1]: Compiling VmkitGCPrinter.cpp for Release+Asserts build (PIC)
VmkitGCPrinter.cpp: In member function ‘virtual void 
VmkitGCPrinter.cpp:292:63: error: no matching function for call to 
‘llvm::DataLayout::getPointerSize() const’
VmkitGCPrinter.cpp:292:63: note: candidate is:
/home/callum/vmkit/llvm/include/llvm/DataLayout.h:250:12: note: unsigned 
int llvm::DataLayout::getPointerSize(unsigned int) const
/home/callum/vmkit/llvm/include/llvm/DataLayout.h:250:12: note: 
candidate expects 1 argument, 0 provided
/bin/rm: cannot remove 
No such file or directory
make[1]: *** 
Error 1
make[1]: Leaving directory 
make: *** [all] Error 1

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 
http://vmkit.llvm.org/releases/index.html) as the bindings library I'm 
using depends of llvm 3.1.

Thanks in advance,

More information about the llvm-dev mailing list