Hi Ela,<div><br></div><div>I don't know how up to date is vmkit2. The main vmkit repo (<a href="http://vmkit.llvm.org">vmkit.llvm.org</a>) is up to date (checked out yesterday) and compiles fine with vmkit trunk and llvm trunk.</div>
<div><br></div><div>Nicolas</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 19, 2012 at 10:39 AM, Shahrokh Hedayati <span dir="ltr"><<a href="mailto:shahrokhhedayati@yahoo.com" target="_blank">shahrokhhedayati@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:garamond,new york,times,serif"><div><div><div style="font-size:12pt;font-family:garamond,new york,times,serif">
<div><span>Hi Nicolas,</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,new york,times,serif"><span lang="en"><span>I</span> <span>am so</span> <span>sorry</span> <span>for the</span> <span>questions</span><span>. 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 style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,new york,times,serif">
<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,new york,times,serif">elaheh@elaheh-Lenovo-G470:~/Desktop/vmkit2$ ./configure --with-llvmsrc=/home/elaheh/Desktop/llvm/ --with-llvmobj=/home/elaheh/Desktop/llvm/ --with-mmtk-plan=<a href="http://org.mmtk.plan.marksweep.MS" target="_blank">org.mmtk.plan.marksweep.MS</a> --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 style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,new york,times,serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,new york,times,serif">
next:   elaheh@elaheh-Lenovo-G470:~/Desktop/vmkit2$ make VERBOSE=1 ENABLE_OPTIMIZED=1</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,new york,times,serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,new york,times,serif">
...</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,new york,times,serif">            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<div class="im"><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></div>      [jar] Building jar: /home/elaheh/Desktop/vmkit2/mmtk/java/mmtk-vmkit.jar<div class="im"><br><br>BUILD SUCCESSFUL<br>
Total time: 6 seconds<br>llvm[2]: Building Release+Asserts mmtk-vmkit.jar
 all<br></div>/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'<div class="im"><br>make[1]: *** [all] Error 1<br></div>make[1]: Leaving directory `/home/elaheh/Desktop/vmkit2/mmtk'<div class="im">
<br>make: *** [all] Error 1<br><br><br></div></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,new york,times,serif">Do you think the
 problem may be associated with building gnu classpath?</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,new york,times,serif">Would you please help me?</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,new york,times,serif">
Regards,</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,new york,times,serif">Ela<br></div><div class="hm HOEnZb"><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,new york,times,serif">
<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,new york,times,serif"><br></div><div><br></div>  </div><div style="font-family:garamond,new york,times,serif;font-size:12pt">
<div class="hm HOEnZb"> </div><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div class="hm HOEnZb"> </div><div dir="ltr"><div class="hm HOEnZb"> </div><font face="Arial"><div class="hm HOEnZb">
 <hr size="1">  <b><span style="font-weight:bold">From:</span></b> Shahrokh Hedayati <<a href="mailto:shahrokhhedayati@yahoo.com" target="_blank">shahrokhhedayati@yahoo.com</a>><br> <b><span style="font-weight:bold">To:</span></b> Nicolas Geoffray <<a href="mailto:nicolas.geoffray@gmail.com" target="_blank">nicolas.geoffray@gmail.com</a>> <br>
 <b><span style="font-weight:bold">Sent:</span></b>
 Saturday, November 17, 2012 2:59 PM</div><div><div class="h5"><br> <b><span style="font-weight:bold">Subject:</span></b> Re: [LLVMdev] Making VMKit2<br> </div></div></font> </div><div><div class="h5"> <br><div><div><div style="font-size:12pt;font-family:garamond,new york,times,serif">
<div><span>Ok. Thanks a lot for your help.</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,'new york',times,serif"><span>Best wishes,</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:garamond,'new york',times,serif">
Ela</div><div><br></div>  <div style="font-family:garamond,'new york',times,serif;font-size:12pt"> <div style="font-family:'times new roman','new york',times,serif;font-size:12pt"> <div dir="ltr"> <font face="Arial"> <hr size="1">
  <b><span style="font-weight:bold">From:</span></b> Nicolas Geoffray <<a href="mailto:nicolas.geoffray@gmail.com" target="_blank">nicolas.geoffray@gmail.com</a>><br> <b><span style="font-weight:bold">To:</span></b> Shahrokh Hedayati
 <<a href="mailto:shahrokhhedayati@yahoo.com" target="_blank">shahrokhhedayati@yahoo.com</a>> <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>Definitely, I think that's what I have.<br><div><br><br><div>On Sat, Nov 17, 2012 at 12:22 PM, Shahrokh Hedayati <span dir="ltr"><<a rel="nofollow" href="mailto:shahrokhhedayati@yahoo.com" target="_blank">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,'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>Do you think Ubuntu-desktop-amd64 on Intel(R) Corei5 would be appropriate?</div><div><br></div><div>
Thanks a lot for your time</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" href="mailto:nicolas.geoffray@gmail.com" target="_blank">nicolas.geoffray@gmail.com</a>><br>

 <b><span style="font-weight:bold">To:</span></b> Shahrokh Hedayati <<a rel="nofollow" href="mailto:shahrokhhedayati@yahoo.com" target="_blank">shahrokhhedayati@yahoo.com</a>> <br> </div><b><span style="font-weight:bold">Sent:</span></b> Saturday, November 17, 2012 2:24 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>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" href="mailto:shahrokhhedayati@yahoo.com" target="_blank">shahrokhhedayati@yahoo.com</a>></span> wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div>
Hi Nicolas,</div><div>Ubuntu 11.10-desktop-i386. </div><div>The result of building VMKit (<a href="http://vmkit.llvm.org/get_started.html" target="_blank">http://vmkit.llvm.org/get_started.html</a>) 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" href="mailto:nicolas.geoffray@gmail.com" target="_blank">nicolas.geoffray@gmail.com</a>><br>


 <b><span style="font-weight:bold">To:</span></b> Shahrokh Hedayati <<a rel="nofollow" href="mailto:shahrokhhedayati@yahoo.com" target="_blank">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" href="mailto:shahrokhhedayati@yahoo.com" target="_blank">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" href="http://org.mmtk.plan.marksweep.ms/" target="_blank">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" href="mailto:nicolas.geoffray@gmail.com" target="_blank">nicolas.geoffray@gmail.com</a>><br> <b><span style="font-weight:bold">To:</span></b> Shahrokh Hedayati <<a rel="nofollow" href="mailto:shahrokhhedayati@yahoo.com" target="_blank">shahrokhhedayati@yahoo.com</a>> <br>



<b><span style="font-weight:bold">Cc:</span></b> "<a rel="nofollow" href="mailto:llvmdev@cs.uiuc.edu" target="_blank">llvmdev@cs.uiuc.edu</a>" <<a rel="nofollow" href="mailto:llvmdev@cs.uiuc.edu" target="_blank">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" href="mailto:shahrokhhedayati@yahoo.com" target="_blank">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 <a href="http://vmkit2.gforge.inria.fr/start.php" target="_blank">http://vmkit2.gforge.inria.fr/start.php</a>.
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" href="http://org.mmtk.plan.marksweep.ms/" target="_blank">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" href="http://org.mmtk.plan.marksweep.ms/" target="_blank">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" href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a rel="nofollow" href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a rel="nofollow" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">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></div></div></div></blockquote></div><br></div>