Skip to contentSkip to conversation

compile u-boot err with arm-elf-gcc

U-Boot-Users lai222333 2 participants 2 messages Jul 4, 2006

lore
Share & tools
lore

lai222333

author
#0 lore raw

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060704/f8de524f/attachment.htm

#1 lore raw
Quoted 11 lines · In message <[email protected]> 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.

Quoted 3 lines

--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

Signature · 4 lines
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