[U-Boot-Users] mistake

Anders Larsen alarsen at rea.de
Tue Nov 29 12:01:19 CET 2005


Alexandr Kuleschov <kuleschov at alpha.tula.net> schrieb am Dienstag, 29. November 2005 um 11:00 +0100:
>I work with based on AT91RM9200  board.
>At compilation gcc2.95.3 there is a mistake
>from cfi_flash.c:48:
>/home/ask/distr/u-boot-1.1.3/include/asm/processor.h:52: parse error before `1'
>
>Problem in the next line  in file "processor.h":
>
>union debug_insn {
>        u32     arm;        // ERROR HERE
>        u16     thumb;
>};
>
Hi,

your tool-chain is broken; your compiler defines the macro "arm"
(with the value "1").
IIRC this was standard behaviour by gcc 2.95.3, so you need a
different version.
>
>
>How to solve a problem?

Choose one (best solution first):
1. upgrade to a more recent tool-chain (2.95.3 is very old)
2. place the line "#undef arm" just before "union debug_insn"
3. change the offending line in processor.h
   (change "arm" to "gogetanewcompiler" or something like that;
    debug_insn is not used by U-Boot).

2 and 3 are kludges and should only be temporary solutions.

Cheers
 Anders





More information about the U-Boot mailing list