<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Consolas, monospace" size="2">
<div>In response to: </div>
<div> </div>
<div>> Date: Tue, 22 Nov 2011 21:21:34 +0100</div>
<div>> From: Duncan Sands <<a href="mailto:baldrick@free.fr"><font color="#0000FF"><u>baldrick@free.fr</u></font></a>></div>
<div>> Subject: Re: [LLVMdev] Follow-up questions after successful upgrade to</div>
<div>>       LLVM 3.0rc4</div>
<div>> To: <a href="mailto:llvmdev@cs.uiuc.edu"><font color="#0000FF"><u>llvmdev@cs.uiuc.edu</u></font></a></div>
<div>> Message-ID: <<a href="mailto:4ECC044E.3020202@free.fr"><font color="#0000FF"><u>4ECC044E.3020202@free.fr</u></font></a>></div>
<div> </div>
<div>> Hi Kevin,</div>
<div> </div>
<div>>>    2. I had no problem running the V3.0 regression tests according to the</div>
<div>>>       instructions. However, the instructions in the Testing Infrastructure</div>
<div>>>       Guide for running the Test Suite presume the existence and use of</div>
<div>>>       llvm-gcc, <a href="http://llvm.org/docs/TestingGuide.html"><font color="#0000FF"><u>http://llvm.org/docs/TestingGuide.html</u></font></a></div>
<div>>>       <<a href="http://llvm.org/docs/TestingGuide.html"><font color="#0000FF"><u>http://llvm.org/docs/TestingGuide.html</u></font></a>>, both on-line and in the rc4</div>
<div>>>       kits. Now that llvm-gcc is gone for V3.0, it isn’t completely obvious how</div>
<div>>>       to run the test-suite using clang rather than llvm-gcc. I’ve made a couple</div>
<div>>>       stabs at it without success. If there is new documentation that I’ve</div>
<div>>>       missed, please be kind when you point out where I should have looked. :-}</div>
<div> </div>
<div>> Pass LLVMCC_OPTION=clang ENABLE_BUILT_CLANG=1 to make when running the testsuite.</div>
<div> </div>
<div>Duncan,</div>
<div>Thanks for the quick response!</div>
<div> </div>
<div><font face="Calibri, sans-serif" size="2">Since I don’t have llvm-gcc installed, I tried to do the configure by doing a “cd” to the test-suite directory </font></div>
<div><font face="Calibri, sans-serif" size="2">and just doing a “./configure”.   It appeared to do something useful in spite of the fact that the instructions</font></div>
<div><font face="Calibri, sans-serif" size="2">in the Testing Infrastructure Guide explicitly say that I need to pass the option: “—with-llvmgccdir=???” </font></div>
<div><font face="Calibri, sans-serif" size="2">to the ./configure step, and I don’t have such a directory (not having installed llvm-gcc).  It isn’t totally</font></div>
<div><font face="Calibri, sans-serif" size="2">obvious if I should attempt to use a clang related directory in its place, or what that should be.</font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Calibri, sans-serif" size="2">However, I don’t think the configure worked, because all attempts to issue any “make” or “gmake” in</font></div>
<div><font face="Calibri, sans-serif" size="2">the test-suite directory, with any targets or options whatsoever, results in an error message saying:</font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Calibri, sans-serif" size="2">“Makefile.config:37: /home/kharris/Makefile.config: No such file or directory</font></div>
<div><font face="Calibri, sans-serif" size="2">make: *** No rule to make target `/home/kharris/Makefile.config'.  Stop.”</font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Calibri, sans-serif" size="2">The “make” appears to be expecting a “Makefile.config” file in my login directory.  My hypothesis is that</font></div>
<div><font face="Calibri, sans-serif" size="2">this is the result of the missing “—with-llvmgccdir=” option.  </font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Calibri, sans-serif" size="2">The test-suite appears to have no useful documentation of its own – the “docs” and “website” directories</font></div>
<div><font face="Calibri, sans-serif" size="2">just have placeholder .html files.  </font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Calibri, sans-serif" size="2">I’ve tried to read the “configure” shell script, but it is fairly dense, fairly obscure shell code without any</font></div>
<div><font face="Calibri, sans-serif" size="2">helpful comments.  </font></div>
<div><font face="Calibri, sans-serif" size="2">     -Kevin</font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Calibri, sans-serif" size="2">In response to:</font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div>> Date: Wed, 23 Nov 2011 17:34:04 +0800</div>
<div>> From: ??? <<a href="mailto:chenwj@iis.sinica.edu.tw"><font color="#0000FF"><u>chenwj@iis.sinica.edu.tw</u></font></a>></div>
<div>> Subject: Re: [LLVMdev] Follow-up questions after successful upgrade to</div>
<div>>        LLVM 3.0rc4</div>
<div>> To: "Harris, Kevin" <<a href="mailto:Kevin.Harris@unisys.com"><font color="#0000FF"><u>Kevin.Harris@unisys.com</u></font></a>></div>
<div>> Cc: "<a href="mailto:llvmdev@cs.uiuc.edu"><font color="#0000FF"><u>llvmdev@cs.uiuc.edu</u></font></a>" <<a href="mailto:llvmdev@cs.uiuc.edu"><font color="#0000FF"><u>llvmdev@cs.uiuc.edu</u></font></a>></div>
<div>> Message-ID: <<a href="mailto:20111123093404.GA37198@cs.nctu.edu.tw"><font color="#0000FF"><u>20111123093404.GA37198@cs.nctu.edu.tw</u></font></a>></div>
<div>> Content-Type: text/plain; charset=utf-8</div>
<div> </div>
<div>>> 2)      I had no problem running the V3.0 regression tests according to the instructions. . .  </div>
<div> </div>
<div>> LLVM / CLANG Test Infrastructure Question</div>
<div>>  <a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-July/041954.html"><font color="#0000FF"><u>http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-July/041954.html</u></font></a></div>
<div> </div>
<div>> HTH,</div>
<div>> chenwj</div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Calibri, sans-serif" size="2">Thanks, Wei-Ren!   The thread referenced is similar to this one.  There is a good suggestion for a very long </font></div>
<div><font face="Calibri, sans-serif" size="2">“make” command that looks like it ought to work, except that it succumbs to the same problem described</font></div>
<div><font face="Calibri, sans-serif" size="2">above – the error message about the missing Makefile.config file.   </font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Calibri, sans-serif" size="2">Moreover, if you read to the end of the thread, you discover that the ultimate solution was to go ahead</font></div>
<div><font face="Calibri, sans-serif" size="2">and install llvm-gcc after all.  </font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Calibri, sans-serif" size="2">My take-away from all this is that the test-suite has not actually been upgraded to work without llvm-gcc</font></div>
<div><font face="Calibri, sans-serif" size="2">yet.  The existence of the test-suite in the release directory for rc4 seems to imply that it has </font></div>
<div><font face="Calibri, sans-serif" size="2">been modified to work with clang in the absence of llvm-gcc, but perhaps that is too strong an </font></div>
<div><font face="Calibri, sans-serif" size="2">assumption?    </font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Calibri, sans-serif" size="2">Has anyone successfully configured and run the test-suite from rc4 without installing llvm-gcc?</font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Calibri, sans-serif" size="2">        -Kevin</font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
<div><font face="Calibri, sans-serif" size="2"> </font></div>
</font>
</body>
</html>