Yes I did, one thing worth mentioning is on running configure for GNU Classpath towards the end <br>this error is displayed and it crashes, I assumed it was okay and went to create the symbolic links and <br>completed the rest of the process with vmkit mentioned in Getting Started as instructed:<br>
<br>-I../../../native/jni/native-lib -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -Wstrict-prototypes -pedantic -Werror -g -O2 -MT cpproc.lo -MD -MP -MF .deps/cpproc.Tpo -c cpproc.c -fPIC -DPIC -o .libs/cpproc.o<br>
cc1: warnings being treated as errors<br><br>cpproc.c: In function ‘cpproc_forkAndExec’:<br>cpproc.c:89: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result<br>make[3]: *** [cpproc.lo] Error 1<br>
<br>Thanks,<br><br clear="all">-Nataraj.<br>
<br><br><div class="gmail_quote">On Fri, Nov 20, 2009 at 5:10 PM, Nicolas Geoffray <span dir="ltr"><<a href="mailto:nicolas.geoffray@gmail.com">nicolas.geoffray@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Have you created the symbolic links to GNU Classpath .so? ie step 2 of <a href="http://vmkit.llvm.org/get_started.html" target="_blank">http://vmkit.llvm.org/get_started.html</a>?<br>
<br>
Nicolas<br>
<br>
Nataraj Sundar wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Thanks Nicolas, Gaël<br>
<br>
I followed your instructions and installed compatible versions of llvm, vmkit and GNU Classpath also I unzipped glibj.zip and pointed GNU Classpath lib variable to the the unzipped files during vmkit configure. That error has vanished.<br>
<br>
Now when I run jnjvm or vmkit in Release/bin on any file I'm getting a new error :<br>
<br>
" terminate called without an active exception<br>
Aborted "<br>
<br>
Any help is much appreciated,<br>
<br>
-Nataraj.<br>
<br>
<br>
<br></div><div><div></div><div class="h5">
On Fri, Nov 20, 2009 at 2:40 PM, Nicolas Geoffray <<a href="mailto:nicolas.geoffray@gmail.com" target="_blank">nicolas.geoffray@gmail.com</a> <mailto:<a href="mailto:nicolas.geoffray@gmail.com" target="_blank">nicolas.geoffray@gmail.com</a>>> wrote:<br>
<br>
Hi Nataraj,<br>
<br>
You're using incompatible versions of vmkit and GNU Classpath.<br>
First, you should use vmkit 0.26 and llvm 2.6 (at least, -- use<br>
trunk if there are problems). Second, you should use GNU Classpath<br>
0.97.2.<br>
<br>
Good luck!<br>
Nicolas<br>
<br>
Nataraj Sundar wrote:<br>
<br>
Hi Nicolas,<br>
<br>
I'm running it on Kubuntu.<br>
<br>
Now that you mention it I did have a problem during vmkit setup.<br>
After running the ./configure file with all the options I ran<br>
the make file it was giving this error:<br>
<br>
make[3]: ***<br>
[/.automount/root/exports/transient/nataraj/Project/vmkit-0.25/lib/Mvm/Runtime/Release/EscapeAnalysis.o]<br>
Error 1<br>
"<br>
So I went into Makefile.common and modified GNU CLASSPATH FLAGS<br>
variable, I removed "//../"before "include"(CLASSPATH_FLAGS =<br>
-I/transient/nataraj/CompilerD/classpath-0.98/*_//../i_nclude*/<br>
-I/usr/include/classpath) and made it<br>
<br>
"/classpath-0.98/include" After that the make file ran smoothly.<br>
<br>
Looks like that was a mistake, What can I do to overcome the error?<br>
<br>
Thanks,<br>
<br>
-Nataraj<br>
<br>
<br>
<br>
<br>
<br>
On Fri, Nov 20, 2009 at 8:56 AM, Nicolas Geoffray<br>
<<a href="mailto:nicolas.geoffray@gmail.com" target="_blank">nicolas.geoffray@gmail.com</a> <mailto:<a href="mailto:nicolas.geoffray@gmail.com" target="_blank">nicolas.geoffray@gmail.com</a>><br>
<mailto:<a href="mailto:nicolas.geoffray@gmail.com" target="_blank">nicolas.geoffray@gmail.com</a><br>
<mailto:<a href="mailto:nicolas.geoffray@gmail.com" target="_blank">nicolas.geoffray@gmail.com</a>>>> wrote:<br>
> Hi Nataraj,<br>
><br>
> Which platform are you running on? Did you follow all the<br>
steps on<br>
> <a href="http://vmkit.llvm.org" target="_blank">vmkit.llvm.org</a> <<a href="http://vmkit.llvm.org" target="_blank">http://vmkit.llvm.org</a>><br>
<<a href="http://vmkit.llvm.org" target="_blank">http://vmkit.llvm.org</a>> getting started page, especially for GNU<br>
Classpath?<br>
<br>
><br>
> Thanks!<br>
> Nicolas<br>
><br>
> Nataraj Sundar wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> I intent to use VMKIT to convert java byte codes to LLVM IR<br>
>><br>
>> I have installed VMKIT 0.26, on running jnjvm (as ./jnjvm<br>
>> Hello.class) in Release/bin I get the same error<br>
irrespective of class<br>
>> content :<br>
>><br>
>> jnjvm: JavaClass.cpp:469: jnjvm::JavaObject*<br>
>> jnjvm::Class::doNew(jnjvm::Jnjvm*): Assertion<br>
`(this->isInitializing()<br>
>> || classLoader->getCompiler()->isStaticCompiling()) &&<br>
"Uninitialized<br>
>> class when allocating."' failed.<br>
>> Aborted<br>
>><br>
>> Am I doing something wrong?Any help regading how to use the<br>
VMKIT<br>
>> tools to convert Java bytecodes to LLVM IR will be helpful<br>
>><br>
>> Thanks,<br>
>><br>
>> -Nataraj.<br>
>> _______________________________________________<br>
>> LLVM Developers mailing list<br>
>> <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <mailto:<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>><br></div></div>
<mailto:<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <mailto:<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>>> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><div class="im">
<br>
<br>
>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
><br>
><br>
<br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br>