<div dir="ltr">Hi,<div>I'm new to VMKit and I'm trying to use its AOT Java compiler but I'm immediately getting an error message which I don't understand.</div><div><br></div><div>Everything was compiler as suggested in the Getting Started tutorial, using GNU Classpath. I try to run:</div>
<div><br></div><div> llcj ../../tools/trainer/Release+Asserts/HelloWorld.class</div><div><br></div><div>and get the following output:</div><div><br></div><div><div> Can not materiale a function in AOT mode.0 vmjc 0x0000000000f2cea5 llvm::sys::PrintStackTrace(_IO_FILE*) + 37</div>
<div> 1 vmjc 0x0000000000f2d363</div><div> 2 libpthread.so.0 0x00007f4fbbe83880</div><div> 3 libc.so.6 0x00007f4fbb0e2389 gsignal + 57</div><div> 4 libc.so.6 0x00007f4fbb0e3788 abort + 328</div>
<div> 5 vmjc 0x000000000052f6f9</div><div> 6 vmjc 0x00000000005739cc</div><div> 7 vmjc 0x0000000000573795</div><div> 8 vmjc 0x0000000000572d24 j3::JavaMethod::invokeIntStatic(j3::Jnjvm*, j3::Class*, ...) + 116</div>
<div> 9 vmjc 0x0000000000587c9e j3::Class::initialiseClass(j3::Jnjvm*) + 574</div><div> 10 vmjc 0x0000000000574c82</div><div> 11 vmjc 0x0000000000574a45</div><div> 12 vmjc 0x00000000005735a4 j3::JavaMethod::invokeJavaObjectStatic(j3::Jnjvm*, j3::Class*, ...) + 116</div>
<div> 13 vmjc 0x000000000058a921 j3::Jnjvm::noClassDefFoundError(j3::Class*, vmkit::UTF8 const*) + 1665</div><div> 14 vmjc 0x000000000056c2bb j3::Class::readClass() + 427</div><div> 15 vmjc 0x0000000000591a78 j3::JnjvmClassLoader::constructClass(vmkit::UTF8 const*, j3::ClassBytes*) + 360</div>
<div> 16 vmjc 0x0000000000591743 j3::JnjvmBootstrapLoader::internalLoad(vmkit::UTF8 const*, bool, j3::JavaString*) + 131</div><div> 17 vmjc 0x0000000000591d76 j3::JnjvmClassLoader::loadName(vmkit::UTF8 const*, bool, bool, j3::JavaString*) + 38</div>
<div> 18 vmjc 0x000000000052b43a mainCompilerStart(j3::JavaThread*) + 586</div><div> 19 vmjc 0x00000000005b0300 vmkit::Thread::internalThreadStart(vmkit::Thread*) + 528</div><div> 20 libpthread.so.0 0x00007f4fbbe7c0a2</div>
<div> 21 libc.so.6 0x00007f4fbb192d1d clone + 109</div></div><div><br></div><div>This is produced inside the JavaAOTCompiler.h, in method materializeFunction which is called from JavaMethod::compiledPtr. What am I doing wrong?</div>
<div><br></div><div>Cheers,</div><div>David</div></div>