From: Andy Pont <andy@embeddedsw.co.uk>
To: u-boot@lists.denx.de
Subject: [U-Boot] HOSTCC version
Date: Wed, 10 Dec 2008 09:56:38 -0000 [thread overview]
Message-ID: <001c01c95aad$983a2800$c8ae7800$@co.uk> (raw)
In-Reply-To: <20081210082827.D0EBB834B020@gemini.denx.de>
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
next prev parent reply other threads:[~2008-12-10 9:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-10 8:12 [U-Boot] HOSTCC version Andy Pont
2008-12-10 8:28 ` Wolfgang Denk
2008-12-10 9:56 ` Andy Pont [this message]
2008-12-10 10:58 ` Wolfgang Denk
2008-12-10 18:41 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001c01c95aad$983a2800$c8ae7800$@co.uk' \
--to=andy@embeddedsw.co.uk \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox