This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Prolem with GCC in arm-elf toolchain


On Thu, 2006-07-27 at 12:20, Rowan Potgieter wrote:
> I'm in the process of installing the arm-linux toolchain that is
> provided by snapgear. i ran the command "./build-uclinux-tools.sh
> build 2>&1 | tee errs" as directed and quite far into stage 4 (GCC) of
> the build i get the following error - i'm not sure what this means!
> hopefully somebody can help me.
> 
> ../../gcc-2.95.3/gcc/config/arm/arm.c: In function 'arm_override_options':
> ../../gcc-2.95.3/gcc/config/arm/arm.c:287: warning: assignment
> discards qualifiers from pointer target type
> ../../gcc-2.95.3/gcc/config/arm/arm.c:531: error: invalid lvalue in assignment
> make[1]: *** [arm.o] Error 1
> make[1]: Leaving directory
> `/stareast/Network_Processor_Project/SnapGear_cd/tools/arm-elf/arm-elf-gcc/gcc'
> make: *** [all-gcc] Error 2
> 
> and thats it! hope somebody can help - thank you

Your problem is that gcc-2.95 uses source language extensions that are
no-longer supported by more recent versions of GCC.

You have three options
1) Build a more recent version of gcc for ARM (2.95 is *very* old now
and hasn't been supported for more than 5 years).
2) Use an older native compiler (gcc-3.4 or older)
3) Try to back-port the various source code changes needed to make 2.95
work with a more recent compiler.

R.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]