<font class="Apple-style-span" face="simhei, sans-serif"><b>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:</b></font><div>
<i>(1<font class="Apple-style-span" face="simhei, sans-serif">) cd ~/SRC_DIR/llvm/projects</font></i></div><div><i><font class="Apple-style-span" face="simhei, sans-serif">(2) <span class="Apple-style-span" style="white-space: pre; ">svn co <a href="http://llvm.org/svn/llvm-project/test-suite/trunk">http://llvm.org/svn/llvm-project/test-suite/trunk</a> test-suite</span></font></i></div>
<div><i><font class="Apple-style-span" face="simhei, sans-serif">(3) cd LLVMGCC_DIR;       </font></i></div><div><i><font class="Apple-style-span" face="simhei, sans-serif"></font></i><i><font class="Apple-style-span" face="simhei, sans-serif">(4) </font><font class="Apple-style-span" face="monospace" size="3">gunzip --stdout llvm-gcc-4.2-version-platform.tar.gz | tar -xvf -</font></i></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; "><i><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial; font-style: normal; font-size: small; "><i><font class="Apple-style-span" face="simhei, sans-serif">(5) cd ~/OBJ_DIR/llvm; </font></i></span></i></span></div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><font class="Apple-style-span" face="simhei, sans-serif"><i>(6) <span class="Apple-style-span" style="font-size: 14px; line-height: 23px; ">SRC_DIR/configure --prefix=INS_DIR --enable-debug-runtime  --disable-optimized --enable-debug-symbols --enable-assertions</span> </i>  --with-llvmgccdir=LLVMGCC_DIR</font></div>
<div><font class="Apple-style-span" face="simhei, sans-serif">(7) search LLVMCC_EMITIR_FLAG or "cd projects/test-suite" (both failed)  </font></div><div><font class="Apple-style-span" face="simhei, sans-serif"><br>
</font></div><div><font class="Apple-style-span" face="simhei, sans-serif"><b>2. Another question</b></font></div><div><b><font class="Apple-style-span" face="simhei, sans-serif">In the steps above, I omitted the re-configure process </font><font class="Apple-style-span" face="simhei, sans-serif">in </font><a href="http://llvm.org/docs/TestingGuide.html#testsuiterun">http://llvm.org/docs/TestingGuide.html#testsuiterun</a> </b><span class="Apple-style-span" style="font-family: simhei, sans-serif; "><b>, since I thought I have configured the $LLVM_GCC_DIR before building llvm.</b> </span></div>
<div><span class="Apple-style-span" style="font-family: simhei, sans-serif; "><br></span></div><div><span class="Apple-style-span" style="font-family: simhei, sans-serif; "><b>As it failed, I did the following to reconfigure, but it failed again:</b></span></div>
<div><span class="Apple-style-span" style="font-family: simhei, sans-serif; ">(8) cd OBJ_DIR/llvm/</span></div><div><span class="Apple-style-span" style="font-family: simhei, sans-serif; ">(9) </span><span class="Apple-style-span" style="font-family: simhei, sans-serif; "><i><span class="Apple-style-span" style="font-size: 14px; line-height: 23px; ">SRC_DIR/configure --prefix=INS_DIR --enable-debug-runtime  --disable-optimized --enable-debug-symbols --enable-assertions</span> </i>  --with-llvmgccdir=LLVMGCC_DIR</span></div>
<div><span class="Apple-style-span" style="font-family: simhei, sans-serif; "><br></span></div><div><span class="Apple-style-span" style="font-family: simhei, sans-serif; ">I need your help, and thanks very much for your time.</span></div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
<div><br><div class="gmail_quote">2011/1/18 Eric Christopher <span dir="ltr"><<a href="mailto:echristo@apple.com">echristo@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"><div class="im"><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><div><br></div></div><div>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.</div><div class="im">
<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><div><br></div></div><div>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.</div>
<div><br></div><div>You'll need to look for what is setting LLVMCC_EMITIR_FLAG and then debug from there.</div><div><br></div><font color="#888888"><div>-eric</div><br><br></font></div></blockquote></div><br><br clear="all">
<br>-- <br>Best regards,<div><br></div><div>Li Qingan</div><br>
</div></div>