public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Building under Cygwin - "-ansi" flag?
Date: Fri, 9 May 2014 11:08:21 -0400	[thread overview]
Message-ID: <20140509150821.GI22182@bill-the-cat> (raw)
In-Reply-To: <CA+gZxsPATg_ygdL8D2Bj6EeUCgn=k86LN2S80xr+1nDsx9WxvA@mail.gmail.com>

On Thu, May 08, 2014 at 02:49:35PM +0300, Vasili Galka wrote:
> 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.

-ansi changes include order perhaps?

> Personally, I don't see any reason for it.
> 
> Maybe it should be removed at all?

Yes, but can you please test a few more builds?  If you're able to use
MAKEALL, please run MAKEALL -a arm

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140509/2ba29205/attachment.pgp>

  reply	other threads:[~2014-05-09 15:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-08 11:49 [U-Boot] Building under Cygwin - "-ansi" flag? Vasili Galka
2014-05-09 15:08 ` Tom Rini [this message]
     [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

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=20140509150821.GI22182@bill-the-cat \
    --to=trini@ti.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