public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Problems Building u-boot-1.3.1
@ 2007-12-12 20:56 raptorbrino at aim.com
  2007-12-13  8:10 ` Markus Klotzbücher
  0 siblings, 1 reply; 11+ messages in thread
From: raptorbrino at aim.com @ 2007-12-12 20:56 UTC (permalink / raw)
  To: u-boot

Hi All,

I'm having a problem building u-boot-1.3.1.  It complains when using the
host compiler to compile sha1.c because it doesn't know what the data 
type
__u64 is.  This datatype is defined in u-boot/include/asm/types.h.  
However,
I'm using cygwin, and it has the file /usr/include/asm/types.h.  The 
types.h
file in cygwin does not define __u64.  Because the compile uses the flag
-idirafter, the cygwin types.h is used in the include, hence an unkown
symbol compile error.  I fixed this problem in my local build by adding 
the
flag -ansi to CPPFLAGS in tools/makefile.  Is that appropriate or would 
you
recommend fixing it another way??

Thanks,
Brian
________________________________________________________________________
More new features than ever.  Check out the new AIM(R) Mail ! - 
http://webmail.aim.com

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [U-Boot-Users] Problems Building u-boot-1.3.1
@ 2007-12-13 21:00 raptorbrino at aim.com
  2007-12-13 22:07 ` Wolfgang Denk
  0 siblings, 1 reply; 11+ messages in thread
From: raptorbrino at aim.com @ 2007-12-13 21:00 UTC (permalink / raw)
  To: u-boot

After a gentle slap in the face by Markus about my choice of
OS and a thorough beat down by Wolfgang about my inexperienced
message posting style I'm back for more punishment!  I tremble
with every character I type, but to all Cygiwn users out there,
I propose the following fix for the cygwin build problem.  This
should allow Linux users to be happy and allow cygwin users to
build without error, albeit penalize them for using the
inadequate Windows OS!  Damn I hope I did this right.

diff -Naur old/tools/Makefile new/tools/Makefile
--- old/tools/Makefile  2007-12-06 01:21:19.000000000 -0800
+++ new/tools/Makefile  2007-12-13 12:22:15.796875000 -0800
@@ -97,6 +97,7 @@
 #
 ifeq ($(HOSTOS),cygwin)
 SFX = .exe
+HOST_CFLAGS += -ansi
 else
 SFX =
 endif






________________________________________________________________________
More new features than ever.  Check out the new AIM(R) Mail ! - 
http://webmail.aim.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-01-09 14:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-12 20:56 [U-Boot-Users] Problems Building u-boot-1.3.1 raptorbrino at aim.com
2007-12-13  8:10 ` Markus Klotzbücher
2007-12-13 18:51   ` raptorbrino at aim.com
2007-12-13 18:58     ` Wolfgang Denk
2007-12-13 19:55     ` Ben Warren
  -- strict thread matches above, loose matches on Subject: below --
2007-12-13 21:00 raptorbrino at aim.com
2007-12-13 22:07 ` Wolfgang Denk
2007-12-14  0:36   ` raptorbrino at aim.com
2007-12-14  2:23   ` raptorbrino at aim.com
2008-01-03 18:29     ` Jon Loeliger
2008-01-09 14:07     ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox