Hello;<div><br></div><div>I am still having problems making the llvm-test suite and running command like "make TEST=libcalls report" is giving me unexpected output.  So first I tried the following - </div><div><br>
</div><div><div style>1. I built and installed llvm(3.0) under Ubuntu 11.10 (using the ./configure script found under llvm source, and then make and make install).  While configuring, I gave --prefix as a directory where I would like llvm to be installed.  I did not give --with-llvmgccdir  argument to configure.  Because 3.0 doesn't come with llvmgcc source/binaries and I decided upon using the compatible version of dragon egg.</div>
<div style><br></div><div style>2. I made dragon egg, I updated the makefile of the same in the line "LLVM_CONFIG?=/home/arnie/llvm/llvm-install/bin/llvm-config" (llvm was installed inside llvm-install directory).  It successfully produced the dragon egg .so file.  Using this .so file I was able to compile simple c programs and manipulate them.</div>
<div style><br></div><div style>3. I tried to compile test-suite.  I downloaded the test-suite into the <llvm source>/projects directory and then reconfigured in the same above said way (without the argument "--with-llvmgccdir").  Then I did a "make" and "make install" again (as if I don't do it, I was getting some error while compiling simple files).  This created a test-suite inside the <llvm object>/projects directory.  I went inside that directory and ran "make".  </div>
<div style><br></div><div style>4.  After that I tried to run the following commands.  </div><div style>gmake TEST=nightly report</div><div style>gmake TEST=libcalls report</div><div style><br></div><div style>But I got unexpected outputs.(Listed Below)  Then I tried the method suggested by Duncan - </div>
<div style><br></div><div style>1 Create a directory XYZ/bin/ containing the following scripts:</div><div style><br></div><span style>1.1 llvm-g++.sh which contains the following</span></div><div><br style><span style>  #!/bin/sh</span><br style>
<span style>  exec g++-4.6.1 -fplugin=path_to_plugin/</span><span style>dragonegg.so "$@"</span><br style><span style><br></span></div><div><span style>1.2 llvm-gcc.sh which contains - </span></div><div><br style>
<span style>  #!/bin/sh</span><br style><span style>  exec gcc-4.6.1 -fplugin=path_to_plugin/</span><span style>dragonegg.so "$@"</span><br style><br style><span style>2.  I gave execute permission to llvm-gcc.sh and llvm-g++.sh</span></div>
<div>3.  I deleted all the contains of the llvm-objects and llvm-install direcory (So I can make a fresh build)</div><div><span style>4. I configured LLVM with:</span><span style>  --with-llvmcc=llvm-gcc --with-llvmgccdir=path/XYZ/</span></div>
<div><font color="#222222" face="arial, sans-serif">5.  Then "make" and "make install" from within the <llvm-objects> directory</font></div><div><font color="#222222" face="arial, sans-serif">6.  Run make from <llvm-objects>/projects/test-suite directory (To make the test suite.</font></div>
<div><font color="#222222" face="arial, sans-serif">7.  Run the same commands as before to produce nightly and libcalls report.</font></div><div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">But the results were just as the previous.  The results looked something like the following - <br>
</font><div style><br></div><div style><b>Part of the report .txt file for nightly</b></div><div style><br></div><div style><div>Program                                                                  | GCCAS Bytecode LLC compile LLC-BETA compile JIT codegen | GCC     CBE LLC LLC-BETA JIT | GCC/CBE GCC/LLC GCC/LLC-BETA LLC/LLC-BETA</div>
<div>MultiSource/Applications/Burg/burg                                       | *     *        *           *                *           |  0.0000 *   *   *        *   | n/a     n/a     n/a          n/a </div><div>MultiSource/Applications/ClamAV/clamscan                                 | *     *        *           *                *           |  0.1900 *  </div>
</div><div style><br></div><div style><b>And the raw file for nightly contains the following messages - </b></div><div style><br></div><div style><div>---------------------------------------------------------------</div><div>
>>> ========= '/home/arnie/llvm/llvm-obj/projects/test-suite/MultiSource/Applications/JM/ldecod/ldecod' Program</div><div>---------------------------------------------------------------</div><div><br></div>
<div>TEST-RESULT-nat-time: program 0.060000</div><div><br></div><div>TEST-FAIL: llc /home/arnie/llvm/llvm-obj/projects/test-suite/MultiSource/Applications/JM/ldecod/ldecod</div><div><br></div><div>TEST-FAIL: compile /home/arnie/llvm/llvm-obj/projects/test-suite/MultiSource/Applications/JM/ldecod/ldecod</div>
<div><br></div><div>TEST-FAIL: jit /home/arnie/llvm/llvm-obj/projects/test-suite/MultiSource/Applications/JM/ldecod/ldecod</div><div><br></div><div>TEST-FAIL: compile /home/arnie/llvm/llvm-obj/projects/test-suite/MultiSource/Applications/JM/ldecod/ldecod</div>
</div><div style><br></div><div style><b>Part of the report .txt file for libcalls</b></div><div style><br></div><div style><div>Name                                                                     | total | #exit |</div>
<div>MultiSource/Applications/JM/ldecod/ldecod                | *     | *     | </div><div>MultiSource/Applications/JM/lencod/lencod                | *     | *     | </div><div>MultiSource/Applications/sqlite3/sqlite3                      | *     | *     | </div>
<div>MultiSource/Applications/SIBsim4/SIBsim4                | *     | *     | </div><div>MultiSource/Applications/siod/siod                             | *     | *     | </div><div><br></div><div><b>And the raw file for libcalls contains all the messages like this - </b></div>
<div><div>---------------------------------------------------------------</div><div>>>> ========= '/home/arnie/llvm/llvm-obj/projects/test-suite/MultiSource/Applications/JM/ldecod/ldecod' Program</div><div>
---------------------------------------------------------------</div><div>opt: Unknown command line argument '-debug-only=simplify-libcalls'.  Try: '/home/arnie/llvm/llvm-obj/Release/bin/opt -help'</div><div>
opt: Did you mean '-debug-pass=simplify-libcalls'?</div><div>---------------------------------------------------------------</div><div>>>> ========= '/home/arnie/llvm/llvm-obj/projects/test-suite/MultiSource/Applications/JM/lencod/lencod' Program</div>
<div>---------------------------------------------------------------</div><div>opt: Unknown command line argument '-debug-only=simplify-libcalls'.  Try: '/home/arnie/llvm/llvm-obj/Release/bin/opt -help'</div>
<div>opt: Did you mean '-debug-pass=simplify-libcalls'?</div><div>---------------------------------------------------------------</div></div><div><br></div><div>Any response will be highly appreciated.</div></div>
<div><br></div>-- <br>Arnamoy Bhattacharyya<br>Athabasca Hall 143<br>Department of Computing Science - University of Alberta<br>Edmonton, Alberta, Canada, T6G 2E8<br>780-680-7073<br>
</div>