[U-Boot-Users] compile u-boot err with arm-elf-gcc
Wolfgang Denk
wd at denx.de
Tue Jul 4 13:25:25 CEST 2006
In message <44AA46AE.00004B.13170 at 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
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Without followers, evil cannot spread.
-- Spock, "And The Children Shall Lead", stardate 5029.5
More information about the U-Boot
mailing list