<html><body><div style="color:#000; background-color:#fff; font-family:garamond, new york, times, serif;font-size:12pt"><div id="yiv399962123"><div><div style="color:#000;background-color:#fff;font-family:garamond, new york, times, serif;font-size:12pt;"><div id="yiv399962123yui_3_7_2_19_1353309048488_49"><span id="yiv399962123yui_3_7_2_19_1353309048488_281">Hi Nicolas,</span></div><div id="yiv399962123yui_3_7_2_19_1353309048488_355" style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;"><span id="yiv399962123result_box" class="yiv399962123short_text" lang="en"><span class="yiv399962123hps">I</span> <span class="yiv399962123hps">am so</span> <span class="yiv399962123hps">sorry</span> <span class="yiv399962123hps">for the</span> <span class="yiv399962123hps">questions</span><span id="yiv399962123yui_3_7_2_19_1353309048488_298" class="yiv399962123">. According to you, I built
 VMKit2 on </span></span>Ubuntu11.10-desktop-amd64 on Intel(R) Corei5, and the previous problem solved. But another one appeared! With the following configuration:</div><div id="yiv399962123yui_3_7_2_19_1353309048488_360" style="color:rgb(0, 0, 0);font-size:16px;
font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;"><br id="yiv399962123yui_3_7_2_19_1353309048488_365"></div><div id="yiv399962123yui_3_7_2_19_1353309048488_362" style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;">elaheh@elaheh-Lenovo-G470:~/Desktop/vmkit2$ ./configure --with-llvmsrc=/home/elaheh/Desktop/llvm/ --with-llvmobj=/home/elaheh/Desktop/llvm/ --with-mmtk-plan=org.mmtk.plan.marksweep.MS --with-gnu-classpath-glibj=/home/elaheh/Desktop/classpath-0.97.2/lib/glibj.zip --with-gnu-classpath-libs=/home/elaheh/Desktop/classpath-0.97.2/lib/ --with-classpath-impl=gnuclasspath</div><div id="yiv399962123yui_3_7_2_19_1353309048488_367" style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;"><br id="yiv399962123yui_3_7_2_19_1353309048488_372"></div><div
 id="yiv399962123yui_3_7_2_19_1353309048488_369" style="
color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;">next:   elaheh@elaheh-Lenovo-G470:~/Desktop/vmkit2$ make VERBOSE=1 ENABLE_OPTIMIZED=1</div><div id="yiv399962123yui_3_7_2_19_1353309048488_375" style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;"><br id="yiv399962123yui_3_7_2_19_1353309048488_380"></div><div id="yiv399962123yui_3_7_2_19_1353309048488_377" style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;">...</div><div id="yiv399962123yui_3_7_2_19_1353309048488_382" style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;">            then /bin/mv -f
 "/home/elaheh/Desktop/vmkit2/mmtk/mmtk-alloc/Release+Asserts/Selected.bc.d.tmp" "/home/elaheh/Desktop/vmkit2/mmtk/mmtk-alloc/Release+Asserts/Selected.bc.d"; else /bin/rm "/home/elaheh/Desktop/vmkit2/mmtk/mmtk-alloc/Release+Asserts/Selected.bc.d.tmp"; exit 1; fi<br>llvm[2]: Compiling Selected.ll to Selected.bc for Release+Asserts build (bytecode)<br>/home/elaheh/Desktop/llvm//Release+Asserts/bin/opt /home/elaheh/Desktop/vmkit2/mmtk/mmtk-alloc/Release+Asserts/Selected.ll -std-compile-opts -strip-debug -o /home/elaheh/Desktop/vmkit2/mmtk/mmtk-alloc/Release+Asserts/Selected.bc<br>llvm[2]: Building Release+Asserts Bytecode Module MMTKAlloc.bc<br>/home/elaheh/Desktop/llvm//Release+Asserts/bin/llvm-link -o /home/elaheh/Desktop/vmkit2/Release+Asserts/lib/MMTKAlloc.bc /home/elaheh/Desktop/vmkit2/mmtk/mmtk-alloc/Release+Asserts/Selected.bc<br>make[2]: Leaving directory `/home/elaheh/Desktop/vmkit2/mmtk/mmtk-alloc'<br>make[2]: Entering directory
 `/home/elaheh/Desktop/vmkit2/mmtk/java'<br>/usr/bin/ant -buildfile /home/elaheh/Desktop/vmkit2/mmtk/java/build.xml<br>Buildfile: /home/elaheh/Desktop/vmkit2/mmtk/java/build.xml<br><br>main:<br>    [mkdir] Created dir: /home/elaheh/Desktop/vmkit2/mmtk/java/classes<br>    [javac] Compiling 380 source files to /home/elaheh/Desktop/vmkit2/mmtk/java/classes<br>    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5<br>    [javac] Note: Some input files use or override a deprecated API.<br>    [javac] Note: Recompile with -Xlint:deprecation for details.<br>    [javac] 1 warning<br>      [jar] Building jar: /home/elaheh/Desktop/vmkit2/mmtk/java/mmtk-vmkit.jar<br><br>BUILD SUCCESSFUL<br>Total time: 6 seconds<br>llvm[2]: Building Release+Asserts mmtk-vmkit.jar
 all<br>/home/elaheh/Desktop/llvm//Release+Asserts/bin/opt -load=/home/elaheh/Desktop/vmkit2/Release+Asserts/lib/JITGCPass.so -std-compile-opts -JITGCPass -f /home/elaheh/Desktop/vmkit2/Release+Asserts/lib/MMTKAlloc.bc -o /home/elaheh/Desktop/vmkit2/Release+Asserts/lib/MMTKAlloc.bc<br>/home/elaheh/Desktop/vmkit2/Release+Asserts/bin/vmjc -std-compile-opts -load=/home/elaheh/Desktop/vmkit2/Release+Asserts/lib/MMTKRuntime.so -load=/home/elaheh/Desktop/vmkit2/Release+Asserts/lib/MMTKMagic.so -LowerMagic /home/elaheh/Desktop/vmkit2/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=/home/elaheh/Desktop/vmkit2/mmtk/java/vmkit.properties -disable-stubs -assume-compiled<br>0  vmjc            0x0000000000eb84ef<br>1 
 vmjc            0x0000000000eb8a69<br>2  libpthread.so.0 0x00002b9a7357e060<br>3  libc.so.6       0x00002b9a7446ce24<br>4  vmjc            0x0000000000e96717 llvm::cl::generic_parser_base::findOption(char const*) + 55<br>5  vmjc            0x000000000059d038<br>6  vmjc            0x0000000000e600ec llvm::PassRegistry::registerPass(llvm::PassInfo const&, bool) + 572<br>7  vmjc            0x0000000000aa1140 llvm::initializeBlockPlacementPass(llvm::PassRegistry&) + 144<br>8  vmjc            0x0000000000b35164 llvm::initializeScalarOpts(llvm::PassRegistry&)
 + 20<br>9  vmjc            0x000000000059b419 vmkit::VmkitModule::initialise(int, char**) + 57<br>10 vmjc            0x0000000000511160 main + 96<br>11 libc.so.6       0x00002b9a7436b30d __libc_start_main + 237<br>12 vmjc            0x000000000051103d<br>Segmentation fault<br>make[2]: *** [all] Error 139<br>make[2]: Leaving directory `/home/elaheh/Desktop/vmkit2/mmtk/java'<br>make[1]: *** [all] Error 1<br>make[1]: Leaving directory `/home/elaheh/Desktop/vmkit2/mmtk'<br>make: *** [all] Error 1<br><br><br id="yiv399962123yui_3_7_2_19_1353309048488_387"></div><div id="yiv399962123yui_3_7_2_19_1353309048488_384" style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;">Do you think the
 problem may be associated with building gnu classpath?</div><div id="yiv399962123yui_3_7_2_19_1353309048488_416" style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;">Would you please help me?</div><div id="yiv399962123yui_3_7_2_19_1353309048488_430" style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;">Regards,</div><div id="yiv399962123yui_3_7_2_19_1353309048488_445" style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;">Ela<br></div><div id="yiv399962123yui_3_7_2_19_1353309048488_347" style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;"><br id="yiv399962123yui_3_7_2_19_1353309048488_354"></div><div
 id="yiv399962123yui_3_7_2_19_1353309048488_351" style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div id="yiv399962123yui_3_7_2_19_1353309048488_279"><br id="yiv399962123yui_3_7_2_19_1353309048488_51"></div>  <div class="yiv399962123yui_3_7_2_19_1353309048488_53" id="yiv399962123yui_3_7_2_19_1353309048488_54" style="font-family:garamond, new york, times, serif;font-size:12pt;"> <div id="yiv399962123yui_3_7_2_19_1353309048488_315" class="yiv399962123yui_3_7_2_19_1353309048488_57" style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Shahrokh Hedayati <shahrokhhedayati@yahoo.com><br> <b><span style="font-weight:bold;">To:</span></b> Nicolas Geoffray <nicolas.geoffray@gmail.com> <br> <b><span
 style="font-weight:bold;">Sent:</span></b>
 Saturday, November 17, 2012 2:59 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [LLVMdev] Making VMKit2<br> </font> </div> <br><div id="yiv399962123"><div id="yiv399962123yui_3_7_2_19_1353309048488_314"><div id="yiv399962123yui_3_7_2_19_1353309048488_313" class="yiv399962123yui_3_7_2_19_1353309048488_63" style="color:#000;background-color:#fff;font-family:garamond, new york, times, serif;font-size:12pt;"><div><span>Ok. Thanks a lot for your help.</span></div><div class="yiv399962123yui_3_7_2_19_1353309048488_64" style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, 'new york', times, serif;background-color:transparent;font-style:normal;"><span>Best wishes,</span></div><div class="yiv399962123yui_3_7_2_19_1353309048488_65" style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, 'new york', times, serif;background-color:transparent;font-style:normal;">Ela</div><div><br></div>  <div
 id="yiv399962123yui_3_7_2_19_1353309048488_312" class="yiv399962123yui_3_7_2_19_1353309048488_66" style="font-family:garamond, 'new york', times, serif;font-size:12pt;"> <div id="yiv399962123yui_3_7_2_19_1353309048488_311" class="yiv399962123yui_3_7_2_19_1353309048488_67" style="font-family:'times new roman', 'new york', times, serif;font-size:12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Nicolas Geoffray <nicolas.geoffray@gmail.com><br> <b><span style="font-weight:bold;">To:</span></b> Shahrokh Hedayati
 <shahrokhhedayati@yahoo.com> <br> <b><span style="font-weight:bold;">Sent:</span></b> Saturday, November 17, 2012 2:57 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [LLVMdev] Making VMKit2<br> </font> </div> <br>
<div id="yiv399962123">Definitely, I think that's what I have.<br><div id="yiv399962123yui_3_7_2_19_1353309048488_310" class="yiv399962123gmail_extra"><br><br><div id="yiv399962123yui_3_7_2_19_1353309048488_309" class="yiv399962123gmail_quote">On Sat, Nov 17, 2012 at 12:22 PM, Shahrokh Hedayati <span dir="ltr"><<a rel="nofollow" ymailto="mailto:shahrokhhedayati@yahoo.com" target="_blank" href="mailto:shahrokhhedayati@yahoo.com">shahrokhhedayati@yahoo.com</a>></span> wrote:<br>
<blockquote id="yiv399962123yui_3_7_2_19_1353309048488_308" class="yiv399962123gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id="yiv399962123yui_3_7_2_19_1353309048488_307"><div id="yiv399962123yui_3_7_2_19_1353309048488_306" class="yiv399962123yui_3_7_2_19_1353309048488_74" style="font-size:12pt;font-family:garamond, 'new york', times, serif;"><div>Actually, my host is a fairly new and powerful machine, but if you think the problem is associated with the VMBOX, let me try another machine (without virtual box). </div>
<div id="yiv399962123yui_3_7_2_19_1353309048488_305">Do you think Ubuntu-desktop-amd64 on Intel(R) Corei5 would be appropriate?</div><div><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,;">
Thanks a lot for your time</div><div><br></div>  <div style="font-family:garamond,;font-size:12pt;"> <div style="font-size:12pt;">
 <div dir="ltr"> <font face="Arial"><div class="yiv399962123im"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Nicolas Geoffray <<a rel="nofollow" ymailto="mailto:nicolas.geoffray@gmail.com" target="_blank" href="mailto:nicolas.geoffray@gmail.com">nicolas.geoffray@gmail.com</a>><br>
 <b><span style="font-weight:bold;">To:</span></b> Shahrokh Hedayati <<a rel="nofollow" ymailto="mailto:shahrokhhedayati@yahoo.com" target="_blank" href="mailto:shahrokhhedayati@yahoo.com">shahrokhhedayati@yahoo.com</a>> <br> </div><b><span style="font-weight:bold;">Sent:</span></b> Saturday, November 17, 2012 2:24 PM<div>
<div class="yiv399962123h5"><br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [LLVMdev] Making VMKit2<br> </div></div></font> </div><div><div class="yiv399962123h5"> <br><div>The i386 part makes me wonder. Is it not a i686? Is it an old pentium/amd machine?<div>
<br><br><div>On Sat, Nov 17, 2012 at 11:34 AM, Shahrokh Hedayati <span dir="ltr"><<a rel="nofollow" ymailto="mailto:shahrokhhedayati@yahoo.com" target="_blank" href="mailto:shahrokhhedayati@yahoo.com">shahrokhhedayati@yahoo.com</a>></span> wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:12pt;font-family:garamond,;"><div>
Hi Nicolas,</div><div>Ubuntu 11.10-desktop-i386. </div><div>The result of building VMKit (http://vmkit.llvm.org/get_started.html) is the same.<br>
</div>
<div><br></div><div>
Regards</div><div><br></div>  <div> <div style="font-size:12pt;">
 <div dir="ltr"> <font face="Arial"><div> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Nicolas Geoffray <<a rel="nofollow" ymailto="mailto:nicolas.geoffray@gmail.com" target="_blank" href="mailto:nicolas.geoffray@gmail.com">nicolas.geoffray@gmail.com</a>><br>

 <b><span style="font-weight:bold;">To:</span></b> Shahrokh Hedayati <<a rel="nofollow" ymailto="mailto:shahrokhhedayati@yahoo.com" target="_blank" href="mailto:shahrokhhedayati@yahoo.com">shahrokhhedayati@yahoo.com</a>> <br> </div><b><span style="font-weight:bold;">Sent:</span></b> Saturday, November 17, 2012 1:55 PM<div>

<div><br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [LLVMdev] Making VMKit2<br> </div></div></font> </div><div><div> <br>
<div>Hi Shahrokh,<div><br></div><div>What's the OS/arch of your virutal box?</div><div><br></div><div>Nicolas<br><div><br><br><div>On Sat, Nov 17, 2012 at 11:09 AM, Shahrokh Hedayati <span dir="ltr"><<a rel="nofollow" ymailto="mailto:shahrokhhedayati@yahoo.com" target="_blank" href="mailto:shahrokhhedayati@yahoo.com">shahrokhhedayati@yahoo.com</a>></span> wrote:<br>


<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:12pt;"><div style="font-size:12pt;">
<span>Hi Nicolas,</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;"><span><pre style="word-wrap:break-word;white-space:pre-wrap;"><span>Thanks for the quick answer. Yes, it seems the gnu classpath has better result. According to you and </span><span>Gaël, I tried this the following configuration:</span></pre>


</span></div><div><span><span><br>
</span></span></div><div><span><span><div>
<span>ela@ela-VirtualBox:~/Desktop/vmkit2$ ./configure --with-llvmsrc=/home/ela/Desktop/llvm/ --with-llvmobj=/home/ela/Desktop/llvm/ --with-gnu-classpath-libs=/home/ela/Desktop/classpath-0.97.2/lib/ --with-gnu-classpath-glibj=/home/ela/Desktop/classpath-0.97.2/lib/glibj.zip --with-mmtk-plan=<a rel="nofollow" target="_blank" href="http://org.mmtk.plan.marksweep.ms/">org.mmtk.plan.marksweep.MS</a> --with-classpath-impl=gnuclasspath</span></div>


<div><br></div><div>
and then, the following command for making:  make  VERBOSE=1 ENABLE_OPTIMIZED=1</div><div>The end part of the generated output is as follows:</div>
<div><br></div><div><div><span>Buildfile: /home/ela/Desktop/vmkit2/mmtk/java/build.xml</span></div>
<div><span><br></span></div><div><span>main:</span></div><div>
<span>    [javac] Compiling 1 source file to /home/ela/Desktop/vmkit2/mmtk/java/classes</span></div><div><div><span>    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5</span></div>


</div><div><div><span>    [javac] 1 warning</span></div><div><span>      [jar] Building jar: /home/ela/Desktop/vmkit2/mmtk/java/mmtk-vmkit.jar</span></div>
<div><span><br></span></div><div><span>BUILD
 SUCCESSFUL</span></div><div><span>Total time: 2 seconds</span></div><div><span>llvm[2]: Building Release+Asserts mmtk-vmkit.jar all</span></div>
</div><div><span>/home/ela/Desktop/llvm//Release+Asserts/bin/opt -load=/home/ela/Desktop/vmkit2/Release+Asserts/lib/JITGCPass.so -std-compile-opts -JITGCPass -f /home/ela/Desktop/vmkit2/Release+Asserts/lib/MMTKAlloc.bc -o /home/ela/Desktop/vmkit2/Release+Asserts/lib/MMTKAlloc.bc</span></div>


<div><span>/home/ela/Desktop/vmkit2/Release+Asserts/bin/vmjc -std-compile-opts -load=/home/ela/Desktop/vmkit2/Release+Asserts/lib/MMTKRuntime.so -load=/home/ela/Desktop/vmkit2/Release+Asserts/lib/MMTKMagic.so
 -LowerMagic /home/ela/Desktop/vmkit2/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=/home/ela/Desktop/vmkit2/mmtk/java/vmkit.properties -disable-stubs -assume-compiled</span></div>


<div><div><span>Illegal instruction</span></div><div><span>make[2]: *** [all] Error 132</span></div>
<div><span>make[2]: Leaving directory `/home/ela/Desktop/vmkit2/mmtk/java'</span></div><div><span>make[1]: *** [all] Error 1</span></div>
<div><span>make[1]: Leaving directory `/home/ela/Desktop/vmkit2/mmtk'</span></div><div><span>make: *** [all] Error 1</span></div>
<div><br></div></div><div>
Regards</div></div></span></span></div><div style="font-size:12pt;"><br></div><div>  </div><div style="font-size:12pt;">
<div> </div><div style="font-size:12pt;"><div> <div dir="ltr"> <font face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Nicolas Geoffray
 <<a rel="nofollow" ymailto="mailto:nicolas.geoffray@gmail.com" target="_blank" href="mailto:nicolas.geoffray@gmail.com">nicolas.geoffray@gmail.com</a>><br> <b><span style="font-weight:bold;">To:</span></b> Shahrokh Hedayati <<a rel="nofollow" ymailto="mailto:shahrokhhedayati@yahoo.com" target="_blank" href="mailto:shahrokhhedayati@yahoo.com">shahrokhhedayati@yahoo.com</a>> <br>


<b><span style="font-weight:bold;">Cc:</span></b> "<a rel="nofollow" ymailto="mailto:llvmdev@cs.uiuc.edu" target="_blank" href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a>" <<a rel="nofollow" ymailto="mailto:llvmdev@cs.uiuc.edu" target="_blank" href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a>> <br>


 <b><span style="font-weight:bold;">Sent:</span></b> Saturday, November 17, 2012 1:17 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [LLVMdev] Making VMKit2<br> </font> </div></div><div><div> <br>

<div>Hi Shahrokh,<div><br><div>On Fri, Nov 16, 2012 at 3:40 PM, Shahrokh Hedayati <span dir="ltr"><<a rel="nofollow" ymailto="mailto:shahrokhhedayati@yahoo.com" target="_blank" href="mailto:shahrokhhedayati@yahoo.com">shahrokhhedayati@yahoo.com</a>></span> wrote:<br>



<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;"><div><div style="font-size:12pt;">
<div><span style="font-size:12pt;text-align:justify;text-indent:0in;">Hi,</span><br></div><div style="font-size:12pt;">
<div style="font-size:12pt;"><div><div><div style="font-size:12pt;"><div style="font-size:12pt;">
<div style="font-size:12pt;"><div><div><div style="font-size:12pt;"><div style="font-size:12pt;">
<div><div style="font-size:12pt;"> 

<div dir="LTR" style="text-align:justify;text-indent:0in;direction:ltr;">I’m trying to
make VMKit & J3 on Ubuntu. I have followed the instructions at http://vmkit2.gforge.inria.fr/start.php.
But after configuring vmkit2, when I’m making it using <span style="font-size:10pt;line-height:125%;">make
ENABLE_OPTIMIZED=1</span><span style="line-height:125%;">, I receive the following:</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;direction:ltr;"><span style="font-weight:bold;">1)<span style="font-size:7pt;">     
</span><span dir="LTR"></span>With this configuration:</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">ela@ela-VirtualBox:~/Desktop/vmkit2$
./configure --with-llvmsrc=/home/ela/Desktop/llvm/
--with-llvmobj=/home/ela/Desktop/llvm/
--with-gnu-classpath-libs=/home/ela/Desktop/classpath-0.97.2/lib/
--with-gnu-classpath-glibj=/home/ela/Desktop/classpath-0.97.2/lib/
--with-mmtk-plan=<a rel="nofollow" target="_blank" href="http://org.mmtk.plan.marksweep.ms/">org.mmtk.plan.marksweep.MS</a> --with-classpath-impl=gnuclasspath
--with-openjdk-path=/usr/lib/jvm/jav-gcj/</span></div></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="text-decoration:underline;font-weight:bold;">Then, the end part of the output is as
follows:</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;">  </div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[2]:
Entering directory `/home/ela/Desktop/vmkit2/mmtk/java'</span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">Buildfile:
/home/ela/Desktop/vmkit2/mmtk/java/build.xml</span></div> 

<div style="text-indent:0in;direction:ltr;"><span dir="RTL" style="font-size:9pt;line-height:125%;" lang="AR-SA">  </span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">main:</span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">    [mkdir] Created dir:
/home/ela/Desktop/vmkit2/mmtk/java/classes</span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">    [javac] Compiling 380 source files to
/home/ela/Desktop/vmkit2/mmtk/java/classes</span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">    [javac] warning: [options] bootstrap class
path not set in conjunction with -source 1.5</span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">    [javac] Note: Some input files use or
override a deprecated API.</span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">    [javac] Note: Recompile with
-Xlint:deprecation for details.</span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">    [javac] 1 warning</span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">      [jar] Building jar:
/home/ela/Desktop/vmkit2/mmtk/java/mmtk-vmkit.jar</span></div> 

<div style="text-indent:0in;direction:ltr;"><span dir="RTL" style="font-size:9pt;line-height:125%;" lang="AR-SA">  </span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">BUILD
SUCCESSFUL</span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">Total time:
7 seconds</span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">llvm[2]:
Building Release+Asserts mmtk-vmkit.jar all</span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">Illegal
instruction</span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[2]: ***
[all] Error 132</span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[2]:
Leaving directory `/home/ela/Desktop/vmkit2/mmtk/java'</span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[1]: ***
[all] Error 1</span></div> 

<div style="text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[1]:
Leaving directory `/home/ela/Desktop/vmkit2/mmtk'</span></div> 

<span style="font-size:9pt;line-height:125%;">make: *** [all] Error 1</span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>Try remove <span style="font-size:12px;line-height:15px;text-align:justify;">-with-openjdk-path=/usr/lib/</span><span style="font-size:12px;line-height:15px;text-align:justify;">jvm/jav-gcj/ from the configure options. Also, could you build using VERBOSE=1 so that we know which command let to an illegal instruction?</span></div>



<div> <br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;"><div><div style="font-size:12pt;">
<div style="font-size:12pt;"><div style="font-size:12pt;"><div><div><div style="font-size:12pt;">
<div style="font-size:12pt;"><div style="font-size:12pt;"><div><div><div style="font-size:12pt;">
<div style="font-size:12pt;"><div><div style="font-size:12pt;"><div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;">
<br></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">  </span></div>
 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;direction:ltr;"><span style="font-weight:bold;">2)<span style="font-size:7pt;">     
</span><span dir="LTR"></span>With another configuration
as follows:</span>   </div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">ela@ela-VirtualBox:~/Desktop/vmkit2$
./configure --with-llvmsrc=/home/ela/Desktop/llvm/
--with-llvmobj=/home/ela/Desktop/llvm/ --with-gnu-classpath-libs=/home/ela/Desktop/classpath-0.97.2/lib/
--with-gnu-classpath-glibj=/home/ela/Desktop/classpath-0.97.2/lib/
--with-mmtk-plan=<a rel="nofollow" target="_blank" href="http://org.mmtk.plan.marksweep.ms/">org.mmtk.plan.marksweep.MS</a> --with-classpath-impl=openjdk
--with-openjdk-path=/usr/lib/jvm/java-7-openjdk/</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-weight:bold;text-decoration:underline;">Then, the end part of the output is as
follows:</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">  </span></div>
 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">llvm[3]: Compiling JnjvmClassLoader.s
for Release+Asserts build</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">llvm[3]: Building
Release+Asserts Archive Library libJ3.a</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[3]: Leaving directory
`/home/ela/Desktop/vmkit2/lib/j3/VMCore'</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[3]: Entering directory
`/home/ela/Desktop/vmkit2/lib/j3/ClassLib'</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[4]: Entering directory
`/home/ela/Desktop/vmkit2/lib/j3/ClassLib/OpenJDK'</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">llvm[4]: Compiling
ClasspathReflect.ll to ClasspathReflect.bc for Release+Asserts build (bytecode)</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">Method
_ZN2j3L12getAttrBytesEPNS_8AttributEPNS_5ClassE has static linkage but uses
gc_root. Functions using gc_root should not have static linkage.</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">0  opt             0x08eb8dc8</span></div>
 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">1  opt             0x08eb9344</span></div>
 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">2                  0x40020400 __kernel_sigreturn
+ 0</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">3                  0x40020416 __kernel_vsyscall
+ 2</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">4  libc.so.6       0x401b4c8f gsignal + 79</span></div>
 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">5  libc.so.6       0x401b82b5 abort + 373</span></div>
 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">6  StaticGCPass.so 0x40023f12</span></div>
 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">7  opt             0x08e3bf6c
llvm::MPPassManager::runOnModule(llvm::Module&) + 588</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">8  opt             0x08e3f808
llvm::PassManagerImpl::run(llvm::Module&) + 168</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">9  opt             0x08e3f8f6
llvm::PassManager::run(llvm::Module&) + 38</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">10 opt             0x081a3457 main + 6103</span></div>
 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">11 libc.so.6       0x401a0113 __libc_start_main + 243</span></div>
 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">12 opt             0x081b888d</span></div>
 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">Stack dump:</span></div>
 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">0.     Program arguments: /home/ela/Desktop/llvm//Release+Asserts/bin/opt
/home/ela/Desktop/vmkit2/lib/j3/ClassLib/OpenJDK/Release+Asserts/ClasspathReflect.ll
-load=/home/ela/Desktop/vmkit2/Release+Asserts/lib/StaticGCPass.so
-std-compile-opts -StaticGCPass -o /home/ela/Desktop/vmkit2/lib/j3/ClassLib/OpenJDK/Release+Asserts/ClasspathReflect_gc.bc
</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">1.     Running pass 'Add GC information in files compiled with
llvm-gcc' on module
'/home/ela/Desktop/vmkit2/lib/j3/ClassLib/OpenJDK/Release+Asserts/ClasspathReflect.ll'.</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[4]: *** [/home/ela/Desktop/vmkit2/lib/j3/ClassLib/OpenJDK/Release+Asserts/ClasspathReflect_gc.bc]
Aborted</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[4]: Leaving directory
`/home/ela/Desktop/vmkit2/lib/j3/ClassLib/OpenJDK'</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[3]: *** [all] Error 1</span></div>
 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[3]: Leaving directory
`/home/ela/Desktop/vmkit2/lib/j3/ClassLib'</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[2]: *** [all] Error 1</span></div>
 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[2]: Leaving directory
`/home/ela/Desktop/vmkit2/lib/j3'</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[1]: *** [j3/.makeall]
Error 2</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make[1]: Leaving directory
`/home/ela/Desktop/vmkit2/lib'</span></div> 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;">make: *** [all] Error 1</span></div>
 

<div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;"><span style="font-size:9pt;line-height:125%;"> </span></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>Building with openjdk is very experimental. Do you get better results when configuring vmkit just with gnu classpath?</div>



<div><br></div><div>Nicolas</div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;"><div><div style="font-size:12pt;">



<div style="font-size:12pt;"><div style="font-size:12pt;"><div><div><div style="font-size:12pt;">
<div style="font-size:12pt;"><div style="font-size:12pt;"><div><div><div style="font-size:12pt;">
<div style="font-size:12pt;"><div><div style="font-size:12pt;"><div dir="LTR" style="margin:0in 0in 0.0001pt 0.5in;text-align:justify;text-indent:0in;direction:ltr;">
<span style="font-size:9pt;line-height:125%;"> </span></div> 

<div dir="LTR" style="text-align:justify;direction:ltr;">In both cases, I have only <span style="font-style:italic;">vmjc</span> in the folder <span style="font-style:italic;">.../vmkit2/Release+Asserts/bin </span>. Would
you please help me to fix the problem?</div> 

<div dir="LTR" style="text-align:justify;direction:ltr;">Regards,</div><div dir="LTR" style="text-align:justify;direction:ltr;">
Ela</div></div></div><br><br> </div> </div>  </div></div><br><br> </div> </div>  </div></div></div><br><br> </div> </div>  </div></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a rel="nofollow" ymailto="mailto:LLVMdev@cs.uiuc.edu" target="_blank" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a rel="nofollow" target="_blank" href="http://llvm.cs.uiuc.edu/">http://llvm.cs.uiuc.edu</a><br>
<a rel="nofollow" target="_blank" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>
</div><br><br> </div></div></div> </div>  </div></div></blockquote></div><br></div></div>
</div><br><br> </div></div></div> </div>  </div></div></blockquote></div><br></div>
</div><br><br> </div></div></div> </div>  </div></div></blockquote></div><br></div>
</div><br><br> </div> </div>  </div></div></div><br><br> </div> </div>  </div></div></div></div></body></html>