Problems using crosstool-0.42 with Arm

Brian Dessent brian@dessent.net
Thu Oct 19 16:04:00 GMT 2006


"Heilpern, Mark" wrote:

> My development host is an x86 running Fedora Core 5; the host compiler's -v output displays: gcc version 4.1.1 20060525 (Red Hat 4.1.1-1).
> ...
> /home/heilpern/crosstool-0.42/build/arm-unknown-linux-gnu/gcc-2.95.3-glibc-2.1.3/gcc-2.95.3/gcc/config/arm/arm.c:286: warning: assignment discards qualifiers from pointer target type
> /home/heilpern/crosstool-0.42/build/arm-unknown-linux-gnu/gcc-2.95.3-glibc-2.1.3/gcc-2.95.3/gcc/config/arm/arm.c:530: error: invalid lvalue in assignment

Compiling such an ancient gcc (2.95) with a very new gcc (4.1.1) is
probably not going to work.  Those archaic gccs were much more
permissive about accepting invalid code, and the current versions won't
let you get away with it.  So, you'll probably need to use an
intermediate version that is somewhere in between.  Fedora has such a
compiler already packaged for you (e.g. compat-gcc-32) so just install
that and set your environment appropriately to use it instead of 4.1.1.

Brian

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list