Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Khem Raj <raj.khem@gmail.com>, openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] grub2: Disable address-of-packed-member warnings
Date: Wed, 06 Feb 2019 20:23:52 +0000	[thread overview]
Message-ID: <9aec20825c1b3b664ee9662ad10915994e4b2cd8.camel@linuxfoundation.org> (raw)
In-Reply-To: <20190206084444.16250-1-raj.khem@gmail.com>

On Wed, 2019-02-06 at 00:44 -0800, Khem Raj wrote:
> gcc9 has turned this warning into error when -Werror is used, lets
> paper
> it over by turning it into a warning for now
> 
> Fixes
> error: taking address of packed member of 'struct head' may result in
> an unaligned pointer value [-Werror=address-of-packed-member]
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/recipes-bsp/grub/grub2.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-bsp/grub/grub2.inc b/meta/recipes-
> bsp/grub/grub2.inc
> index 8e0f86217c..28e1c210e8 100644
> --- a/meta/recipes-bsp/grub/grub2.inc
> +++ b/meta/recipes-bsp/grub/grub2.inc
> @@ -60,7 +60,7 @@ BUILD_CPPFLAGS = ""
>  BUILD_CFLAGS = ""
>  BUILD_CXXFLAGS = ""
>  BUILD_LDFLAGS = ""
> -
> +CPPFLAGS += "-Wno-error=address-of-packed-member"
>  do_configure_prepend() {
>  	# The grub2 configure script uses variables such as
> TARGET_CFLAGS etc
>  	# for its own purposes. Remove the OE versions from the
> environment to

This failed all over the place, e.g.:

https://autobuilder.yoctoproject.org/typhoon/#/builders/48/builds/264

Cheers,

Richard





  reply	other threads:[~2019-02-06 20:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-06  8:44 [PATCH] grub2: Disable address-of-packed-member warnings Khem Raj
2019-02-06 20:23 ` Richard Purdie [this message]
2019-02-06 20:48   ` Khem Raj

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=9aec20825c1b3b664ee9662ad10915994e4b2cd8.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    /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