[U-Boot] HOSTCC version

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.

Dear "Andy Pont",
In message 000901c95a9f$01581720$04084560$@co.uk you wrote:
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.
Do you also get these errors for the current code, i. e. top of tree from git repository?
Best regards,
Wolfgang Denk

Dear Wolfgang,
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.
Do you also get these errors for the current code, i. e. top of tree from git repository?
I have downloaded the code from the git using the command:
git clone git://git.denx.de/u-boot.git
The errors that I see are now slightly different. It is complaining that endian.h and byteswap.h don't exist - and that appears to be correct for the system that I have. The error regarding 'uintptr_t' has been fixed based on the patch from Jerry Van Baren but I still get an number of parse errors regarding image.h.
Your thoughts and comments would be much appreciated. Compiler output is shown below.
Thanks and regards,
Andy.
In file included from ../include/libfdt.h:54, from fdt_host.h:25, from mkimage.h:36, from image.c:71: /home/andy/bootloaders/uboot/u-boot-git/include/libfdt_env.h:27:20: endian.h: No such file or directory /home/andy/bootloaders/uboot/u-boot-git/include/libfdt_env.h:28:22: byteswap.h: No such file or directory 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-git/include/libfdt_env.h:27:20: endian.h: No such file or directory /home/andy/bootloaders/uboot/u-boot-git/include/libfdt_env.h:28:22: byteswap.h: No such file or directory make[1]: Leaving directory `/home/andy/bootloaders/uboot/u-boot-git/tools' make[1]: Entering directory `/home/andy/bootloaders/uboot/u-boot-git/tools' make[1]: Nothing to be done for `_depend'. make[1]: Leaving directory `/home/andy/bootloaders/uboot/u-boot-git/tools' make[1]: Entering directory `/home/andy/bootloaders/uboot/u-boot-git/examples' make[1]: Leaving directory `/home/andy/bootloaders/uboot/u-boot-git/examples' make[1]: Entering directory `/home/andy/bootloaders/uboot/u-boot-git/examples' make[1]: Nothing to be done for `_depend'. make[1]: Leaving directory `/home/andy/bootloaders/uboot/u-boot-git/examples' make[1]: Entering directory `/home/andy/bootloaders/uboot/u-boot-git/api_example s' make[1]: Nothing to be done for `_depend'. make[1]: Leaving directory `/home/andy/bootloaders/uboot/u-boot-git/api_examples ' Generating include/autoconf.mk make -C tools all make[1]: Entering directory `/home/andy/bootloaders/uboot/u-boot-git/tools' gcc -Wall -pedantic -ansi -idirafter /home/andy/bootloaders/uboot/u-boot-git/inc lude -idirafter /home/andy/bootloaders/uboot/u-boot-git/include2 -idirafter /hom e/andy/bootloaders/uboot/u-boot-git/include -DTEXT_BASE=0xFE000000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c gcc -Wall -pedantic -ansi -idirafter /home/andy/bootloaders/uboot/u-boot-git/inc lude -idirafter /home/andy/bootloaders/uboot/u-boot-git/include2 -idirafter /hom e/andy/bootloaders/uboot/u-boot-git/include -DTEXT_BASE=0xFE000000 -DUSE_HOSTCC -O -o img2srec.exe img2srec.o strip img2srec.exe gcc -g -Wall -idirafter /home/andy/bootloaders/uboot/u-boot-git/include -idiraft er /home/andy/bootloaders/uboot/u-boot-git/include2 -idirafter /home/andy/bootlo aders/uboot/u-boot-git/include -DTEXT_BASE=0xFE000000 -DUSE_HOSTCC -O -c -o mkim age.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-git/include/libfdt_env.h:27:20: endian.h: No such file or directory /home/andy/bootloaders/uboot/u-boot-git/include/libfdt_env.h:28:22: byteswap.h: No such file or directory In file included from mkimage.c:26: /home/andy/bootloaders/uboot/u-boot-git/include/image.h:195: error: parse error before "ulong" /home/andy/bootloaders/uboot/u-boot-git/include/image.h:197: error: parse error before "load" /home/andy/bootloaders/uboot/u-boot-git/include/image.h:199: error: parse error before '}' token /home/andy/bootloaders/uboot/u-boot-git/include/image.h:213: error: parse error before "ulong" /home/andy/bootloaders/uboot/u-boot-git/include/image.h:266: error: parse error before '}' token /home/andy/bootloaders/uboot/u-boot-git/include/image.h:384: error: parse error before "image_get_data" /home/andy/bootloaders/uboot/u-boot-git/include/image.h: In function `image_get_ data': /home/andy/bootloaders/uboot/u-boot-git/include/image.h:386: error: `ulong' unde clared (first use in this function) /home/andy/bootloaders/uboot/u-boot-git/include/image.h:386: error: (Each undecl ared identifier is reported only once /home/andy/bootloaders/uboot/u-boot-git/include/image.h:386: error: for each fun ction it appears in.) /home/andy/bootloaders/uboot/u-boot-git/include/image.h:386: error: parse error before "hdr" /home/andy/bootloaders/uboot/u-boot-git/include/image.h: At top level: /home/andy/bootloaders/uboot/u-boot-git/include/image.h:393: error: parse error before "image_get_image_end" /home/andy/bootloaders/uboot/u-boot-git/include/image.h: In function `image_get_ image_end': /home/andy/bootloaders/uboot/u-boot-git/include/image.h:395: error: `ulong' unde clared (first use in this function) /home/andy/bootloaders/uboot/u-boot-git/include/image.h:395: error: parse error before "hdr" /home/andy/bootloaders/uboot/u-boot-git/include/image.h: At top level: /home/andy/bootloaders/uboot/u-boot-git/include/image.h:452: error: parse error before "image_multi_count" /home/andy/bootloaders/uboot/u-boot-git/include/image.h:453: error: parse error before "ulong" /home/andy/bootloaders/uboot/u-boot-git/include/image.h:527: error: parse error before "ulong" /home/andy/bootloaders/uboot/u-boot-git/include/image.h:529: error: parse error before "ulong" /home/andy/bootloaders/uboot/u-boot-git/include/image.h:543: error: parse error before "fit_get_size" /home/andy/bootloaders/uboot/u-boot-git/include/image.h:555: error: parse error before "fit_get_end" /home/andy/bootloaders/uboot/u-boot-git/include/image.h: In function `fit_get_en d': /home/andy/bootloaders/uboot/u-boot-git/include/image.h:557: error: `ulong' unde clared (first use in this function) /home/andy/bootloaders/uboot/u-boot-git/include/image.h:557: error: parse error before "fit" /home/andy/bootloaders/uboot/u-boot-git/include/image.h: At top level: /home/andy/bootloaders/uboot/u-boot-git/include/image.h:582: error: parse error before "ulong" /home/andy/bootloaders/uboot/u-boot-git/include/image.h:583: error: parse error before "ulong" mkimage.c: In function `main': mkimage.c:222: warning: comparison of distinct pointer types lacks a cast mkimage.c:333: warning: comparison of distinct pointer types lacks a cast mkimage.c: In function `copy_file': mkimage.c:412: warning: comparison of distinct pointer types lacks a cast mkimage.c: In function `fit_handle_file': mkimage.c:595: warning: comparison of distinct pointer types lacks a cast make[1]: *** [mkimage.o] Error 1 make[1]: Leaving directory `/home/andy/bootloaders/uboot/u-boot-git/tools' make: *** [tools] Error 2

Dear Andy,
In message 001c01c95aad$983a2800$c8ae7800$@co.uk you wrote:
The errors that I see are now slightly different. It is complaining that endian.h and byteswap.h don't exist - and that appears to be correct for the system that I have. The error regarding 'uintptr_t' has been fixed based on the patch from Jerry Van Baren but I still get an number of parse errors regarding image.h.
Hm... I don't know Cygwin (and we oficially don't support it). Can't you run a real OS?
Best regards,
Wolfgang Denk

On Wednesday 10 December 2008 05:58:08 Wolfgang Denk wrote:
In message 001c01c95aad$983a2800$c8ae7800$@co.uk you wrote:
The errors that I see are now slightly different. It is complaining that endian.h and byteswap.h don't exist - and that appears to be correct for the system that I have. The error regarding 'uintptr_t' has been fixed based on the patch from Jerry Van Baren but I still get an number of parse errors regarding image.h.
Hm... I don't know Cygwin (and we oficially don't support it). Can't you run a real OS?
CoLinux works surprisingly well imo -mike
participants (3)
-
Andy Pont
-
Mike Frysinger
-
Wolfgang Denk