[U-Boot-Users] under Cygwin:what's wrong with "arm" building error

liang a lei liangalei at cs.sjtu.edu.cn
Sat Dec 27 17:29:53 CET 2003


hi, all:

I am try to build u-boot image for board "ep7312", and process pause with
error:
----------------------------------------------------------------------------
----------
$make
.......
m7tdmi -Wall -Wstrict-prototypes -c -o cmd_scsi.o cmd_scsi.c
In file included from cmd_scsi.c:33:
/u-boot-1.0.0/include/asm/processor.h:52: parse error before `1'
/u-boot-1.0.0/include/asm/processor.h:52: warning: no semicolon at end of
struct or union
/u-boot-1.0.0/include/asm/processor.h:54: parse error before `}'
/u-boot-1.0.0/include/asm/processor.h:58: field `insn' has incomplete type
make[1]: *** [cmd_scsi.o] Error 1
make[1]: Leaving directory `/44b0ii/u-boot-1.0.0/common'
make: *** [subdirs] Error 1

$
----------------------------------------------------------------------------
----------------
(My build enviroment is cygwin)

By way, I post line 52 of processor.h
...
union debug_insn {
 u32 arm;    <---- line 52
 u16 thumb;
};
....

And, if I modify "arm" to "arm1" (anything but "arm"), like

union debug_insn {
 u32 arm1;
 u16 thumb;
};

then build will finish without any error, it says that "u-boot" and
"u-boot.srec" will be built out.

thanks for answer

Liang Alei






More information about the U-Boot mailing list