<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Qingan Li</b> <span dir="ltr"><<a href="mailto:ww345ww@gmail.com">ww345ww@gmail.com</a>></span><br>Date: 2011/1/19<br>
Subject: Re: [LLVMdev] About test suits Cont1<br>To: Eric Christopher <<a href="mailto:echristo@apple.com">echristo@apple.com</a>><br><br><br><div style="font-size:13px;font-family:arial, sans-serif;border-collapse:collapse">
<i><b>I am sorry for making you confused when I presented my problem.</b></i></div>
<div style="font-size:13px;font-family:arial, sans-serif;border-collapse:collapse"><i><b>1. My steps for the test suit building:</b></i></div><div style="font-size:13px;font-family:arial, sans-serif;border-collapse:collapse">

(1<font face="simhei, sans-serif">) cd /home/qali/Src;  <i>           // This is my source directory for all application programs</i></font></div><div style="font-size:13px;font-family:arial, sans-serif;border-collapse:collapse">

<font face="simhei, sans-serif">(2) tar xzf llvm-2.8.tgz; <i>           // now, the top directory of source tree is /home/qali/llvm-2.8</i></font></div><div style="font-size:13px;font-family:arial, sans-serif;border-collapse:collapse">

<font face="simhei, sans-serif">(3) cd llvm-2.8/projects</font></div><div style="font-size:13px;font-family:arial, sans-serif;border-collapse:collapse"><font face="simhei, sans-serif">(4) <span style="white-space:pre-wrap">svn co <a href="http://llvm.org/svn/llvm-project/test-suite/trunk" style="color:rgb(0, 0, 204)" target="_blank">http://llvm.org/svn/llvm-project/test-suite/trunk</a> test-suite<i>      // now I check out the test suite into /home/qali/llvm-2.8/projects</i></span></font></div>

<div style="font-size:13px;font-family:arial, sans-serif;border-collapse:collapse"><font face="simhei, sans-serif">(5) cd /home/qali/install;<i>        // This is my Install directory for all applications</i></font></div>

<div style="border-collapse:collapse"><span style="font-size:13px;font-family:arial, sans-serif"><font face="simhei, sans-serif"></font></span><font face="simhei, sans-serif" style="font-size:13px;font-family:arial, sans-serif">(6)</font><font face="simhei, sans-serif"><font style="font-size:13px"> tar xjf</font> llvm-gcc4.2-2.8-x86_64-linux.tar.bz2<i>      //Now, the binary file for llvm-gcc is in /bin, since what I downloaded was the binary version</i></font></div>

<div style="font-size:13px;font-family:arial, sans-serif;border-collapse:collapse"><span style="font-family:monospace;font-size:medium"><span style="font-family:arial;font-size:small"><font face="simhei, sans-serif">(7) cd /home/qali/Build;      mkdir llvm-2.8;   cd llvm-2.8<i style="font-style:normal">;         </i><i>// Now, it is in my top directory for building llvm: /home/qali/Build/llvm-2.8</i></font></span></span></div>

<div style="border-collapse:collapse"><font face="simhei, sans-serif">(8) /home/qali/Src/llvm-2.8<span style="line-height:23px">/configure --prefix=/home/qali/install/llvm-2.8 --enable-debug-runtime  --disable-optimized --enable-debug-symbols --enable-assertions</span>   --with-llvmgccdir=</font><font face="simhei, sans-serif">/home/qali/install/llvm-gcc4.2-2.8-x86_64-linux</font></div>

<div style="border-collapse:collapse"><font face="simhei, sans-serif">(9) make</font></div><div style="border-collapse:collapse"><font face="simhei, sans-serif"><font face="simhei, sans-serif">(10) /home/qali/Src/llvm-2.8<span style="line-height:23px">/configure --prefix=/home/qali/install/llvm-2.8 --enable-debug-runtime  --disable-optimized --enable-debug-symbols --enable-assertions</span>   --with-llvmgccdir=</font><font face="simhei, sans-serif">/home/qali/install/llvm-gcc4.2-2.8-x86_64-linux <span style="font-style:normal;font-size:small;font-family:arial">         </span><span style="font-size:small;font-family:arial"><i> // reconfigure process</i></span></font></font></div>

<div style="font-size:13px;font-family:arial, sans-serif;border-collapse:collapse"><font face="simhei, sans-serif"></font><span style="font-family:simhei, sans-serif">(11) grep EMITIR *               </span></div>
<div style="font-size:13px;border-collapse:collapse"><font face="simhei, sans-serif">Here, I get no results. It seems LLVMCC_EMITIR_FLAG was not set during my configuration. </font></div><div style="font-size:13px;border-collapse:collapse">

<font face="simhei, sans-serif">My linux is Fedora Core 13, cpu is intel i3, and host gcc is 4.4.5. </font></div><div><font face="simhei, sans-serif"><span style="border-collapse:collapse"><i><div>
<br></div><div><b>2. After the reconfigure process, I have search LLVM in config.log, and all the results are below:</b></div><div><div>[qali@qali llvm-2.8-ori]$ grep "^LLVM" config.log </div><div>LLVMCC1='/home/qali/build/llvm-gcc4.2-2.8-x86_64-linux/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.1/cc1'</div>

<div>LLVMCC1PLUS='/home/qali/build/llvm-gcc4.2-2.8-x86_64-linux/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.1/cc1plus'</div><div>LLVMCC_OPTION='llvm-gcc'</div><div>LLVMGCC='/home/qali/build/llvm-gcc4.2-2.8-x86_64-linux/bin/llvm-gcc'</div>

<div>LLVMGCCCOMMAND='/home/qali/build/llvm-gcc4.2-2.8-x86_64-linux/bin/llvm-gcc'</div><div>LLVMGCCDIR='/home/qali/build/llvm-gcc4.2-2.8-x86_64-linux/bin/..'</div><div>LLVMGCC_LANGS='c,c++,fortran'</div>

<div>LLVMGXX='/home/qali/build/llvm-gcc4.2-2.8-x86_64-linux/bin/llvm-g++'</div><div>LLVMGXXCOMMAND='/home/qali/build/llvm-gcc4.2-2.8-x86_64-linux/bin/llvm-g++'</div><div>LLVM_BINDIR='/home/qali/install/llvm-2.8-ori/bin'</div>

<div>LLVM_CONFIGTIME='Wed Jan 19 10:22:57 HKT 2011'</div><div>LLVM_COPYRIGHT='Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.'</div><div>LLVM_CROSS_COMPILING='0'</div><div>LLVM_DATADIR='/home/qali/install/llvm-2.8-ori/share/llvm'</div>

<div>LLVM_DOCSDIR='/home/qali/install/llvm-2.8-ori/share/doc/llvm'</div><div>LLVM_ENUM_ASM_PARSERS='LLVM_ASM_PARSER(ARM) LLVM_ASM_PARSER(X86) '</div><div>LLVM_ENUM_ASM_PRINTERS='LLVM_ASM_PRINTER(MBlaze) LLVM_ASM_PRINTER(Blackfin) LLVM_ASM_PRINTER(SystemZ) LLVM_ASM_PRINTER(MSP430) LLVM_ASM_PRINTER(XCore) LLVM_ASM_PRINTER(PIC16) LLVM_ASM_PRINTER(CellSPU) LLVM_ASM_PRINTER(Mips) LLVM_ASM_PRINTER(ARM) LLVM_ASM_PRINTER(Alpha) LLVM_ASM_PRINTER(PowerPC) LLVM_ASM_PRINTER(Sparc) LLVM_ASM_PRINTER(X86) '</div>

<div>LLVM_ENUM_DISASSEMBLERS='LLVM_DISASSEMBLER(ARM) LLVM_DISASSEMBLER(X86) '</div><div>LLVM_ENUM_TARGETS='LLVM_TARGET(MBlaze) LLVM_TARGET(CppBackend) LLVM_TARGET(CBackend) LLVM_TARGET(Blackfin) LLVM_TARGET(SystemZ) LLVM_TARGET(MSP430) LLVM_TARGET(XCore) LLVM_TARGET(PIC16) LLVM_TARGET(CellSPU) LLVM_TARGET(Mips) LLVM_TARGET(ARM) LLVM_TARGET(Alpha) LLVM_TARGET(PowerPC) LLVM_TARGET(Sparc) LLVM_TARGET(X86) '</div>

<div>LLVM_ETCDIR='/home/qali/install/llvm-2.8-ori/etc/llvm'</div><div>LLVM_INCLUDEDIR='/home/qali/install/llvm-2.8-ori/include'</div><div>LLVM_INFODIR='/home/qali/install/llvm-2.8-ori/info'</div><div>

LLVM_LIBDIR='/home/qali/install/llvm-2.8-ori/lib'</div><div>LLVM_MANDIR='/home/qali/install/llvm-2.8-ori/man'</div><div>LLVM_ON_UNIX='1'</div><div>LLVM_ON_WIN32='0'</div><div>LLVM_PREFIX='/home/qali/install/llvm-2.8-ori'</div>

</div></i></span></font></div><br><div class="gmail_quote">2011/1/19 Eric Christopher <span dir="ltr"><<a href="mailto:echristo@apple.com" target="_blank">echristo@apple.com</a>></span><div><div></div><div class="h5">
<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"><div>I'm not quite sure what on earth you're doing.</div><div><br></div><div>Let's start from some questions:</div><div><br></div><div>a) llvm-gcc-4.2-version-platform.tar.gz</div>

<div><br></div><div>I don't know what this is. Does it contain binaries? I don't see you building llvm-gcc at any point, or installing binaries for it.</div><div><br></div><div>b) your commands have a lot of variables in them. Could you perhaps show the actual commands you're running, very simply? It's only about 10 lines.</div>

<div><br></div><div>Comments:</div><div><br></div><div>a) If you've got a failing configure then not re-running configure for subdirectories isn't likely to change anything is it?</div><div><br></div><div>b) In a grep of my llvm build directory I have:</div>

<div><br></div><div>[yendi:Data/builds/build-llvm] echristo% grep EMITIR *<br>Makefile.config:LLVMCC_EMITIR_FLAG = -emit-llvm<br>config.log:LLVMCC_EMITIR_FLAG='-emit-llvm'<br>config.status:s,@LLVMCC_EMITIR_FLAG@,|#_!!_#|-emit-llvm,g<br>

<br></div><div>If you've done your configure correctly you'll see something similar.</div><div><br></div><div>-eric</div><div><div></div><div><br>On Jan 17, 2011, at 7:38 PM, Qingan Li wrote:<br><br></div>
</div><blockquote type="cite"><div><div></div><div>1. I have searched the access/setting of LLVMCC_EMITIR_FLAG in the build directory, recursively, and all the output is what I pasted in last email (just the same to the that in source directory). Maybe the configure failed to do it. My command list for building the test suit is as followings:<br>

(1) cd ~/SRC_DIR/llvm/projects<br>(2) 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<br>(3) cd LLVMGCC_DIR;       <br>(4) gunzip --stdout llvm-gcc-4.2-version-platform.tar.gz | tar -xvf -<br>

(5) cd ~/OBJ_DIR/llvm; <br>(6) SRC_DIR/configure --prefix=INS_DIR --enable-debug-runtime  --disable-optimized --enable-debug-symbols --enable-assertions   --with-llvmgccdir=LLVMGCC_DIR<br>(7) search LLVMCC_EMITIR_FLAG or "cd projects/test-suite" (both failed)  <br>

<br>2. Another question<br>In the steps above, I omitted the re-configure process in <a href="http://llvm.org/docs/TestingGuide.html#testsuiterun" target="_blank">http://llvm.org/docs/TestingGuide.html#testsuiterun</a> , since I thought I have configured the $LLVM_GCC_DIR before building llvm. <br>

<br>As it failed, I did the following to reconfigure, but it failed again:<br>(8) cd OBJ_DIR/llvm/<br>(9) SRC_DIR/configure --prefix=INS_DIR --enable-debug-runtime  --disable-optimized --enable-debug-symbols --enable-assertions   --with-llvmgccdir=LLVMGCC_DIR<br>

<br>I need your help, and thanks very much for your time.<br><br>2011/1/18 Eric Christopher <<a href="mailto:echristo@apple.com" target="_blank">echristo@apple.com</a>><br><br>On Jan 15, 2011, at 8:06 PM, Qingan Li wrote:<br>

<br><blockquote type="cite">[qali@qali llvm-2.8-rev]$ find . -exec grep -n "LLVMCC_EMITIR_FLAG" ./ {} \;<br>./projects/test-suite/Makefile.tests:47:<span style="white-space:pre-wrap">   </span>-$(LCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -S $< -o $@ $(LLVMCC_EMITIR_FLAG)<br>

./projects/test-suite/Makefile.tests:51:<span style="white-space:pre-wrap">     </span>-$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -S $< -o $@ $(LLVMCC_EMITIR_FLAG)<br>./projects/test-suite/Makefile.tests:55:<span style="white-space:pre-wrap">  </span>-$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -S $< -o $@ $(LLVMCC_EMITIR_FLAG)<br>

./projects/test-suite/Makefile.tests:59:<span style="white-space:pre-wrap">     </span>-$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -S $< -o $@ $(LLVMCC_EMITIR_FLAG)<br>./projects/test-suite/Makefile.tests:63:<span style="white-space:pre-wrap">  </span>-$(LCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -S $< -o $@ $(LLVMCC_EMITIR_FLAG)<br>

./projects/test-suite/Makefile.tests:67:<span style="white-space:pre-wrap">     </span>-$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -S $< -o $@ $(LLVMCC_EMITIR_FLAG)<br><br></blockquote><br>I know this. The question I asked was to grep in your top level build directory. You a) searched all subdirectories, and b) in the source, not build directory.<br>

<br><blockquote type="cite">There are errors in config.log, but I need your help for clarifying them (I selected the first four errors below): <br></blockquote><br>These errors aren't even important. In order to figure out what your system has configure will attempt to compile a bunch of different programs.<br>

<br>You'll need to look for what is setting LLVMCC_EMITIR_FLAG and then debug from there.<br><br>-eric<br><br><br><br><br><br>-- <br>Best regards,<br><br>Li Qingan<br><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><br></div></blockquote></div></div></div><br><br clear="all"><br>-- <br>Best regards,<div><br></div><font color="#888888"><div>Li Qingan</div><br>
</font></div><br><br clear="all"><br>-- <br>Best regards,<div><br></div><div>Li Qingan</div><br>