[U-Boot] HOSTCC version

Andy Pont andy at embeddedsw.co.uk
Wed Dec 10 10:56:38 CET 2008


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



More information about the U-Boot mailing list