llvm-build for ARM

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

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

This is gcc crashing. Can you try upgrade / downgrade to a different version of gcc?

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.

Evan

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

This is gcc crashing. Can you try upgrade / downgrade to a different version of gcc?

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.

Hrm. This:

See URL:[http://llvm.org/bugs](http://llvm.org/bugs) for instructions.

indicates you are using llvm-gcc to compile llvm itself? If so, please submit the bug to us instead. :slight_smile:

However this:

UpgradeParser.tab.c:3937: internal compiler error: verify_ssa failed.

indicates this is indeed crashing in a gcc tree-ssa pass.

Can you please add VERBOSE=1 first? Then you can should be able to reproduce the crash.

Evan