Forwarding to llvmdev.<br><br>---------- Forwarded message ----------<br>From: <b>Dmitri Gribenko</b> <br>Date: Friday, November 9, 2012<br>Subject: [LLVMdev] MODULE_CODE_GLOBALVAR error<br>To: Arvind Haran <<a href="mailto:arvi90@gmail.com">arvi90@gmail.com</a>><span></span><br>
<br>On Friday, November 9, 2012, Arvind Haran  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The last few lines of the build:</blockquote><div><br></div>
<div>It looks like you don't have enough RAM to link the debug binary.<span></span></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>clang: error: unable to execute command: Killed<br>

clang: error: linker command failed due to signal 2 (use -v to see invocation)<br>


clang: note: diagnostic msg: Please submit a bug report to <a href="http://llvm.org/bugs/" target="_blank">http://llvm.org/bugs/</a> and include command line arguments and all diagnostic information.<br>
clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs.<br>make[2]: *** [/home/arvind/build/Debug+<div>Asserts/bin/opt] Error 254<br>make[2]: Leaving directory `/home/arvind/build/tools/opt'<br>






make[1]: *** [opt/.makeall] Error 2<br>make[1]: Leaving directory `/home/arvind/build/tools'<br>make: *** [all] Error 1</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 9, 2012 at 1:26 PM, Dmitri Gribenko <span dir="ltr"><<a>gribozavr@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><br><br>On Thursday, November 8, 2012, Arvind Haran  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi,<br><br>I have istalled LLVM 3.1 Release+Asserts build. I was just trying out the hello world sequence of steps in the installation instructions. However when I run lli or llvm-dis I get an error "invalid MODULE_CODE_GLOBALVAR record".<br>




<br>I have searched the web and I am not able to fathom what the problem and its fix is. I have GCC 4.6.3 running on a Ubuntu 12.04 LTS x86-64.<br><br>Please let me know what the fix is.</blockquote><div><br></div></div>


<div>Please try with latest svn.</div><div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>I also tried installing the Debug+Asserts build from the svn. It generates an error while installing.</blockquote>



<div><br></div></div><div>Please provide more information about the error, preferably the last lines of the build output.<span><font color="#888888"><span></span></font></span></div><span><font color="#888888"><div>
<br></div><div>Dmitri</div><div> </div><br><br>-- <br>main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a>gribozavr@gmail.com</a>>*/<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Arvind Haran<br><br>-I did well in school. They call that a paradox.<br><br>
</div>
</blockquote><br><br>-- <br>main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="javascript:_e({}, 'cvml', 'gribozavr@gmail.com');" target="_blank">gribozavr@gmail.com</a>>*/<br>

<br><br><br>-- <br>main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>>*/<br>