All of lore.kernel.org
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] common: env_flags: include common.h even for HOST_CC
Date: Wed, 3 Feb 2016 14:41:28 +0100	[thread overview]
Message-ID: <20160203144128.2a160dd6@lilith> (raw)
In-Reply-To: <1454503371-15918-3-git-send-email-pbrobinson@gmail.com>

Hello Peter,

On Wed,  3 Feb 2016 12:42:51 +0000, Peter Robinson
<pbrobinson@gmail.com> wrote:
> When compiling with gcc 6 we get the following error due to ARRAY_SIZE being
> defined elsewhere.
> 
> common/env_flags.c:155: undefined reference to `ARRAY_SIZE'
> 
> Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
> ---
>  common/env_flags.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/common/env_flags.c b/common/env_flags.c
> index 9c3aed1..696adef 100644
> --- a/common/env_flags.c
> +++ b/common/env_flags.c
> @@ -7,6 +7,7 @@
>  
>  #include <linux/string.h>
>  #include <linux/ctype.h>
> +#include <common.h>
>  
>  #ifdef USE_HOSTCC /* Eliminate "ANSI does not permit..." warnings */
>  #include <stdint.h>
> @@ -16,7 +17,6 @@
>  #include <env_flags.h>
>  #define getenv fw_getenv
>  #else
> -#include <common.h>
>  #include <environment.h>
>  #endif

How come this happens only with gcc-6? Previous compilers surely did not
'guess' the proper value of ARRAY_SIZE, right?

> -- 
> 2.5.0
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

Amicalement,
-- 
Albert.

  reply	other threads:[~2016-02-03 13:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-03 12:42 [U-Boot] (no subject) Peter Robinson
2016-02-03 12:42 ` [U-Boot] [PATCH 1/3] Copy gcc5 over to compiler-gcc6.h as a beginning of support Peter Robinson
2016-02-03 12:42 ` [U-Boot] [PATCH 2/3] common: env_flags: include common.h even for HOST_CC Peter Robinson
2016-02-03 13:41   ` Albert ARIBAUD [this message]
2016-02-03 16:11     ` Peter Robinson
2016-02-03 17:53       ` Albert ARIBAUD
2016-02-03 19:14         ` Tom Rini
2016-02-15 22:34   ` Tom Rini
2016-02-16 11:19     ` Peter Robinson
2016-02-16 12:18       ` Tom Rini
2016-02-03 13:17 ` [U-Boot] your mail Tom Rini
2016-02-03 13:20   ` Peter Robinson

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=20160203144128.2a160dd6@lilith \
    --to=albert.u.boot@aribaud.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.