[U-Boot-Users] RFC: make new image support mandatory

Jerry Van Baren gvb.uboot at gmail.com
Thu Mar 27 02:24:52 CET 2008


Bartlomiej Sieka wrote:
> Haavard Skinnemoen wrote:
>> On Wed, 26 Mar 2008 15:16:44 +0100
>> Wolfgang Denk <wd at 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 


More information about the U-Boot mailing list