This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC installation problem using crosstool
Aprev writes:
>
> Missing 2>&1, sorry.
>
> http://www.nabble.com/file/p13269976/log2.txt.zip log2.txt.zip
/home/andreas/temp/crosstool-0.43/build/arm-unknown-linux-gnu/gcc-4.1.0-glibc-2.2.2/gcc-2.95.3/gcc/config/arm/arm.c:286: warning: assignment discards qualifiers from pointer target type
/home/andreas/temp/crosstool-0.43/build/arm-unknown-linux-gnu/gcc-4.1.0-glibc-2.2.2/gcc-2.95.3/gcc/config/arm/arm.c:530: error: invalid lvalue in assignment
make[1]: *** [arm.o] Error 1
This is an lvalue cast:
arm.c:530: arm_prog_mode = TARGET_APCS_32 ? PROG_MODE_PROG32 : PROG_MODE_PROG26;
arm.h:426:#define arm_prog_mode ((enum attr_prog_mode) arm_prgmode)
arm.md:47:(define_attr "prog_mode" "prog26,prog32" (const (symbol_ref "arm_prog_mode")))
That is a bug in gcc 2.95. You need either to fix the bug or upgrade
to a more recent compiler.
A bug fix might be as simple as
arm.c:530: arm_prgmode = TARGET_APCS_32 ? PROG_MODE_PROG32 : PROG_MODE_PROG26;
but it's still bad to be using such a very old compiler.
Andrew.