Hello, I am trying to build vmkit2 from the repo using OpenJDK 6 (stock install) on Ubuntu 13.04 amd64. When I try to compile vmkit2 I get the core dump below. I am not sure what the issue is, but I was getting the same error when I was also using classpath. My build environment is set up in the following way: LD_LIBRARY_PATH=/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/:/usr/lib/jvm/java-6-openjdk-amd64/jre/:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/ llvm src=/path/to/code/llvm-3.3.src/ llvm configured with=./configure --enable-optimized --enable-assertions --enable-jit --enable-cxx11 --enable-threads --enable-pthreads --enable-pic --enable-targets=host,cpp --enable-zlib --disable-docs --disable-doxygen vmkit2 path=/path/to/code/vmkit2 vmkit2 configured with: ./configure --with-llvm-config-path=/path/to/code/llvm-3.3.src/Release+Asserts/bin/llvm-config --with-classpath-impl=openjdk --enable-assert=yes --disable-optimized --enable-debug=yes --with-openjdk-path=/usr/lib/jvm/java-6-openjdk-amd64/ $ make [vmkit .]: Entering compilation process Buildfile: /path/to/code/vmkit2/mmtk/java/build.xml main: [javac] Compiling 1 source file to /path/to/code/vmkit2/mmtk/java/classes [jar] Building jar: /path/to/code/vmkit2/mmtk/java/mmtk-vmkit.jar BUILD SUCCESSFUL Total time: 0 seconds [vmkit ./mmtk/java]: Compiling 'mmtk-vmkit.jar' vmjc: JavaClass.cpp:496: j3::JavaObject *j3::Class::doNew(j3::Jnjvm *): Assertion `(this->isInitializing() || classLoader->getCompiler()->isStaticCompiling() || this =classLoader->bootstrapLoader->upcalls->newClass) && "Uninitialized class when allocating."' failed. 0 vmjc 0x0000000000fa5415 llvm::sys::PrintStackTrace(_IO_FILE*) + 37 1 vmjc 0x0000000000fa5903 2 libpthread.so.0 0x00002b020f7debb0 3 libc.so.6 0x00002b0210444f77 gsignal + 55 4 libc.so.6 0x00002b02104485e8 abort + 328 5 libc.so.6 0x00002b021043dd43 6 libc.so.6 0x00002b021043ddf2 7 vmjc 0x00000000006154b4 j3::Class::doNew(j3::Jnjvm*) + 196 8 vmjc 0x000000000066eb7c j3::Jnjvm::error(j3::Class*, j3::JavaMethod*, j3::JavaString*) + 124 9 vmjc 0x000000000066ed63 j3::Jnjvm::nullPointerException() + 51 10 vmjc 0x00000000006362cc j3::JavaThread::throwNullPointerException(unsigned long) + 140 11 vmjc 0x00000000006cb243 ThrowNullPointerException + 35 12 libjava.so 0x00002b021561a035 Java_java_lang_Object_registerNatives + 21 13 libjava.so 0x00002b021536b96f Java_java_lang_Object_registerNatives + 4292155727 Aborted (core dumped) make[2]: *** [/path/to/code/vmkit2/mmtk/java/Debug+Asserts/mmtk-vmkit-lower.bc] Error 134 [vmkit ./mmtk]: abort with error in ./mmtk/java make[1]: *** [all] Error 1 [vmkit .]: abort with error in ./mmtk make: *** [all] Error 1 Thanks for your help, -- Adam -- PhD Student, Rice University Office: Duncan Hall 1083 Office Hours: M 11-12p (c) 210.446.7805
Hi Adam, I don't know which repo you have used? Because only the llvm repo is maintained (not the gforge one), and vmkit2 comes from gforge... By the way, how did you found the gforge repo, it should not be referenced anymore from the web? See you, Gaël Le 21 nov. 2013 17:08, "Adam Pridgen" <Adam.pridgen at rice.edu> a écrit :> Hello, > > I am trying to build vmkit2 from the repo using OpenJDK 6 (stock > install) on Ubuntu 13.04 amd64. When I try to compile vmkit2 I get > the core dump below. I am not sure what the issue is, but I was > getting the same error when I was also using classpath. My build > environment is set up in the following way: > > > > > LD_LIBRARY_PATH=/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/:/usr/lib/jvm/java-6-openjdk-amd64/jre/:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/ > > llvm src=/path/to/code/llvm-3.3.src/ > llvm configured with=./configure --enable-optimized > --enable-assertions --enable-jit --enable-cxx11 --enable-threads > --enable-pthreads --enable-pic --enable-targets=host,cpp --enable-zlib > --disable-docs --disable-doxygen > > vmkit2 path=/path/to/code/vmkit2 > > vmkit2 configured with: ./configure > > --with-llvm-config-path=/path/to/code/llvm-3.3.src/Release+Asserts/bin/llvm-config > --with-classpath-impl=openjdk --enable-assert=yes --disable-optimized > --enable-debug=yes > --with-openjdk-path=/usr/lib/jvm/java-6-openjdk-amd64/ > > $ make > [vmkit .]: Entering compilation process > Buildfile: /path/to/code/vmkit2/mmtk/java/build.xml > > main: > [javac] Compiling 1 source file to > /path/to/code/vmkit2/mmtk/java/classes > [jar] Building jar: /path/to/code/vmkit2/mmtk/java/mmtk-vmkit.jar > > BUILD SUCCESSFUL > Total time: 0 seconds > [vmkit ./mmtk/java]: Compiling 'mmtk-vmkit.jar' > vmjc: JavaClass.cpp:496: j3::JavaObject *j3::Class::doNew(j3::Jnjvm > *): Assertion `(this->isInitializing() || > classLoader->getCompiler()->isStaticCompiling() || this => classLoader->bootstrapLoader->upcalls->newClass) && "Uninitialized > class when allocating."' failed. > 0 vmjc 0x0000000000fa5415 > llvm::sys::PrintStackTrace(_IO_FILE*) + 37 > 1 vmjc 0x0000000000fa5903 > 2 libpthread.so.0 0x00002b020f7debb0 > 3 libc.so.6 0x00002b0210444f77 gsignal + 55 > 4 libc.so.6 0x00002b02104485e8 abort + 328 > 5 libc.so.6 0x00002b021043dd43 > 6 libc.so.6 0x00002b021043ddf2 > 7 vmjc 0x00000000006154b4 j3::Class::doNew(j3::Jnjvm*) + 196 > 8 vmjc 0x000000000066eb7c j3::Jnjvm::error(j3::Class*, > j3::JavaMethod*, j3::JavaString*) + 124 > 9 vmjc 0x000000000066ed63 j3::Jnjvm::nullPointerException() + > 51 > 10 vmjc 0x00000000006362cc > j3::JavaThread::throwNullPointerException(unsigned long) + 140 > 11 vmjc 0x00000000006cb243 ThrowNullPointerException + 35 > 12 libjava.so 0x00002b021561a035 > Java_java_lang_Object_registerNatives + 21 > 13 libjava.so 0x00002b021536b96f > Java_java_lang_Object_registerNatives + 4292155727 > Aborted (core dumped) > make[2]: *** > [/path/to/code/vmkit2/mmtk/java/Debug+Asserts/mmtk-vmkit-lower.bc] > Error 134 > [vmkit ./mmtk]: abort with error in ./mmtk/java > make[1]: *** [all] Error 1 > [vmkit .]: abort with error in ./mmtk > make: *** [all] Error 1 > > Thanks for your help, > > -- Adam > > -- > PhD Student, Rice University > Office: Duncan Hall 1083 > Office Hours: M 11-12p > (c) 210.446.7805 > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131121/8c0d8837/attachment.html>
I guess I mispoke, I checked out the source from http://llvm.org/svn/llvm-project/vmkit/trunk. I thought this was vmkit2. I guess I was just referring to vmkit then. On Thu, Nov 21, 2013 at 12:10 PM, Gaël Thomas <gael.thomas00 at gmail.com> wrote:> Hi Adam, > > I don't know which repo you have used? Because only the llvm repo is > maintained (not the gforge one), and vmkit2 comes from gforge... By the way, > how did you found the gforge repo, it should not be referenced anymore from > the web? > > See you, > Gaël > > Le 21 nov. 2013 17:08, "Adam Pridgen" <Adam.pridgen at rice.edu> a écrit : >> >> Hello, >> >> I am trying to build vmkit2 from the repo using OpenJDK 6 (stock >> install) on Ubuntu 13.04 amd64. When I try to compile vmkit2 I get >> the core dump below. I am not sure what the issue is, but I was >> getting the same error when I was also using classpath. My build >> environment is set up in the following way: >> >> >> >> >> LD_LIBRARY_PATH=/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/:/usr/lib/jvm/java-6-openjdk-amd64/jre/:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/ >> >> llvm src=/path/to/code/llvm-3.3.src/ >> llvm configured with=./configure --enable-optimized >> --enable-assertions --enable-jit --enable-cxx11 --enable-threads >> --enable-pthreads --enable-pic --enable-targets=host,cpp --enable-zlib >> --disable-docs --disable-doxygen >> >> vmkit2 path=/path/to/code/vmkit2 >> >> vmkit2 configured with: ./configure >> >> --with-llvm-config-path=/path/to/code/llvm-3.3.src/Release+Asserts/bin/llvm-config >> --with-classpath-impl=openjdk --enable-assert=yes --disable-optimized >> --enable-debug=yes >> --with-openjdk-path=/usr/lib/jvm/java-6-openjdk-amd64/ >> >> $ make >> [vmkit .]: Entering compilation process >> Buildfile: /path/to/code/vmkit2/mmtk/java/build.xml >> >> main: >> [javac] Compiling 1 source file to >> /path/to/code/vmkit2/mmtk/java/classes >> [jar] Building jar: /path/to/code/vmkit2/mmtk/java/mmtk-vmkit.jar >> >> BUILD SUCCESSFUL >> Total time: 0 seconds >> [vmkit ./mmtk/java]: Compiling 'mmtk-vmkit.jar' >> vmjc: JavaClass.cpp:496: j3::JavaObject *j3::Class::doNew(j3::Jnjvm >> *): Assertion `(this->isInitializing() || >> classLoader->getCompiler()->isStaticCompiling() || this =>> classLoader->bootstrapLoader->upcalls->newClass) && "Uninitialized >> class when allocating."' failed. >> 0 vmjc 0x0000000000fa5415 >> llvm::sys::PrintStackTrace(_IO_FILE*) + 37 >> 1 vmjc 0x0000000000fa5903 >> 2 libpthread.so.0 0x00002b020f7debb0 >> 3 libc.so.6 0x00002b0210444f77 gsignal + 55 >> 4 libc.so.6 0x00002b02104485e8 abort + 328 >> 5 libc.so.6 0x00002b021043dd43 >> 6 libc.so.6 0x00002b021043ddf2 >> 7 vmjc 0x00000000006154b4 j3::Class::doNew(j3::Jnjvm*) + 196 >> 8 vmjc 0x000000000066eb7c j3::Jnjvm::error(j3::Class*, >> j3::JavaMethod*, j3::JavaString*) + 124 >> 9 vmjc 0x000000000066ed63 j3::Jnjvm::nullPointerException() + >> 51 >> 10 vmjc 0x00000000006362cc >> j3::JavaThread::throwNullPointerException(unsigned long) + 140 >> 11 vmjc 0x00000000006cb243 ThrowNullPointerException + 35 >> 12 libjava.so 0x00002b021561a035 >> Java_java_lang_Object_registerNatives + 21 >> 13 libjava.so 0x00002b021536b96f >> Java_java_lang_Object_registerNatives + 4292155727 >> Aborted (core dumped) >> make[2]: *** >> [/path/to/code/vmkit2/mmtk/java/Debug+Asserts/mmtk-vmkit-lower.bc] >> Error 134 >> [vmkit ./mmtk]: abort with error in ./mmtk/java >> make[1]: *** [all] Error 1 >> [vmkit .]: abort with error in ./mmtk >> make: *** [all] Error 1 >> >> Thanks for your help, >> >> -- Adam >> >> -- >> PhD Student, Rice University >> Office: Duncan Hall 1083 >> Office Hours: M 11-12p >> (c) 210.446.7805 >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-- PhD Student, Rice University Office: Duncan Hall 1083 Office Hours: M 11-12p (c) 210.446.7805