[LLVMdev] Error: unsupported GC: vmkit
Alexander Betts
alex.betts at gmail.com
Thu Jun 21 09:53:17 PDT 2012
On Jun 21, 2012, at 4:57 AM, Shyam Patro wrote:
> Hi,
> I have recently installed llvm-3.1 , gnu classpath-0.97.2 and vmkit
> I compiled a simple java file "hello.java" to hello.class
> Then converted hello.class to llvm bytecode(hello.bc) using vmjc from vmkit
> when i tried to run "hello.bc" using lli
>
> I am getting the following error
>
> shyam at shyam:~$ cat hello.java
> import java.io.*;
>
> class hello {
>
> public static void main(String[] args)
> {
> System.out.println("Hello world\n");
> }
> }
> shyam at shyam:~$ javac hello.java -o hello.class
> shyam at shyam:~$ vmjc hello.class -o hello.bc
> shyam at shyam:~$ lli hello.bc
>
> unsupported GC: vmkit
> UNREACHABLE executed at /home/shyam/llvm-3.1.src/lib/CodeGen/GCMetadata.cpp:99!
> 0 lli 0x089a5778
> Stack dump:
> 0. Program arguments: lli hello.ll
> Aborted
>
> Please help me out
Hi Shyam --
Haven't tried using vmjc's output with lli, but I encountered a similar error getting it to work with llc. With llc, you have to tell it to load the library that provides the garbage collector plugin:
llc -load=/path/to/vmkit/lib/StaticGCPrinter.so -o hello.s hello.bc
-- Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120621/54c3dcb5/attachment.html>
More information about the llvm-dev
mailing list