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><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>