From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id D3ABC60124 for ; Mon, 27 Jun 2016 02:00:39 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id u5R20cRY026470 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Sun, 26 Jun 2016 19:00:38 -0700 (PDT) Received: from [128.224.162.229] (128.224.162.229) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 26 Jun 2016 19:00:37 -0700 To: Khem Raj References: <1458264628.9397.10.camel@intel.com> <576CD0F6.2050408@windriver.com> From: ChenQi Message-ID: <577088D3.5060307@windriver.com> Date: Mon, 27 Jun 2016 10:00:51 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [128.224.162.229] Cc: "openembedded-core@lists.openembedded.org" Subject: Re: [PATCH v2] grub: add -Wno-error=trampolines to native CFLAGS X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 02:00:43 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit On 06/24/2016 10:04 PM, Khem Raj wrote: > On Thu, Jun 23, 2016 at 11:19 PM, ChenQi wrote: >> Hi, >> >> Is the error still there for gcc6 without this option for CFLAGS? >> The problem is that gcc on some old hosts don't support this option. > how old is the host. We should start recommending minimum required GCC > version on build host. > Sometimes a newer gcc is available for older distros too as alternative package. That is centos6. Best Regards, Chen Qi >> Best Regards, >> Chen Qi >> >> On 03/18/2016 09:30 AM, Randle, William C wrote: >>> Previous patch was not against master. Updated against master branch. >>> >>> Fixes YOCTO 9201 >>> Adds -Wno-error=trampolines to native CFLAGS prevent multiple compile >>> errors when using gcc 5.3.0 for gentoo. >>> >>> Signed-off-by: Bill Randle >>> --- >>> 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 4e80e18..ca73234 100644 >>> --- a/meta/recipes-bsp/grub/grub-efi_2.00.bb >>> +++ b/meta/recipes-bsp/grub/grub-efi_2.00.bb >>> @@ -35,6 +35,10 @@ EXTRA_OECONF = "--with-platform=efi >>> --disable-grub-mkfont \ >>> EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', >>> '--enable-largefile ac_cv_sizeof_off_t=8', '--disable-largefile', d)}" >>> +# 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.5.0 >> >> -- >> _______________________________________________ >> Openembedded-core mailing list >> Openembedded-core@lists.openembedded.org >> http://lists.openembedded.org/mailman/listinfo/openembedded-core