invalid lvalue error when trying to build bootstrap gcc

Khem Raj kraj@mvista.com
Mon Aug 14 21:21:00 GMT 2006


°×ÔƳÇÖ÷Ò¶¹Â³Ç said the following on 8/14/2006 4:15 AM:
> hi guys£¬I was trying to build arm-linux embedded system.
> When I was making bootstrap gcc, I got the following error:
> ./config/arm/arm.c: In function 'arm_override_options' £º
> ./config/arm/arm.c:286: warning: assignment discards qualifiers from
> pointer target type
> ./config/arm/arm.c:530: error: invalid lvalue in assignment
> make[2]: *** [arm.o] Error 1
> make[2]: Leaving directory `embedded/build-tools/gcc-2.95.3/gcc'
> make[1]: *** [bootstrap] Error 2
> make[1]: Leaving directory embedded/build-tools/gcc-2.95.3/gcc'
> make: *** [bootstrap] Error 2
>
>
> My PC host:
> i386-redhat fedora5 kernel 2.6.15
> gcc version: 4.1.0
>
> What am I going to do?
> Please help me out of this.
>
Install gcc-32 package on fedora using yum or rpm and set your
CC=/usr/bin/gcc32 when you build 2.95 compiler.
then it should be fine.

-- 
Khem Raj
kraj@mvista.com
MontaVista Software - www.mvista.com


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



More information about the crossgcc mailing list