[LLVMdev] llvm-build for ARM

Amit Singh amit.singh2241 at gmail.com
Fri Oct 26 01:04:27 PDT 2007


Hi,

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.

My host OS: Linux(Debian-Ubuntu)
My Host processor:  i686
My target processor: Arm11/Arm9
Languages support needed: c, c++
host compiler version: gcc 4.0.1
I am getting errors while compiling LLVM and llvm-gcc both:

The LLVM build error is copy pasted below:
llvm[2]: ======= Finished Linking Release Executable llvm-dis (without
symbols)
make[2]: Leaving directory `/home/amitsingh/llvm-research
/llvm-source/obj/tools/llvm-dis'
make[2]: Entering directory
`/home/amitsingh/llvm-research/llvm-source/obj/tools/llvm-upgrade'
llvm[2]: Compiling UpgradeLexer.cpp for Release build
llvm[2]: Compiling UpgradeParser.cpp for Release build
UpgradeParser.tab.c: In function 'int Upgradeparse()':
UpgradeParser.tab.c:3937: error: Missing definition
for SSA_NAME: D.81521_38019in statement:
D.81521_328 = PHI <D.81521_38019(191), D.81521_37934(205), D.81521_37909(230),
D.81521_37741(231)>;
PHI argument
D.81521_38019
for PHI node
D.81521_328 = PHI < D.81521_38019(191), D.81521_37934(205), D.81521_37909(230),
D.81521_37741(231)>;
UpgradeParser.tab.c:3937: internal compiler error: verify_ssa failed.
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs> for instructions.
make[2]: ***
[/home/amitsingh/llvm-research/llvm-source/obj/tools/llvm-upgrade/Release/UpgradeParser.o]
Error 1
make[2]: Leaving directory
`/home/amitsingh/llvm-research/llvm-source/obj/tools/llvm-upgrade'
make[1]: *** [llvm-upgrade/.makeall] Error 2
make[1]: Leaving directory
`/home/amitsingh/llvm-research/llvm-source/obj/tools'
make: *** [all] Error 1

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"

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.


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.

Thanks,
Amit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071026/3446545e/attachment.html>


More information about the llvm-dev mailing list