[U-Boot-Users] compile u-boot err with arm-elf-gcc

dear: all please give me a hand!!!
trying to compile u-boot ,get some errs:
arm-elf-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x007d0000 -I/home/u-boot-1.1.3/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/lib/gcc-lib/arm-elf/2.95.3/include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=arm7tdmi -Wall -Wstrict-prototypes -c -o cfi_flash.o cfi_flash.c In file included from cfi_flash.c:48: /home/u-boot-1.1.3/include/asm/processor.h:52: parse error before `1' /home/u-boot-1.1.3/include/asm/processor.h:52: warning: no semicolon at end of struct or union /home/u-boot-1.1.3/include/asm/processor.h:54: parse error before `}' /home/u-boot-1.1.3/include/asm/processor.h:58: field `insn' has incomplete type make[1]: *** [cfi_flash.o] Error 1 make[1]: Leaving directory `/home/u-boot-1.1.3/drivers' make: *** [drivers/libdrivers.a] Error 2

In message 44AA46AE.00004B.13170@bj163app19.163.com you wrote:
arm-elf-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x007d0000 -I/home/u-boot-1.1.3/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/lib/gcc-lib/arm-elf/2.95.3/incl ude -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=arm7tdmi -Wall -Wstrict-prototypes -c -o cfi_flash.o cfi_flash.c In file included from cfi_flash.c:48: /home/u-boot-1.1.3/include/asm/processor.h:52: parse error before `1' /home/u-boot-1.1.3/include/asm/processor.h:52: warning: no semicolon at end of struct or union /home/u-boot-1.1.3/include/asm/processor.h:54: parse error before `}' /home/u-boot-1.1.3/include/asm/processor.h:58: field `insn' has incomplete type make[1]: *** [cfi_flash.o] Error 1 make[1]: Leaving directory `/home/u-boot-1.1.3/drivers' make: *** [drivers/libdrivers.a] Error 2
First: you are using old code. I recommend to use a current version of U-Boot.
You have a toolchain problem. It defines the preprocessor variable "arm" (as "1"), but "arm" is not a reserved identifier, so this is not allowed.
Use a working toolchain.
--Boundary-=_akLhoOXzfZuhqFGRqguzajilgHyH Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
And never post HTML on this mailing list.
Best regards,
Wolfgang Denk
participants (2)
-
lai222333
-
Wolfgang Denk