
Hello,
What version of host gcc is needed for building the tools such as mkimage.exe? My embedded Linux development environment is Cygwin (1.3.22) based and includes gcc 3.4.4 which gives compiler errors for versions of U-Boot 1.3.3 and later.
make[1]: Entering directory `/home/andy/bootloaders/uboot/u-boot-2008.10/tools' gcc -g -Wall -idirafter /home/andy/bootloaders/uboot/u-boot-2008.10/include -idi rafter /home/andy/bootloaders/uboot/u-boot-2008.10/include2 -idirafter /home/and y/bootloaders/uboot/u-boot-2008.10/include -DTEXT_BASE=0xFE000000 -DUSE_HOSTCC - O -c -o mkimage.o mkimage.c In file included from ../include/libfdt.h:54, from fdt_host.h:25, from mkimage.h:36, from mkimage.c:25: /home/andy/bootloaders/uboot/u-boot-2008.10/include/libfdt_env.h:50: error: conf licting types for 'uintptr_t' /usr/include/cygwin/types.h:167: error: previous declaration of 'uintptr_t' was here In file included from fdt_host.h:25, from mkimage.h:36, from mkimage.c:25: ../include/libfdt.h: In function `fdt_set_magic': ../include/libfdt.h:162: warning: implicit declaration of function `__cpu_to_be3 2' In file included from mkimage.c:26: /home/andy/bootloaders/uboot/u-boot-2008.10/include/image.h: At top level: /home/andy/bootloaders/uboot/u-boot-2008.10/include/image.h:193: error: parse error before "ulong" /home/andy/bootloaders/uboot/u-boot-2008.10/include/image.h:195: error: parse error before "load" /home/andy/bootloaders/uboot/u-boot-2008.10/include/image.h:197: error: parse error before '}' token /home/andy/bootloaders/uboot/u-boot-2008.10/include/image.h:211: error: parse error before "ulong" /home/andy/bootloaders/uboot/u-boot-2008.10/include/image.h:231: error: parse error before "os" /home/andy/bootloaders/uboot/u-boot-2008.10/include/image.h:231: error: conflicting types for 'os'
And so it goes on! If I remove mkimage from the BIN_FILES line of tools/Makefile then the rest builds OK.
Thanks in advance,
A.