[LLVMdev] Fwd: Building VMKit

Joshua Warner joshuawarner32 at gmail.com
Tue Jul 20 06:56:12 PDT 2010


Hi Minas,

I tried recompiling Classpath with -fno-omit-frame-pointer, and now, instead
of printing an error message, j3 just segfaults in
"j3::JnjvmClassLoader::loadClassFromAsciiz(char const*, bool, bool) ()"

I ran llcj under strace and found that it is not even opening the input or
output files, but is otherwise running normally.

Updating to the latest SVN version (revision 108831) didn't change anything
(I was only a few days out of date).

I'm not sure where to go from here.  Does this fit with any of the known
problems under 64-bit linux?

Thanks,
Joshua

On Mon, Jul 19, 2010 at 4:45 PM, Minas Abrahamyan <minas.subs at gmail.com>wrote:

> 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.
> > Aborted
>
> Regarding 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
> _______________________________________________
> 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/20100720/ffcd3705/attachment.html>


More information about the llvm-dev mailing list