<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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><br>On Jan 17, 2011, at 7:38 PM, Qingan Li wrote:<br><br><blockquote type="cite">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">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 http://llvm.org/docs/TestingGuide.html#testsuiterun , 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 <echristo@apple.com><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 class="Apple-tab-span" style="white-space:pre">  </span>-$(LCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -S $< -o $@ $(LLVMCC_EMITIR_FLAG)<br>./projects/test-suite/Makefile.tests:51:<span class="Apple-tab-span" style="white-space:pre">    </span>-$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -S $< -o $@ $(LLVMCC_EMITIR_FLAG)<br>./projects/test-suite/Makefile.tests:55:<span class="Apple-tab-span" style="white-space:pre"> </span>-$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -S $< -o $@ $(LLVMCC_EMITIR_FLAG)<br>./projects/test-suite/Makefile.tests:59:<span class="Apple-tab-span" style="white-space:pre"> </span>-$(LCXX) $(CPPFLAGS) $(CXXFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -S $< -o $@ $(LLVMCC_EMITIR_FLAG)<br>./projects/test-suite/Makefile.tests:63:<span class="Apple-tab-span" style="white-space:pre"> </span>-$(LCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -S $< -o $@ $(LLVMCC_EMITIR_FLAG)<br>./projects/test-suite/Makefile.tests:67:<span class="Apple-tab-span" style="white-space:pre">    </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>_______________________________________________<br>LLVM Developers mailing list<br>LLVMdev@cs.uiuc.edu         http://llvm.cs.uiuc.edu<br>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev<br></blockquote><br></body></html>