* [U-Boot] HOSTCC version
@ 2008-12-10 8:12 Andy Pont
2008-12-10 8:28 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Andy Pont @ 2008-12-10 8:12 UTC (permalink / raw)
To: u-boot
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] HOSTCC version
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
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2008-12-10 8:28 UTC (permalink / raw)
To: u-boot
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
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"And they told us, what they wanted... Was a sound that could kill
some-one, from a distance." - Kate Bush
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] HOSTCC version
2008-12-10 8:28 ` Wolfgang Denk
@ 2008-12-10 9:56 ` Andy Pont
2008-12-10 10:58 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Andy Pont @ 2008-12-10 9:56 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] HOSTCC version
2008-12-10 9:56 ` Andy Pont
@ 2008-12-10 10:58 ` Wolfgang Denk
2008-12-10 18:41 ` Mike Frysinger
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2008-12-10 10:58 UTC (permalink / raw)
To: u-boot
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
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Nature is very un-American. Nature never hurries."
- William George Jordan
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] HOSTCC version
2008-12-10 10:58 ` Wolfgang Denk
@ 2008-12-10 18:41 ` Mike Frysinger
0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2008-12-10 18:41 UTC (permalink / raw)
To: u-boot
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20081210/d98adef3/attachment.pgp
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-10 18:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2008-12-10 10:58 ` Wolfgang Denk
2008-12-10 18:41 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox