[LLVMdev] Issues with HelloWorld on VMKit

Nicolas Geoffray nicolas.geoffray at lip6.fr
Thu Aug 20 07:28:21 PDT 2009


Hi Matteo,

Matteo Migliavacca wrote:
> HI I tried to follow the procedure at http://vmkit.llvm.org/get_started.html 
> .
>
>   

OK. Which cpu/os target?

> Builds of LLVM and classpath went fine (after fixing a few dependency  
> problems).
>
> After compiling a simple HelloWorld with javac I got
>
> ../vmkit/Debug/bin/jnjvm HelloWorld
>
> hang for a while and then spits out a
>   

It's not hanging, it's compiling :) jnjvm includes all optimization 
passes from llvm. And the Debug mode takes a bunch of time to compile 
initial Java methods.

> terminate called without an active exception
> Abort
>
>   

OK, so usually I get that with classpath shared libraries misinstalled. 
Have you done the links from procedure no 2 on the "get started" page? 
It can also be due to x86_64/x86_32 compatibility issues. Is that the case?

> I also tried to compile on a machine with gcc 4.1 and Instead I got
>
> jnjvm: /mnt/sdb1/ladyvm/vmkit/include/mvm/VirtualMachine.h:369: T*  
> mvm::VirtualMachine::IPToMethod(void*) [with T = jnjvm::JavaMethod]:  
> Assertion `I != Functions.begin() && "Wrong value in function map"'  
> failed.
> Aborted
>
> A friend of mine tried the build process on his machine and got the  
> same "terminate without exception error"
>
> Any hint on how to proceed would be greatly appreciated.
>
>   

Let me know how that helped.

Cheers,
Nicolas




More information about the llvm-dev mailing list