From: Jerry Van Baren <gvb.uboot@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] RFC: make new image support mandatory
Date: Wed, 26 Mar 2008 21:24:52 -0400 [thread overview]
Message-ID: <47EAF764.9050005@gmail.com> (raw)
In-Reply-To: <47EA78C1.4060905@semihalf.com>
Bartlomiej Sieka wrote:
> Haavard Skinnemoen wrote:
>> On Wed, 26 Mar 2008 15:16:44 +0100
>> Wolfgang Denk <wd@denx.de> wrote:
>>
>>> Can we agree on this?
>> Can we please un-break the existing tree first?
>>
>> gcc -g -Wall -idirafter /home/hskinnemoen/git/u-boot/upstream/include -idirafter /home/hskinnemoen/git/u-boot/upstream/include2 -idirafter /home/hskinnemoen/git/u-boot/upstream/include -DTEXT_BASE=0x00000000 -DUSE_HOSTCC -O -c -o fdt.o fdt.c
>> In file included from fdt_host.h:24,
>> from fdt.c:57:
>> ../include/fdt.h:7: error: expected specifier-qualifier-list before ?uint32_t?
> [...]
> er named ?totalsize?
>> fdt.c:158: error: ?const struct fdt_header? has no member named ?totalsize?
>> make[1]: *** [fdt.o] Error 1
>> make[1]: Leaving directory `/home/hskinnemoen/git/u-boot/upstream/tools'
>> make: *** [tools] Error 2
>>
>> $ gcc -v
>> Using built-in specs.
>> Target: i486-linux-gnu
>> Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --disable-libmudflap --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
>> Thread model: posix
>> gcc version 4.2.3 (Debian 4.2.3-2)
>
> Haavard,
>
> What were the make invocations that let the above errors? I'll try to
> reproduce this and have a look.
>
> Regards,
> Bartlomiej
Hi Bartlomiej,
I also am running debian and am getting the error. Apparently our
/usr/include/linux/types.h files are different from yours, or we have
something set up differently/wrongly.
Adding -isystem ../include (to override the host's include files) to
FIT_FLAGS "fixes" the problem.
--------------------------------------------------------------------
diff --git a/tools/Makefile b/tools/Makefile
index 8784a6d..9b2f6fa 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -124,7 +124,7 @@ CPPFLAGS = -idirafter $(SRCTREE)/include \
CFLAGS = $(HOST_CFLAGS) $(CPPFLAGS) -O
# No -pedantic switch to avoid libfdt compilation warnings
-FIT_CFLAGS = -Wall $(CPPFLAGS) -O
+FIT_CFLAGS = -Wall -isystem ../include $(CPPFLAGS) -O
AFLAGS = -D__ASSEMBLY__ $(CPPFLAGS)
CC = $(HOSTCC)
--------------------------------------------------------------------
I've also attached the diff between /usr/include/linux/types.h and
u-boot's include/linux/types.h in case it is helpful. Nothing jumps out
at me. :-/
Best regards,
gvb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: types.h.diff
Type: text/x-diff
Size: 2979 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20080326/cc9c643f/attachment.diff
next prev parent reply other threads:[~2008-03-27 1:24 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-26 14:16 [U-Boot-Users] RFC: make new image support mandatory Wolfgang Denk
2008-03-26 14:26 ` Kumar Gala
2008-03-26 14:54 ` Bartlomiej Sieka
2008-03-26 14:57 ` Wolfgang Denk
2008-03-26 15:24 ` Kumar Gala
2008-03-26 14:52 ` Bartlomiej Sieka
2008-03-26 15:28 ` Haavard Skinnemoen
2008-03-26 16:24 ` Bartlomiej Sieka
2008-03-27 1:24 ` Jerry Van Baren [this message]
2008-03-27 7:04 ` Stefan Roese
2008-03-27 7:19 ` Liu Dave
2008-03-27 8:16 ` Wolfgang Denk
2008-03-27 8:55 ` Dave Liu
2008-03-26 15:41 ` Haavard Skinnemoen
2008-03-26 16:31 ` Bartlomiej Sieka
2008-03-27 8:12 ` Haavard Skinnemoen
2008-03-27 9:01 ` Stefan Roese
2008-03-27 9:06 ` Roy Zang
2008-03-27 10:15 ` Markus Klotzbücher
2008-03-27 9:09 ` Dave Liu
2008-03-27 13:52 ` Bartlomiej Sieka
2008-04-01 9:26 ` Luigi 'Comio' Mantellini
2008-04-01 9:40 ` Bartlomiej Sieka
2008-03-26 20:37 ` Guennadi Liakhovetski
2008-03-26 22:10 ` Wolfgang Denk
2008-03-27 1:24 ` Shinya Kuribayashi
2008-03-27 1:43 ` Jerry Van Baren
2008-03-27 9:59 ` Jean-Christophe PLAGNIOL-VILLARD
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=47EAF764.9050005@gmail.com \
--to=gvb.uboot@gmail.com \
--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