I'm trying to build the SVN version of VMKit and I'm getting this error while building. I have llvm and clang built from SVN too. Any help? llvm[2]: Building Release+Asserts mmtk-vmkit.jar all vmjc: JavaClass.cpp:442: j3::JavaObject *j3::Class::doNew(j3::Jnjvm *): Assertion `this && "No class when allocating."' failed. 0 vmjc 0x0000000000e9c44f 1 vmjc 0x0000000000e9cf8a 2 libpthread.so.0 0x00002ac09794bc60 3 libc.so.6 0x00002ac09874cd05 gsignal + 53 4 libc.so.6 0x00002ac098750ab6 abort + 390 5 libc.so.6 0x00002ac0987457c5 __assert_fail + 245 6 vmjc 0x000000000055772b j3::Class::doNew(j3::Jnjvm*) + 107 7 vmjc 0x000000000056423b j3::JavaString::stringDup(j3::ArrayUInt16 const* const&, j3::Jnjvm*) + 59 8 vmjc 0x000000000054c091 j3::StringMap::lookupOrCreate(j3::ArrayUInt16 const*, j3::Jnjvm*, j3::JavaString* (*)(j3::ArrayUInt16 const* const&, j3::Jnjvm*)) + 161 9 vmjc 0x0000000000548d49 CreateUnableToLoad(mvm::UTF8 const*, j3::Jnjvm*) + 617 10 vmjc 0x00000000005470a3 j3::Jnjvm::noClassDefFoundError(mvm::UTF8 const*) + 67 11 vmjc 0x000000000054f715 j3::JnjvmClassLoader::loadName(mvm::UTF8 const*, bool, bool, j3::JavaString*) + 277 12 vmjc 0x000000000055813a j3::Class::readParents(j3::Reader&) + 106 13 vmjc 0x0000000000559297 j3::Class::readClass() + 375 14 vmjc 0x000000000054f348 j3::JnjvmClassLoader::constructClass(mvm::UTF8 const*, j3::ClassBytes*) + 360 15 vmjc 0x000000000054f122 j3::JnjvmBootstrapLoader::internalLoad(mvm::UTF8 const*, bool, j3::JavaString*) + 130 16 vmjc 0x000000000054f62e j3::JnjvmClassLoader::loadName(mvm::UTF8 const*, bool, bool, j3::JavaString*) + 46 17 vmjc 0x000000000058f86c extractFiles(j3::ClassBytes*, j3::JavaAOTCompiler*, j3::JnjvmBootstrapLoader*, std::vector<j3::Class*, std::allocator<j3::Class*> >&) + 444 18 vmjc 0x000000000058fc64 mainCompilerStart(j3::JavaThread*) + 532 19 vmjc 0x00000000005cfa1e mvm::Thread::internalThreadStart(mvm::Thread*) + 126 20 libpthread.so.0 0x00002ac097942d8c 21 libc.so.6 0x00002ac0987ff04d clone + 109 Aborted -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110824/c97e2843/attachment.html>
Are you running on 64bit (your backtrace addresses suggest you are)? I'm encountering the same error when trying to use VMKit on 64bit, which I believe is an unsupported target. ~Will On Tue, Aug 23, 2011 at 5:17 PM, Frederic Perez Ordeig <fredericp at gmail.com> wrote:> I'm trying to build the SVN version of VMKit and I'm getting this error > while building. > I have llvm and clang built from SVN too. > Any help? > llvm[2]: Building Release+Asserts mmtk-vmkit.jar all > vmjc: JavaClass.cpp:442: j3::JavaObject *j3::Class::doNew(j3::Jnjvm *): > Assertion `this && "No class when allocating."' failed. > 0 vmjc 0x0000000000e9c44f > 1 vmjc 0x0000000000e9cf8a > 2 libpthread.so.0 0x00002ac09794bc60 > 3 libc.so.6 0x00002ac09874cd05 gsignal + 53 > 4 libc.so.6 0x00002ac098750ab6 abort + 390 > 5 libc.so.6 0x00002ac0987457c5 __assert_fail + 245 > 6 vmjc 0x000000000055772b j3::Class::doNew(j3::Jnjvm*) + 107 > 7 vmjc 0x000000000056423b > j3::JavaString::stringDup(j3::ArrayUInt16 const* const&, j3::Jnjvm*) + 59 > 8 vmjc 0x000000000054c091 > j3::StringMap::lookupOrCreate(j3::ArrayUInt16 const*, j3::Jnjvm*, > j3::JavaString* (*)(j3::ArrayUInt16 const* const&, j3::Jnjvm*)) + 161 > 9 vmjc 0x0000000000548d49 CreateUnableToLoad(mvm::UTF8 const*, > j3::Jnjvm*) + 617 > 10 vmjc 0x00000000005470a3 > j3::Jnjvm::noClassDefFoundError(mvm::UTF8 const*) + 67 > 11 vmjc 0x000000000054f715 > j3::JnjvmClassLoader::loadName(mvm::UTF8 const*, bool, bool, > j3::JavaString*) + 277 > 12 vmjc 0x000000000055813a j3::Class::readParents(j3::Reader&) + > 106 > 13 vmjc 0x0000000000559297 j3::Class::readClass() + 375 > 14 vmjc 0x000000000054f348 > j3::JnjvmClassLoader::constructClass(mvm::UTF8 const*, j3::ClassBytes*) + > 360 > 15 vmjc 0x000000000054f122 > j3::JnjvmBootstrapLoader::internalLoad(mvm::UTF8 const*, bool, > j3::JavaString*) + 130 > 16 vmjc 0x000000000054f62e > j3::JnjvmClassLoader::loadName(mvm::UTF8 const*, bool, bool, > j3::JavaString*) + 46 > 17 vmjc 0x000000000058f86c extractFiles(j3::ClassBytes*, > j3::JavaAOTCompiler*, j3::JnjvmBootstrapLoader*, std::vector<j3::Class*, > std::allocator<j3::Class*> >&) + 444 > 18 vmjc 0x000000000058fc64 mainCompilerStart(j3::JavaThread*) + > 532 > 19 vmjc 0x00000000005cfa1e > mvm::Thread::internalThreadStart(mvm::Thread*) + 126 > 20 libpthread.so.0 0x00002ac097942d8c > 21 libc.so.6 0x00002ac0987ff04d clone + 109 > Aborted > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >
Hmm, disregard my previous comment (while you might still have issues with 64bit, that's not what's primarily causing your issue)--your particular error is when you don't point vmkit to the classpath libraries properly. Set it with the configure option --with-gnu-classpath-glibj=/path/to/classpath-0.97.2/lib/glibj.zip Good luck! ~Will On Tue, Aug 23, 2011 at 5:49 PM, Will Dietz <willdtz at gmail.com> wrote:> Are you running on 64bit (your backtrace addresses suggest you are)? > > I'm encountering the same error when trying to use VMKit on 64bit, > which I believe is an unsupported target. > > ~Will > > On Tue, Aug 23, 2011 at 5:17 PM, Frederic Perez Ordeig > <fredericp at gmail.com> wrote: >> I'm trying to build the SVN version of VMKit and I'm getting this error >> while building. >> I have llvm and clang built from SVN too. >> Any help? >> llvm[2]: Building Release+Asserts mmtk-vmkit.jar all >> vmjc: JavaClass.cpp:442: j3::JavaObject *j3::Class::doNew(j3::Jnjvm *): >> Assertion `this && "No class when allocating."' failed. >> 0 vmjc 0x0000000000e9c44f >> 1 vmjc 0x0000000000e9cf8a >> 2 libpthread.so.0 0x00002ac09794bc60 >> 3 libc.so.6 0x00002ac09874cd05 gsignal + 53 >> 4 libc.so.6 0x00002ac098750ab6 abort + 390 >> 5 libc.so.6 0x00002ac0987457c5 __assert_fail + 245 >> 6 vmjc 0x000000000055772b j3::Class::doNew(j3::Jnjvm*) + 107 >> 7 vmjc 0x000000000056423b >> j3::JavaString::stringDup(j3::ArrayUInt16 const* const&, j3::Jnjvm*) + 59 >> 8 vmjc 0x000000000054c091 >> j3::StringMap::lookupOrCreate(j3::ArrayUInt16 const*, j3::Jnjvm*, >> j3::JavaString* (*)(j3::ArrayUInt16 const* const&, j3::Jnjvm*)) + 161 >> 9 vmjc 0x0000000000548d49 CreateUnableToLoad(mvm::UTF8 const*, >> j3::Jnjvm*) + 617 >> 10 vmjc 0x00000000005470a3 >> j3::Jnjvm::noClassDefFoundError(mvm::UTF8 const*) + 67 >> 11 vmjc 0x000000000054f715 >> j3::JnjvmClassLoader::loadName(mvm::UTF8 const*, bool, bool, >> j3::JavaString*) + 277 >> 12 vmjc 0x000000000055813a j3::Class::readParents(j3::Reader&) + >> 106 >> 13 vmjc 0x0000000000559297 j3::Class::readClass() + 375 >> 14 vmjc 0x000000000054f348 >> j3::JnjvmClassLoader::constructClass(mvm::UTF8 const*, j3::ClassBytes*) + >> 360 >> 15 vmjc 0x000000000054f122 >> j3::JnjvmBootstrapLoader::internalLoad(mvm::UTF8 const*, bool, >> j3::JavaString*) + 130 >> 16 vmjc 0x000000000054f62e >> j3::JnjvmClassLoader::loadName(mvm::UTF8 const*, bool, bool, >> j3::JavaString*) + 46 >> 17 vmjc 0x000000000058f86c extractFiles(j3::ClassBytes*, >> j3::JavaAOTCompiler*, j3::JnjvmBootstrapLoader*, std::vector<j3::Class*, >> std::allocator<j3::Class*> >&) + 444 >> 18 vmjc 0x000000000058fc64 mainCompilerStart(j3::JavaThread*) + >> 532 >> 19 vmjc 0x00000000005cfa1e >> mvm::Thread::internalThreadStart(mvm::Thread*) + 126 >> 20 libpthread.so.0 0x00002ac097942d8c >> 21 libc.so.6 0x00002ac0987ff04d clone + 109 >> Aborted >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >> >