[U-Boot-Users] Error building 1.0

Wolfgang Denk wd at denx.de
Tue Nov 11 21:06:29 CET 2003


In message <Pine.LNX.4.44.0311110959290.9075-100000 at dallas.texasconnect.net> you wrote:
> I guess I should have mentioned that I tried with the hardhat as well.  I
> am not familiar with ELDK, I guess it's time to learn!  While playing last
> night I found that if I put:
> 
> #define __PTRDIFF_TYPE__ long int
> 
> before the include of stdarg.h the file compiles fine.  I tried to include
> stddef.h (where that define normally lives) but that caused all kinds of
> other errors.  This is definately not a good fix, but I think the error is
> probably in the gcc headers.

U-Boot takes some care not to include  any  headers  from  the  build
host,  the  remaining  headers  are provided by the (cross) compiler.
Normally, __PTRDIFF_TYPE__ gets defined by the stddef.h  header  file
which   belongs   to   the  C  compiler  (normally  to  be  found  in
".../lib/gcc-lib/ppc-linux/?version?/include/stddef.h").

With the ELDK this contains:

	#ifndef __PTRDIFF_TYPE__
	#define __PTRDIFF_TYPE__ long int
	#endif

Check what your compiler defines there....

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Murder is contrary to the laws of man and God.
	-- M-5 Computer, "The Ultimate Computer", stardate 4731.3




More information about the U-Boot mailing list