<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Oct 26, 2007, at 10:30 AM, Evan Cheng wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><BR><DIV><DIV>On Oct 26, 2007, at 1:04 AM, Amit Singh wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Hi,<BR><BR>I am trying to build llvm-2.1 and llvm-gcc4 but running into build errors and not getting the code base compiled successfully since quite a few time.<BR><BR>My host OS: Linux(Debian-Ubuntu) <BR>My Host processor:  i686<BR>My target processor: Arm11/Arm9 <BR>Languages support needed: c, c++<BR>host compiler version: gcc 4.0.1<BR>I am getting errors while compiling LLVM and llvm-gcc both:<BR><BR>The LLVM build error is copy pasted below: <BR>llvm[2]: ======= Finished Linking Release Executable llvm-dis (without symbols)<BR>make[2]: Leaving directory `/home/amitsingh/llvm-research<DIV>/llvm-source/obj/tools/llvm-dis'<BR>make[2]: Entering directory `/home/amitsingh/llvm-research/llvm-source/obj/tools/llvm-upgrade' <BR>llvm[2]: Compiling UpgradeLexer.cpp for Release build <BR>llvm[2]: Compiling UpgradeParser.cpp for Release build <BR>UpgradeParser.tab.c: In function 'int Upgradeparse()':<BR>UpgradeParser.tab.c:3937: error: Missing definition <BR>for SSA_NAME: D.81521_38019in statement:<BR>D.81521_328 = PHI <D.81521_38019(191), D.81521_37934(205), D.81521_37909(230), D.81521_37741(231)>;<BR>PHI argument<BR>D.81521_38019<BR>for PHI node<BR>D.81521_328 = PHI < D.81521_38019(191), D.81521_37934(205), D.81521_37909(230), D.81521_37741(231)>;<BR>UpgradeParser.tab.c:3937: internal compiler error: verify_ssa failed.<BR>Please submit a full bug report,<BR>with preprocessed source if appropriate. <BR>See <URL:<A href="http://llvm.org/bugs" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://llvm.org/bugs</A>> for instructions.<BR>make[2]: *** [/home/amitsingh/llvm-research/llvm-source/obj/tools/llvm-upgrade/Release/UpgradeParser.o] Error 1 <BR>make[2]: Leaving directory `/home/amitsingh/llvm-research/llvm-source/obj/tools/llvm-upgrade' <BR>make[1]: *** [llvm-upgrade/.makeall] Error 2<BR>make[1]: Leaving directory `/home/amitsingh/llvm-research/llvm-source/obj/tools'<BR>make: *** [all] Error 1<BR></DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>This is gcc crashing. Can you try upgrade / downgrade to a different version of gcc?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Also, you can do make VERBOSE=1 to see how it is crashing. You can then produce a preprocessed file and submit the report to the gcc mailing list. For now, I would suggest you go to Makefile.rules and change OPTIMIZE_OPTION from -O3 to -O2. If you are lucky that will allow it to get past this crash.</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>Hrm. This:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BLOCKQUOTE type="cite"><BLOCKQUOTE type="cite">See <URL:<A href="http://llvm.org/bugs" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://llvm.org/bugs</A>> for instructions.</BLOCKQUOTE></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>indicates you are using llvm-gcc to compile llvm itself? If so, please submit the bug to us instead. :-)<DIV><BR class="khtml-block-placeholder"></DIV><DIV>However this:</DIV><BLOCKQUOTE type="cite"><BLOCKQUOTE type="cite">UpgradeParser.tab.c:3937: internal compiler error: verify_ssa failed.</BLOCKQUOTE></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>indicates this is indeed crashing in a gcc tree-ssa pass.</DIV><DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> Can you please add VERBOSE=1 first? Then you can should be able to reproduce the crash.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Evan<BR><DIV><BR><BLOCKQUOTE type="cite"><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Evan</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><BLOCKQUOTE type="cite"><DIV><BR>And with llvm-gcc the first issue is when i give the obj dir path of the llvm with --enable-llvm option always it says "Please give the correct path to LLVM DIR" <BR><BR>and if I don't give this option then it breaks with an error saying not able to find the files pthread.h and unistd.h which are there in fact on my system in different directories.<BR><BR><BR>Can I get someone online on yahoo or gmail chat for few minutes? I hope if I get someone online the problems would not take much time to get solved. <BR><BR>Thanks,<BR><SPAN>Amit</SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">LLVM Developers mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</A> <SPAN class="Apple-converted-space">        </SPAN><A href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</A></DIV> </BLOCKQUOTE></DIV><BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">LLVM Developers mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</A> <SPAN class="Apple-converted-space">        </SPAN><A href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></DIV></BODY></HTML>