[vmkit]Errors when compiling vmkit


I see that now vmkit2 contains the last revisions of the project, so I follow these instructions to compile vmkit : http://vmkit2.gforge.inria.fr/start.php

I download and compile LLVM without errors. I have tested with and without optimizations but this is the same for the errors.
My configuration for LLVM is just : ./configure; make

Apparently we can build vmkit with OpenJDK instead of GNU Classpath, so I configured vmkit with :

./configure --with-llvm-config-path=/home/julien/vm/llvm-3.2.src/Release+Asserts/bin/llvm-config --with-classpath-impl=openjdk --with-openjdk-path=/usr/lib64/jvm/java-1.7.0-openjdk

But when I compile vmkit I have this error :

In file included from JavaUpcalls.cpp:1048:
/home/julien/vm/vmkit2/lib/j3/ClassLib/Unsafe.inc:499:35: error: no member named ‘vmdataVMThread’ in ‘j3::Classpath’
JavaField* field = vm->upcalls->vmdataVMThread;

/home/julien/vm/vmkit2/lib/j3/ClassLib/Unsafe.inc:500:36: error: no member named 'vmThread' in 'j3::Classpath'
JavaField* field2 = vm->upcalls->vmThread;
~~~~~~~~~~~ ^
2 errors generated.
make[4]: *** [/home/julien/vm/vmkit2/lib/j3/ClassLib/OpenJDK/Release+Asserts/JavaUpcalls.bc] Erreur 1
[vmkit ./lib/j3/ClassLib]: abort with error in ./lib/j3/ClassLib/OpenJDK
make[3]: *** [all] Erreur 1
[vmkit ./lib/j3]: abort with error in ./lib/j3/ClassLib
make[2]: *** [all] Erreur 1
[vmkit ./lib]: abort with error in ./lib/j3
make[1]: *** [all] Erreur 1
[vmkit .]: abort with error in ./lib
make: *** [all] Erreur 1

This is the first time I work with vmkit. So, did I do something wrong (maybe in configure...) ?



Hi Julien,

Due to some new commits, openjdk build is broken for the moment.
We are fixing this.

You can temporarily use the following commit to try VMKit with OpenJDK implementation.


just call the following command in your vmkit directory:

git checkout d9bf3794d66a116999f8f16d0799fba6fe5bd822

Harris Bakiras

Problem is fixed, you can pull the latest version it will be OK.

Harris Bakiras