<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Please email the list, not me directly.<div><br></div><div>Try doing a 'make clean' then a 'make VERBOSE=1' in the test-suite directory.</div><div><br></div><div>-Chris</div><div><br><div><div>On Jan 13, 2011, at 6:04 PM, Qingan Li wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Chris,</div><div><br></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><b>[qali@qali SingleSource]$ llvm-gcc -v</b></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">Using built-in specs.</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">Target: x86_64-unknown-linux-gnu</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">Configured with: /home/nicholas/2.8-final/llvmgcc42-2.8.src/configure --prefix=/home/nicholas/2.8-final/Phase2/Release/llvmgcc42-2.8.install --program-prefix=llvm- --enable-llvm=/home/nicholas/2.8-final/Phase2/Release/llvmCore-2.8.obj --disable-multilib --enable-languages=c,c++,fortran</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">Thread model: posix</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2.8)</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><b>[qali@qali SingleSource]$ make VERBOSE=1</b></font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">if [ ! -f UnitTests/Makefile ]; \</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre"> </span>then \</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">              </span>/home/qali/Src/llvm-2.8/autoconf/mkinstalldirs UnitTests; \</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">             </span>cp /home/qali/Src/llvm-2.8/projects/test-suite/SingleSource/UnitTests/Makefile UnitTests/Makefile; \</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">      </span>fi; \</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">   </span>make -C UnitTests all </font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">make[1]: Entering directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests'</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">for dir in  Vector  SignlessTypes Threads; do \</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">              </span>if [ ! -f $dir/Makefile ]; \</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">            </span>then \</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">                      </span>/home/qali/Src/llvm-2.8/autoconf/mkinstalldirs $dir; \</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">                  </span>cp /home/qali/Src/llvm-2.8/projects/test-suite/SingleSource/UnitTests/$dir/Makefile $dir/Makefile; \</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">              </span>fi; \</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">           </span>(make -C $dir all -w) || exit 1; \</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">      </span>done</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">make[2]: Entering directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests/Vector'</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">for dir in  SSE; do \</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>if [ ! -f $dir/Makefile ]; \</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">              </span>then \</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">                  </span>/home/qali/Src/llvm-2.8/autoconf/mkinstalldirs $dir; \</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">                      </span>cp /home/qali/Src/llvm-2.8/projects/test-suite/SingleSource/UnitTests/Vector/$dir/Makefile $dir/Makefile; \</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">              </span>fi; \</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">           </span>(make -C $dir all -w) || exit 1; \</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">      </span>done</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">make[3]: Entering directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests/Vector/SSE'</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">/home/qali/build/llvm-2.8-rev/Debug+Asserts/bin/llvm-as Output/sse.expandfft.ll -o Output/sse.expandfft.bc</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">/home/qali/build/llvm-2.8-rev/Debug+Asserts/bin/llvm-as: Output/sse.expandfft.ll:1:2: error: expected top-level entity</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">      </span>.file<span class="Apple-tab-span" style="white-space:pre">       </span>"/home/qali/Src/llvm-2.8/projects/test-suite/SingleSource/UnitTests/Vector/SSE/sse.expandfft.c"</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1"><span class="Apple-tab-span" style="white-space:pre">      </span>^</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">make[3]: *** [Output/sse.expandfft.bc] Error 1</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">make[3]: Leaving directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests/Vector/SSE'</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">make[2]: *** [all] Error 1</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">make[2]: Leaving directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests/Vector'</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">make[1]: *** [all] Error 1</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">make[1]: Leaving directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests'</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="1">make: *** [UnitTests/.makeall] Error 2</font></div>
<div><br></div><br><div class="gmail_quote">2011/1/14 Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com">clattner@apple.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word"><br><div><div><div></div><div class="h5"><div>On Jan 13, 2011, at 3:03 AM, Qingan Li wrote:</div><br><blockquote type="cite">Hi sir,<div>I have built the test suits in following steps:</div>
<div><font face="simsun, serif" size="1">0. $cd LLVM_GCC_DIR;            $</font><span style="font-family:monospace;font-size:medium">gunzip --stdout llvm-gcc-4.2-<i>version</i>-<i>platform</i>.tar.gz | tar -xvf -</span></div>

<div><font face="simsun, serif" size="1">1. $cd SRC_DIR/llvm-2.8/projects</font></div><div><font face="simsun, serif" size="1">2. $<span style="white-space:pre-wrap">svn co <a href="http://llvm.org/svn/llvm-project/test-suite/trunk" target="_blank">http://llvm.org/svn/llvm-project/test-suite/trunk</a> test-suite</span></font></div>

<div><font face="simsun, serif" size="1"><span style="white-space:pre-wrap">3.$cd OBJ_DIR; 
</span><span style="line-height:23px">4. $SRC_DIR/configure --prefix=INS_DIR --enable-debug-runtime  --disable-optimized --enable-debug-symbols --enable-assertions --with-llvmgccdir=LLVM_GCC_DIR</span></font></div>
<div><span style="line-height:23px"><font face="simsun, serif" size="1">5. $make.</font></span></div><div><span style="line-height:23px"><font face="simsun, serif" size="1">6. $cd OBJ_DIR/projects/test_suits;             $make</font></span></div>

<div><span style="line-height:23px"><font face="simsun, serif" size="1"><br></font></span></div><div>
<font face="monospace" size="3">Then the following error ocurred. </font></div><div><div><font size="1">[qali@qali test-suite]$ make</font></div>
<div><font size="1">make[1]: Entering directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource'</font></div><div><font size="1">make[2]: Entering directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests'</font></div>

<div><font size="1">make[3]: Entering directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests/Vector'</font></div><div><font size="1">make[4]: Entering directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests/Vector/SSE'</font></div>

<div><font size="1">/home/qali/build/llvm-2.8-rev/Debug+Asserts/bin/llvm-as Output/sse.expandfft.ll -o Output/sse.expandfft.bc</font></div><div><font size="1">/home/qali/build/llvm-2.8-rev/Debug+Asserts/bin/llvm-as: Output/sse.expandfft.ll:1:2: error: expected top-level entity</font></div>

<div><font size="1"><span style="white-space:pre-wrap">   </span>.file<span style="white-space:pre-wrap">   </span>"/home/qali/Src/llvm-2.8/projects/test-suite/SingleSource/UnitTests/Vector/SSE/sse.expandfft.c"</font></div>

<div><font size="1"><span style="white-space:pre-wrap">   </span>^</font></div><div><font size="1">make[4]: *** [Output/sse.expandfft.bc] Error 1</font></div>
<div><font size="1">make[4]: Leaving directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests/Vector/SSE'</font></div><div><font size="1">make[3]: *** [all] Error 1</font></div>
<div><font size="1">make[3]: Leaving directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests/Vector'</font></div><div><font size="1">make[2]: *** [all] Error 1</font></div>
<div><font size="1">make[2]: Leaving directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource/UnitTests'</font></div><div><font size="1">make[1]: *** [UnitTests/.makeall] Error 2</font></div>
<div><font size="1">make[1]: Leaving directory `/home/qali/build/llvm-2.8-rev/projects/test-suite/SingleSource'</font></div><div><font size="1">make: *** [SingleSource/.makeall] Error 2</font></div></div></blockquote>
<div><br></div></div></div><div>What does this print if you use "make VERBOSE=1"?</div><div><br></div><div>-Chris</div><br><blockquote type="cite"><div class="im"><div>
</div><div><br></div><div><span style="font-family:simsun, serif;font-size:x-small">As told by </span><span style="font-family:arial, sans-serif;font-size:16px;border-collapse:collapse;color:rgb(121, 6, 25);font-weight:bold;white-space:nowrap">Chris Lattner</span><span style="font-size:16px;border-collapse:collapse;white-space:nowrap"><font face="simsun, serif"><b>, </b>I tested my llvm-gcc like this:</font></span></div>

<div><span style="font-size:x-small"><font face="arial, helvetica, sans-serif">[qali@qali test-suite]$ llvm-gcc -v</font></span></div><div>
<div><font size="1" face="arial, helvetica, sans-serif">Using built-in specs.</font></div><div><font size="1" face="arial, helvetica, sans-serif">Target: x86_64-unknown-linux-gnu</font></div>
<div><font size="1" face="arial, helvetica, sans-serif">Configured with: /home/nicholas/2.8-final/llvmgcc42-2.8.src/configure --prefix=/home/nicholas/2.8-final/Phase2/Release/llvmgcc42-2.8.install --program-prefix=llvm- --enable-llvm=/home/nicholas/2.8-final/Phase2/Release/llvmCore-2.8.obj --disable-multilib --enable-languages=c,c++,fortran</font></div>

<div><font size="1" face="arial, helvetica, sans-serif">Thread model: posix</font></div><div><font size="1" face="arial, helvetica, sans-serif">gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2.8)</font></div>

</div><div><font size="1" face="arial, helvetica, sans-serif"><br></font></div><div><font size="1" face="arial, helvetica, sans-serif">I also tried reconfigure llvm from OBJ_DIR, by re-execute step 4 above. But, it did not work. </font></div>

<div><font size="1" face="arial, helvetica, sans-serif"><br></font></div><div><font size="1" face="arial, helvetica, sans-serif">I used 'tree' in the SingleSource directory:</font></div>
<div><font size="1" face="arial, helvetica, sans-serif"><div>[qali@qali SingleSource]$ tree</div><div>.</div><div>|-- Makefile</div><div>|-- Makefile.singlesrc</div><div>`-- UnitTests</div><div>    |-- Makefile</div>
<div>    `-- Vector</div><div>        |-- Makefile</div><div>        `-- SSE</div><div>            |-- Makefile</div><div>            `-- Output</div><div>                `-- sse.expandfft.ll</div><div><br></div><div>4 directories, 6 files</div>

<div><br></div><div><br></div><div>I need help to build the test suits .</div></font></div><div><br></div><div><br clear="all"><br>-- <br>Best regards,<div><br></div><div>Li Qingan</div><br>
</div></div>
_______________________________________________<br>LLVM Developers mailing list<br><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><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote></div><br></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<div>
<br></div><div>Li Qingan</div><br>
</blockquote></div><br></div></body></html>