Hi,<div><br></div><div>I've been trying to compile a simple helloworld Java program to native code, and I've been having trouble. I'm tripping an assertion that I don't quite understand yet. I'm just curious if anybody can point me in the right direction.</div>
<div><br></div><div>$ javac helloworld.java</div><div>$ vmjc -o helloworld.bc helloworld.class<br></div><div><div>$ llc -load=<...>/Release+Asserts/lib/StaticGCPrinter.so helloworld.bc -o helloworld.s</div></div><div>
<div>llc: VmkitGCPrinter.cpp:268: llvm::Constant* FindMetadata(const llvm::Function&): Assertion `0 && "Should have found a JavaMethod"' failed.</div><div>0 llc 0x000000000103726f</div>
<div>1 llc 0x0000000001037799</div><div>2 libpthread.so.0 0x00007fea25133cb0</div><div>3 libc.so.6 0x00007fea24387445 gsignal + 53</div><div>4 libc.so.6 0x00007fea2438abab abort + 379</div>
<div>5 libc.so.6 0x00007fea2438010e</div><div>6 libc.so.6 0x00007fea243801b2</div><div>7 StaticGCPrinter.so 0x00007fea2414cbc9 FindMetadata(llvm::Function const&) + 4553</div><div>8 StaticGCPrinter.so 0x00007fea2414d161</div>
<div>9 llc 0x0000000000b3c13d llvm::AsmPrinter::doFinalization(llvm::Module&) + 1021</div><div>10 llc 0x0000000000f68cc4 llvm::FPPassManager::doFinalization(llvm::Module&) + 84</div>
<div>11 llc 0x0000000000f6afe9 llvm::FPPassManager::runOnModule(llvm::Module&) + 73</div><div>12 llc 0x0000000000f6ac74 llvm::MPPassManager::runOnModule(llvm::Module&) + 532</div><div>
13 llc 0x0000000000f6dfab llvm::PassManagerImpl::run(llvm::Module&) + 171</div><div>14 llc 0x000000000053aac3 main + 4019</div><div>15 libc.so.6 0x00007fea2437276d __libc_start_main + 237</div>
<div>16 llc 0x000000000054b8d9</div><div>Stack dump:</div><div>0.<span class="" style="white-space:pre"> </span>Program arguments: llc -load=<...>/Release+Asserts/lib/StaticGCPrinter.so helloworld.bc -o helloworld.s </div>
<div>1.<span class="" style="white-space:pre"> </span>Running pass 'Function Pass Manager' on module 'helloworld.bc'.</div></div><div><br></div><div>Thanks,</div><div>Tim</div><div><br></div>