Sure: I'm on 64-bit Ubuntu Linux 10.04 with gcc 4.4.3. I followed the instructions on http://vmkit.llvm.org/get_started.html, as near as I can tell. I configured llvm with the default configuration: ./configure I configured vmkit with: ./configure --with-llvmsrc=/home/jowarner/code/llvm/ --with-llvmobj=/home/jowarner/code/llvm/ --with-gnu-classpath-glibj=/usr/share/classpath/glibj.zip --with-pnet-local-prefix=/home/jowarner/code/pnet-0.8.0/ --with-pnetlib=/home/jowarner/code/pnetlib-0.8.0/ Thanks, Joshua On Mon, Jul 19, 2010 at 8:40 AM, Duncan Sands <baldrick at free.fr> wrote:> > I'm trying to build VMKit from SVN, and I'm getting a bunch of errors > > that all seem to be related to the TRACER macro not getting defined: > ... > > Is there something wrong with my configuration? > > Hi Joshua, some details like what platform you are on (darwin, linux, > windows), what compiler you are using, how you configured LLVM etc > would be helpful. > > Ciao, > > Duncan. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100719/8dd89210/attachment.html>
Hi Joshua, The .Net implementation in VMKit hasn't been updated for a long while. Fortunately for you, the Java implementation is not :). Remove all pnet references in your configure and it should compile fine: ./configure --with-llvmsrc=/home/jowarner/code/llvm/ --with-llvmobj=/home/jowarner/code/llvm/ --with-gnu-classpath-glibj=/usr/share/classpath/glibj.zip Nicolas On Mon, Jul 19, 2010 at 5:21 PM, Joshua Warner <joshuawarner32 at gmail.com>wrote:> Sure: > > I'm on 64-bit Ubuntu Linux 10.04 with gcc 4.4.3. I followed the > instructions on http://vmkit.llvm.org/get_started.html, as near as I can > tell. > > I configured llvm with the default configuration: > ./configure > > I configured vmkit with: > ./configure --with-llvmsrc=/home/jowarner/code/llvm/ > --with-llvmobj=/home/jowarner/code/llvm/ > --with-gnu-classpath-glibj=/usr/share/classpath/glibj.zip > --with-pnet-local-prefix=/home/jowarner/code/pnet-0.8.0/ > --with-pnetlib=/home/jowarner/code/pnetlib-0.8.0/ > > Thanks, > Joshua > > > On Mon, Jul 19, 2010 at 8:40 AM, Duncan Sands <baldrick at free.fr> wrote: > >> > I'm trying to build VMKit from SVN, and I'm getting a bunch of errors >> > that all seem to be related to the TRACER macro not getting defined: >> ... >> > Is there something wrong with my configuration? >> >> Hi Joshua, some details like what platform you are on (darwin, linux, >> windows), what compiler you are using, how you configured LLVM etc >> would be helpful. >> >> Ciao, >> >> Duncan. >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100719/28b5d507/attachment.html>
Forgot to send to the mailing list... ---------- Forwarded message ---------- From: Joshua Warner <joshuawarner32 at gmail.com> Date: Mon, Jul 19, 2010 at 10:19 AM Subject: Re: [LLVMdev] Building VMKit To: nicolas geoffray <nicolas.geoffray at gmail.com> Thanks Nicolas, that worked great! Now, I'm having trouble invoking the compiler properly: $ llcj Hello.class -o=Hello.ll $ cat Hello.ll cat: Hello.ll: No such file or directory $ j3 Hello j3: JavaClass.cpp:480: j3::JavaObject* j3::Class::doNew(j3::Jnjvm*): Assertion `(this->isInitializing() || classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized class when allocating."' failed. Aborted $ java Hello hello, world! "Hello" is a completely banal "hello world!" program. Joshua On Mon, Jul 19, 2010 at 9:44 AM, nicolas geoffray < nicolas.geoffray at gmail.com> wrote:> Hi Joshua, > > The .Net implementation in VMKit hasn't been updated for a long while. > Fortunately for you, the Java implementation is not :). Remove all pnet > references in your configure and it should compile fine: > > ./configure --with-llvmsrc=/home/jowarner/code/llvm/ > --with-llvmobj=/home/jowarner/code/llvm/ > --with-gnu-classpath-glibj=/usr/share/classpath/glibj.zip > > Nicolas > > On Mon, Jul 19, 2010 at 5:21 PM, Joshua Warner <joshuawarner32 at gmail.com>wrote: > >> Sure: >> >> I'm on 64-bit Ubuntu Linux 10.04 with gcc 4.4.3. I followed the >> instructions on http://vmkit.llvm.org/get_started.html, as near as I can >> tell. >> >> I configured llvm with the default configuration: >> ./configure >> >> I configured vmkit with: >> ./configure --with-llvmsrc=/home/jowarner/code/llvm/ >> --with-llvmobj=/home/jowarner/code/llvm/ >> --with-gnu-classpath-glibj=/usr/share/classpath/glibj.zip >> --with-pnet-local-prefix=/home/jowarner/code/pnet-0.8.0/ >> --with-pnetlib=/home/jowarner/code/pnetlib-0.8.0/ >> >> Thanks, >> Joshua >> >> >> On Mon, Jul 19, 2010 at 8:40 AM, Duncan Sands <baldrick at free.fr> wrote: >> >>> > I'm trying to build VMKit from SVN, and I'm getting a bunch of errors >>> > that all seem to be related to the TRACER macro not getting defined: >>> ... >>> > Is there something wrong with my configuration? >>> >>> Hi Joshua, some details like what platform you are on (darwin, linux, >>> windows), what compiler you are using, how you configured LLVM etc >>> would be helpful. >>> >>> Ciao, >>> >>> Duncan. >>> _______________________________________________ >>> LLVM Developers mailing list >>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >>> >> >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100719/f6cb0de5/attachment.html>
Hi Joshua,> $ j3 Hello > j3: JavaClass.cpp:480: j3::JavaObject* j3::Class::doNew(j3::Jnjvm*): > Assertion `(this->isInitializing() || > classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized class > when allocating."' failed. > AbortedRegarding to j3 in 64 bit version, it should work now after we've found crush reason, both in Debug and in Release versions. (and its 32 bit version was continuously working) But your case is something strange, crush didn't type such messages. Have you taken VMkit from svn and latest version? Also, to get j3 running recompile classpath with -fno-omit-frame-pointer (or take my patch from here: http://lists.cs.uiuc.edu/pipermail/vmkit-commits/attachments/20100719/35754a6f/attachment.bin and apply it: $ cd classpath-0.97.2 $ patch ./configure ./classpath_configure64.patch ) That's now on j3 Regards, Minas On Mon, Jul 19, 2010 at 9:20 PM, Joshua Warner <joshuawarner32 at gmail.com> wrote:> Forgot to send to the mailing list... > > ---------- Forwarded message ---------- > From: Joshua Warner <joshuawarner32 at gmail.com> > Date: Mon, Jul 19, 2010 at 10:19 AM > Subject: Re: [LLVMdev] Building VMKit > To: nicolas geoffray <nicolas.geoffray at gmail.com> > > > Thanks Nicolas, that worked great! > > Now, I'm having trouble invoking the compiler properly: > $ llcj Hello.class -o=Hello.ll > $ cat Hello.ll > cat: Hello.ll: No such file or directory > $ j3 Hello > j3: JavaClass.cpp:480: j3::JavaObject* j3::Class::doNew(j3::Jnjvm*): > Assertion `(this->isInitializing() || > classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized class > when allocating."' failed. > Aborted > $ java Hello > hello, world! > > "Hello" is a completely banal "hello world!" program. > > Joshua