public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Building under Cygwin - "-ansi" flag?
@ 2014-05-08 11:49 Vasili Galka
  2014-05-09 15:08 ` Tom Rini
  2014-06-06 10:58 ` Masahiro Yamada
  0 siblings, 2 replies; 11+ messages in thread
From: Vasili Galka @ 2014-05-08 11:49 UTC (permalink / raw)
  To: u-boot

Hi,

I'm building u-boot (am335x_evm config) using arm-none-eabi toolchain
under Cygwin. When trying to build unmodified v2014.04 tag I get some
errors. However, if I remove the "-ansi" flag from the Makefile,
everything builds fine:

-ifeq ($(HOSTOS),cygwin)
-HOSTCFLAGS    += -ansi
-endif

I tried tracking down where those lines came from and why building
under Cygwin requires separate treatment. I found our this originates
from the following commit (dated Jan 2008):

  SHA-1: 883e3925d99a8dd69c5b0201cba5b1887f88f95c

  * Fix build problems under Cygwin

  This patch allows u-boot to build without error in a cygwin
  environment.  Cygwin does not define __u64 in it's
  include/asm/types.h file.  The -idirafter flag in the u-boot
  build causes the inclusion of the cygwin types.h file as opposed
  to u-bot/include/asm/types.h file which does define __u64.
  Subsequently, sha1.c compile fails due to unknown symbol.

  Signed-off-by: Brian Miller <raptorbrino@netscape.net>

This comment does not really explain why "-ansi" flag is required.
Personally, I don't see any reason for it.

Maybe it should be removed at all?

Best,
Vasili

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

end of thread, other threads:[~2014-06-06 12:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-08 11:49 [U-Boot] Building under Cygwin - "-ansi" flag? Vasili Galka
2014-05-09 15:08 ` Tom Rini
     [not found]   ` <CA+gZxsNyypaz+Qf2DyDDX0tQY=+dr6J=ym2joKfJS9GqcnwNTg@mail.gmail.com>
2014-05-19  9:45     ` Vasili Galka
2014-05-20 18:06       ` Jeroen Hofstee
2014-05-21  8:50         ` Vasili Galka
2014-05-22 18:27           ` Jeroen Hofstee
2014-06-05 12:51             ` Vasili Galka
2014-06-06 10:43               ` Masahiro Yamada
2014-06-06 12:13                 ` Vasili Galka
2014-06-06 10:42       ` Masahiro Yamada
2014-06-06 10:58 ` Masahiro Yamada

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