[LLVMdev] [vmkit]Errors when compiling vmkit

Julien Pagès julien.projet at gmail.com
Mon Mar 18 02:12:45 PDT 2013


Hi,

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 :

[vmkit ./lib/j3/ClassLib/OpenJDK]: Compiling 'JavaUpcalls.cpp'
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...) ?

Thanks,

Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130318/813f473f/attachment.html>


More information about the llvm-dev mailing list