Hi Harris Bakiras,<div>Thanks for reply. It working now.</div><div>Actually I wanted to try vmkit VM to run jruby codes.</div><div><br></div><div>vmkit is able to run Java program, but when I try to run JRuby code then I get following error -</div>
<div><br></div><blockquote class="gmail_quote" 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"><blockquote class="gmail_quote" 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">
root@komal:/home/komal/Desktop/GSOC/programs# jruby hello.rb </blockquote><blockquote class="gmail_quote" 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">
Platform.java:39:in `getPackageName': java.lang.NullPointerException</blockquote><blockquote class="gmail_quote" 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">
<span class="Apple-tab-span" style="white-space:pre"> </span>from ConstantSet.java:84:in `getEnumClass'</blockquote><blockquote class="gmail_quote" 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">
<span class="Apple-tab-span" style="white-space:pre"> </span>from ConstantSet.java:60:in `getConstantSet'</blockquote><blockquote class="gmail_quote" 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">
<span class="Apple-tab-span" style="white-space:pre"> </span>from ConstantResolver.java:181:in `getConstants'</blockquote><blockquote class="gmail_quote" 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">
<span class="Apple-tab-span" style="white-space:pre"> </span>from ConstantResolver.java:102:in `getConstant'</blockquote><blockquote class="gmail_quote" 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">
<span class="Apple-tab-span" style="white-space:pre"> </span>from ConstantResolver.java:146:in `intValue'</blockquote><blockquote class="gmail_quote" 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">
<span class="Apple-tab-span" style="white-space:pre"> </span>from OpenFlags.java:28:in `value'</blockquote><blockquote class="gmail_quote" 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">
<span class="Apple-tab-span" style="white-space:pre"> </span>from RubyFile.java:254:in `createFileClass'</blockquote><blockquote class="gmail_quote" 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">
<span class="Apple-tab-span" style="white-space:pre"> </span>from Ruby.java:1273:in `initCore'</blockquote><blockquote class="gmail_quote" 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">
<span class="Apple-tab-span" style="white-space:pre"> </span>from Ruby.java:1101:in `bootstrap'</blockquote><blockquote class="gmail_quote" 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">
<span class="Apple-tab-span" style="white-space:pre"> </span>from Ruby.java:1079:in `init'</blockquote><blockquote class="gmail_quote" 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">
<span class="Apple-tab-span" style="white-space:pre"> </span>from Ruby.java:179:in `newInstance'</blockquote><blockquote class="gmail_quote" 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">
<span class="Apple-tab-span" style="white-space:pre"> </span>from Main.java:217:in `run'</blockquote><blockquote class="gmail_quote" 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">
<span class="Apple-tab-span" style="white-space:pre"> </span>from Main.java:128:in `run'</blockquote><blockquote class="gmail_quote" 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">
<span class="Apple-tab-span" style="white-space:pre"> </span>from Main.java:97:in `main'</blockquote></blockquote><div><br>Can you tell me what will be the issue ?</div><div>Vmkit doesn't work with OpenJDK ?</div>
<div><br><div class="gmail_quote">On Fri, Jul 19, 2013 at 6:52 PM, Harris BAKIRAS <span dir="ltr"><<a href="mailto:h.bakiras@gmail.com" target="_blank">h.bakiras@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div><tt>Hi Kumar,<br>
        <br>
        There is an error on your configuration line, you should provide
        the path to llvm-config binary instead of configure file.<br>
        Assuming that you compiled llvm in release mode, the llvm-config
        binary is located in :<br>
            <br>
            YOUR_PATH_TO_LLVM/Release+Asserts/bin/llvm-config<br>
        <br>
        Try to change the -with-llvm-config-path option and it will
        compile.<br>
      </tt>
      <pre cols="72">Harris Bakiras
</pre><div><div class="h5">
      On 07/19/2013 02:36 PM, Kumar Sukhani wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <div>To compile vmkit on Ubuntu 12.04 64-bit machine, I followed
        the steps giving <a href="http://vmkit.llvm.org/get_started.html" target="_blank">here</a>[1]. </div>
      <div>but when I run ./configure I am getting following error-</div>
      <div>
        <br>
      </div>
      <div>
        <blockquote class="gmail_quote" 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">
          <blockquote class="gmail_quote" 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">root@komal:/home/komal/Desktop/GSOC/vmkit/vmkit#
            ./configure -with-llvm-config-path=../llvm-3.3.src/configure
            --with-gnu-classpath-glibj=/usr/local/classpath/share/classpath/glibj.zip
            --with-gnu-classpath-libs=/usr/local/classpath/lib/classpath</blockquote>
          <blockquote class="gmail_quote" 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">checking
            build system type... x86_64-unknown-linux-gnu</blockquote>
          <blockquote class="gmail_quote" 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">checking
            host system type... x86_64-unknown-linux-gnu</blockquote>
          <blockquote class="gmail_quote" 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">checking
            target system type... x86_64-unknown-linux-gnu</blockquote>
          <blockquote class="gmail_quote" 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">checking
            type of operating system we're going to host on... Linux</blockquote>
          <blockquote class="gmail_quote" 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">configure:
            error: missing argument to --bindir</blockquote>
          <blockquote class="gmail_quote" 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">configure:
            error: Cannot find  (or not executable)</blockquote>
        </blockquote>
        <div><br>
        </div>
        <div>I tried searching it online but didn't got any similar
          issue. </div>
        <div><br>
        </div>
        <div>[1] <a href="http://vmkit.llvm.org/get_started.html" target="_blank">http://vmkit.llvm.org/get_started.html<br>
          </a><br>
        </div>
        <div>-- <br>
          Kumar Sukhani<br>
          +919579650250<br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
LLVM Developers mailing list
<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>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a 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><br clear="all"><div><br></div>-- <br>Kumar Sukhani<br>+919579650250<br>
</div>