From nicolas.geoffray at lip6.fr Wed Jun 6 11:56:09 2012 From: nicolas.geoffray at lip6.fr (Nicolas Geoffray) Date: Wed, 06 Jun 2012 18:56:09 -0000 Subject: [vmkit-commits] [vmkit] r158094 - /vmkit/trunk/lib/j3/VMCore/Jni.cpp Message-ID: <20120606185609.6959B2A6C065@llvm.org> Author: geoffray Date: Wed Jun 6 13:56:09 2012 New Revision: 158094 URL: http://llvm.org/viewvc/llvm-project?rev=158094&view=rev Log: Fix compiler warning. Modified: vmkit/trunk/lib/j3/VMCore/Jni.cpp Modified: vmkit/trunk/lib/j3/VMCore/Jni.cpp URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/j3/VMCore/Jni.cpp?rev=158094&r1=158093&r2=158094&view=diff ============================================================================== --- vmkit/trunk/lib/j3/VMCore/Jni.cpp (original) +++ vmkit/trunk/lib/j3/VMCore/Jni.cpp Wed Jun 6 13:56:09 2012 @@ -59,7 +59,7 @@ JavaObject * loader = _loader ? *(JavaObject**)_loader : 0; llvm_gcroot(loader, 0); - jclass res; + jclass res = NULL; Jnjvm* vm = JavaThread::get()->getJVM(); JnjvmClassLoader* JCL = From nicolas.geoffray at lip6.fr Mon Jun 11 06:45:48 2012 From: nicolas.geoffray at lip6.fr (Nicolas Geoffray) Date: Mon, 11 Jun 2012 13:45:48 -0000 Subject: [vmkit-commits] [vmkit] r158308 - /vmkit/trunk/Makefile.rules Message-ID: <20120611134548.9B80E2A6C065@llvm.org> Author: geoffray Date: Mon Jun 11 08:45:48 2012 New Revision: 158308 URL: http://llvm.org/viewvc/llvm-project?rev=158308&view=rev Log: Set the right location for the llvm build file. In some configurations, this is needed. Modified: vmkit/trunk/Makefile.rules Modified: vmkit/trunk/Makefile.rules URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/Makefile.rules?rev=158308&r1=158307&r2=158308&view=diff ============================================================================== --- vmkit/trunk/Makefile.rules (original) +++ vmkit/trunk/Makefile.rules Mon Jun 11 08:45:48 2012 @@ -1,5 +1,9 @@ VMJC := $(ToolDir)/vmjc$(EXEEXT) + +# Set the LLVM build file location +LLVMBuildTool := $(LLVM_SRC_ROOT)/utils/llvm-build/llvm-build + ############################################################################### # VMKIT_RUNTIME: Provide rules to build a .cpp file with LLVM instructions # generating code matching the .ll files. From tangwei.ict at gmail.com Tue Jun 12 07:05:17 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Tue, 12 Jun 2012 22:05:17 +0800 Subject: [vmkit-commits] vmkit build failure Message-ID: Hi, I got lots of "undefined reference" when building vmkit. Anyone can help to give a solution? I built it on x86_64 ubuntu with gcc 4.6.3 /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xc70): undefined reference to `java_lang_System_bytes' /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xd60): undefined reference to `java_lang_Cloneable_bytes' /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xe50): undefined reference to `java_lang_VMObject_bytes' /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xf40): undefined reference to `java_lang_CloneNotSupportedException_bytes' /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x11a0): undefined reference to `java_lang_StringBuilder_bytes' /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1290): undefined reference to `java_lang_IllegalArgumentException_bytes' /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1380): undefined reference to `java_lang_Object_bytes' /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1470): undefined reference to `java_lang_Throwable_bytes' /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1560): undefined reference to `java_lang_IllegalMonitorStateException_bytes' /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1650): undefined reference to `java_lang_InterruptedException_bytes' ...... -- Best Regards wei -------------- next part -------------- An HTML attachment was scrubbed... URL: From h.bakiras at gmail.com Tue Jun 12 07:17:30 2012 From: h.bakiras at gmail.com (Harris BAKIRAS) Date: Tue, 12 Jun 2012 16:17:30 +0200 Subject: [vmkit-commits] vmkit build failure In-Reply-To: References: Message-ID: <4FD74F7A.6080606@gmail.com> Hi Wei, To build VMKit you will need to use llvm clang because it does not compile with gcc (as far as I remember). Can you give us your configuration line ? which version of llvm are you using ? Cheers, Harris Bakiras On 06/12/2012 04:05 PM, Wei Tang wrote: > Hi, > I got lots of "undefined reference" when building vmkit. Anyone can > help to give a solution? > I built it on x86_64 ubuntu with gcc 4.6.3 > > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xc70): > undefined reference to `java_lang_System_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xd60): > undefined reference to `java_lang_Cloneable_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xe50): > undefined reference to `java_lang_VMObject_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xf40): > undefined reference to `java_lang_CloneNotSupportedException_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x11a0): > undefined reference to `java_lang_StringBuilder_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1290): > undefined reference to `java_lang_IllegalArgumentException_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1380): > undefined reference to `java_lang_Object_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1470): > undefined reference to `java_lang_Throwable_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1560): > undefined reference to `java_lang_IllegalMonitorStateException_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1650): > undefined reference to `java_lang_InterruptedException_bytes' > ...... > > -- > Best Regards > wei > > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits -------------- next part -------------- An HTML attachment was scrubbed... URL: From tangwei.ict at gmail.com Tue Jun 12 07:25:38 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Tue, 12 Jun 2012 22:25:38 +0800 Subject: [vmkit-commits] vmkit build failure In-Reply-To: <4FD74F7A.6080606@gmail.com> References: <4FD74F7A.6080606@gmail.com> Message-ID: Hi Harris Bakiras, Thanks for quick response. Following is my configure line: ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/obj/lib --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/obj/lib my llvm version is 3.2, directly check from llvm trunk http://llvm.org/svn/llvm-project/llvm/trunk I configured and built everything in separate directory "obj". Regards! wei On Tue, Jun 12, 2012 at 10:17 PM, Harris BAKIRAS wrote: > Hi Wei, > > To build VMKit you will need to use llvm clang because it does not compile > with gcc (as far as I remember). > > Can you give us your configuration line ? which version of llvm are you > using ? > > Cheers, > > Harris Bakiras > > > On 06/12/2012 04:05 PM, Wei Tang wrote: > > Hi, > I got lots of "undefined reference" when building vmkit. Anyone can help > to give a solution? > I built it on x86_64 ubuntu with gcc 4.6.3 > > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xc70): > undefined reference to `java_lang_System_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xd60): > undefined reference to `java_lang_Cloneable_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xe50): > undefined reference to `java_lang_VMObject_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xf40): > undefined reference to `java_lang_CloneNotSupportedException_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x11a0): > undefined reference to `java_lang_StringBuilder_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1290): > undefined reference to `java_lang_IllegalArgumentException_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1380): > undefined reference to `java_lang_Object_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1470): > undefined reference to `java_lang_Throwable_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1560): > undefined reference to `java_lang_IllegalMonitorStateException_bytes' > /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1650): > undefined reference to `java_lang_InterruptedException_bytes' > ...... > > -- > Best Regards > wei > > > _______________________________________________ > vmkit-commits mailing listvmkit-commits at cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -- Best Regards tangwei -------------- next part -------------- An HTML attachment was scrubbed... URL: From koutheir at gmail.com Tue Jun 12 07:29:36 2012 From: koutheir at gmail.com (Koutheir Attouchi) Date: Tue, 12 Jun 2012 16:29:36 +0200 Subject: [vmkit-commits] vmkit build failure In-Reply-To: References: <4FD74F7A.6080606@gmail.com> Message-ID: Hi, You need to build clang also. I made a small notice for this. It might help you: =================== Prepare the system: =================== apt-get install libgconf2-dev default-jre default-jdk libgtk2.0-dev ============== GNU Classpath: ============== wget http://ftp.gnu.org/gnu/classpath/classpath-0.97.2.tar.gz tar zxvf classpath-0.97.2.tar.gz ln -s classpath-0.97.2 classpath cd classpath ./configure --disable-plugin --disable-examples --disable-Werror make -j12 cd lib ln -sf ../native/jni/gtk-peer/.libs/libgtkpeer.so ln -sf ../native/jni/gconf-peer/.libs/libgconfpeer.so ln -sf ../native/jni/java-io/.libs/libjavaio.so ln -sf ../native/jni/java-lang/.libs/libjavalangreflect.so ln -sf ../native/jni/java-lang/.libs/libjavalang.so ln -sf ../native/jni/java-net/.libs/libjavanet.so ln -sf ../native/jni/java-nio/.libs/libjavanio.so ln -sf ../native/jni/java-util/.libs/libjavautil.so ===== LLVM: ===== svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm cd llvm/tools svn co http://llvm.org/svn/llvm-project/cfe/trunk clang cd ../projects svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt cd .. ./configure --enable-optimized && make -j12 ENABLE_OPTIMIZED=1 I hope this helps. Koutheir ATTOUCHI. LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi Blog: http://koutheir.blogspot.com On Tue, Jun 12, 2012 at 4:25 PM, Wei Tang wrote: > Hi Harris Bakiras, > Thanks for quick response. Following is my configure line: > > ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm > --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj > --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/obj/lib > --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/obj/lib > > my llvm version is 3.2, directly check from llvm trunk > http://llvm.org/svn/llvm-project/llvm/trunk > > I configured and built everything in separate directory "obj". > > Regards! > wei > > On Tue, Jun 12, 2012 at 10:17 PM, Harris BAKIRAS wrote: > >> Hi Wei, >> >> To build VMKit you will need to use llvm clang because it does not >> compile with gcc (as far as I remember). >> >> Can you give us your configuration line ? which version of llvm are you >> using ? >> >> Cheers, >> >> Harris Bakiras >> >> >> On 06/12/2012 04:05 PM, Wei Tang wrote: >> >> Hi, >> I got lots of "undefined reference" when building vmkit. Anyone can >> help to give a solution? >> I built it on x86_64 ubuntu with gcc 4.6.3 >> >> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xc70): >> undefined reference to `java_lang_System_bytes' >> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xd60): >> undefined reference to `java_lang_Cloneable_bytes' >> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xe50): >> undefined reference to `java_lang_VMObject_bytes' >> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xf40): >> undefined reference to `java_lang_CloneNotSupportedException_bytes' >> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x11a0): >> undefined reference to `java_lang_StringBuilder_bytes' >> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1290): >> undefined reference to `java_lang_IllegalArgumentException_bytes' >> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1380): >> undefined reference to `java_lang_Object_bytes' >> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1470): >> undefined reference to `java_lang_Throwable_bytes' >> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1560): >> undefined reference to `java_lang_IllegalMonitorStateException_bytes' >> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1650): >> undefined reference to `java_lang_InterruptedException_bytes' >> ...... >> >> -- >> Best Regards >> wei >> >> >> _______________________________________________ >> vmkit-commits mailing listvmkit-commits at cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > > -- > Best Regards > tangwei > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tangwei.ict at gmail.com Tue Jun 12 07:36:07 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Tue, 12 Jun 2012 22:36:07 +0800 Subject: [vmkit-commits] vmkit build failure In-Reply-To: References: <4FD74F7A.6080606@gmail.com> Message-ID: Hi, I did strictly follow those steps, and clang has been built correctly. I can find clang in directory "Release+Asserts/bin/" Regards! wei On Tue, Jun 12, 2012 at 10:29 PM, Koutheir Attouchi wrote: > Hi, > > You need to build clang also. I made a small notice for this. It might > help you: > > =================== > Prepare the system: > =================== > apt-get install libgconf2-dev default-jre default-jdk libgtk2.0-dev > > ============== > GNU Classpath: > ============== > wget http://ftp.gnu.org/gnu/classpath/classpath-0.97.2.tar.gz > tar zxvf classpath-0.97.2.tar.gz > ln -s classpath-0.97.2 classpath > cd classpath > ./configure --disable-plugin --disable-examples --disable-Werror > make -j12 > cd lib > ln -sf ../native/jni/gtk-peer/.libs/libgtkpeer.so > ln -sf ../native/jni/gconf-peer/.libs/libgconfpeer.so > ln -sf ../native/jni/java-io/.libs/libjavaio.so > ln -sf ../native/jni/java-lang/.libs/libjavalangreflect.so > ln -sf ../native/jni/java-lang/.libs/libjavalang.so > ln -sf ../native/jni/java-net/.libs/libjavanet.so > ln -sf ../native/jni/java-nio/.libs/libjavanio.so > ln -sf ../native/jni/java-util/.libs/libjavautil.so > > ===== > LLVM: > ===== > svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm > cd llvm/tools > svn co http://llvm.org/svn/llvm-project/cfe/trunk clang > cd ../projects > svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt > cd .. > ./configure --enable-optimized && make -j12 ENABLE_OPTIMIZED=1 > > I hope this helps. > > Koutheir ATTOUCHI. > LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi > Blog: http://koutheir.blogspot.com > > > > > On Tue, Jun 12, 2012 at 4:25 PM, Wei Tang wrote: > >> Hi Harris Bakiras, >> Thanks for quick response. Following is my configure line: >> >> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/obj/lib >> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/obj/lib >> >> my llvm version is 3.2, directly check from llvm trunk >> http://llvm.org/svn/llvm-project/llvm/trunk >> >> I configured and built everything in separate directory "obj". >> >> Regards! >> wei >> >> On Tue, Jun 12, 2012 at 10:17 PM, Harris BAKIRAS wrote: >> >>> Hi Wei, >>> >>> To build VMKit you will need to use llvm clang because it does not >>> compile with gcc (as far as I remember). >>> >>> Can you give us your configuration line ? which version of llvm are you >>> using ? >>> >>> Cheers, >>> >>> Harris Bakiras >>> >>> >>> On 06/12/2012 04:05 PM, Wei Tang wrote: >>> >>> Hi, >>> I got lots of "undefined reference" when building vmkit. Anyone can >>> help to give a solution? >>> I built it on x86_64 ubuntu with gcc 4.6.3 >>> >>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xc70): >>> undefined reference to `java_lang_System_bytes' >>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xd60): >>> undefined reference to `java_lang_Cloneable_bytes' >>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xe50): >>> undefined reference to `java_lang_VMObject_bytes' >>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xf40): >>> undefined reference to `java_lang_CloneNotSupportedException_bytes' >>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x11a0): >>> undefined reference to `java_lang_StringBuilder_bytes' >>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1290): >>> undefined reference to `java_lang_IllegalArgumentException_bytes' >>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1380): >>> undefined reference to `java_lang_Object_bytes' >>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1470): >>> undefined reference to `java_lang_Throwable_bytes' >>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1560): >>> undefined reference to `java_lang_IllegalMonitorStateException_bytes' >>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1650): >>> undefined reference to `java_lang_InterruptedException_bytes' >>> ...... >>> >>> -- >>> Best Regards >>> wei >>> >>> >>> _______________________________________________ >>> vmkit-commits mailing listvmkit-commits at cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> >> -- >> Best Regards >> tangwei >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -- Best Regards tangwei -------------- next part -------------- An HTML attachment was scrubbed... URL: From koutheir at gmail.com Tue Jun 12 07:43:20 2012 From: koutheir at gmail.com (Koutheir Attouchi) Date: Tue, 12 Jun 2012 16:43:20 +0200 Subject: [vmkit-commits] vmkit build failure In-Reply-To: References: <4FD74F7A.6080606@gmail.com> Message-ID: Your configure parameters are probably wrong. Here is mine: ./configure --with-llvmsrc=/path/to/llvm --with-llvmobj=/path/to/llvm --with-gnu-classpath-libs=/path/to/classpath/lib --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip Notice that I installed gnu classpath I compiled from source (sudo make install). That is why I have glibj.zip in my /usr/local. Koutheir ATTOUCHI. LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi Blog: http://koutheir.blogspot.com On Tue, Jun 12, 2012 at 4:36 PM, Wei Tang wrote: > Hi, > I did strictly follow those steps, and clang has been built correctly. > I can find clang in directory "Release+Asserts/bin/" > > Regards! > wei > > > > On Tue, Jun 12, 2012 at 10:29 PM, Koutheir Attouchi wrote: > >> Hi, >> >> You need to build clang also. I made a small notice for this. It might >> help you: >> >> =================== >> Prepare the system: >> =================== >> apt-get install libgconf2-dev default-jre default-jdk libgtk2.0-dev >> >> ============== >> GNU Classpath: >> ============== >> wget http://ftp.gnu.org/gnu/classpath/classpath-0.97.2.tar.gz >> tar zxvf classpath-0.97.2.tar.gz >> ln -s classpath-0.97.2 classpath >> cd classpath >> ./configure --disable-plugin --disable-examples --disable-Werror >> make -j12 >> cd lib >> ln -sf ../native/jni/gtk-peer/.libs/libgtkpeer.so >> ln -sf ../native/jni/gconf-peer/.libs/libgconfpeer.so >> ln -sf ../native/jni/java-io/.libs/libjavaio.so >> ln -sf ../native/jni/java-lang/.libs/libjavalangreflect.so >> ln -sf ../native/jni/java-lang/.libs/libjavalang.so >> ln -sf ../native/jni/java-net/.libs/libjavanet.so >> ln -sf ../native/jni/java-nio/.libs/libjavanio.so >> ln -sf ../native/jni/java-util/.libs/libjavautil.so >> >> ===== >> LLVM: >> ===== >> svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm >> cd llvm/tools >> svn co http://llvm.org/svn/llvm-project/cfe/trunk clang >> cd ../projects >> svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt >> cd .. >> ./configure --enable-optimized && make -j12 ENABLE_OPTIMIZED=1 >> >> I hope this helps. >> >> Koutheir ATTOUCHI. >> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >> Blog: http://koutheir.blogspot.com >> >> >> >> >> On Tue, Jun 12, 2012 at 4:25 PM, Wei Tang wrote: >> >>> Hi Harris Bakiras, >>> Thanks for quick response. Following is my configure line: >>> >>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/obj/lib >>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/obj/lib >>> >>> my llvm version is 3.2, directly check from llvm trunk >>> http://llvm.org/svn/llvm-project/llvm/trunk >>> >>> I configured and built everything in separate directory "obj". >>> >>> Regards! >>> wei >>> >>> On Tue, Jun 12, 2012 at 10:17 PM, Harris BAKIRAS wrote: >>> >>>> Hi Wei, >>>> >>>> To build VMKit you will need to use llvm clang because it does not >>>> compile with gcc (as far as I remember). >>>> >>>> Can you give us your configuration line ? which version of llvm are you >>>> using ? >>>> >>>> Cheers, >>>> >>>> Harris Bakiras >>>> >>>> >>>> On 06/12/2012 04:05 PM, Wei Tang wrote: >>>> >>>> Hi, >>>> I got lots of "undefined reference" when building vmkit. Anyone can >>>> help to give a solution? >>>> I built it on x86_64 ubuntu with gcc 4.6.3 >>>> >>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xc70): >>>> undefined reference to `java_lang_System_bytes' >>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xd60): >>>> undefined reference to `java_lang_Cloneable_bytes' >>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xe50): >>>> undefined reference to `java_lang_VMObject_bytes' >>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xf40): >>>> undefined reference to `java_lang_CloneNotSupportedException_bytes' >>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x11a0): >>>> undefined reference to `java_lang_StringBuilder_bytes' >>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1290): >>>> undefined reference to `java_lang_IllegalArgumentException_bytes' >>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1380): >>>> undefined reference to `java_lang_Object_bytes' >>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1470): >>>> undefined reference to `java_lang_Throwable_bytes' >>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1560): >>>> undefined reference to `java_lang_IllegalMonitorStateException_bytes' >>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1650): >>>> undefined reference to `java_lang_InterruptedException_bytes' >>>> ...... >>>> >>>> -- >>>> Best Regards >>>> wei >>>> >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing listvmkit-commits at cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >>> >>> -- >>> Best Regards >>> tangwei >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > > -- > Best Regards > tangwei > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tangwei.ict at gmail.com Tue Jun 12 07:59:03 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Tue, 12 Jun 2012 22:59:03 +0800 Subject: [vmkit-commits] vmkit build failure In-Reply-To: References: <4FD74F7A.6080606@gmail.com> Message-ID: I know the reason. The option "--with-gnu-classpath-glibj" expects a file name instead of directory name. After adding "glibj.zip" to my configure line, it works now. Thanks for your help! Regards! wei On Tue, Jun 12, 2012 at 10:43 PM, Koutheir Attouchi wrote: > Your configure parameters are probably wrong. Here is mine: > ./configure --with-llvmsrc=/path/to/llvm --with-llvmobj=/path/to/llvm > --with-gnu-classpath-libs=/path/to/classpath/lib > --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip > > Notice that I installed gnu classpath I compiled from source (sudo make > install). That is why I have glibj.zip in my /usr/local. > > Koutheir ATTOUCHI. > LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi > Blog: http://koutheir.blogspot.com > > > > > On Tue, Jun 12, 2012 at 4:36 PM, Wei Tang wrote: > >> Hi, >> I did strictly follow those steps, and clang has been built correctly. >> I can find clang in directory "Release+Asserts/bin/" >> >> Regards! >> wei >> >> >> >> On Tue, Jun 12, 2012 at 10:29 PM, Koutheir Attouchi wrote: >> >>> Hi, >>> >>> You need to build clang also. I made a small notice for this. It might >>> help you: >>> >>> =================== >>> Prepare the system: >>> =================== >>> apt-get install libgconf2-dev default-jre default-jdk libgtk2.0-dev >>> >>> ============== >>> GNU Classpath: >>> ============== >>> wget http://ftp.gnu.org/gnu/classpath/classpath-0.97.2.tar.gz >>> tar zxvf classpath-0.97.2.tar.gz >>> ln -s classpath-0.97.2 classpath >>> cd classpath >>> ./configure --disable-plugin --disable-examples --disable-Werror >>> make -j12 >>> cd lib >>> ln -sf ../native/jni/gtk-peer/.libs/libgtkpeer.so >>> ln -sf ../native/jni/gconf-peer/.libs/libgconfpeer.so >>> ln -sf ../native/jni/java-io/.libs/libjavaio.so >>> ln -sf ../native/jni/java-lang/.libs/libjavalangreflect.so >>> ln -sf ../native/jni/java-lang/.libs/libjavalang.so >>> ln -sf ../native/jni/java-net/.libs/libjavanet.so >>> ln -sf ../native/jni/java-nio/.libs/libjavanio.so >>> ln -sf ../native/jni/java-util/.libs/libjavautil.so >>> >>> ===== >>> LLVM: >>> ===== >>> svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm >>> cd llvm/tools >>> svn co http://llvm.org/svn/llvm-project/cfe/trunk clang >>> cd ../projects >>> svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt >>> cd .. >>> ./configure --enable-optimized && make -j12 ENABLE_OPTIMIZED=1 >>> >>> I hope this helps. >>> >>> Koutheir ATTOUCHI. >>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>> Blog: http://koutheir.blogspot.com >>> >>> >>> >>> >>> On Tue, Jun 12, 2012 at 4:25 PM, Wei Tang wrote: >>> >>>> Hi Harris Bakiras, >>>> Thanks for quick response. Following is my configure line: >>>> >>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/obj/lib >>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/obj/lib >>>> >>>> my llvm version is 3.2, directly check from llvm trunk >>>> http://llvm.org/svn/llvm-project/llvm/trunk >>>> >>>> I configured and built everything in separate directory "obj". >>>> >>>> Regards! >>>> wei >>>> >>>> On Tue, Jun 12, 2012 at 10:17 PM, Harris BAKIRAS wrote: >>>> >>>>> Hi Wei, >>>>> >>>>> To build VMKit you will need to use llvm clang because it does not >>>>> compile with gcc (as far as I remember). >>>>> >>>>> Can you give us your configuration line ? which version of llvm are >>>>> you using ? >>>>> >>>>> Cheers, >>>>> >>>>> Harris Bakiras >>>>> >>>>> >>>>> On 06/12/2012 04:05 PM, Wei Tang wrote: >>>>> >>>>> Hi, >>>>> I got lots of "undefined reference" when building vmkit. Anyone can >>>>> help to give a solution? >>>>> I built it on x86_64 ubuntu with gcc 4.6.3 >>>>> >>>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xc70): >>>>> undefined reference to `java_lang_System_bytes' >>>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xd60): >>>>> undefined reference to `java_lang_Cloneable_bytes' >>>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xe50): >>>>> undefined reference to `java_lang_VMObject_bytes' >>>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0xf40): >>>>> undefined reference to `java_lang_CloneNotSupportedException_bytes' >>>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x11a0): >>>>> undefined reference to `java_lang_StringBuilder_bytes' >>>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1290): >>>>> undefined reference to `java_lang_IllegalArgumentException_bytes' >>>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1380): >>>>> undefined reference to `java_lang_Object_bytes' >>>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1470): >>>>> undefined reference to `java_lang_Throwable_bytes' >>>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1560): >>>>> undefined reference to `java_lang_IllegalMonitorStateException_bytes' >>>>> /wsp/cmplr/vmkit/vmkit/obj/Release+Asserts/lib/libPrecompiled.a(Precompiled.o):(.data+0x1650): >>>>> undefined reference to `java_lang_InterruptedException_bytes' >>>>> ...... >>>>> >>>>> -- >>>>> Best Regards >>>>> wei >>>>> >>>>> >>>>> _______________________________________________ >>>>> vmkit-commits mailing listvmkit-commits at cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>> >>>>> >>>>> _______________________________________________ >>>>> vmkit-commits mailing list >>>>> vmkit-commits at cs.uiuc.edu >>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>> >>>>> >>>> >>>> >>>> -- >>>> Best Regards >>>> tangwei >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> >> -- >> Best Regards >> tangwei >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -- Best Regards tangwei -------------- next part -------------- An HTML attachment was scrubbed... URL: From tangwei.ict at gmail.com Tue Jun 12 18:29:18 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Wed, 13 Jun 2012 09:29:18 +0800 Subject: [vmkit-commits] vmkit doesn't support debug build? Message-ID: Hi, Does vmkit support debug build now? I can build successfully with "make ENABLE_OPTIMIZED=1", but failed with "make". Following is error message for your reference. llvm[0]: Constructing LLVMBuild project information. make[1]: Entering directory `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build (PIC) llvm[1]: Linking Debug+Asserts Loadable Module StaticGCPass.so make[1]: *** No rule to make target `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', needed by `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. Stop. make[1]: Leaving directory `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' make: *** [all] Error 1 my configure line: ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib -- Best Regards wei -------------- next part -------------- An HTML attachment was scrubbed... URL: From koutheir at gmail.com Tue Jun 12 18:52:56 2012 From: koutheir at gmail.com (Koutheir Attouchi) Date: Wed, 13 Jun 2012 03:52:56 +0200 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: Officially, VMKit does not support debug builds. But I can make a patch that makes it work in debug build. However, my modifications are not yet committed and I qualify them to be in beta stage. If you don't need debugging, stick with the trunk version. If you really need it, I can send you a patch that enables debugging. Koutheir ATTOUCHI. LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi Blog: http://koutheir.blogspot.com On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang wrote: > Hi, > Does vmkit support debug build now? I can build successfully with "make > ENABLE_OPTIMIZED=1", but failed with "make". > Following is error message for your reference. > > llvm[0]: Constructing LLVMBuild project information. > make[1]: Entering directory > `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' > llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build (PIC) > llvm[1]: Linking Debug+Asserts Loadable Module StaticGCPass.so > make[1]: *** No rule to make target > `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', > needed by > `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. > Stop. > make[1]: Leaving directory > `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' > make: *** [all] Error 1 > > my configure line: > ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm > --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj > --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip > --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib > > -- > Best Regards > wei > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tangwei.ict at gmail.com Tue Jun 12 19:32:25 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Wed, 13 Jun 2012 10:32:25 +0800 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: Would you send me the patch? I hope to understand more details by debugging instead of just reading source code. Thanks in advance! Regards! tangwei On Wed, Jun 13, 2012 at 9:52 AM, Koutheir Attouchi wrote: > Officially, VMKit does not support debug builds. But I can make a patch > that makes it work in debug build. However, my modifications are not yet > committed and I qualify them to be in beta stage. If you don't need > debugging, stick with the trunk version. If you really need it, I can send > you a patch that enables debugging. > > Koutheir ATTOUCHI. > LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi > Blog: http://koutheir.blogspot.com > > > > > On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang wrote: > >> Hi, >> Does vmkit support debug build now? I can build successfully with >> "make ENABLE_OPTIMIZED=1", but failed with "make". >> Following is error message for your reference. >> >> llvm[0]: Constructing LLVMBuild project information. >> make[1]: Entering directory >> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >> llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build (PIC) >> llvm[1]: Linking Debug+Asserts Loadable Module StaticGCPass.so >> make[1]: *** No rule to make target >> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', >> needed by >> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. >> Stop. >> make[1]: Leaving directory >> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >> make: *** [all] Error 1 >> >> my configure line: >> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >> >> -- >> Best Regards >> wei >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -- Best Regards tangwei -------------- next part -------------- An HTML attachment was scrubbed... URL: From koutheir at gmail.com Wed Jun 13 00:01:33 2012 From: koutheir at gmail.com (Koutheir Attouchi) Date: Wed, 13 Jun 2012 09:01:33 +0200 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: I'll send you the patch soon. If you have specific questions then post them on the mailing list. I advise you to read the code (at least the headers) before debugging. Koutheir Attouchi. On Jun 13, 2012 4:32 AM, "Wei Tang" wrote: > Would you send me the patch? I hope to understand more details by > debugging instead of just reading source code. > Thanks in advance! > > Regards! > tangwei > > On Wed, Jun 13, 2012 at 9:52 AM, Koutheir Attouchi wrote: > >> Officially, VMKit does not support debug builds. But I can make a patch >> that makes it work in debug build. However, my modifications are not yet >> committed and I qualify them to be in beta stage. If you don't need >> debugging, stick with the trunk version. If you really need it, I can send >> you a patch that enables debugging. >> >> Koutheir ATTOUCHI. >> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >> Blog: http://koutheir.blogspot.com >> >> >> >> >> On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang wrote: >> >>> Hi, >>> Does vmkit support debug build now? I can build successfully with >>> "make ENABLE_OPTIMIZED=1", but failed with "make". >>> Following is error message for your reference. >>> >>> llvm[0]: Constructing LLVMBuild project information. >>> make[1]: Entering directory >>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>> llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build (PIC) >>> llvm[1]: Linking Debug+Asserts Loadable Module StaticGCPass.so >>> make[1]: *** No rule to make target >>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', >>> needed by >>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. >>> Stop. >>> make[1]: Leaving directory >>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>> make: *** [all] Error 1 >>> >>> my configure line: >>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>> >>> -- >>> Best Regards >>> wei >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > > -- > Best Regards > tangwei > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tangwei.ict at gmail.com Wed Jun 13 00:13:53 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Wed, 13 Jun 2012 15:13:53 +0800 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: Thanks a lot for help! Regards! wei On Wed, Jun 13, 2012 at 3:01 PM, Koutheir Attouchi wrote: > I'll send you the patch soon. If you have specific questions then post > them on the mailing list. I advise you to read the code (at least the > headers) before debugging. > > Koutheir Attouchi. > On Jun 13, 2012 4:32 AM, "Wei Tang" wrote: > >> Would you send me the patch? I hope to understand more details by >> debugging instead of just reading source code. >> Thanks in advance! >> >> Regards! >> tangwei >> >> On Wed, Jun 13, 2012 at 9:52 AM, Koutheir Attouchi wrote: >> >>> Officially, VMKit does not support debug builds. But I can make a patch >>> that makes it work in debug build. However, my modifications are not yet >>> committed and I qualify them to be in beta stage. If you don't need >>> debugging, stick with the trunk version. If you really need it, I can send >>> you a patch that enables debugging. >>> >>> Koutheir ATTOUCHI. >>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>> Blog: http://koutheir.blogspot.com >>> >>> >>> >>> >>> On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang wrote: >>> >>>> Hi, >>>> Does vmkit support debug build now? I can build successfully with >>>> "make ENABLE_OPTIMIZED=1", but failed with "make". >>>> Following is error message for your reference. >>>> >>>> llvm[0]: Constructing LLVMBuild project information. >>>> make[1]: Entering directory >>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>> llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build (PIC) >>>> llvm[1]: Linking Debug+Asserts Loadable Module StaticGCPass.so >>>> make[1]: *** No rule to make target >>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', >>>> needed by >>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. >>>> Stop. >>>> make[1]: Leaving directory >>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>> make: *** [all] Error 1 >>>> >>>> my configure line: >>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>>> >>>> -- >>>> Best Regards >>>> wei >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> >> -- >> Best Regards >> tangwei >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -- Best Regards tangwei -------------- next part -------------- An HTML attachment was scrubbed... URL: From koutheir at gmail.com Wed Jun 13 01:56:44 2012 From: koutheir at gmail.com (Koutheir Attouchi) Date: Wed, 13 Jun 2012 10:56:44 +0200 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: Hello, First, VMKit is compiled using LLVM tools. You probably need to compile LLVM in debug mode before compiling VMKit in debug mode. I do this using the commands: svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm cd llvm/tools svn co http://llvm.org/svn/llvm-project/cfe/trunk clang cd ../projects svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt cd .. ./configure --disable-optimized --enable-assertions --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads --enable-pthreads --enable-pic --enable-targets=x86,cpp make -j12 ENABLE_OPTIMIZED=0 BUILD_EXAMPLES=0 ENABLE_DOCS=0 This might take a long time to compile. Next, you get vmkit, patch it, configure it for debug mode then compile it: svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit cd vmkit patch -p0 < /path/to/vmkit-debug.patch ./configure --with-llvmsrc=/path/to/llvm --with-llvmobj=/path/to/llvm --with-gnu-classpath-libs=/path/to/classpath/lib --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip make -j12 The patch modifies configure files and makefiles and source files. So patch a verbatim copy of VMKit and do run configure *after* patching. If you have issues feel free to ask. Cordially. Koutheir ATTOUCHI. LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi Blog: http://koutheir.blogspot.com On Wed, Jun 13, 2012 at 9:13 AM, Wei Tang wrote: > Thanks a lot for help! > > Regards! > wei > > > On Wed, Jun 13, 2012 at 3:01 PM, Koutheir Attouchi wrote: > >> I'll send you the patch soon. If you have specific questions then post >> them on the mailing list. I advise you to read the code (at least the >> headers) before debugging. >> >> Koutheir Attouchi. >> On Jun 13, 2012 4:32 AM, "Wei Tang" wrote: >> >>> Would you send me the patch? I hope to understand more details by >>> debugging instead of just reading source code. >>> Thanks in advance! >>> >>> Regards! >>> tangwei >>> >>> On Wed, Jun 13, 2012 at 9:52 AM, Koutheir Attouchi wrote: >>> >>>> Officially, VMKit does not support debug builds. But I can make a patch >>>> that makes it work in debug build. However, my modifications are not yet >>>> committed and I qualify them to be in beta stage. If you don't need >>>> debugging, stick with the trunk version. If you really need it, I can send >>>> you a patch that enables debugging. >>>> >>>> Koutheir ATTOUCHI. >>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>> Blog: http://koutheir.blogspot.com >>>> >>>> >>>> >>>> >>>> On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang wrote: >>>> >>>>> Hi, >>>>> Does vmkit support debug build now? I can build successfully with >>>>> "make ENABLE_OPTIMIZED=1", but failed with "make". >>>>> Following is error message for your reference. >>>>> >>>>> llvm[0]: Constructing LLVMBuild project information. >>>>> make[1]: Entering directory >>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>> llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build (PIC) >>>>> llvm[1]: Linking Debug+Asserts Loadable Module StaticGCPass.so >>>>> make[1]: *** No rule to make target >>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', >>>>> needed by >>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. >>>>> Stop. >>>>> make[1]: Leaving directory >>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>> make: *** [all] Error 1 >>>>> >>>>> my configure line: >>>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>>>> >>>>> -- >>>>> Best Regards >>>>> wei >>>>> >>>>> _______________________________________________ >>>>> vmkit-commits mailing list >>>>> vmkit-commits at cs.uiuc.edu >>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >>> >>> -- >>> Best Regards >>> tangwei >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > > -- > Best Regards > tangwei > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vmkit-debug.patch Type: application/octet-stream Size: 45947 bytes Desc: not available URL: From tangwei.ict at gmail.com Wed Jun 13 06:42:07 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Wed, 13 Jun 2012 21:42:07 +0800 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: Got new compilation error when building vmkit. /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s: Assembler messages: /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s:18: Error: file number 1 already allocated Regards! wei On Wed, Jun 13, 2012 at 4:56 PM, Koutheir Attouchi wrote: > Hello, > > First, VMKit is compiled using LLVM tools. You probably need to compile > LLVM in debug mode before compiling VMKit in debug mode. I do this using > the commands: > > svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm > cd llvm/tools > svn co http://llvm.org/svn/llvm-project/cfe/trunk clang > cd ../projects > svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt > cd .. > ./configure --disable-optimized --enable-assertions --enable-debug-runtime > --enable-debug-symbols --enable-jit --enable-threads --enable-pthreads > --enable-pic --enable-targets=x86,cpp > make -j12 ENABLE_OPTIMIZED=0 BUILD_EXAMPLES=0 ENABLE_DOCS=0 > > This might take a long time to compile. > Next, you get vmkit, patch it, configure it for debug mode then compile it: > > svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit > cd vmkit > patch -p0 < /path/to/vmkit-debug.patch > ./configure --with-llvmsrc=/path/to/llvm --with-llvmobj=/path/to/llvm > --with-gnu-classpath-libs=/path/to/classpath/lib > --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip > make -j12 > > The patch modifies configure files and makefiles and source files. So > patch a verbatim copy of VMKit and do run configure *after* patching. > If you have issues feel free to ask. > > Cordially. > > > Koutheir ATTOUCHI. > LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi > Blog: http://koutheir.blogspot.com > > > > > On Wed, Jun 13, 2012 at 9:13 AM, Wei Tang wrote: > >> Thanks a lot for help! >> >> Regards! >> wei >> >> >> On Wed, Jun 13, 2012 at 3:01 PM, Koutheir Attouchi wrote: >> >>> I'll send you the patch soon. If you have specific questions then post >>> them on the mailing list. I advise you to read the code (at least the >>> headers) before debugging. >>> >>> Koutheir Attouchi. >>> On Jun 13, 2012 4:32 AM, "Wei Tang" wrote: >>> >>>> Would you send me the patch? I hope to understand more details by >>>> debugging instead of just reading source code. >>>> Thanks in advance! >>>> >>>> Regards! >>>> tangwei >>>> >>>> On Wed, Jun 13, 2012 at 9:52 AM, Koutheir Attouchi wrote: >>>> >>>>> Officially, VMKit does not support debug builds. But I can make a >>>>> patch that makes it work in debug build. However, my modifications are not >>>>> yet committed and I qualify them to be in beta stage. If you don't need >>>>> debugging, stick with the trunk version. If you really need it, I can send >>>>> you a patch that enables debugging. >>>>> >>>>> Koutheir ATTOUCHI. >>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>> Blog: http://koutheir.blogspot.com >>>>> >>>>> >>>>> >>>>> >>>>> On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang wrote: >>>>> >>>>>> Hi, >>>>>> Does vmkit support debug build now? I can build successfully with >>>>>> "make ENABLE_OPTIMIZED=1", but failed with "make". >>>>>> Following is error message for your reference. >>>>>> >>>>>> llvm[0]: Constructing LLVMBuild project information. >>>>>> make[1]: Entering directory >>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>> llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build (PIC) >>>>>> llvm[1]: Linking Debug+Asserts Loadable Module StaticGCPass.so >>>>>> make[1]: *** No rule to make target >>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', >>>>>> needed by >>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. >>>>>> Stop. >>>>>> make[1]: Leaving directory >>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>> make: *** [all] Error 1 >>>>>> >>>>>> my configure line: >>>>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>>>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>>>>> >>>>>> -- >>>>>> Best Regards >>>>>> wei >>>>>> >>>>>> _______________________________________________ >>>>>> vmkit-commits mailing list >>>>>> vmkit-commits at cs.uiuc.edu >>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> vmkit-commits mailing list >>>>> vmkit-commits at cs.uiuc.edu >>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>> >>>>> >>>> >>>> >>>> -- >>>> Best Regards >>>> tangwei >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> >> -- >> Best Regards >> tangwei >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -- Best Regards tangwei -------------- next part -------------- An HTML attachment was scrubbed... URL: From koutheir at gmail.com Wed Jun 13 06:50:51 2012 From: koutheir at gmail.com (Koutheir Attouchi) Date: Wed, 13 Jun 2012 15:50:51 +0200 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: Oh I forgot, you should also patch some LLVM source files. Here is a patch file to do so. Remember to recompile LLVM once you patch the files. You don't have to reconfigure LLVM. Koutheir ATTOUCHI. LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi Blog: http://koutheir.blogspot.com On Wed, Jun 13, 2012 at 3:42 PM, Wei Tang wrote: > Got new compilation error when building vmkit. > > /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s: > Assembler messages: > /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s:18: > Error: file number 1 already allocated > > Regards! > wei > > > On Wed, Jun 13, 2012 at 4:56 PM, Koutheir Attouchi wrote: > >> Hello, >> >> First, VMKit is compiled using LLVM tools. You probably need to compile >> LLVM in debug mode before compiling VMKit in debug mode. I do this using >> the commands: >> >> svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm >> cd llvm/tools >> svn co http://llvm.org/svn/llvm-project/cfe/trunk clang >> cd ../projects >> svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt >> cd .. >> ./configure --disable-optimized --enable-assertions >> --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads >> --enable-pthreads --enable-pic --enable-targets=x86,cpp >> make -j12 ENABLE_OPTIMIZED=0 BUILD_EXAMPLES=0 ENABLE_DOCS=0 >> >> This might take a long time to compile. >> Next, you get vmkit, patch it, configure it for debug mode then compile >> it: >> >> svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit >> cd vmkit >> patch -p0 < /path/to/vmkit-debug.patch >> ./configure --with-llvmsrc=/path/to/llvm --with-llvmobj=/path/to/llvm >> --with-gnu-classpath-libs=/path/to/classpath/lib >> --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip >> make -j12 >> >> The patch modifies configure files and makefiles and source files. So >> patch a verbatim copy of VMKit and do run configure *after* patching. >> If you have issues feel free to ask. >> >> Cordially. >> >> >> Koutheir ATTOUCHI. >> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >> Blog: http://koutheir.blogspot.com >> >> >> >> >> On Wed, Jun 13, 2012 at 9:13 AM, Wei Tang wrote: >> >>> Thanks a lot for help! >>> >>> Regards! >>> wei >>> >>> >>> On Wed, Jun 13, 2012 at 3:01 PM, Koutheir Attouchi wrote: >>> >>>> I'll send you the patch soon. If you have specific questions then post >>>> them on the mailing list. I advise you to read the code (at least the >>>> headers) before debugging. >>>> >>>> Koutheir Attouchi. >>>> On Jun 13, 2012 4:32 AM, "Wei Tang" wrote: >>>> >>>>> Would you send me the patch? I hope to understand more details by >>>>> debugging instead of just reading source code. >>>>> Thanks in advance! >>>>> >>>>> Regards! >>>>> tangwei >>>>> >>>>> On Wed, Jun 13, 2012 at 9:52 AM, Koutheir Attouchi >>>> > wrote: >>>>> >>>>>> Officially, VMKit does not support debug builds. But I can make a >>>>>> patch that makes it work in debug build. However, my modifications are not >>>>>> yet committed and I qualify them to be in beta stage. If you don't need >>>>>> debugging, stick with the trunk version. If you really need it, I can send >>>>>> you a patch that enables debugging. >>>>>> >>>>>> Koutheir ATTOUCHI. >>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>> Blog: http://koutheir.blogspot.com >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang wrote: >>>>>> >>>>>>> Hi, >>>>>>> Does vmkit support debug build now? I can build successfully with >>>>>>> "make ENABLE_OPTIMIZED=1", but failed with "make". >>>>>>> Following is error message for your reference. >>>>>>> >>>>>>> llvm[0]: Constructing LLVMBuild project information. >>>>>>> make[1]: Entering directory >>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>> llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build (PIC) >>>>>>> llvm[1]: Linking Debug+Asserts Loadable Module StaticGCPass.so >>>>>>> make[1]: *** No rule to make target >>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', >>>>>>> needed by >>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. >>>>>>> Stop. >>>>>>> make[1]: Leaving directory >>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>> make: *** [all] Error 1 >>>>>>> >>>>>>> my configure line: >>>>>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>>>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>>>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>>>>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>>>>>> >>>>>>> -- >>>>>>> Best Regards >>>>>>> wei >>>>>>> >>>>>>> _______________________________________________ >>>>>>> vmkit-commits mailing list >>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> vmkit-commits mailing list >>>>>> vmkit-commits at cs.uiuc.edu >>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Best Regards >>>>> tangwei >>>>> >>>>> _______________________________________________ >>>>> vmkit-commits mailing list >>>>> vmkit-commits at cs.uiuc.edu >>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>> >>>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >>> >>> -- >>> Best Regards >>> tangwei >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > > -- > Best Regards > tangwei > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: llvm-debug.patch Type: application/octet-stream Size: 2731 bytes Desc: not available URL: From tangwei.ict at gmail.com Wed Jun 13 08:21:15 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Wed, 13 Jun 2012 23:21:15 +0800 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: new errors coming when building vmkit after recompiling llvm. /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1062:48: error: non-const lvalue reference to type 'va_list' (aka '__builtin_va_list') cannot bind to a value of unrelated type '__va_list_tag *' jvalue* buffer = marshalArguments(allocator, ap); ^~ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing argument to parameter 'ap' here jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, va_list& ap); ^ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1072:48: error: non-const lvalue reference to type 'va_list' (aka '__builtin_va_list') cannot bind to a value of unrelated type '__va_list_tag *' jvalue* buffer = marshalArguments(allocator, ap); ^~ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing argument to parameter 'ap' here jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, va_list& ap); ^ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1079:48: error: non-const lvalue reference to type 'va_list' (aka '__builtin_va_list') cannot bind to a value of unrelated type '__va_list_tag *' jvalue* buffer = marshalArguments(allocator, ap); ^~ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing argument to parameter 'ap' here jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, va_list& ap); Regards! wei On Wed, Jun 13, 2012 at 9:50 PM, Koutheir Attouchi wrote: > Oh I forgot, you should also patch some LLVM source files. Here is a > patch file to do so. Remember to recompile LLVM once you patch the files. > You don't have to reconfigure LLVM. > > > Koutheir ATTOUCHI. > LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi > Blog: http://koutheir.blogspot.com > > > > > On Wed, Jun 13, 2012 at 3:42 PM, Wei Tang wrote: > >> Got new compilation error when building vmkit. >> >> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s: >> Assembler messages: >> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s:18: >> Error: file number 1 already allocated >> >> Regards! >> wei >> >> >> On Wed, Jun 13, 2012 at 4:56 PM, Koutheir Attouchi wrote: >> >>> Hello, >>> >>> First, VMKit is compiled using LLVM tools. You probably need to compile >>> LLVM in debug mode before compiling VMKit in debug mode. I do this using >>> the commands: >>> >>> svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm >>> cd llvm/tools >>> svn co http://llvm.org/svn/llvm-project/cfe/trunk clang >>> cd ../projects >>> svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt >>> cd .. >>> ./configure --disable-optimized --enable-assertions >>> --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads >>> --enable-pthreads --enable-pic --enable-targets=x86,cpp >>> make -j12 ENABLE_OPTIMIZED=0 BUILD_EXAMPLES=0 ENABLE_DOCS=0 >>> >>> This might take a long time to compile. >>> Next, you get vmkit, patch it, configure it for debug mode then compile >>> it: >>> >>> svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit >>> cd vmkit >>> patch -p0 < /path/to/vmkit-debug.patch >>> ./configure --with-llvmsrc=/path/to/llvm --with-llvmobj=/path/to/llvm >>> --with-gnu-classpath-libs=/path/to/classpath/lib >>> --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip >>> make -j12 >>> >>> The patch modifies configure files and makefiles and source files. So >>> patch a verbatim copy of VMKit and do run configure *after* patching. >>> If you have issues feel free to ask. >>> >>> Cordially. >>> >>> >>> Koutheir ATTOUCHI. >>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>> Blog: http://koutheir.blogspot.com >>> >>> >>> >>> >>> On Wed, Jun 13, 2012 at 9:13 AM, Wei Tang wrote: >>> >>>> Thanks a lot for help! >>>> >>>> Regards! >>>> wei >>>> >>>> >>>> On Wed, Jun 13, 2012 at 3:01 PM, Koutheir Attouchi wrote: >>>> >>>>> I'll send you the patch soon. If you have specific questions then post >>>>> them on the mailing list. I advise you to read the code (at least the >>>>> headers) before debugging. >>>>> >>>>> Koutheir Attouchi. >>>>> On Jun 13, 2012 4:32 AM, "Wei Tang" wrote: >>>>> >>>>>> Would you send me the patch? I hope to understand more details by >>>>>> debugging instead of just reading source code. >>>>>> Thanks in advance! >>>>>> >>>>>> Regards! >>>>>> tangwei >>>>>> >>>>>> On Wed, Jun 13, 2012 at 9:52 AM, Koutheir Attouchi < >>>>>> koutheir at gmail.com> wrote: >>>>>> >>>>>>> Officially, VMKit does not support debug builds. But I can make a >>>>>>> patch that makes it work in debug build. However, my modifications are not >>>>>>> yet committed and I qualify them to be in beta stage. If you don't need >>>>>>> debugging, stick with the trunk version. If you really need it, I can send >>>>>>> you a patch that enables debugging. >>>>>>> >>>>>>> Koutheir ATTOUCHI. >>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>> Blog: http://koutheir.blogspot.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> Does vmkit support debug build now? I can build successfully >>>>>>>> with "make ENABLE_OPTIMIZED=1", but failed with "make". >>>>>>>> Following is error message for your reference. >>>>>>>> >>>>>>>> llvm[0]: Constructing LLVMBuild project information. >>>>>>>> make[1]: Entering directory >>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>> llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build (PIC) >>>>>>>> llvm[1]: Linking Debug+Asserts Loadable Module StaticGCPass.so >>>>>>>> make[1]: *** No rule to make target >>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', >>>>>>>> needed by >>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. >>>>>>>> Stop. >>>>>>>> make[1]: Leaving directory >>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>> make: *** [all] Error 1 >>>>>>>> >>>>>>>> my configure line: >>>>>>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>>>>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>>>>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>>>>>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>>>>>>> >>>>>>>> -- >>>>>>>> Best Regards >>>>>>>> wei >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> vmkit-commits mailing list >>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> vmkit-commits mailing list >>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Best Regards >>>>>> tangwei >>>>>> >>>>>> _______________________________________________ >>>>>> vmkit-commits mailing list >>>>>> vmkit-commits at cs.uiuc.edu >>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> vmkit-commits mailing list >>>>> vmkit-commits at cs.uiuc.edu >>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>> >>>>> >>>> >>>> >>>> -- >>>> Best Regards >>>> tangwei >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> >> -- >> Best Regards >> tangwei >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -- Best Regards tangwei -------------- next part -------------- An HTML attachment was scrubbed... URL: From koutheir at gmail.com Wed Jun 13 08:31:43 2012 From: koutheir at gmail.com (Koutheir Attouchi) Date: Wed, 13 Jun 2012 17:31:43 +0200 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: Please send me the file vmkit/lib/j3/VMCore/JavaClass.h Koutheir ATTOUCHI. LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi Blog: http://koutheir.blogspot.com On Wed, Jun 13, 2012 at 5:21 PM, Wei Tang wrote: > new errors coming when building vmkit after recompiling llvm. > > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1062:48: error: non-const > lvalue reference to type 'va_list' > (aka '__builtin_va_list') cannot bind to a value of unrelated type > '__va_list_tag *' > jvalue* buffer = marshalArguments(allocator, ap); > ^~ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing > argument to parameter 'ap' here > jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, > va_list& ap); > > ^ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1072:48: error: non-const > lvalue reference to type 'va_list' > (aka '__builtin_va_list') cannot bind to a value of unrelated type > '__va_list_tag *' > jvalue* buffer = marshalArguments(allocator, ap); > ^~ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing > argument to parameter 'ap' here > jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, > va_list& ap); > > ^ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1079:48: error: non-const > lvalue reference to type 'va_list' > (aka '__builtin_va_list') cannot bind to a value of unrelated type > '__va_list_tag *' > jvalue* buffer = marshalArguments(allocator, ap); > ^~ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing > argument to parameter 'ap' here > jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, > va_list& ap); > > > Regards! > wei > > > On Wed, Jun 13, 2012 at 9:50 PM, Koutheir Attouchi wrote: > >> Oh I forgot, you should also patch some LLVM source files. Here is a >> patch file to do so. Remember to recompile LLVM once you patch the files. >> You don't have to reconfigure LLVM. >> >> >> Koutheir ATTOUCHI. >> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >> Blog: http://koutheir.blogspot.com >> >> >> >> >> On Wed, Jun 13, 2012 at 3:42 PM, Wei Tang wrote: >> >>> Got new compilation error when building vmkit. >>> >>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s: >>> Assembler messages: >>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s:18: >>> Error: file number 1 already allocated >>> >>> Regards! >>> wei >>> >>> >>> On Wed, Jun 13, 2012 at 4:56 PM, Koutheir Attouchi wrote: >>> >>>> Hello, >>>> >>>> First, VMKit is compiled using LLVM tools. You probably need to compile >>>> LLVM in debug mode before compiling VMKit in debug mode. I do this using >>>> the commands: >>>> >>>> svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm >>>> cd llvm/tools >>>> svn co http://llvm.org/svn/llvm-project/cfe/trunk clang >>>> cd ../projects >>>> svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt >>>> cd .. >>>> ./configure --disable-optimized --enable-assertions >>>> --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads >>>> --enable-pthreads --enable-pic --enable-targets=x86,cpp >>>> make -j12 ENABLE_OPTIMIZED=0 BUILD_EXAMPLES=0 ENABLE_DOCS=0 >>>> >>>> This might take a long time to compile. >>>> Next, you get vmkit, patch it, configure it for debug mode then compile >>>> it: >>>> >>>> svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit >>>> cd vmkit >>>> patch -p0 < /path/to/vmkit-debug.patch >>>> ./configure --with-llvmsrc=/path/to/llvm --with-llvmobj=/path/to/llvm >>>> --with-gnu-classpath-libs=/path/to/classpath/lib >>>> --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip >>>> make -j12 >>>> >>>> The patch modifies configure files and makefiles and source files. So >>>> patch a verbatim copy of VMKit and do run configure *after* patching. >>>> If you have issues feel free to ask. >>>> >>>> Cordially. >>>> >>>> >>>> Koutheir ATTOUCHI. >>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>> Blog: http://koutheir.blogspot.com >>>> >>>> >>>> >>>> >>>> On Wed, Jun 13, 2012 at 9:13 AM, Wei Tang wrote: >>>> >>>>> Thanks a lot for help! >>>>> >>>>> Regards! >>>>> wei >>>>> >>>>> >>>>> On Wed, Jun 13, 2012 at 3:01 PM, Koutheir Attouchi >>>> > wrote: >>>>> >>>>>> I'll send you the patch soon. If you have specific questions then >>>>>> post them on the mailing list. I advise you to read the code (at least the >>>>>> headers) before debugging. >>>>>> >>>>>> Koutheir Attouchi. >>>>>> On Jun 13, 2012 4:32 AM, "Wei Tang" wrote: >>>>>> >>>>>>> Would you send me the patch? I hope to understand more details by >>>>>>> debugging instead of just reading source code. >>>>>>> Thanks in advance! >>>>>>> >>>>>>> Regards! >>>>>>> tangwei >>>>>>> >>>>>>> On Wed, Jun 13, 2012 at 9:52 AM, Koutheir Attouchi < >>>>>>> koutheir at gmail.com> wrote: >>>>>>> >>>>>>>> Officially, VMKit does not support debug builds. But I can make a >>>>>>>> patch that makes it work in debug build. However, my modifications are not >>>>>>>> yet committed and I qualify them to be in beta stage. If you don't need >>>>>>>> debugging, stick with the trunk version. If you really need it, I can send >>>>>>>> you a patch that enables debugging. >>>>>>>> >>>>>>>> Koutheir ATTOUCHI. >>>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>>> Blog: http://koutheir.blogspot.com >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang wrote: >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> Does vmkit support debug build now? I can build successfully >>>>>>>>> with "make ENABLE_OPTIMIZED=1", but failed with "make". >>>>>>>>> Following is error message for your reference. >>>>>>>>> >>>>>>>>> llvm[0]: Constructing LLVMBuild project information. >>>>>>>>> make[1]: Entering directory >>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>> llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build (PIC) >>>>>>>>> llvm[1]: Linking Debug+Asserts Loadable Module StaticGCPass.so >>>>>>>>> make[1]: *** No rule to make target >>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', >>>>>>>>> needed by >>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. >>>>>>>>> Stop. >>>>>>>>> make[1]: Leaving directory >>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>> make: *** [all] Error 1 >>>>>>>>> >>>>>>>>> my configure line: >>>>>>>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>>>>>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>>>>>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>>>>>>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Best Regards >>>>>>>>> wei >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> vmkit-commits mailing list >>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> vmkit-commits mailing list >>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Best Regards >>>>>>> tangwei >>>>>>> >>>>>>> _______________________________________________ >>>>>>> vmkit-commits mailing list >>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>>> vmkit-commits mailing list >>>>>> vmkit-commits at cs.uiuc.edu >>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Best Regards >>>>> tangwei >>>>> >>>>> _______________________________________________ >>>>> vmkit-commits mailing list >>>>> vmkit-commits at cs.uiuc.edu >>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >>> >>> -- >>> Best Regards >>> tangwei >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > > -- > Best Regards > tangwei > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tangwei.ict at gmail.com Wed Jun 13 23:01:26 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Thu, 14 Jun 2012 14:01:26 +0800 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: see attachment! On Wed, Jun 13, 2012 at 11:31 PM, Koutheir Attouchi wrote: > Please send me the file vmkit/lib/j3/VMCore/JavaClass.h > > > Koutheir ATTOUCHI. > LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi > Blog: http://koutheir.blogspot.com > > > > > On Wed, Jun 13, 2012 at 5:21 PM, Wei Tang wrote: > >> new errors coming when building vmkit after recompiling llvm. >> >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1062:48: error: >> non-const lvalue reference to type 'va_list' >> (aka '__builtin_va_list') cannot bind to a value of unrelated type >> '__va_list_tag *' >> jvalue* buffer = marshalArguments(allocator, ap); >> ^~ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing >> argument to parameter 'ap' here >> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >> va_list& ap); >> >> ^ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1072:48: error: >> non-const lvalue reference to type 'va_list' >> (aka '__builtin_va_list') cannot bind to a value of unrelated type >> '__va_list_tag *' >> jvalue* buffer = marshalArguments(allocator, ap); >> ^~ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing >> argument to parameter 'ap' here >> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >> va_list& ap); >> >> ^ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1079:48: error: >> non-const lvalue reference to type 'va_list' >> (aka '__builtin_va_list') cannot bind to a value of unrelated type >> '__va_list_tag *' >> jvalue* buffer = marshalArguments(allocator, ap); >> ^~ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing >> argument to parameter 'ap' here >> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >> va_list& ap); >> >> >> Regards! >> wei >> >> >> On Wed, Jun 13, 2012 at 9:50 PM, Koutheir Attouchi wrote: >> >>> Oh I forgot, you should also patch some LLVM source files. Here is a >>> patch file to do so. Remember to recompile LLVM once you patch the files. >>> You don't have to reconfigure LLVM. >>> >>> >>> Koutheir ATTOUCHI. >>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>> Blog: http://koutheir.blogspot.com >>> >>> >>> >>> >>> On Wed, Jun 13, 2012 at 3:42 PM, Wei Tang wrote: >>> >>>> Got new compilation error when building vmkit. >>>> >>>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s: >>>> Assembler messages: >>>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s:18: >>>> Error: file number 1 already allocated >>>> >>>> Regards! >>>> wei >>>> >>>> >>>> On Wed, Jun 13, 2012 at 4:56 PM, Koutheir Attouchi wrote: >>>> >>>>> Hello, >>>>> >>>>> First, VMKit is compiled using LLVM tools. You probably need to >>>>> compile LLVM in debug mode before compiling VMKit in debug mode. I do this >>>>> using the commands: >>>>> >>>>> svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm >>>>> cd llvm/tools >>>>> svn co http://llvm.org/svn/llvm-project/cfe/trunk clang >>>>> cd ../projects >>>>> svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt >>>>> cd .. >>>>> ./configure --disable-optimized --enable-assertions >>>>> --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads >>>>> --enable-pthreads --enable-pic --enable-targets=x86,cpp >>>>> make -j12 ENABLE_OPTIMIZED=0 BUILD_EXAMPLES=0 ENABLE_DOCS=0 >>>>> >>>>> This might take a long time to compile. >>>>> Next, you get vmkit, patch it, configure it for debug mode then >>>>> compile it: >>>>> >>>>> svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit >>>>> cd vmkit >>>>> patch -p0 < /path/to/vmkit-debug.patch >>>>> ./configure --with-llvmsrc=/path/to/llvm --with-llvmobj=/path/to/llvm >>>>> --with-gnu-classpath-libs=/path/to/classpath/lib >>>>> --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip >>>>> make -j12 >>>>> >>>>> The patch modifies configure files and makefiles and source files. So >>>>> patch a verbatim copy of VMKit and do run configure *after* patching. >>>>> If you have issues feel free to ask. >>>>> >>>>> Cordially. >>>>> >>>>> >>>>> Koutheir ATTOUCHI. >>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>> Blog: http://koutheir.blogspot.com >>>>> >>>>> >>>>> >>>>> >>>>> On Wed, Jun 13, 2012 at 9:13 AM, Wei Tang wrote: >>>>> >>>>>> Thanks a lot for help! >>>>>> >>>>>> Regards! >>>>>> wei >>>>>> >>>>>> >>>>>> On Wed, Jun 13, 2012 at 3:01 PM, Koutheir Attouchi < >>>>>> koutheir at gmail.com> wrote: >>>>>> >>>>>>> I'll send you the patch soon. If you have specific questions then >>>>>>> post them on the mailing list. I advise you to read the code (at least the >>>>>>> headers) before debugging. >>>>>>> >>>>>>> Koutheir Attouchi. >>>>>>> On Jun 13, 2012 4:32 AM, "Wei Tang" wrote: >>>>>>> >>>>>>>> Would you send me the patch? I hope to understand more details by >>>>>>>> debugging instead of just reading source code. >>>>>>>> Thanks in advance! >>>>>>>> >>>>>>>> Regards! >>>>>>>> tangwei >>>>>>>> >>>>>>>> On Wed, Jun 13, 2012 at 9:52 AM, Koutheir Attouchi < >>>>>>>> koutheir at gmail.com> wrote: >>>>>>>> >>>>>>>>> Officially, VMKit does not support debug builds. But I can make a >>>>>>>>> patch that makes it work in debug build. However, my modifications are not >>>>>>>>> yet committed and I qualify them to be in beta stage. If you don't need >>>>>>>>> debugging, stick with the trunk version. If you really need it, I can send >>>>>>>>> you a patch that enables debugging. >>>>>>>>> >>>>>>>>> Koutheir ATTOUCHI. >>>>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>>>> Blog: http://koutheir.blogspot.com >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang wrote: >>>>>>>>> >>>>>>>>>> Hi, >>>>>>>>>> Does vmkit support debug build now? I can build successfully >>>>>>>>>> with "make ENABLE_OPTIMIZED=1", but failed with "make". >>>>>>>>>> Following is error message for your reference. >>>>>>>>>> >>>>>>>>>> llvm[0]: Constructing LLVMBuild project information. >>>>>>>>>> make[1]: Entering directory >>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>>> llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build (PIC) >>>>>>>>>> llvm[1]: Linking Debug+Asserts Loadable Module StaticGCPass.so >>>>>>>>>> make[1]: *** No rule to make target >>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', >>>>>>>>>> needed by >>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. >>>>>>>>>> Stop. >>>>>>>>>> make[1]: Leaving directory >>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>>> make: *** [all] Error 1 >>>>>>>>>> >>>>>>>>>> my configure line: >>>>>>>>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>>>>>>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>>>>>>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>>>>>>>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Best Regards >>>>>>>>>> wei >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> vmkit-commits mailing list >>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> vmkit-commits mailing list >>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Best Regards >>>>>>>> tangwei >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> vmkit-commits mailing list >>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>> >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> vmkit-commits mailing list >>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Best Regards >>>>>> tangwei >>>>>> >>>>>> _______________________________________________ >>>>>> vmkit-commits mailing list >>>>>> vmkit-commits at cs.uiuc.edu >>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> vmkit-commits mailing list >>>>> vmkit-commits at cs.uiuc.edu >>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>> >>>>> >>>> >>>> >>>> -- >>>> Best Regards >>>> tangwei >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> >> -- >> Best Regards >> tangwei >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -- Best Regards tangwei -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: JavaClass.h Type: text/x-chdr Size: 38397 bytes Desc: not available URL: From koutheir at gmail.com Thu Jun 14 01:35:13 2012 From: koutheir at gmail.com (Koutheir Attouchi) Date: Thu, 14 Jun 2012 10:35:13 +0200 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: I don't know what goes wrong because I can compile well this on my system. Try to replace "va_list ap" by "va_list& ap" in the lines 1057 and 1067 and 1077 of JavaClass.h. Koutheir ATTOUCHI. LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi Blog: http://koutheir.blogspot.com On Thu, Jun 14, 2012 at 8:01 AM, Wei Tang wrote: > see attachment! > > On Wed, Jun 13, 2012 at 11:31 PM, Koutheir Attouchi wrote: > >> Please send me the file vmkit/lib/j3/VMCore/JavaClass.h >> >> >> Koutheir ATTOUCHI. >> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >> Blog: http://koutheir.blogspot.com >> >> >> >> >> On Wed, Jun 13, 2012 at 5:21 PM, Wei Tang wrote: >> >>> new errors coming when building vmkit after recompiling llvm. >>> >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1062:48: error: >>> non-const lvalue reference to type 'va_list' >>> (aka '__builtin_va_list') cannot bind to a value of unrelated type >>> '__va_list_tag *' >>> jvalue* buffer = marshalArguments(allocator, ap); >>> ^~ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing >>> argument to parameter 'ap' here >>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>> va_list& ap); >>> >>> ^ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1072:48: error: >>> non-const lvalue reference to type 'va_list' >>> (aka '__builtin_va_list') cannot bind to a value of unrelated type >>> '__va_list_tag *' >>> jvalue* buffer = marshalArguments(allocator, ap); >>> ^~ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing >>> argument to parameter 'ap' here >>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>> va_list& ap); >>> >>> ^ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1079:48: error: >>> non-const lvalue reference to type 'va_list' >>> (aka '__builtin_va_list') cannot bind to a value of unrelated type >>> '__va_list_tag *' >>> jvalue* buffer = marshalArguments(allocator, ap); >>> ^~ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing >>> argument to parameter 'ap' here >>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>> va_list& ap); >>> >>> >>> Regards! >>> wei >>> >>> >>> On Wed, Jun 13, 2012 at 9:50 PM, Koutheir Attouchi wrote: >>> >>>> Oh I forgot, you should also patch some LLVM source files. Here is a >>>> patch file to do so. Remember to recompile LLVM once you patch the files. >>>> You don't have to reconfigure LLVM. >>>> >>>> >>>> Koutheir ATTOUCHI. >>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>> Blog: http://koutheir.blogspot.com >>>> >>>> >>>> >>>> >>>> On Wed, Jun 13, 2012 at 3:42 PM, Wei Tang wrote: >>>> >>>>> Got new compilation error when building vmkit. >>>>> >>>>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s: >>>>> Assembler messages: >>>>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s:18: >>>>> Error: file number 1 already allocated >>>>> >>>>> Regards! >>>>> wei >>>>> >>>>> >>>>> On Wed, Jun 13, 2012 at 4:56 PM, Koutheir Attouchi >>>> > wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> First, VMKit is compiled using LLVM tools. You probably need to >>>>>> compile LLVM in debug mode before compiling VMKit in debug mode. I do this >>>>>> using the commands: >>>>>> >>>>>> svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm >>>>>> cd llvm/tools >>>>>> svn co http://llvm.org/svn/llvm-project/cfe/trunk clang >>>>>> cd ../projects >>>>>> svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt >>>>>> cd .. >>>>>> ./configure --disable-optimized --enable-assertions >>>>>> --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads >>>>>> --enable-pthreads --enable-pic --enable-targets=x86,cpp >>>>>> make -j12 ENABLE_OPTIMIZED=0 BUILD_EXAMPLES=0 ENABLE_DOCS=0 >>>>>> >>>>>> This might take a long time to compile. >>>>>> Next, you get vmkit, patch it, configure it for debug mode then >>>>>> compile it: >>>>>> >>>>>> svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit >>>>>> cd vmkit >>>>>> patch -p0 < /path/to/vmkit-debug.patch >>>>>> ./configure --with-llvmsrc=/path/to/llvm --with-llvmobj=/path/to/llvm >>>>>> --with-gnu-classpath-libs=/path/to/classpath/lib >>>>>> --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip >>>>>> make -j12 >>>>>> >>>>>> The patch modifies configure files and makefiles and source files. So >>>>>> patch a verbatim copy of VMKit and do run configure *after* patching. >>>>>> If you have issues feel free to ask. >>>>>> >>>>>> Cordially. >>>>>> >>>>>> >>>>>> Koutheir ATTOUCHI. >>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>> Blog: http://koutheir.blogspot.com >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Jun 13, 2012 at 9:13 AM, Wei Tang wrote: >>>>>> >>>>>>> Thanks a lot for help! >>>>>>> >>>>>>> Regards! >>>>>>> wei >>>>>>> >>>>>>> >>>>>>> On Wed, Jun 13, 2012 at 3:01 PM, Koutheir Attouchi < >>>>>>> koutheir at gmail.com> wrote: >>>>>>> >>>>>>>> I'll send you the patch soon. If you have specific questions then >>>>>>>> post them on the mailing list. I advise you to read the code (at least the >>>>>>>> headers) before debugging. >>>>>>>> >>>>>>>> Koutheir Attouchi. >>>>>>>> On Jun 13, 2012 4:32 AM, "Wei Tang" wrote: >>>>>>>> >>>>>>>>> Would you send me the patch? I hope to understand more details by >>>>>>>>> debugging instead of just reading source code. >>>>>>>>> Thanks in advance! >>>>>>>>> >>>>>>>>> Regards! >>>>>>>>> tangwei >>>>>>>>> >>>>>>>>> On Wed, Jun 13, 2012 at 9:52 AM, Koutheir Attouchi < >>>>>>>>> koutheir at gmail.com> wrote: >>>>>>>>> >>>>>>>>>> Officially, VMKit does not support debug builds. But I can make a >>>>>>>>>> patch that makes it work in debug build. However, my modifications are not >>>>>>>>>> yet committed and I qualify them to be in beta stage. If you don't need >>>>>>>>>> debugging, stick with the trunk version. If you really need it, I can send >>>>>>>>>> you a patch that enables debugging. >>>>>>>>>> >>>>>>>>>> Koutheir ATTOUCHI. >>>>>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>>>>> Blog: http://koutheir.blogspot.com >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang wrote: >>>>>>>>>> >>>>>>>>>>> Hi, >>>>>>>>>>> Does vmkit support debug build now? I can build successfully >>>>>>>>>>> with "make ENABLE_OPTIMIZED=1", but failed with "make". >>>>>>>>>>> Following is error message for your reference. >>>>>>>>>>> >>>>>>>>>>> llvm[0]: Constructing LLVMBuild project information. >>>>>>>>>>> make[1]: Entering directory >>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>>>> llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build (PIC) >>>>>>>>>>> llvm[1]: Linking Debug+Asserts Loadable Module StaticGCPass.so >>>>>>>>>>> make[1]: *** No rule to make target >>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', >>>>>>>>>>> needed by >>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. >>>>>>>>>>> Stop. >>>>>>>>>>> make[1]: Leaving directory >>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>>>> make: *** [all] Error 1 >>>>>>>>>>> >>>>>>>>>>> my configure line: >>>>>>>>>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>>>>>>>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>>>>>>>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>>>>>>>>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Best Regards >>>>>>>>>>> wei >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> vmkit-commits mailing list >>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Best Regards >>>>>>>>> tangwei >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> vmkit-commits mailing list >>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>> >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> vmkit-commits mailing list >>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Best Regards >>>>>>> tangwei >>>>>>> >>>>>>> _______________________________________________ >>>>>>> vmkit-commits mailing list >>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> vmkit-commits mailing list >>>>>> vmkit-commits at cs.uiuc.edu >>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Best Regards >>>>> tangwei >>>>> >>>>> _______________________________________________ >>>>> vmkit-commits mailing list >>>>> vmkit-commits at cs.uiuc.edu >>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >>> >>> -- >>> Best Regards >>> tangwei >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > > -- > Best Regards > tangwei > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tangwei.ict at gmail.com Thu Jun 14 01:48:03 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Thu, 14 Jun 2012 16:48:03 +0800 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: No lucky. New issues are coming. What's your compiler version? /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:106:1: error: no matching member function for call to 'invokeVirtualAP' JavaMethod_INVOKE(uint32, Int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: expanded from macro 'JavaMethod_INVOKE' JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, func_virtual_buf_##TYPE_NAME,... ^ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:88:111: note: expanded from macro 'JavaMethod_INVOKE_AP' ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return invokeVirtualAP(vm, cl, obj, ap);} \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1057:7: note: candidate function [with TYPE = unsigned int, FUNC_TYPE_VIRTUAL_BUF = unsigned int (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not viable: no known conversion from '__va_list_tag *' to 'va_list &' (aka '__builtin_va_list &') for 4th argument; TYPE invokeVirtualAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, va_list& ap) { ^ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:106:1: error: no matching member function for call to 'invokeSpecialAP' JavaMethod_INVOKE(uint32, Int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: expanded from macro 'JavaMethod_INVOKE' JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, func_virtual_buf_##TYPE_NAME,... ^ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:89:111: note: expanded from macro 'JavaMethod_INVOKE_AP' ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return invokeSpecialAP(vm, cl, obj, ap);} \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1067:7: note: candidate function [with TYPE = unsigned int, FUNC_TYPE_VIRTUAL_BUF = unsigned int (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not viable: no known conversion from '__va_list_tag *' to 'va_list &' (aka '__builtin_va_list &') for 4th argument; TYPE invokeSpecialAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, va_list& ap) { ^ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:106:1: error: no matching member function for call to 'invokeStaticAP' JavaMethod_INVOKE(uint32, Int) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: expanded from macro 'JavaMethod_INVOKE' JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, func_virtual_buf_##TYPE_NAME,... ^ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:90:98: note: expanded from macro 'JavaMethod_INVOKE_AP' ...UserClass* cl, va_list ap) {return invokeStaticAP(vm, cl, ap);} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1077:7: note: candidate function [with TYPE = unsigned int, FUNC_TYPE_STATIC_BUF = unsigned int (*)(j3::JavaConstantPool *, void *, void *)] not viable: no known conversion from '__va_list_tag *' to 'va_list &' (aka '__builtin_va_list &') for 3rd argument; TYPE invokeStaticAP(Jnjvm* vm, UserClass* cl, va_list& ap) { ^ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:107:1: error: no matching member function for call to 'invokeVirtualAP' JavaMethod_INVOKE(sint64, Long) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: expanded from macro 'JavaMethod_INVOKE' JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, func_virtual_buf_##TYPE_NAME,... ^ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:88:111: note: expanded from macro 'JavaMethod_INVOKE_AP' ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return invokeVirtualAP(vm, cl, obj, ap);} \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1057:7: note: candidate function [with TYPE = long, FUNC_TYPE_VIRTUAL_BUF = long (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not viable: no known conversion from '__va_list_tag *' to 'va_list &' (aka '__builtin_va_list &') for 4th argument; TYPE invokeVirtualAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, va_list& ap) { ^ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:107:1: error: no matching member function for call to 'invokeSpecialAP' JavaMethod_INVOKE(sint64, Long) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: expanded from macro 'JavaMethod_INVOKE' JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, func_virtual_buf_##TYPE_NAME,... ^ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:89:111: note: expanded from macro 'JavaMethod_INVOKE_AP' ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return invokeSpecialAP(vm, cl, obj, ap);} \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1067:7: note: candidate function [with TYPE = long, FUNC_TYPE_VIRTUAL_BUF = long (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not viable: no known conversion from '__va_list_tag *' to 'va_list &' (aka '__builtin_va_list &') for 4th argument; TYPE invokeSpecialAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, va_list& ap) { ^ /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:107:1: error: no matching member function for call to 'invokeStaticAP' JavaMethod_INVOKE(sint64, Long) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Regards! wei On Thu, Jun 14, 2012 at 4:35 PM, Koutheir Attouchi wrote: > I don't know what goes wrong because I can compile well this on my system. > Try to replace "va_list ap" by "va_list& ap" in the lines 1057 and 1067 > and 1077 of JavaClass.h. > > > Koutheir ATTOUCHI. > LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi > Blog: http://koutheir.blogspot.com > > > > > On Thu, Jun 14, 2012 at 8:01 AM, Wei Tang wrote: > >> see attachment! >> >> On Wed, Jun 13, 2012 at 11:31 PM, Koutheir Attouchi wrote: >> >>> Please send me the file vmkit/lib/j3/VMCore/JavaClass.h >>> >>> >>> Koutheir ATTOUCHI. >>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>> Blog: http://koutheir.blogspot.com >>> >>> >>> >>> >>> On Wed, Jun 13, 2012 at 5:21 PM, Wei Tang wrote: >>> >>>> new errors coming when building vmkit after recompiling llvm. >>>> >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1062:48: error: >>>> non-const lvalue reference to type 'va_list' >>>> (aka '__builtin_va_list') cannot bind to a value of unrelated >>>> type '__va_list_tag *' >>>> jvalue* buffer = marshalArguments(allocator, ap); >>>> ^~ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing >>>> argument to parameter 'ap' here >>>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>>> va_list& ap); >>>> >>>> ^ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1072:48: error: >>>> non-const lvalue reference to type 'va_list' >>>> (aka '__builtin_va_list') cannot bind to a value of unrelated >>>> type '__va_list_tag *' >>>> jvalue* buffer = marshalArguments(allocator, ap); >>>> ^~ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing >>>> argument to parameter 'ap' here >>>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>>> va_list& ap); >>>> >>>> ^ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1079:48: error: >>>> non-const lvalue reference to type 'va_list' >>>> (aka '__builtin_va_list') cannot bind to a value of unrelated >>>> type '__va_list_tag *' >>>> jvalue* buffer = marshalArguments(allocator, ap); >>>> ^~ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing >>>> argument to parameter 'ap' here >>>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>>> va_list& ap); >>>> >>>> >>>> Regards! >>>> wei >>>> >>>> >>>> On Wed, Jun 13, 2012 at 9:50 PM, Koutheir Attouchi wrote: >>>> >>>>> Oh I forgot, you should also patch some LLVM source files. Here is a >>>>> patch file to do so. Remember to recompile LLVM once you patch the files. >>>>> You don't have to reconfigure LLVM. >>>>> >>>>> >>>>> Koutheir ATTOUCHI. >>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>> Blog: http://koutheir.blogspot.com >>>>> >>>>> >>>>> >>>>> >>>>> On Wed, Jun 13, 2012 at 3:42 PM, Wei Tang wrote: >>>>> >>>>>> Got new compilation error when building vmkit. >>>>>> >>>>>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s: >>>>>> Assembler messages: >>>>>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s:18: >>>>>> Error: file number 1 already allocated >>>>>> >>>>>> Regards! >>>>>> wei >>>>>> >>>>>> >>>>>> On Wed, Jun 13, 2012 at 4:56 PM, Koutheir Attouchi < >>>>>> koutheir at gmail.com> wrote: >>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> First, VMKit is compiled using LLVM tools. You probably need to >>>>>>> compile LLVM in debug mode before compiling VMKit in debug mode. I do this >>>>>>> using the commands: >>>>>>> >>>>>>> svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm >>>>>>> cd llvm/tools >>>>>>> svn co http://llvm.org/svn/llvm-project/cfe/trunk clang >>>>>>> cd ../projects >>>>>>> svn co http://llvm.org/svn/llvm-project/compiler-rt/trunkcompiler-rt >>>>>>> cd .. >>>>>>> ./configure --disable-optimized --enable-assertions >>>>>>> --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads >>>>>>> --enable-pthreads --enable-pic --enable-targets=x86,cpp >>>>>>> make -j12 ENABLE_OPTIMIZED=0 BUILD_EXAMPLES=0 ENABLE_DOCS=0 >>>>>>> >>>>>>> This might take a long time to compile. >>>>>>> Next, you get vmkit, patch it, configure it for debug mode then >>>>>>> compile it: >>>>>>> >>>>>>> svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit >>>>>>> cd vmkit >>>>>>> patch -p0 < /path/to/vmkit-debug.patch >>>>>>> ./configure --with-llvmsrc=/path/to/llvm --with-llvmobj=/path/to/llvm >>>>>>> --with-gnu-classpath-libs=/path/to/classpath/lib >>>>>>> --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip >>>>>>> make -j12 >>>>>>> >>>>>>> The patch modifies configure files and makefiles and source files. >>>>>>> So patch a verbatim copy of VMKit and do run configure *after*patching. >>>>>>> If you have issues feel free to ask. >>>>>>> >>>>>>> Cordially. >>>>>>> >>>>>>> >>>>>>> Koutheir ATTOUCHI. >>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>> Blog: http://koutheir.blogspot.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Wed, Jun 13, 2012 at 9:13 AM, Wei Tang wrote: >>>>>>> >>>>>>>> Thanks a lot for help! >>>>>>>> >>>>>>>> Regards! >>>>>>>> wei >>>>>>>> >>>>>>>> >>>>>>>> On Wed, Jun 13, 2012 at 3:01 PM, Koutheir Attouchi < >>>>>>>> koutheir at gmail.com> wrote: >>>>>>>> >>>>>>>>> I'll send you the patch soon. If you have specific questions then >>>>>>>>> post them on the mailing list. I advise you to read the code (at least the >>>>>>>>> headers) before debugging. >>>>>>>>> >>>>>>>>> Koutheir Attouchi. >>>>>>>>> On Jun 13, 2012 4:32 AM, "Wei Tang" wrote: >>>>>>>>> >>>>>>>>>> Would you send me the patch? I hope to understand more details by >>>>>>>>>> debugging instead of just reading source code. >>>>>>>>>> Thanks in advance! >>>>>>>>>> >>>>>>>>>> Regards! >>>>>>>>>> tangwei >>>>>>>>>> >>>>>>>>>> On Wed, Jun 13, 2012 at 9:52 AM, Koutheir Attouchi < >>>>>>>>>> koutheir at gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> Officially, VMKit does not support debug builds. But I can make >>>>>>>>>>> a patch that makes it work in debug build. However, my modifications are >>>>>>>>>>> not yet committed and I qualify them to be in beta stage. If you don't need >>>>>>>>>>> debugging, stick with the trunk version. If you really need it, I can send >>>>>>>>>>> you a patch that enables debugging. >>>>>>>>>>> >>>>>>>>>>> Koutheir ATTOUCHI. >>>>>>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>>>>>> Blog: http://koutheir.blogspot.com >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang >>>>>>>>>> > wrote: >>>>>>>>>>> >>>>>>>>>>>> Hi, >>>>>>>>>>>> Does vmkit support debug build now? I can build successfully >>>>>>>>>>>> with "make ENABLE_OPTIMIZED=1", but failed with "make". >>>>>>>>>>>> Following is error message for your reference. >>>>>>>>>>>> >>>>>>>>>>>> llvm[0]: Constructing LLVMBuild project information. >>>>>>>>>>>> make[1]: Entering directory >>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>>>>> llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build >>>>>>>>>>>> (PIC) >>>>>>>>>>>> llvm[1]: Linking Debug+Asserts Loadable Module StaticGCPass.so >>>>>>>>>>>> make[1]: *** No rule to make target >>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', >>>>>>>>>>>> needed by >>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. >>>>>>>>>>>> Stop. >>>>>>>>>>>> make[1]: Leaving directory >>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>>>>> make: *** [all] Error 1 >>>>>>>>>>>> >>>>>>>>>>>> my configure line: >>>>>>>>>>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>>>>>>>>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>>>>>>>>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>>>>>>>>>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Best Regards >>>>>>>>>>>> wei >>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Best Regards >>>>>>>>>> tangwei >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> vmkit-commits mailing list >>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>> >>>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> vmkit-commits mailing list >>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Best Regards >>>>>>>> tangwei >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> vmkit-commits mailing list >>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> vmkit-commits mailing list >>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Best Regards >>>>>> tangwei >>>>>> >>>>>> _______________________________________________ >>>>>> vmkit-commits mailing list >>>>>> vmkit-commits at cs.uiuc.edu >>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> vmkit-commits mailing list >>>>> vmkit-commits at cs.uiuc.edu >>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>> >>>>> >>>> >>>> >>>> -- >>>> Best Regards >>>> tangwei >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> >> -- >> Best Regards >> tangwei >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -- Best Regards tangwei -------------- next part -------------- An HTML attachment was scrubbed... URL: From koutheir at gmail.com Thu Jun 14 01:58:19 2012 From: koutheir at gmail.com (Koutheir Attouchi) Date: Thu, 14 Jun 2012 10:58:19 +0200 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: Replace "va_list ap" by "va_list& ap" in the lines 88 and 89 and 90 of JavaMetaJIT.cpp. Koutheir ATTOUCHI. LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi Blog: http://koutheir.blogspot.com On Thu, Jun 14, 2012 at 10:48 AM, Wei Tang wrote: > No lucky. New issues are coming. What's your compiler version? > > > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:106:1: error: no > matching member function for call to 'invokeVirtualAP' > JavaMethod_INVOKE(uint32, Int) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: expanded > from macro 'JavaMethod_INVOKE' > JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, func_virtual_ap_##TYPE_NAME, > func_static_ap_##TYPE_NAME, func_virtual_buf_##TYPE_NAME,... > ^ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:88:111: note: > expanded from macro 'JavaMethod_INVOKE_AP' > ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return > invokeVirtualAP(vm, cl, obj, ap);} \ > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1057:7: note: candidate > function [with TYPE = unsigned int, FUNC_TYPE_VIRTUAL_BUF = unsigned int > (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not > viable: no known conversion from '__va_list_tag *' to 'va_list &' > (aka '__builtin_va_list &') for 4th argument; > TYPE invokeVirtualAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, > va_list& ap) { > ^ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:106:1: error: no > matching member function for call to 'invokeSpecialAP' > JavaMethod_INVOKE(uint32, Int) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: expanded > from macro 'JavaMethod_INVOKE' > JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, func_virtual_ap_##TYPE_NAME, > func_static_ap_##TYPE_NAME, func_virtual_buf_##TYPE_NAME,... > ^ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:89:111: note: > expanded from macro 'JavaMethod_INVOKE_AP' > ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return > invokeSpecialAP(vm, cl, obj, ap);} \ > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1067:7: note: candidate > function [with TYPE = unsigned int, FUNC_TYPE_VIRTUAL_BUF = unsigned int > (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not > viable: no known conversion from '__va_list_tag *' to 'va_list &' > (aka '__builtin_va_list &') for 4th argument; > TYPE invokeSpecialAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, > va_list& ap) { > ^ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:106:1: error: no > matching member function for call to 'invokeStaticAP' > JavaMethod_INVOKE(uint32, Int) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: expanded > from macro 'JavaMethod_INVOKE' > JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, func_virtual_ap_##TYPE_NAME, > func_static_ap_##TYPE_NAME, func_virtual_buf_##TYPE_NAME,... > ^ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:90:98: note: expanded > from macro 'JavaMethod_INVOKE_AP' > ...UserClass* cl, va_list ap) > {return invokeStaticAP(vm, cl, ap);} > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1077:7: note: candidate > function [with TYPE = unsigned int, FUNC_TYPE_STATIC_BUF = unsigned int > (*)(j3::JavaConstantPool *, void *, void *)] not viable: no known > conversion from '__va_list_tag *' to 'va_list &' > (aka '__builtin_va_list &') for 3rd argument; > TYPE invokeStaticAP(Jnjvm* vm, UserClass* cl, va_list& ap) { > ^ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:107:1: error: no > matching member function for call to 'invokeVirtualAP' > JavaMethod_INVOKE(sint64, Long) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: expanded > from macro 'JavaMethod_INVOKE' > JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, func_virtual_ap_##TYPE_NAME, > func_static_ap_##TYPE_NAME, func_virtual_buf_##TYPE_NAME,... > ^ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:88:111: note: > expanded from macro 'JavaMethod_INVOKE_AP' > ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return > invokeVirtualAP(vm, cl, obj, ap);} \ > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1057:7: note: candidate > function [with TYPE = long, FUNC_TYPE_VIRTUAL_BUF = long > (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not > viable: no known conversion from '__va_list_tag *' to 'va_list &' > (aka '__builtin_va_list &') for 4th argument; > TYPE invokeVirtualAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, > va_list& ap) { > ^ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:107:1: error: no > matching member function for call to 'invokeSpecialAP' > JavaMethod_INVOKE(sint64, Long) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: expanded > from macro 'JavaMethod_INVOKE' > JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, func_virtual_ap_##TYPE_NAME, > func_static_ap_##TYPE_NAME, func_virtual_buf_##TYPE_NAME,... > ^ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:89:111: note: > expanded from macro 'JavaMethod_INVOKE_AP' > ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return > invokeSpecialAP(vm, cl, obj, ap);} \ > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1067:7: note: candidate > function [with TYPE = long, FUNC_TYPE_VIRTUAL_BUF = long > (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not > viable: no known conversion from '__va_list_tag *' to 'va_list &' > (aka '__builtin_va_list &') for 4th argument; > TYPE invokeSpecialAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, > va_list& ap) { > ^ > /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:107:1: error: no > matching member function for call to 'invokeStaticAP' > JavaMethod_INVOKE(sint64, Long) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > Regards! > wei > > > On Thu, Jun 14, 2012 at 4:35 PM, Koutheir Attouchi wrote: > >> I don't know what goes wrong because I can compile well this on my >> system. >> Try to replace "va_list ap" by "va_list& ap" in the lines 1057 and 1067 >> and 1077 of JavaClass.h. >> >> >> Koutheir ATTOUCHI. >> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >> Blog: http://koutheir.blogspot.com >> >> >> >> >> On Thu, Jun 14, 2012 at 8:01 AM, Wei Tang wrote: >> >>> see attachment! >>> >>> On Wed, Jun 13, 2012 at 11:31 PM, Koutheir Attouchi wrote: >>> >>>> Please send me the file vmkit/lib/j3/VMCore/JavaClass.h >>>> >>>> >>>> Koutheir ATTOUCHI. >>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>> Blog: http://koutheir.blogspot.com >>>> >>>> >>>> >>>> >>>> On Wed, Jun 13, 2012 at 5:21 PM, Wei Tang wrote: >>>> >>>>> new errors coming when building vmkit after recompiling llvm. >>>>> >>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1062:48: error: >>>>> non-const lvalue reference to type 'va_list' >>>>> (aka '__builtin_va_list') cannot bind to a value of unrelated >>>>> type '__va_list_tag *' >>>>> jvalue* buffer = marshalArguments(allocator, ap); >>>>> ^~ >>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing >>>>> argument to parameter 'ap' here >>>>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>>>> va_list& ap); >>>>> >>>>> ^ >>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1072:48: error: >>>>> non-const lvalue reference to type 'va_list' >>>>> (aka '__builtin_va_list') cannot bind to a value of unrelated >>>>> type '__va_list_tag *' >>>>> jvalue* buffer = marshalArguments(allocator, ap); >>>>> ^~ >>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing >>>>> argument to parameter 'ap' here >>>>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>>>> va_list& ap); >>>>> >>>>> ^ >>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1079:48: error: >>>>> non-const lvalue reference to type 'va_list' >>>>> (aka '__builtin_va_list') cannot bind to a value of unrelated >>>>> type '__va_list_tag *' >>>>> jvalue* buffer = marshalArguments(allocator, ap); >>>>> ^~ >>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: passing >>>>> argument to parameter 'ap' here >>>>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>>>> va_list& ap); >>>>> >>>>> >>>>> Regards! >>>>> wei >>>>> >>>>> >>>>> On Wed, Jun 13, 2012 at 9:50 PM, Koutheir Attouchi >>>> > wrote: >>>>> >>>>>> Oh I forgot, you should also patch some LLVM source files. Here is a >>>>>> patch file to do so. Remember to recompile LLVM once you patch the files. >>>>>> You don't have to reconfigure LLVM. >>>>>> >>>>>> >>>>>> Koutheir ATTOUCHI. >>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>> Blog: http://koutheir.blogspot.com >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Jun 13, 2012 at 3:42 PM, Wei Tang wrote: >>>>>> >>>>>>> Got new compilation error when building vmkit. >>>>>>> >>>>>>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s: >>>>>>> Assembler messages: >>>>>>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s:18: >>>>>>> Error: file number 1 already allocated >>>>>>> >>>>>>> Regards! >>>>>>> wei >>>>>>> >>>>>>> >>>>>>> On Wed, Jun 13, 2012 at 4:56 PM, Koutheir Attouchi < >>>>>>> koutheir at gmail.com> wrote: >>>>>>> >>>>>>>> Hello, >>>>>>>> >>>>>>>> First, VMKit is compiled using LLVM tools. You probably need to >>>>>>>> compile LLVM in debug mode before compiling VMKit in debug mode. I do this >>>>>>>> using the commands: >>>>>>>> >>>>>>>> svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm >>>>>>>> cd llvm/tools >>>>>>>> svn co http://llvm.org/svn/llvm-project/cfe/trunk clang >>>>>>>> cd ../projects >>>>>>>> svn co http://llvm.org/svn/llvm-project/compiler-rt/trunkcompiler-rt >>>>>>>> cd .. >>>>>>>> ./configure --disable-optimized --enable-assertions >>>>>>>> --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads >>>>>>>> --enable-pthreads --enable-pic --enable-targets=x86,cpp >>>>>>>> make -j12 ENABLE_OPTIMIZED=0 BUILD_EXAMPLES=0 ENABLE_DOCS=0 >>>>>>>> >>>>>>>> This might take a long time to compile. >>>>>>>> Next, you get vmkit, patch it, configure it for debug mode then >>>>>>>> compile it: >>>>>>>> >>>>>>>> svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit >>>>>>>> cd vmkit >>>>>>>> patch -p0 < /path/to/vmkit-debug.patch >>>>>>>> ./configure --with-llvmsrc=/path/to/llvm --with-llvmobj=/path/to/llvm >>>>>>>> --with-gnu-classpath-libs=/path/to/classpath/lib >>>>>>>> --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip >>>>>>>> make -j12 >>>>>>>> >>>>>>>> The patch modifies configure files and makefiles and source files. >>>>>>>> So patch a verbatim copy of VMKit and do run configure *after*patching. >>>>>>>> If you have issues feel free to ask. >>>>>>>> >>>>>>>> Cordially. >>>>>>>> >>>>>>>> >>>>>>>> Koutheir ATTOUCHI. >>>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>>> Blog: http://koutheir.blogspot.com >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Wed, Jun 13, 2012 at 9:13 AM, Wei Tang wrote: >>>>>>>> >>>>>>>>> Thanks a lot for help! >>>>>>>>> >>>>>>>>> Regards! >>>>>>>>> wei >>>>>>>>> >>>>>>>>> >>>>>>>>> On Wed, Jun 13, 2012 at 3:01 PM, Koutheir Attouchi < >>>>>>>>> koutheir at gmail.com> wrote: >>>>>>>>> >>>>>>>>>> I'll send you the patch soon. If you have specific questions then >>>>>>>>>> post them on the mailing list. I advise you to read the code (at least the >>>>>>>>>> headers) before debugging. >>>>>>>>>> >>>>>>>>>> Koutheir Attouchi. >>>>>>>>>> On Jun 13, 2012 4:32 AM, "Wei Tang" >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> Would you send me the patch? I hope to understand more details >>>>>>>>>>> by debugging instead of just reading source code. >>>>>>>>>>> Thanks in advance! >>>>>>>>>>> >>>>>>>>>>> Regards! >>>>>>>>>>> tangwei >>>>>>>>>>> >>>>>>>>>>> On Wed, Jun 13, 2012 at 9:52 AM, Koutheir Attouchi < >>>>>>>>>>> koutheir at gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> Officially, VMKit does not support debug builds. But I can make >>>>>>>>>>>> a patch that makes it work in debug build. However, my modifications are >>>>>>>>>>>> not yet committed and I qualify them to be in beta stage. If you don't need >>>>>>>>>>>> debugging, stick with the trunk version. If you really need it, I can send >>>>>>>>>>>> you a patch that enables debugging. >>>>>>>>>>>> >>>>>>>>>>>> Koutheir ATTOUCHI. >>>>>>>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>>>>>>> Blog: http://koutheir.blogspot.com >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang < >>>>>>>>>>>> tangwei.ict at gmail.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Hi, >>>>>>>>>>>>> Does vmkit support debug build now? I can build >>>>>>>>>>>>> successfully with "make ENABLE_OPTIMIZED=1", but failed with "make". >>>>>>>>>>>>> Following is error message for your reference. >>>>>>>>>>>>> >>>>>>>>>>>>> llvm[0]: Constructing LLVMBuild project information. >>>>>>>>>>>>> make[1]: Entering directory >>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>>>>>> llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build >>>>>>>>>>>>> (PIC) >>>>>>>>>>>>> llvm[1]: Linking Debug+Asserts Loadable Module StaticGCPass.so >>>>>>>>>>>>> make[1]: *** No rule to make target >>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', >>>>>>>>>>>>> needed by >>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. >>>>>>>>>>>>> Stop. >>>>>>>>>>>>> make[1]: Leaving directory >>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>>>>>> make: *** [all] Error 1 >>>>>>>>>>>>> >>>>>>>>>>>>> my configure line: >>>>>>>>>>>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>>>>>>>>>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>>>>>>>>>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>>>>>>>>>>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> Best Regards >>>>>>>>>>>>> wei >>>>>>>>>>>>> >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Best Regards >>>>>>>>>>> tangwei >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> vmkit-commits mailing list >>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Best Regards >>>>>>>>> tangwei >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> vmkit-commits mailing list >>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> vmkit-commits mailing list >>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Best Regards >>>>>>> tangwei >>>>>>> >>>>>>> _______________________________________________ >>>>>>> vmkit-commits mailing list >>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> vmkit-commits mailing list >>>>>> vmkit-commits at cs.uiuc.edu >>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Best Regards >>>>> tangwei >>>>> >>>>> _______________________________________________ >>>>> vmkit-commits mailing list >>>>> vmkit-commits at cs.uiuc.edu >>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >>> >>> -- >>> Best Regards >>> tangwei >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > > -- > Best Regards > tangwei > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From koutheir at gmail.com Thu Jun 14 02:11:44 2012 From: koutheir at gmail.com (Koutheir Attouchi) Date: Thu, 14 Jun 2012 11:11:44 +0200 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: And replace "va_list ap" by "va_list& ap" in the lines 1096 and 1097 and 1098 of JavaClass.h. Koutheir ATTOUCHI. LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi Blog: http://koutheir.blogspot.com On Thu, Jun 14, 2012 at 10:58 AM, Koutheir Attouchi wrote: > Replace "va_list ap" by "va_list& ap" in the lines 88 and 89 and 90 of > JavaMetaJIT.cpp. > > > Koutheir ATTOUCHI. > LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi > Blog: http://koutheir.blogspot.com > > > > > On Thu, Jun 14, 2012 at 10:48 AM, Wei Tang wrote: > >> No lucky. New issues are coming. What's your compiler version? >> >> >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:106:1: error: no >> matching member function for call to 'invokeVirtualAP' >> JavaMethod_INVOKE(uint32, Int) >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: >> expanded from macro 'JavaMethod_INVOKE' >> JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, >> func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, >> func_virtual_buf_##TYPE_NAME,... >> ^ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:88:111: note: >> expanded from macro 'JavaMethod_INVOKE_AP' >> ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return >> invokeVirtualAP(vm, cl, obj, ap);} \ >> >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1057:7: note: candidate >> function [with TYPE = unsigned int, FUNC_TYPE_VIRTUAL_BUF = unsigned int >> (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not >> viable: no known conversion from '__va_list_tag *' to 'va_list &' >> (aka '__builtin_va_list &') for 4th argument; >> TYPE invokeVirtualAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, >> va_list& ap) { >> ^ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:106:1: error: no >> matching member function for call to 'invokeSpecialAP' >> JavaMethod_INVOKE(uint32, Int) >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: >> expanded from macro 'JavaMethod_INVOKE' >> JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, >> func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, >> func_virtual_buf_##TYPE_NAME,... >> ^ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:89:111: note: >> expanded from macro 'JavaMethod_INVOKE_AP' >> ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return >> invokeSpecialAP(vm, cl, obj, ap);} \ >> >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1067:7: note: candidate >> function [with TYPE = unsigned int, FUNC_TYPE_VIRTUAL_BUF = unsigned int >> (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not >> viable: no known conversion from '__va_list_tag *' to 'va_list &' >> (aka '__builtin_va_list &') for 4th argument; >> TYPE invokeSpecialAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, >> va_list& ap) { >> ^ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:106:1: error: no >> matching member function for call to 'invokeStaticAP' >> JavaMethod_INVOKE(uint32, Int) >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: >> expanded from macro 'JavaMethod_INVOKE' >> JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, >> func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, >> func_virtual_buf_##TYPE_NAME,... >> ^ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:90:98: note: >> expanded from macro 'JavaMethod_INVOKE_AP' >> ...UserClass* cl, va_list ap) >> {return invokeStaticAP(vm, cl, ap);} >> >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1077:7: note: candidate >> function [with TYPE = unsigned int, FUNC_TYPE_STATIC_BUF = unsigned int >> (*)(j3::JavaConstantPool *, void *, void *)] not viable: no known >> conversion from '__va_list_tag *' to 'va_list &' >> (aka '__builtin_va_list &') for 3rd argument; >> TYPE invokeStaticAP(Jnjvm* vm, UserClass* cl, va_list& ap) { >> ^ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:107:1: error: no >> matching member function for call to 'invokeVirtualAP' >> JavaMethod_INVOKE(sint64, Long) >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: >> expanded from macro 'JavaMethod_INVOKE' >> JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, >> func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, >> func_virtual_buf_##TYPE_NAME,... >> ^ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:88:111: note: >> expanded from macro 'JavaMethod_INVOKE_AP' >> ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return >> invokeVirtualAP(vm, cl, obj, ap);} \ >> >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1057:7: note: candidate >> function [with TYPE = long, FUNC_TYPE_VIRTUAL_BUF = long >> (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not >> viable: no known conversion from '__va_list_tag *' to 'va_list &' >> (aka '__builtin_va_list &') for 4th argument; >> TYPE invokeVirtualAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, >> va_list& ap) { >> ^ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:107:1: error: no >> matching member function for call to 'invokeSpecialAP' >> JavaMethod_INVOKE(sint64, Long) >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: >> expanded from macro 'JavaMethod_INVOKE' >> JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, >> func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, >> func_virtual_buf_##TYPE_NAME,... >> ^ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:89:111: note: >> expanded from macro 'JavaMethod_INVOKE_AP' >> ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return >> invokeSpecialAP(vm, cl, obj, ap);} \ >> >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1067:7: note: candidate >> function [with TYPE = long, FUNC_TYPE_VIRTUAL_BUF = long >> (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not >> viable: no known conversion from '__va_list_tag *' to 'va_list &' >> (aka '__builtin_va_list &') for 4th argument; >> TYPE invokeSpecialAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, >> va_list& ap) { >> ^ >> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:107:1: error: no >> matching member function for call to 'invokeStaticAP' >> JavaMethod_INVOKE(sint64, Long) >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> >> >> Regards! >> wei >> >> >> On Thu, Jun 14, 2012 at 4:35 PM, Koutheir Attouchi wrote: >> >>> I don't know what goes wrong because I can compile well this on my >>> system. >>> Try to replace "va_list ap" by "va_list& ap" in the lines 1057 and 1067 >>> and 1077 of JavaClass.h. >>> >>> >>> Koutheir ATTOUCHI. >>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>> Blog: http://koutheir.blogspot.com >>> >>> >>> >>> >>> On Thu, Jun 14, 2012 at 8:01 AM, Wei Tang wrote: >>> >>>> see attachment! >>>> >>>> On Wed, Jun 13, 2012 at 11:31 PM, Koutheir Attouchi >>> > wrote: >>>> >>>>> Please send me the file vmkit/lib/j3/VMCore/JavaClass.h >>>>> >>>>> >>>>> Koutheir ATTOUCHI. >>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>> Blog: http://koutheir.blogspot.com >>>>> >>>>> >>>>> >>>>> >>>>> On Wed, Jun 13, 2012 at 5:21 PM, Wei Tang wrote: >>>>> >>>>>> new errors coming when building vmkit after recompiling llvm. >>>>>> >>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1062:48: error: >>>>>> non-const lvalue reference to type 'va_list' >>>>>> (aka '__builtin_va_list') cannot bind to a value of unrelated >>>>>> type '__va_list_tag *' >>>>>> jvalue* buffer = marshalArguments(allocator, ap); >>>>>> ^~ >>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: >>>>>> passing argument to parameter 'ap' here >>>>>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>>>>> va_list& ap); >>>>>> >>>>>> ^ >>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1072:48: error: >>>>>> non-const lvalue reference to type 'va_list' >>>>>> (aka '__builtin_va_list') cannot bind to a value of unrelated >>>>>> type '__va_list_tag *' >>>>>> jvalue* buffer = marshalArguments(allocator, ap); >>>>>> ^~ >>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: >>>>>> passing argument to parameter 'ap' here >>>>>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>>>>> va_list& ap); >>>>>> >>>>>> ^ >>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1079:48: error: >>>>>> non-const lvalue reference to type 'va_list' >>>>>> (aka '__builtin_va_list') cannot bind to a value of unrelated >>>>>> type '__va_list_tag *' >>>>>> jvalue* buffer = marshalArguments(allocator, ap); >>>>>> ^~ >>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: >>>>>> passing argument to parameter 'ap' here >>>>>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>>>>> va_list& ap); >>>>>> >>>>>> >>>>>> Regards! >>>>>> wei >>>>>> >>>>>> >>>>>> On Wed, Jun 13, 2012 at 9:50 PM, Koutheir Attouchi < >>>>>> koutheir at gmail.com> wrote: >>>>>> >>>>>>> Oh I forgot, you should also patch some LLVM source files. Here is >>>>>>> a patch file to do so. Remember to recompile LLVM once you patch the files. >>>>>>> You don't have to reconfigure LLVM. >>>>>>> >>>>>>> >>>>>>> Koutheir ATTOUCHI. >>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>> Blog: http://koutheir.blogspot.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Wed, Jun 13, 2012 at 3:42 PM, Wei Tang wrote: >>>>>>> >>>>>>>> Got new compilation error when building vmkit. >>>>>>>> >>>>>>>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s: >>>>>>>> Assembler messages: >>>>>>>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s:18: >>>>>>>> Error: file number 1 already allocated >>>>>>>> >>>>>>>> Regards! >>>>>>>> wei >>>>>>>> >>>>>>>> >>>>>>>> On Wed, Jun 13, 2012 at 4:56 PM, Koutheir Attouchi < >>>>>>>> koutheir at gmail.com> wrote: >>>>>>>> >>>>>>>>> Hello, >>>>>>>>> >>>>>>>>> First, VMKit is compiled using LLVM tools. You probably need to >>>>>>>>> compile LLVM in debug mode before compiling VMKit in debug mode. I do this >>>>>>>>> using the commands: >>>>>>>>> >>>>>>>>> svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm >>>>>>>>> cd llvm/tools >>>>>>>>> svn co http://llvm.org/svn/llvm-project/cfe/trunk clang >>>>>>>>> cd ../projects >>>>>>>>> svn co http://llvm.org/svn/llvm-project/compiler-rt/trunkcompiler-rt >>>>>>>>> cd .. >>>>>>>>> ./configure --disable-optimized --enable-assertions >>>>>>>>> --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads >>>>>>>>> --enable-pthreads --enable-pic --enable-targets=x86,cpp >>>>>>>>> make -j12 ENABLE_OPTIMIZED=0 BUILD_EXAMPLES=0 ENABLE_DOCS=0 >>>>>>>>> >>>>>>>>> This might take a long time to compile. >>>>>>>>> Next, you get vmkit, patch it, configure it for debug mode then >>>>>>>>> compile it: >>>>>>>>> >>>>>>>>> svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit >>>>>>>>> cd vmkit >>>>>>>>> patch -p0 < /path/to/vmkit-debug.patch >>>>>>>>> ./configure --with-llvmsrc=/path/to/llvm --with-llvmobj=/path/to/llvm >>>>>>>>> --with-gnu-classpath-libs=/path/to/classpath/lib >>>>>>>>> --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip >>>>>>>>> make -j12 >>>>>>>>> >>>>>>>>> The patch modifies configure files and makefiles and source files. >>>>>>>>> So patch a verbatim copy of VMKit and do run configure *after*patching. >>>>>>>>> If you have issues feel free to ask. >>>>>>>>> >>>>>>>>> Cordially. >>>>>>>>> >>>>>>>>> >>>>>>>>> Koutheir ATTOUCHI. >>>>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>>>> Blog: http://koutheir.blogspot.com >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Wed, Jun 13, 2012 at 9:13 AM, Wei Tang wrote: >>>>>>>>> >>>>>>>>>> Thanks a lot for help! >>>>>>>>>> >>>>>>>>>> Regards! >>>>>>>>>> wei >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Wed, Jun 13, 2012 at 3:01 PM, Koutheir Attouchi < >>>>>>>>>> koutheir at gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> I'll send you the patch soon. If you have specific questions >>>>>>>>>>> then post them on the mailing list. I advise you to read the code (at least >>>>>>>>>>> the headers) before debugging. >>>>>>>>>>> >>>>>>>>>>> Koutheir Attouchi. >>>>>>>>>>> On Jun 13, 2012 4:32 AM, "Wei Tang" >>>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>>> Would you send me the patch? I hope to understand more details >>>>>>>>>>>> by debugging instead of just reading source code. >>>>>>>>>>>> Thanks in advance! >>>>>>>>>>>> >>>>>>>>>>>> Regards! >>>>>>>>>>>> tangwei >>>>>>>>>>>> >>>>>>>>>>>> On Wed, Jun 13, 2012 at 9:52 AM, Koutheir Attouchi < >>>>>>>>>>>> koutheir at gmail.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Officially, VMKit does not support debug builds. But I can >>>>>>>>>>>>> make a patch that makes it work in debug build. However, my modifications >>>>>>>>>>>>> are not yet committed and I qualify them to be in beta stage. If you don't >>>>>>>>>>>>> need debugging, stick with the trunk version. If you really need it, I can >>>>>>>>>>>>> send you a patch that enables debugging. >>>>>>>>>>>>> >>>>>>>>>>>>> Koutheir ATTOUCHI. >>>>>>>>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>>>>>>>> Blog: http://koutheir.blogspot.com >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang < >>>>>>>>>>>>> tangwei.ict at gmail.com> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>> Does vmkit support debug build now? I can build >>>>>>>>>>>>>> successfully with "make ENABLE_OPTIMIZED=1", but failed with "make". >>>>>>>>>>>>>> Following is error message for your reference. >>>>>>>>>>>>>> >>>>>>>>>>>>>> llvm[0]: Constructing LLVMBuild project information. >>>>>>>>>>>>>> make[1]: Entering directory >>>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>>>>>>> llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build >>>>>>>>>>>>>> (PIC) >>>>>>>>>>>>>> llvm[1]: Linking Debug+Asserts Loadable Module StaticGCPass.so >>>>>>>>>>>>>> make[1]: *** No rule to make target >>>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', >>>>>>>>>>>>>> needed by >>>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. >>>>>>>>>>>>>> Stop. >>>>>>>>>>>>>> make[1]: Leaving directory >>>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>>>>>>> make: *** [all] Error 1 >>>>>>>>>>>>>> >>>>>>>>>>>>>> my configure line: >>>>>>>>>>>>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>>>>>>>>>>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>>>>>>>>>>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>>>>>>>>>>>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> Best Regards >>>>>>>>>>>>>> wei >>>>>>>>>>>>>> >>>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Best Regards >>>>>>>>>>>> tangwei >>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Best Regards >>>>>>>>>> tangwei >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> vmkit-commits mailing list >>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> vmkit-commits mailing list >>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Best Regards >>>>>>>> tangwei >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> vmkit-commits mailing list >>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> vmkit-commits mailing list >>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Best Regards >>>>>> tangwei >>>>>> >>>>>> _______________________________________________ >>>>>> vmkit-commits mailing list >>>>>> vmkit-commits at cs.uiuc.edu >>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> vmkit-commits mailing list >>>>> vmkit-commits at cs.uiuc.edu >>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>> >>>>> >>>> >>>> >>>> -- >>>> Best Regards >>>> tangwei >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> >> -- >> Best Regards >> tangwei >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tangwei.ict at gmail.com Thu Jun 14 07:48:51 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Thu, 14 Jun 2012 22:48:51 +0800 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: hello, it still doesn't work. Attachment is log for your reference. wei On Thu, Jun 14, 2012 at 5:11 PM, Koutheir Attouchi wrote: > And replace "va_list ap" by "va_list& ap" in the lines 1096 and 1097 and > 1098 of JavaClass.h. > > > Koutheir ATTOUCHI. > LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi > Blog: http://koutheir.blogspot.com > > > > > On Thu, Jun 14, 2012 at 10:58 AM, Koutheir Attouchi wrote: > >> Replace "va_list ap" by "va_list& ap" in the lines 88 and 89 and 90 of >> JavaMetaJIT.cpp. >> >> >> Koutheir ATTOUCHI. >> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >> Blog: http://koutheir.blogspot.com >> >> >> >> >> On Thu, Jun 14, 2012 at 10:48 AM, Wei Tang wrote: >> >>> No lucky. New issues are coming. What's your compiler version? >>> >>> >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:106:1: error: no >>> matching member function for call to 'invokeVirtualAP' >>> JavaMethod_INVOKE(uint32, Int) >>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: >>> expanded from macro 'JavaMethod_INVOKE' >>> JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, >>> func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, >>> func_virtual_buf_##TYPE_NAME,... >>> ^ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:88:111: note: >>> expanded from macro 'JavaMethod_INVOKE_AP' >>> ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return >>> invokeVirtualAP(vm, cl, obj, ap);} \ >>> >>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1057:7: note: candidate >>> function [with TYPE = unsigned int, FUNC_TYPE_VIRTUAL_BUF = unsigned int >>> (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not >>> viable: no known conversion from '__va_list_tag *' to 'va_list &' >>> (aka '__builtin_va_list &') for 4th argument; >>> TYPE invokeVirtualAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, >>> va_list& ap) { >>> ^ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:106:1: error: no >>> matching member function for call to 'invokeSpecialAP' >>> JavaMethod_INVOKE(uint32, Int) >>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: >>> expanded from macro 'JavaMethod_INVOKE' >>> JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, >>> func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, >>> func_virtual_buf_##TYPE_NAME,... >>> ^ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:89:111: note: >>> expanded from macro 'JavaMethod_INVOKE_AP' >>> ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return >>> invokeSpecialAP(vm, cl, obj, ap);} \ >>> >>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1067:7: note: candidate >>> function [with TYPE = unsigned int, FUNC_TYPE_VIRTUAL_BUF = unsigned int >>> (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not >>> viable: no known conversion from '__va_list_tag *' to 'va_list &' >>> (aka '__builtin_va_list &') for 4th argument; >>> TYPE invokeSpecialAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, >>> va_list& ap) { >>> ^ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:106:1: error: no >>> matching member function for call to 'invokeStaticAP' >>> JavaMethod_INVOKE(uint32, Int) >>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: >>> expanded from macro 'JavaMethod_INVOKE' >>> JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, >>> func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, >>> func_virtual_buf_##TYPE_NAME,... >>> ^ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:90:98: note: >>> expanded from macro 'JavaMethod_INVOKE_AP' >>> ...UserClass* cl, va_list ap) >>> {return invokeStaticAP(vm, cl, ap);} >>> >>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1077:7: note: candidate >>> function [with TYPE = unsigned int, FUNC_TYPE_STATIC_BUF = unsigned int >>> (*)(j3::JavaConstantPool *, void *, void *)] not viable: no known >>> conversion from '__va_list_tag *' to 'va_list &' >>> (aka '__builtin_va_list &') for 3rd argument; >>> TYPE invokeStaticAP(Jnjvm* vm, UserClass* cl, va_list& ap) { >>> ^ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:107:1: error: no >>> matching member function for call to 'invokeVirtualAP' >>> JavaMethod_INVOKE(sint64, Long) >>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: >>> expanded from macro 'JavaMethod_INVOKE' >>> JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, >>> func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, >>> func_virtual_buf_##TYPE_NAME,... >>> ^ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:88:111: note: >>> expanded from macro 'JavaMethod_INVOKE_AP' >>> ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return >>> invokeVirtualAP(vm, cl, obj, ap);} \ >>> >>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1057:7: note: candidate >>> function [with TYPE = long, FUNC_TYPE_VIRTUAL_BUF = long >>> (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not >>> viable: no known conversion from '__va_list_tag *' to 'va_list &' >>> (aka '__builtin_va_list &') for 4th argument; >>> TYPE invokeVirtualAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, >>> va_list& ap) { >>> ^ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:107:1: error: no >>> matching member function for call to 'invokeSpecialAP' >>> JavaMethod_INVOKE(sint64, Long) >>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: >>> expanded from macro 'JavaMethod_INVOKE' >>> JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, >>> func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, >>> func_virtual_buf_##TYPE_NAME,... >>> ^ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:89:111: note: >>> expanded from macro 'JavaMethod_INVOKE_AP' >>> ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return >>> invokeSpecialAP(vm, cl, obj, ap);} \ >>> >>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1067:7: note: candidate >>> function [with TYPE = long, FUNC_TYPE_VIRTUAL_BUF = long >>> (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] not >>> viable: no known conversion from '__va_list_tag *' to 'va_list &' >>> (aka '__builtin_va_list &') for 4th argument; >>> TYPE invokeSpecialAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, >>> va_list& ap) { >>> ^ >>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:107:1: error: no >>> matching member function for call to 'invokeStaticAP' >>> JavaMethod_INVOKE(sint64, Long) >>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> >>> >>> >>> Regards! >>> wei >>> >>> >>> On Thu, Jun 14, 2012 at 4:35 PM, Koutheir Attouchi wrote: >>> >>>> I don't know what goes wrong because I can compile well this on my >>>> system. >>>> Try to replace "va_list ap" by "va_list& ap" in the lines 1057 and 1067 >>>> and 1077 of JavaClass.h. >>>> >>>> >>>> Koutheir ATTOUCHI. >>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>> Blog: http://koutheir.blogspot.com >>>> >>>> >>>> >>>> >>>> On Thu, Jun 14, 2012 at 8:01 AM, Wei Tang wrote: >>>> >>>>> see attachment! >>>>> >>>>> On Wed, Jun 13, 2012 at 11:31 PM, Koutheir Attouchi < >>>>> koutheir at gmail.com> wrote: >>>>> >>>>>> Please send me the file vmkit/lib/j3/VMCore/JavaClass.h >>>>>> >>>>>> >>>>>> Koutheir ATTOUCHI. >>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>> Blog: http://koutheir.blogspot.com >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Jun 13, 2012 at 5:21 PM, Wei Tang wrote: >>>>>> >>>>>>> new errors coming when building vmkit after recompiling llvm. >>>>>>> >>>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1062:48: error: >>>>>>> non-const lvalue reference to type 'va_list' >>>>>>> (aka '__builtin_va_list') cannot bind to a value of unrelated >>>>>>> type '__va_list_tag *' >>>>>>> jvalue* buffer = marshalArguments(allocator, ap); >>>>>>> ^~ >>>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: >>>>>>> passing argument to parameter 'ap' here >>>>>>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>>>>>> va_list& ap); >>>>>>> >>>>>>> ^ >>>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1072:48: error: >>>>>>> non-const lvalue reference to type 'va_list' >>>>>>> (aka '__builtin_va_list') cannot bind to a value of unrelated >>>>>>> type '__va_list_tag *' >>>>>>> jvalue* buffer = marshalArguments(allocator, ap); >>>>>>> ^~ >>>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: >>>>>>> passing argument to parameter 'ap' here >>>>>>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>>>>>> va_list& ap); >>>>>>> >>>>>>> ^ >>>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1079:48: error: >>>>>>> non-const lvalue reference to type 'va_list' >>>>>>> (aka '__builtin_va_list') cannot bind to a value of unrelated >>>>>>> type '__va_list_tag *' >>>>>>> jvalue* buffer = marshalArguments(allocator, ap); >>>>>>> ^~ >>>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: >>>>>>> passing argument to parameter 'ap' here >>>>>>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>>>>>> va_list& ap); >>>>>>> >>>>>>> >>>>>>> Regards! >>>>>>> wei >>>>>>> >>>>>>> >>>>>>> On Wed, Jun 13, 2012 at 9:50 PM, Koutheir Attouchi < >>>>>>> koutheir at gmail.com> wrote: >>>>>>> >>>>>>>> Oh I forgot, you should also patch some LLVM source files. Here is >>>>>>>> a patch file to do so. Remember to recompile LLVM once you patch the files. >>>>>>>> You don't have to reconfigure LLVM. >>>>>>>> >>>>>>>> >>>>>>>> Koutheir ATTOUCHI. >>>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>>> Blog: http://koutheir.blogspot.com >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Wed, Jun 13, 2012 at 3:42 PM, Wei Tang wrote: >>>>>>>> >>>>>>>>> Got new compilation error when building vmkit. >>>>>>>>> >>>>>>>>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s: >>>>>>>>> Assembler messages: >>>>>>>>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s:18: >>>>>>>>> Error: file number 1 already allocated >>>>>>>>> >>>>>>>>> Regards! >>>>>>>>> wei >>>>>>>>> >>>>>>>>> >>>>>>>>> On Wed, Jun 13, 2012 at 4:56 PM, Koutheir Attouchi < >>>>>>>>> koutheir at gmail.com> wrote: >>>>>>>>> >>>>>>>>>> Hello, >>>>>>>>>> >>>>>>>>>> First, VMKit is compiled using LLVM tools. You probably need to >>>>>>>>>> compile LLVM in debug mode before compiling VMKit in debug mode. I do this >>>>>>>>>> using the commands: >>>>>>>>>> >>>>>>>>>> svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm >>>>>>>>>> cd llvm/tools >>>>>>>>>> svn co http://llvm.org/svn/llvm-project/cfe/trunk clang >>>>>>>>>> cd ../projects >>>>>>>>>> svn co http://llvm.org/svn/llvm-project/compiler-rt/trunkcompiler-rt >>>>>>>>>> cd .. >>>>>>>>>> ./configure --disable-optimized --enable-assertions >>>>>>>>>> --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads >>>>>>>>>> --enable-pthreads --enable-pic --enable-targets=x86,cpp >>>>>>>>>> make -j12 ENABLE_OPTIMIZED=0 BUILD_EXAMPLES=0 ENABLE_DOCS=0 >>>>>>>>>> >>>>>>>>>> This might take a long time to compile. >>>>>>>>>> Next, you get vmkit, patch it, configure it for debug mode then >>>>>>>>>> compile it: >>>>>>>>>> >>>>>>>>>> svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit >>>>>>>>>> cd vmkit >>>>>>>>>> patch -p0 < /path/to/vmkit-debug.patch >>>>>>>>>> ./configure --with-llvmsrc=/path/to/llvm --with-llvmobj=/path/to/llvm >>>>>>>>>> --with-gnu-classpath-libs=/path/to/classpath/lib >>>>>>>>>> --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip >>>>>>>>>> make -j12 >>>>>>>>>> >>>>>>>>>> The patch modifies configure files and makefiles and source >>>>>>>>>> files. So patch a verbatim copy of VMKit and do run configure * >>>>>>>>>> after* patching. >>>>>>>>>> If you have issues feel free to ask. >>>>>>>>>> >>>>>>>>>> Cordially. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Koutheir ATTOUCHI. >>>>>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>>>>> Blog: http://koutheir.blogspot.com >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Wed, Jun 13, 2012 at 9:13 AM, Wei Tang wrote: >>>>>>>>>> >>>>>>>>>>> Thanks a lot for help! >>>>>>>>>>> >>>>>>>>>>> Regards! >>>>>>>>>>> wei >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Wed, Jun 13, 2012 at 3:01 PM, Koutheir Attouchi < >>>>>>>>>>> koutheir at gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> I'll send you the patch soon. If you have specific questions >>>>>>>>>>>> then post them on the mailing list. I advise you to read the code (at least >>>>>>>>>>>> the headers) before debugging. >>>>>>>>>>>> >>>>>>>>>>>> Koutheir Attouchi. >>>>>>>>>>>> On Jun 13, 2012 4:32 AM, "Wei Tang" >>>>>>>>>>>> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Would you send me the patch? I hope to understand more details >>>>>>>>>>>>> by debugging instead of just reading source code. >>>>>>>>>>>>> Thanks in advance! >>>>>>>>>>>>> >>>>>>>>>>>>> Regards! >>>>>>>>>>>>> tangwei >>>>>>>>>>>>> >>>>>>>>>>>>> On Wed, Jun 13, 2012 at 9:52 AM, Koutheir Attouchi < >>>>>>>>>>>>> koutheir at gmail.com> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Officially, VMKit does not support debug builds. But I can >>>>>>>>>>>>>> make a patch that makes it work in debug build. However, my modifications >>>>>>>>>>>>>> are not yet committed and I qualify them to be in beta stage. If you don't >>>>>>>>>>>>>> need debugging, stick with the trunk version. If you really need it, I can >>>>>>>>>>>>>> send you a patch that enables debugging. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Koutheir ATTOUCHI. >>>>>>>>>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>>>>>>>>> Blog: http://koutheir.blogspot.com >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang < >>>>>>>>>>>>>> tangwei.ict at gmail.com> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>>> Does vmkit support debug build now? I can build >>>>>>>>>>>>>>> successfully with "make ENABLE_OPTIMIZED=1", but failed with "make". >>>>>>>>>>>>>>> Following is error message for your reference. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> llvm[0]: Constructing LLVMBuild project information. >>>>>>>>>>>>>>> make[1]: Entering directory >>>>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>>>>>>>> llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build >>>>>>>>>>>>>>> (PIC) >>>>>>>>>>>>>>> llvm[1]: Linking Debug+Asserts Loadable Module >>>>>>>>>>>>>>> StaticGCPass.so >>>>>>>>>>>>>>> make[1]: *** No rule to make target >>>>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', >>>>>>>>>>>>>>> needed by >>>>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. >>>>>>>>>>>>>>> Stop. >>>>>>>>>>>>>>> make[1]: Leaving directory >>>>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>>>>>>>> make: *** [all] Error 1 >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> my configure line: >>>>>>>>>>>>>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>>>>>>>>>>>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>>>>>>>>>>>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>>>>>>>>>>>>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>> Best Regards >>>>>>>>>>>>>>> wei >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> Best Regards >>>>>>>>>>>>> tangwei >>>>>>>>>>>>> >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Best Regards >>>>>>>>>>> tangwei >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> vmkit-commits mailing list >>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Best Regards >>>>>>>>> tangwei >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> vmkit-commits mailing list >>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> vmkit-commits mailing list >>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Best Regards >>>>>>> tangwei >>>>>>> >>>>>>> _______________________________________________ >>>>>>> vmkit-commits mailing list >>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> vmkit-commits mailing list >>>>>> vmkit-commits at cs.uiuc.edu >>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Best Regards >>>>> tangwei >>>>> >>>>> _______________________________________________ >>>>> vmkit-commits mailing list >>>>> vmkit-commits at cs.uiuc.edu >>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >>> >>> -- >>> Best Regards >>> tangwei >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -- Best Regards tangwei -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: log Type: application/octet-stream Size: 18667 bytes Desc: not available URL: From tangwei.ict at gmail.com Thu Jun 14 22:56:16 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Fri, 15 Jun 2012 13:56:16 +0800 Subject: [vmkit-commits] vmkit doesn't support debug build? In-Reply-To: References: Message-ID: Hi, I had a fix to enable build continue, but stocked by following error. What's wrong? Anyone can help? [mkdir] Created dir: /wsp/cmplr/vmkit/vmkit/obj/mmtk/java/classes [javac] Compiling 379 source files to /wsp/cmplr/vmkit/vmkit/obj/mmtk/java/classes [javac] /wsp/cmplr/vmkit/vmkit/mmtk/java/src/org/j3/bindings/Bindings.java:12: package org.j3.config does not exist [javac] import org.j3.config.Selected; [javac] ^ [javac] /wsp/cmplr/vmkit/vmkit/mmtk/java/src/org/j3/mmtk/ActivePlan.java:19: package org.j3.config does not exist [javac] import org.j3.config.Selected; [javac] ^ [javac] /wsp/cmplr/vmkit/vmkit/mmtk/java/src/org/j3/mmtk/BuildTimeConfig.java:20: package org.j3.config does not exist [javac] import org.j3.config.Selected; [javac] ^ [javac] /wsp/cmplr/vmkit/vmkit/mmtk/java/src/org/j3/mmtk/FinalizableProcessor.java:16: package org.j3.config does not exist [javac] import org.j3.config.Selected; [javac] ^ [javac] /wsp/cmplr/vmkit/vmkit/mmtk/java/src/org/j3/bindings/Bindings.java:43: package Selected does not exist [javac] Selected.Mutator mutator = Selected.Mutator.get(); [javac] ^ [javac] /wsp/cmplr/vmkit/vmkit/mmtk/java/src/org/j3/bindings/Bindings.java:43: package Selected does not exist [javac] Selected.Mutator mutator = Selected.Mutator.get(); [javac] ^ Regards! wei On Thu, Jun 14, 2012 at 10:48 PM, Wei Tang wrote: > hello, it still doesn't work. Attachment is log for your reference. > > > wei > > > On Thu, Jun 14, 2012 at 5:11 PM, Koutheir Attouchi wrote: > >> And replace "va_list ap" by "va_list& ap" in the lines 1096 and 1097 and >> 1098 of JavaClass.h. >> >> >> Koutheir ATTOUCHI. >> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >> Blog: http://koutheir.blogspot.com >> >> >> >> >> On Thu, Jun 14, 2012 at 10:58 AM, Koutheir Attouchi wrote: >> >>> Replace "va_list ap" by "va_list& ap" in the lines 88 and 89 and 90 of >>> JavaMetaJIT.cpp. >>> >>> >>> Koutheir ATTOUCHI. >>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>> Blog: http://koutheir.blogspot.com >>> >>> >>> >>> >>> On Thu, Jun 14, 2012 at 10:48 AM, Wei Tang wrote: >>> >>>> No lucky. New issues are coming. What's your compiler version? >>>> >>>> >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:106:1: error: no >>>> matching member function for call to 'invokeVirtualAP' >>>> JavaMethod_INVOKE(uint32, Int) >>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: >>>> expanded from macro 'JavaMethod_INVOKE' >>>> JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, >>>> func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, >>>> func_virtual_buf_##TYPE_NAME,... >>>> ^ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:88:111: note: >>>> expanded from macro 'JavaMethod_INVOKE_AP' >>>> ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return >>>> invokeVirtualAP(vm, cl, obj, ap);} \ >>>> >>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1057:7: note: >>>> candidate function [with TYPE = unsigned int, FUNC_TYPE_VIRTUAL_BUF = >>>> unsigned int >>>> (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] >>>> not viable: no known conversion from '__va_list_tag *' to 'va_list &' >>>> (aka '__builtin_va_list &') for 4th argument; >>>> TYPE invokeVirtualAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, >>>> va_list& ap) { >>>> ^ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:106:1: error: no >>>> matching member function for call to 'invokeSpecialAP' >>>> JavaMethod_INVOKE(uint32, Int) >>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: >>>> expanded from macro 'JavaMethod_INVOKE' >>>> JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, >>>> func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, >>>> func_virtual_buf_##TYPE_NAME,... >>>> ^ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:89:111: note: >>>> expanded from macro 'JavaMethod_INVOKE_AP' >>>> ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return >>>> invokeSpecialAP(vm, cl, obj, ap);} \ >>>> >>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1067:7: note: >>>> candidate function [with TYPE = unsigned int, FUNC_TYPE_VIRTUAL_BUF = >>>> unsigned int >>>> (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] >>>> not viable: no known conversion from '__va_list_tag *' to 'va_list &' >>>> (aka '__builtin_va_list &') for 4th argument; >>>> TYPE invokeSpecialAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, >>>> va_list& ap) { >>>> ^ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:106:1: error: no >>>> matching member function for call to 'invokeStaticAP' >>>> JavaMethod_INVOKE(uint32, Int) >>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: >>>> expanded from macro 'JavaMethod_INVOKE' >>>> JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, >>>> func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, >>>> func_virtual_buf_##TYPE_NAME,... >>>> ^ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:90:98: note: >>>> expanded from macro 'JavaMethod_INVOKE_AP' >>>> ...UserClass* cl, va_list ap) >>>> {return invokeStaticAP(vm, cl, ap);} >>>> >>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1077:7: note: >>>> candidate function [with TYPE = unsigned int, FUNC_TYPE_STATIC_BUF = >>>> unsigned int >>>> (*)(j3::JavaConstantPool *, void *, void *)] not viable: no known >>>> conversion from '__va_list_tag *' to 'va_list &' >>>> (aka '__builtin_va_list &') for 3rd argument; >>>> TYPE invokeStaticAP(Jnjvm* vm, UserClass* cl, va_list& ap) { >>>> ^ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:107:1: error: no >>>> matching member function for call to 'invokeVirtualAP' >>>> JavaMethod_INVOKE(sint64, Long) >>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: >>>> expanded from macro 'JavaMethod_INVOKE' >>>> JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, >>>> func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, >>>> func_virtual_buf_##TYPE_NAME,... >>>> ^ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:88:111: note: >>>> expanded from macro 'JavaMethod_INVOKE_AP' >>>> ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return >>>> invokeVirtualAP(vm, cl, obj, ap);} \ >>>> >>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1057:7: note: >>>> candidate function [with TYPE = long, FUNC_TYPE_VIRTUAL_BUF = long >>>> (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] >>>> not viable: no known conversion from '__va_list_tag *' to 'va_list &' >>>> (aka '__builtin_va_list &') for 4th argument; >>>> TYPE invokeVirtualAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, >>>> va_list& ap) { >>>> ^ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:107:1: error: no >>>> matching member function for call to 'invokeSpecialAP' >>>> JavaMethod_INVOKE(sint64, Long) >>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:102:2: note: >>>> expanded from macro 'JavaMethod_INVOKE' >>>> JavaMethod_INVOKE_AP(TYPE, TYPE_NAME, >>>> func_virtual_ap_##TYPE_NAME, func_static_ap_##TYPE_NAME, >>>> func_virtual_buf_##TYPE_NAME,... >>>> ^ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:89:111: note: >>>> expanded from macro 'JavaMethod_INVOKE_AP' >>>> ...vm, UserClass* cl, JavaObject* obj, va_list ap) {return >>>> invokeSpecialAP(vm, cl, obj, ap);} \ >>>> >>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1067:7: note: >>>> candidate function [with TYPE = long, FUNC_TYPE_VIRTUAL_BUF = long >>>> (*)(j3::JavaConstantPool *, void *, j3::JavaObject *, void *)] >>>> not viable: no known conversion from '__va_list_tag *' to 'va_list &' >>>> (aka '__builtin_va_list &') for 4th argument; >>>> TYPE invokeSpecialAP(Jnjvm* vm, UserClass* cl, JavaObject* obj, >>>> va_list& ap) { >>>> ^ >>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaMetaJIT.cpp:107:1: error: no >>>> matching member function for call to 'invokeStaticAP' >>>> JavaMethod_INVOKE(sint64, Long) >>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> >>>> >>>> >>>> Regards! >>>> wei >>>> >>>> >>>> On Thu, Jun 14, 2012 at 4:35 PM, Koutheir Attouchi wrote: >>>> >>>>> I don't know what goes wrong because I can compile well this on my >>>>> system. >>>>> Try to replace "va_list ap" by "va_list& ap" in the lines 1057 and >>>>> 1067 and 1077 of JavaClass.h. >>>>> >>>>> >>>>> Koutheir ATTOUCHI. >>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>> Blog: http://koutheir.blogspot.com >>>>> >>>>> >>>>> >>>>> >>>>> On Thu, Jun 14, 2012 at 8:01 AM, Wei Tang wrote: >>>>> >>>>>> see attachment! >>>>>> >>>>>> On Wed, Jun 13, 2012 at 11:31 PM, Koutheir Attouchi < >>>>>> koutheir at gmail.com> wrote: >>>>>> >>>>>>> Please send me the file vmkit/lib/j3/VMCore/JavaClass.h >>>>>>> >>>>>>> >>>>>>> Koutheir ATTOUCHI. >>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>> Blog: http://koutheir.blogspot.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Wed, Jun 13, 2012 at 5:21 PM, Wei Tang wrote: >>>>>>> >>>>>>>> new errors coming when building vmkit after recompiling llvm. >>>>>>>> >>>>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1062:48: error: >>>>>>>> non-const lvalue reference to type 'va_list' >>>>>>>> (aka '__builtin_va_list') cannot bind to a value of unrelated >>>>>>>> type '__va_list_tag *' >>>>>>>> jvalue* buffer = marshalArguments(allocator, ap); >>>>>>>> ^~ >>>>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: >>>>>>>> passing argument to parameter 'ap' here >>>>>>>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>>>>>>> va_list& ap); >>>>>>>> >>>>>>>> ^ >>>>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1072:48: error: >>>>>>>> non-const lvalue reference to type 'va_list' >>>>>>>> (aka '__builtin_va_list') cannot bind to a value of unrelated >>>>>>>> type '__va_list_tag *' >>>>>>>> jvalue* buffer = marshalArguments(allocator, ap); >>>>>>>> ^~ >>>>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: >>>>>>>> passing argument to parameter 'ap' here >>>>>>>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>>>>>>> va_list& ap); >>>>>>>> >>>>>>>> ^ >>>>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:1079:48: error: >>>>>>>> non-const lvalue reference to type 'va_list' >>>>>>>> (aka '__builtin_va_list') cannot bind to a value of unrelated >>>>>>>> type '__va_list_tag *' >>>>>>>> jvalue* buffer = marshalArguments(allocator, ap); >>>>>>>> ^~ >>>>>>>> /wsp/cmplr/vmkit/vmkit/lib/j3/VMCore/JavaClass.h:996:71: note: >>>>>>>> passing argument to parameter 'ap' here >>>>>>>> jvalue* marshalArguments(vmkit::ThreadAllocator& allocator, >>>>>>>> va_list& ap); >>>>>>>> >>>>>>>> >>>>>>>> Regards! >>>>>>>> wei >>>>>>>> >>>>>>>> >>>>>>>> On Wed, Jun 13, 2012 at 9:50 PM, Koutheir Attouchi < >>>>>>>> koutheir at gmail.com> wrote: >>>>>>>> >>>>>>>>> Oh I forgot, you should also patch some LLVM source files. Here >>>>>>>>> is a patch file to do so. Remember to recompile LLVM once you patch the >>>>>>>>> files. You don't have to reconfigure LLVM. >>>>>>>>> >>>>>>>>> >>>>>>>>> Koutheir ATTOUCHI. >>>>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>>>> Blog: http://koutheir.blogspot.com >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Wed, Jun 13, 2012 at 3:42 PM, Wei Tang wrote: >>>>>>>>> >>>>>>>>>> Got new compilation error when building vmkit. >>>>>>>>>> >>>>>>>>>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s: >>>>>>>>>> Assembler messages: >>>>>>>>>> /wsp/cmplr/vmkit/vmkit/obj/lib/vmkit/CommonThread/Debug+Asserts/Sigsegv_gc.s:18: >>>>>>>>>> Error: file number 1 already allocated >>>>>>>>>> >>>>>>>>>> Regards! >>>>>>>>>> wei >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Wed, Jun 13, 2012 at 4:56 PM, Koutheir Attouchi < >>>>>>>>>> koutheir at gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> Hello, >>>>>>>>>>> >>>>>>>>>>> First, VMKit is compiled using LLVM tools. You probably need to >>>>>>>>>>> compile LLVM in debug mode before compiling VMKit in debug mode. I do this >>>>>>>>>>> using the commands: >>>>>>>>>>> >>>>>>>>>>> svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm >>>>>>>>>>> cd llvm/tools >>>>>>>>>>> svn co http://llvm.org/svn/llvm-project/cfe/trunk clang >>>>>>>>>>> cd ../projects >>>>>>>>>>> svn co http://llvm.org/svn/llvm-project/compiler-rt/trunkcompiler-rt >>>>>>>>>>> cd .. >>>>>>>>>>> ./configure --disable-optimized --enable-assertions >>>>>>>>>>> --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads >>>>>>>>>>> --enable-pthreads --enable-pic --enable-targets=x86,cpp >>>>>>>>>>> make -j12 ENABLE_OPTIMIZED=0 BUILD_EXAMPLES=0 ENABLE_DOCS=0 >>>>>>>>>>> >>>>>>>>>>> This might take a long time to compile. >>>>>>>>>>> Next, you get vmkit, patch it, configure it for debug mode then >>>>>>>>>>> compile it: >>>>>>>>>>> >>>>>>>>>>> svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit >>>>>>>>>>> cd vmkit >>>>>>>>>>> patch -p0 < /path/to/vmkit-debug.patch >>>>>>>>>>> ./configure --with-llvmsrc=/path/to/llvm --with-llvmobj=/path/to/llvm >>>>>>>>>>> --with-gnu-classpath-libs=/path/to/classpath/lib >>>>>>>>>>> --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip >>>>>>>>>>> make -j12 >>>>>>>>>>> >>>>>>>>>>> The patch modifies configure files and makefiles and source >>>>>>>>>>> files. So patch a verbatim copy of VMKit and do run configure * >>>>>>>>>>> after* patching. >>>>>>>>>>> If you have issues feel free to ask. >>>>>>>>>>> >>>>>>>>>>> Cordially. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Koutheir ATTOUCHI. >>>>>>>>>>> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >>>>>>>>>>> Blog: http://koutheir.blogspot.com >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Wed, Jun 13, 2012 at 9:13 AM, Wei Tang >>>>>>>>>> > wrote: >>>>>>>>>>> >>>>>>>>>>>> Thanks a lot for help! >>>>>>>>>>>> >>>>>>>>>>>> Regards! >>>>>>>>>>>> wei >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On Wed, Jun 13, 2012 at 3:01 PM, Koutheir Attouchi < >>>>>>>>>>>> koutheir at gmail.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> I'll send you the patch soon. If you have specific questions >>>>>>>>>>>>> then post them on the mailing list. I advise you to read the code (at least >>>>>>>>>>>>> the headers) before debugging. >>>>>>>>>>>>> >>>>>>>>>>>>> Koutheir Attouchi. >>>>>>>>>>>>> On Jun 13, 2012 4:32 AM, "Wei Tang" >>>>>>>>>>>>> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Would you send me the patch? I hope to understand more >>>>>>>>>>>>>> details by debugging instead of just reading source code. >>>>>>>>>>>>>> Thanks in advance! >>>>>>>>>>>>>> >>>>>>>>>>>>>> Regards! >>>>>>>>>>>>>> tangwei >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Wed, Jun 13, 2012 at 9:52 AM, Koutheir Attouchi < >>>>>>>>>>>>>> koutheir at gmail.com> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Officially, VMKit does not support debug builds. But I can >>>>>>>>>>>>>>> make a patch that makes it work in debug build. However, my modifications >>>>>>>>>>>>>>> are not yet committed and I qualify them to be in beta stage. If you don't >>>>>>>>>>>>>>> need debugging, stick with the trunk version. If you really need it, I can >>>>>>>>>>>>>>> send you a patch that enables debugging. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Koutheir ATTOUCHI. >>>>>>>>>>>>>>> LinkedIn profile: >>>>>>>>>>>>>>> http://www.linkedin.com/in/koutheirattouchi >>>>>>>>>>>>>>> Blog: http://koutheir.blogspot.com >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> On Wed, Jun 13, 2012 at 3:29 AM, Wei Tang < >>>>>>>>>>>>>>> tangwei.ict at gmail.com> wrote: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>>>> Does vmkit support debug build now? I can build >>>>>>>>>>>>>>>> successfully with "make ENABLE_OPTIMIZED=1", but failed with "make". >>>>>>>>>>>>>>>> Following is error message for your reference. >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> llvm[0]: Constructing LLVMBuild project information. >>>>>>>>>>>>>>>> make[1]: Entering directory >>>>>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>>>>>>>>> llvm[1]: Compiling StaticGCPass.cpp for Debug+Asserts build >>>>>>>>>>>>>>>> (PIC) >>>>>>>>>>>>>>>> llvm[1]: Linking Debug+Asserts Loadable Module >>>>>>>>>>>>>>>> StaticGCPass.so >>>>>>>>>>>>>>>> make[1]: *** No rule to make target >>>>>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.ll', >>>>>>>>>>>>>>>> needed by >>>>>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass/Debug+Asserts/StaticGCPass.bc'. >>>>>>>>>>>>>>>> Stop. >>>>>>>>>>>>>>>> make[1]: Leaving directory >>>>>>>>>>>>>>>> `/wsp/cmplr/vmkit/vmkit/obj-debug/lib/vmkit/StaticGCPass' >>>>>>>>>>>>>>>> make: *** [all] Error 1 >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> my configure line: >>>>>>>>>>>>>>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>>>>>>>>>>>>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>>>>>>>>>>>>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>>>>>>>>>>>>>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>> Best Regards >>>>>>>>>>>>>>>> wei >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> Best Regards >>>>>>>>>>>>>> tangwei >>>>>>>>>>>>>> >>>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Best Regards >>>>>>>>>>>> tangwei >>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> vmkit-commits mailing list >>>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Best Regards >>>>>>>>>> tangwei >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> vmkit-commits mailing list >>>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> vmkit-commits mailing list >>>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Best Regards >>>>>>>> tangwei >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> vmkit-commits mailing list >>>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> vmkit-commits mailing list >>>>>>> vmkit-commits at cs.uiuc.edu >>>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Best Regards >>>>>> tangwei >>>>>> >>>>>> _______________________________________________ >>>>>> vmkit-commits mailing list >>>>>> vmkit-commits at cs.uiuc.edu >>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> vmkit-commits mailing list >>>>> vmkit-commits at cs.uiuc.edu >>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>> >>>>> >>>> >>>> >>>> -- >>>> Best Regards >>>> tangwei >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > > -- > Best Regards > tangwei > -- Best Regards tangwei -------------- next part -------------- An HTML attachment was scrubbed... URL: From tangwei.ict at gmail.com Tue Jun 19 02:14:40 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Tue, 19 Jun 2012 17:14:40 +0800 Subject: [vmkit-commits] =?windows-1252?q?build_failure_=22native_method_i?= =?windows-1252?q?s_bogus=2E_Aborting=2E=2E=2E=93?= Message-ID: Hi, I got following error when compiling mmtk-vmkit.jar, anyone can help? I searched in Google, someone got the similar issue and solved by changing different GC plan. It doesn't work to me. Following are steps to reproduce. my configure command line: classpath-0.97.2 ../configure --disable-plugin --disable-examples --disable-Werror --enable-debug llvm: ../configure --disable-optimized --enable-assertions --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads --enable-pthreads --enable-pic --enable-targets=x86,cpp vmkit: ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib reproduce erro: /wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/bin/vmjc -std-compile-opts -load=/wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/lib/MMTKRuntime.so -load=/wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/lib/MMTKMagic.so -LowerMagic /wsp/cmplr/vmkit/vmkit-rel/obj-new/mmtk/java/mmtk-vmkit.jar -disable-exceptions -disable-cooperativegc -with-clinit=org/mmtk/vm/VM,org/mmtk/utility/*,org/mmtk/policy/*,org/j3/config/* -Dmmtk.hostjvm=org.j3.mmtk.Factory -o mmtk-vmkit.bc -Dmmtk.properties=/wsp/cmplr/vmkit/vmkit-rel/obj-new/../mmtk/java/vmkit.properties -disable-stubs -assume-compiled Thread 0x110000000 received a SIGSEGV: either the VM code or an external native method is bogus. Aborting... Segmentation fault (core dumped) -- Best Regards wei -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.geoffray at gmail.com Wed Jun 20 02:45:31 2012 From: nicolas.geoffray at gmail.com (Nicolas Geoffray) Date: Wed, 20 Jun 2012 11:45:31 +0200 Subject: [vmkit-commits] =?windows-1252?q?build_failure_=22native_method_i?= =?windows-1252?q?s_bogus=2E_Aborting=2E=2E=2E=93?= In-Reply-To: References: Message-ID: Hi Wei, Are you able to build optimized mode (--enable-optimized) for both llvm and vmkit? There are some issues for building in debug mode that I haven't looked at yet. Cheers, Nicolas On Tue, Jun 19, 2012 at 11:14 AM, Wei Tang wrote: > Hi, > I got following error when compiling mmtk-vmkit.jar, anyone can help? I > searched in Google, someone got the similar issue and solved by changing > different GC plan. > It doesn't work to me. Following are steps to reproduce. > > my configure command line: > > classpath-0.97.2 > ../configure --disable-plugin --disable-examples --disable-Werror > --enable-debug > > llvm: > ../configure --disable-optimized --enable-assertions > --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads > --enable-pthreads --enable-pic --enable-targets=x86,cpp > > > vmkit: > ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm > --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj > --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip > --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib > > > reproduce erro: > /wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/bin/vmjc > -std-compile-opts > -load=/wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/lib/MMTKRuntime.so > -load=/wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/lib/MMTKMagic.so > -LowerMagic /wsp/cmplr/vmkit/vmkit-rel/obj-new/mmtk/java/mmtk-vmkit.jar > -disable-exceptions -disable-cooperativegc > -with-clinit=org/mmtk/vm/VM,org/mmtk/utility/*,org/mmtk/policy/*,org/j3/config/* > -Dmmtk.hostjvm=org.j3.mmtk.Factory -o mmtk-vmkit.bc > -Dmmtk.properties=/wsp/cmplr/vmkit/vmkit-rel/obj-new/../mmtk/java/vmkit.properties > -disable-stubs -assume-compiled > > Thread 0x110000000 received a SIGSEGV: either the VM code or an external > native method is bogus. Aborting... > Segmentation fault (core dumped) > > -- > Best Regards > wei > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tangwei.ict at gmail.com Wed Jun 20 06:09:14 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Wed, 20 Jun 2012 21:09:14 +0800 Subject: [vmkit-commits] =?windows-1252?q?build_failure_=22native_method_i?= =?windows-1252?q?s_bogus=2E_Aborting=2E=2E=2E=93?= In-Reply-To: References: Message-ID: Hi Nicolas, This issue happened in debug mode. I will use release build by now. Do you have any plan to fix debug build issue? Regards! wei On Wed, Jun 20, 2012 at 5:45 PM, Nicolas Geoffray < nicolas.geoffray at gmail.com> wrote: > Hi Wei, > > Are you able to build optimized mode (--enable-optimized) for both llvm > and vmkit? There are some issues for building in debug mode that I haven't > looked at yet. > > Cheers, > Nicolas > > On Tue, Jun 19, 2012 at 11:14 AM, Wei Tang wrote: > >> Hi, >> I got following error when compiling mmtk-vmkit.jar, anyone can help? >> I searched in Google, someone got the similar issue and solved by changing >> different GC plan. >> It doesn't work to me. Following are steps to reproduce. >> >> my configure command line: >> >> classpath-0.97.2 >> ../configure --disable-plugin --disable-examples --disable-Werror >> --enable-debug >> >> llvm: >> ../configure --disable-optimized --enable-assertions >> --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads >> --enable-pthreads --enable-pic --enable-targets=x86,cpp >> >> >> vmkit: >> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >> >> >> reproduce erro: >> /wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/bin/vmjc >> -std-compile-opts >> -load=/wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/lib/MMTKRuntime.so >> -load=/wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/lib/MMTKMagic.so >> -LowerMagic /wsp/cmplr/vmkit/vmkit-rel/obj-new/mmtk/java/mmtk-vmkit.jar >> -disable-exceptions -disable-cooperativegc >> -with-clinit=org/mmtk/vm/VM,org/mmtk/utility/*,org/mmtk/policy/*,org/j3/config/* >> -Dmmtk.hostjvm=org.j3.mmtk.Factory -o mmtk-vmkit.bc >> -Dmmtk.properties=/wsp/cmplr/vmkit/vmkit-rel/obj-new/../mmtk/java/vmkit.properties >> -disable-stubs -assume-compiled >> >> Thread 0x110000000 received a SIGSEGV: either the VM code or an external >> native method is bogus. Aborting... >> Segmentation fault (core dumped) >> >> -- >> Best Regards >> wei >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -- Best Regards tangwei -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.geoffray at gmail.com Sat Jun 23 03:22:44 2012 From: nicolas.geoffray at gmail.com (Nicolas Geoffray) Date: Sat, 23 Jun 2012 12:22:44 +0200 Subject: [vmkit-commits] =?windows-1252?q?build_failure_=22native_method_i?= =?windows-1252?q?s_bogus=2E_Aborting=2E=2E=2E=93?= In-Reply-To: References: Message-ID: On Wed, Jun 20, 2012 at 3:09 PM, Wei Tang wrote: > Hi Nicolas, > This issue happened in debug mode. I will use release build by now. Do > you have any plan to fix debug build issue? > Unfortunately not in the short-term. But it looks like Koutheir is, so maybe he can jump-into the conversation? :) Cheers, Nicolas > Regards! > wei > > > On Wed, Jun 20, 2012 at 5:45 PM, Nicolas Geoffray < > nicolas.geoffray at gmail.com> wrote: > >> Hi Wei, >> >> Are you able to build optimized mode (--enable-optimized) for both llvm >> and vmkit? There are some issues for building in debug mode that I haven't >> looked at yet. >> >> Cheers, >> Nicolas >> >> On Tue, Jun 19, 2012 at 11:14 AM, Wei Tang wrote: >> >>> Hi, >>> I got following error when compiling mmtk-vmkit.jar, anyone can help? >>> I searched in Google, someone got the similar issue and solved by changing >>> different GC plan. >>> It doesn't work to me. Following are steps to reproduce. >>> >>> my configure command line: >>> >>> classpath-0.97.2 >>> ../configure --disable-plugin --disable-examples --disable-Werror >>> --enable-debug >>> >>> llvm: >>> ../configure --disable-optimized --enable-assertions >>> --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads >>> --enable-pthreads --enable-pic --enable-targets=x86,cpp >>> >>> >>> vmkit: >>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>> >>> >>> reproduce erro: >>> /wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/bin/vmjc >>> -std-compile-opts >>> -load=/wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/lib/MMTKRuntime.so >>> -load=/wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/lib/MMTKMagic.so >>> -LowerMagic /wsp/cmplr/vmkit/vmkit-rel/obj-new/mmtk/java/mmtk-vmkit.jar >>> -disable-exceptions -disable-cooperativegc >>> -with-clinit=org/mmtk/vm/VM,org/mmtk/utility/*,org/mmtk/policy/*,org/j3/config/* >>> -Dmmtk.hostjvm=org.j3.mmtk.Factory -o mmtk-vmkit.bc >>> -Dmmtk.properties=/wsp/cmplr/vmkit/vmkit-rel/obj-new/../mmtk/java/vmkit.properties >>> -disable-stubs -assume-compiled >>> >>> Thread 0x110000000 received a SIGSEGV: either the VM code or an external >>> native method is bogus. Aborting... >>> Segmentation fault (core dumped) >>> >>> -- >>> Best Regards >>> wei >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > > -- > Best Regards > tangwei > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From koutheir at gmail.com Sat Jun 23 03:27:28 2012 From: koutheir at gmail.com (Koutheir Attouchi) Date: Sat, 23 Jun 2012 12:27:28 +0200 Subject: [vmkit-commits] =?utf-8?q?build_failure_=22native_method_is_bogus?= =?utf-8?b?LiBBYm9ydGluZy4uLuKAnA==?= In-Reply-To: References: Message-ID: I effectively made a debug build for VMKit and it just works. I gave patches for VMKit and LLVM to make it work but it seems the building environment is not the same as yours. Just for information: my dev machine is a Debian Squeeze 6.0 Stable. I use the SVN trunk version of LLVM and VMKit. Koutheir ATTOUCHI. LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi Blog: http://koutheir.blogspot.com On Sat, Jun 23, 2012 at 12:22 PM, Nicolas Geoffray < nicolas.geoffray at gmail.com> wrote: > On Wed, Jun 20, 2012 at 3:09 PM, Wei Tang wrote: > >> Hi Nicolas, >> This issue happened in debug mode. I will use release build by now. Do >> you have any plan to fix debug build issue? >> > > Unfortunately not in the short-term. But it looks like Koutheir is, so > maybe he can jump-into the conversation? :) > > Cheers, > Nicolas > > >> Regards! >> wei >> >> >> On Wed, Jun 20, 2012 at 5:45 PM, Nicolas Geoffray < >> nicolas.geoffray at gmail.com> wrote: >> >>> Hi Wei, >>> >>> Are you able to build optimized mode (--enable-optimized) for both llvm >>> and vmkit? There are some issues for building in debug mode that I haven't >>> looked at yet. >>> >>> Cheers, >>> Nicolas >>> >>> On Tue, Jun 19, 2012 at 11:14 AM, Wei Tang wrote: >>> >>>> Hi, >>>> I got following error when compiling mmtk-vmkit.jar, anyone can >>>> help? I searched in Google, someone got the similar issue and solved by >>>> changing different GC plan. >>>> It doesn't work to me. Following are steps to reproduce. >>>> >>>> my configure command line: >>>> >>>> classpath-0.97.2 >>>> ../configure --disable-plugin --disable-examples --disable-Werror >>>> --enable-debug >>>> >>>> llvm: >>>> ../configure --disable-optimized --enable-assertions >>>> --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads >>>> --enable-pthreads --enable-pic --enable-targets=x86,cpp >>>> >>>> >>>> vmkit: >>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>>> >>>> >>>> reproduce erro: >>>> /wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/bin/vmjc >>>> -std-compile-opts >>>> -load=/wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/lib/MMTKRuntime.so >>>> -load=/wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/lib/MMTKMagic.so >>>> -LowerMagic /wsp/cmplr/vmkit/vmkit-rel/obj-new/mmtk/java/mmtk-vmkit.jar >>>> -disable-exceptions -disable-cooperativegc >>>> -with-clinit=org/mmtk/vm/VM,org/mmtk/utility/*,org/mmtk/policy/*,org/j3/config/* >>>> -Dmmtk.hostjvm=org.j3.mmtk.Factory -o mmtk-vmkit.bc >>>> -Dmmtk.properties=/wsp/cmplr/vmkit/vmkit-rel/obj-new/../mmtk/java/vmkit.properties >>>> -disable-stubs -assume-compiled >>>> >>>> Thread 0x110000000 received a SIGSEGV: either the VM code or an external >>>> native method is bogus. Aborting... >>>> Segmentation fault (core dumped) >>>> >>>> -- >>>> Best Regards >>>> wei >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> >> -- >> Best Regards >> tangwei >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tangwei.ict at gmail.com Sun Jun 24 19:52:30 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Mon, 25 Jun 2012 10:52:30 +0800 Subject: [vmkit-commits] =?windows-1252?q?build_failure_=22native_method_i?= =?windows-1252?q?s_bogus=2E_Aborting=2E=2E=2E=93?= In-Reply-To: References: Message-ID: Hi Koutheir, My dev machine is Ubuntu 12.04 LTS, and trunk version of LLVM and VMKIT. I will wait for debug version. Thanks for response. Regards! wei On Sat, Jun 23, 2012 at 6:27 PM, Koutheir Attouchi wrote: > I effectively made a debug build for VMKit and it just works. I gave > patches for VMKit and LLVM to make it work but it seems the building > environment is not the same as yours. > Just for information: my dev machine is a Debian Squeeze 6.0 Stable. I use > the SVN trunk version of LLVM and VMKit. > > Koutheir ATTOUCHI. > LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi > Blog: http://koutheir.blogspot.com > > > > > On Sat, Jun 23, 2012 at 12:22 PM, Nicolas Geoffray < > nicolas.geoffray at gmail.com> wrote: > >> On Wed, Jun 20, 2012 at 3:09 PM, Wei Tang wrote: >> >>> Hi Nicolas, >>> This issue happened in debug mode. I will use release build by now. Do >>> you have any plan to fix debug build issue? >>> >> >> Unfortunately not in the short-term. But it looks like Koutheir is, so >> maybe he can jump-into the conversation? :) >> >> Cheers, >> Nicolas >> >> >>> Regards! >>> wei >>> >>> >>> On Wed, Jun 20, 2012 at 5:45 PM, Nicolas Geoffray < >>> nicolas.geoffray at gmail.com> wrote: >>> >>>> Hi Wei, >>>> >>>> Are you able to build optimized mode (--enable-optimized) for both llvm >>>> and vmkit? There are some issues for building in debug mode that I haven't >>>> looked at yet. >>>> >>>> Cheers, >>>> Nicolas >>>> >>>> On Tue, Jun 19, 2012 at 11:14 AM, Wei Tang wrote: >>>> >>>>> Hi, >>>>> I got following error when compiling mmtk-vmkit.jar, anyone can >>>>> help? I searched in Google, someone got the similar issue and solved by >>>>> changing different GC plan. >>>>> It doesn't work to me. Following are steps to reproduce. >>>>> >>>>> my configure command line: >>>>> >>>>> classpath-0.97.2 >>>>> ../configure --disable-plugin --disable-examples --disable-Werror >>>>> --enable-debug >>>>> >>>>> llvm: >>>>> ../configure --disable-optimized --enable-assertions >>>>> --enable-debug-runtime --enable-debug-symbols --enable-jit --enable-threads >>>>> --enable-pthreads --enable-pic --enable-targets=x86,cpp >>>>> >>>>> >>>>> vmkit: >>>>> ../configure --with-llvmsrc=/wsp/cmplr/vmkit/llvm >>>>> --with-llvmobj=/wsp/cmplr/vmkit/llvm/obj >>>>> --with-gnu-classpath-glibj=/wsp/cmplr/vmkit/classpath-0.97.2/lib/glibj.zip >>>>> --with-gnu-classpath-libs=/wsp/cmplr/vmkit/classpath-0.97.2/lib >>>>> >>>>> >>>>> reproduce erro: >>>>> /wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/bin/vmjc >>>>> -std-compile-opts >>>>> -load=/wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/lib/MMTKRuntime.so >>>>> -load=/wsp/cmplr/vmkit/vmkit-rel/obj-new/Debug+Asserts/lib/MMTKMagic.so >>>>> -LowerMagic /wsp/cmplr/vmkit/vmkit-rel/obj-new/mmtk/java/mmtk-vmkit.jar >>>>> -disable-exceptions -disable-cooperativegc >>>>> -with-clinit=org/mmtk/vm/VM,org/mmtk/utility/*,org/mmtk/policy/*,org/j3/config/* >>>>> -Dmmtk.hostjvm=org.j3.mmtk.Factory -o mmtk-vmkit.bc >>>>> -Dmmtk.properties=/wsp/cmplr/vmkit/vmkit-rel/obj-new/../mmtk/java/vmkit.properties >>>>> -disable-stubs -assume-compiled >>>>> >>>>> Thread 0x110000000 received a SIGSEGV: either the VM code or an >>>>> external >>>>> native method is bogus. Aborting... >>>>> Segmentation fault (core dumped) >>>>> >>>>> -- >>>>> Best Regards >>>>> wei >>>>> >>>>> _______________________________________________ >>>>> vmkit-commits mailing list >>>>> vmkit-commits at cs.uiuc.edu >>>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> vmkit-commits mailing list >>>> vmkit-commits at cs.uiuc.edu >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>>> >>>> >>> >>> >>> -- >>> Best Regards >>> tangwei >>> >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >>> >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -- Best Regards tangwei -------------- next part -------------- An HTML attachment was scrubbed... URL: From tangwei.ict at gmail.com Mon Jun 25 18:29:33 2012 From: tangwei.ict at gmail.com (Wei Tang) Date: Tue, 26 Jun 2012 09:29:33 +0800 Subject: [vmkit-commits] what is the purpose of ____Vstatic_buf Message-ID: Hi guys, When debugging j3, I found in gdb stack there was ____Vstatic_buf function call, which comes from following macro expansion INVOKE(uint32, Int, uint32_virtual_ap, uint32_static_ap, uint32_virtual_buf, uint32_static_buf) What is the purpose of __Vstatic_buf, it is used as some kind of stub? Anyone can help me to understand this? Thanks in advance! -- Best Regards wei -------------- next part -------------- An HTML attachment was scrubbed... URL: From koutheir at gmail.com Tue Jun 26 08:22:10 2012 From: koutheir at gmail.com (Koutheir Attouchi) Date: Tue, 26 Jun 2012 17:22:10 +0200 Subject: [vmkit-commits] what is the purpose of ____Vstatic_buf In-Reply-To: References: Message-ID: That buffer is an executable buffer holding machine instructions generated by the JIT or the AOT of VMKit. I think it might also hold fields data. Nicolas might tell you more. Koutheir ATTOUCHI. LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi Blog: http://koutheir.blogspot.com On Tue, Jun 26, 2012 at 3:29 AM, Wei Tang wrote: > Hi guys, > When debugging j3, I found in gdb stack there was ____Vstatic_buf > function call, which comes from following macro expansion > > INVOKE(uint32, Int, uint32_virtual_ap, uint32_static_ap, > uint32_virtual_buf, uint32_static_buf) > > What is the purpose of __Vstatic_buf, it is used as some kind of stub? > Anyone can help me to understand this? Thanks in advance! > > -- > Best Regards > wei > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shyampatro at hotmail.com Thu Jun 21 03:57:48 2012 From: shyampatro at hotmail.com (Shyam Patro) Date: Thu, 21 Jun 2012 10:57:48 -0000 Subject: [vmkit-commits] Error: unsupported GC: vmkit In-Reply-To: References: Message-ID: Hi,I have recently installed llvm-3.1 , gnu classpath-0.97.2 and vmkit I compiled a simple java file "hello.java" to hello.class Then converted hello.class to llvm bytecode(hello.bc) using vmjc from vmkitwhen i tried to run "hello.bc" using lli I am getting the following error shyam at shyam:~$ cat hello.javaimport java.io.*; class hello { public static void main(String[] args) { System.out.println("Hello world\n"); }}shyam at shyam:~$ javac hello.java -o hello.classshyam at shyam:~$ vmjc hello.class -o hello.bcshyam at shyam:~$ lli hello.bc unsupported GC: vmkitUNREACHABLE executed at /home/shyam/llvm-3.1.src/lib/CodeGen/GCMetadata.cpp:99!0 lli 0x089a5778Stack dump:0. Program arguments: lli hello.ll Aborted Please help me out -------------- next part -------------- An HTML attachment was scrubbed... URL: From shyampatro at hotmail.com Thu Jun 28 02:29:35 2012 From: shyampatro at hotmail.com (Shyam Patro) Date: Thu, 28 Jun 2012 09:29:35 -0000 Subject: [vmkit-commits] Error using llcj Message-ID: I tried to compile helloworld program using llcj to native but i got the following error shyam at shyam:~$ cat hello.javaclass hello { public static final String str = "Hello Word"; public static void main(String[] args) { System.out.println(str); }}shyam at shyam:~$ llcj --main=hello hello.class -o hellollc: Unknown command line argument '-f'. Try: '/home/shyam/llvmbuild/Release+Debug+Asserts/bin/llc -help'llc: Did you mean '-O'? I edited the vmkit/tools/llcj/llcj.cpp file line number ---- code188 const char* llcArgv[8];189 int i = 0;190 llcArgv[i++] = Prog.c_str();191 llcArgv[i++] = Out.c_str();192 if (shared) llcArgv[i++] = "-relocation-model=pic";193 llcArgv[i++] = "-disable-fp-elim";194 // llcArgv[i++] = "-f"; //Commented this line as there is no "-f" option for llc195 llcArgv[i++] = "-o";196 llcArgv[i++] = LlcOut.c_str();197 llcArgv[i++] = 0; and i added few more lines of code to print the commands being executed inside llcj.cpp shyam at shyam:~$ llcj --main=hello hello.class -o hello vmjc /home/shyam/classpath-0.97.2/lib/vmkit/Release+Debug+Asserts/bin/vmjc --main=hello hello.class -f -o /tmp/llvm_WbIrdX/hello.bc llc /home/shyam/llvmbuild/Release+Debug+Asserts/bin/llc /tmp/llvm_WbIrdX/hello.bc -disable-fp-elim -o /tmp/llvm_WbIrdX/hello.s (null) unsupported GC: vmkitUNREACHABLE executed at /home/shyam/llvm-3.1.src/lib/CodeGen/GCMetadata.cpp:99!0 llc 0x08c83b58Stack dump:0. Program arguments: /home/shyam/llvmbuild/Release+Debug+Asserts/bin/llc /tmp/llvm_WbIrdX/hello.bc -disable-fp-elim -o /tmp/llvm_WbIrdX/hello.s 1. Running pass 'Function Pass Manager' on module '/tmp/llvm_WbIrdX/hello.bc'. After observing the makefile of vmkit/tools/precompiler/trainer/Makefile i added the code to load the shared library StaticGCPrinter.so shyam at shyam:~$ llcj --main=hello hello.class -o hello vmjc /home/shyam/classpath-0.97.2/lib/vmkit/Release+Debug+Asserts/bin/vmjc --main=hello hello.class -f -o /tmp/llvm_Wa4yw2/hello.bc llc /home/shyam/llvmbuild/Release+Debug+Asserts/bin/llc /tmp/llvm_Wa4yw2/hello.bc -disable-fp-elim -disable-branch-fold -disable-cfi -disable-debug-info-print -load=/home/shyam/classpath-0.97.2/lib/vmkit/Release+Debug+Asserts/lib/StaticGCPrinter.so -o /tmp/llvm_Wa4yw2/hello.s (null) llc: VmkitGCPrinter.cpp:283: llvm::Constant* FindMetadata(const llvm::Function&): Assertion `0 && "Should have found a JavaMethod"' failed.0 llc 0x08c83b58Stack dump:0. Program arguments: /home/shyam/llvmbuild/Release+Debug+Asserts/bin/llc /tmp/llvm_Wa4yw2/hello.bc -disable-fp-elim -disable-branch-fold -disable-cfi -disable-debug-info-print -load=/home/shyam/classpath-0.97.2/lib/vmkit/Release+Debug+Asserts/lib/StaticGCPrinter.so -o /tmp/llvm_Wa4yw2/hello.s 1. Running pass 'Function Pass Manager' on module '/tmp/llvm_Wa4yw2/hello.bc'.shyam at shyam:~$ After checking the code of VmkitGcPrinter.cpp the function Constant* FindMetadata(const Function& F) cannot identify JnJVM_hello_main___3Ljava_lang_String_2 (a function from hello.ll) Can anyone tell me what went wrong -------------- next part -------------- An HTML attachment was scrubbed... URL: