From: "Randle, William C" <william.c.randle@intel.com>
To: "openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>
Subject: [PATCH] grub: add -Wno-error=trampolines to native CFLAGS
Date: Fri, 18 Mar 2016 01:09:17 +0000 [thread overview]
Message-ID: <1458263357.9397.6.camel@intel.com> (raw)
Fixes YOCTO 9201.
Adds -Wno-error=trampolines to native CFLAGS prevent multiple compile
errors when using gcc 5.3.0 for gentoo.
This is a less "invasive" fix than the one proposed earlier by
Martin Jansa and, in my testing, solves the problem.
Signed-off-by: Bill Randle <william.c.randle@intel.com>
---
meta/recipes-bsp/grub/grub-efi_2.00.bb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/recipes-bsp/grub/grub-efi_2.00.bb b/meta/recipes-bsp/grub/grub-efi_2.00.bb
index ecc6c9a..58ef61e 100644
--- a/meta/recipes-bsp/grub/grub-efi_2.00.bb
+++ b/meta/recipes-bsp/grub/grub-efi_2.00.bb
@@ -33,6 +33,10 @@ EXTRA_OECONF = "--with-platform=efi --disable-grub-mkfont \
--enable-efiemu=no --program-prefix='' \
--enable-liblzma=no --enable-device-mapper=no --enable-libzfs=no"
+# ldm.c:114:7: error: trampoline generated for nested function 'hook' [-Werror=trampolines]
+# and many other places in the grub code when compiled with some native gcc 5.3 compilers
+CFLAGS_append_class-native = " -Wno-error=trampolines"
+
do_install_class-native() {
install -d ${D}${bindir}
install -m 755 grub-mkimage ${D}${bindir}
--
2.7.2
reply other threads:[~2016-03-18 1:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1458263357.9397.6.camel@intel.com \
--to=william.c.randle@intel.com \
--cc=openembedded-core@lists.openembedded.org \
/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