<html><head><base href="x-msg://51/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jun 21, 2012, at 4:57 AM, Shyam Patro wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; "><div dir="ltr"><div dir="ltr">Hi,<div>I have recently installed llvm-3.1 , gnu classpath-0.97.2 and vmkit </div><div>I compiled a simple java file "<b>hello.java</b>" to hello.class </div><div>Then converted hello.class<span style="font-size: 10pt; "> to llvm bytecode(<b>hello.bc</b>) using vmjc from vmkit</span></div><div>when i tried to run "<b>hello.bc</b>" using<span class="Apple-converted-space"> </span><b>lli</b></div><div><b><br></b></div><div><span style="font-size: 10pt; ">I am getting the following error </span></div><div><br></div><div><span style="font-size: 10pt; ">shyam@shyam:~$ cat<span class="Apple-converted-space"> </span><b>hello.java</b></span></div><div><div>import java.io.*; </div><div><br></div><div>class hello {</div><div><br></div><div> public static void main(String[] args) </div><div> { </div><div><span class="ecxApple-tab-span" style="white-space: pre; "> </span> System.out.println("Hello world\n");</div><div> }</div><div>}</div><div>shyam@shyam:~$<span class="Apple-converted-space"> </span><b>javac</b><span class="Apple-converted-space"> </span>hello.java -o hello.class</div><div>shyam@shyam:~$<b><span class="Apple-converted-space"> </span>vmjc</b><span class="Apple-converted-space"> </span>hello.class -o hello.bc</div><div><span style="font-size: 10pt; ">shyam@shyam:~$<span class="Apple-converted-space"> </span><b>lli</b><span class="Apple-converted-space"> </span>hello.bc</span></div><div><span style="font-size: 10pt; "><br></span></div><div><span style="font-size: 10pt; ">unsupported GC: vmkit</span></div><div>UNREACHABLE executed at /home/shyam/llvm-3.1.src/lib/CodeGen/GCMetadata.cpp:99!</div><div>0 lli 0x089a5778</div><div>Stack dump:</div><div>0.<span class="ecxApple-tab-span" style="white-space: pre; "> </span>Program arguments: lli hello.ll </div><div>Aborted</div><div><br></div></div><div>Please help me out </div></div></div></div></span></blockquote><br></div><div>Hi Shyam --</div><div><br></div><div>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:</div><div><br></div><div>llc -load=/path/to/vmkit/lib/StaticGCPrinter.so -o hello.s hello.bc</div><div><br></div><div>-- Alex</div></body></html>