From patchwork Thu Aug 25 21:01:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 74741 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1043080qga; Thu, 25 Aug 2016 14:09:32 -0700 (PDT) X-Received: by 10.98.34.151 with SMTP id p23mr20341980pfj.102.1472159372248; Thu, 25 Aug 2016 14:09:32 -0700 (PDT) Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id x126si17240913pfb.249.2016.08.25.14.09.32; Thu, 25 Aug 2016 14:09:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id EB65F7326D; Thu, 25 Aug 2016 21:09:29 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mail.openembedded.org (Postfix) with ESMTP id 6260B7325A for ; Thu, 25 Aug 2016 21:09:24 +0000 (UTC) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP; 25 Aug 2016 13:59:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,577,1464678000"; d="scan'208";a="871144485" Received: from timo-fedora.jf.intel.com ([10.7.201.162]) by orsmga003.jf.intel.com with ESMTP; 25 Aug 2016 13:59:49 -0700 From: Tim Orling To: openembedded-core@lists.openembedded.org Date: Thu, 25 Aug 2016 14:01:18 -0700 Message-Id: <1472158878-25011-2-git-send-email-timothy.t.orling@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472158878-25011-1-git-send-email-timothy.t.orling@linux.intel.com> References: <1472158878-25011-1-git-send-email-timothy.t.orling@linux.intel.com> Subject: [OE-core] [krogoth][PATCH 1/1] lzop: Fix build with gcc-6 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Khem Raj Signed-off-by: Khem Raj Signed-off-by: Tim Orling --- .../recipes-support/lzop/lzop/lzop-1.03-gcc6.patch | 37 ++++++++++++++++++++++ meta/recipes-support/lzop/lzop_1.03.bb | 6 ++-- 2 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 meta/recipes-support/lzop/lzop/lzop-1.03-gcc6.patch -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-support/lzop/lzop/lzop-1.03-gcc6.patch b/meta/recipes-support/lzop/lzop/lzop-1.03-gcc6.patch new file mode 100644 index 0000000..72b3397 --- /dev/null +++ b/meta/recipes-support/lzop/lzop/lzop-1.03-gcc6.patch @@ -0,0 +1,37 @@ +gcc-6 has additional errors e.g. + +./test.c:1:12: error: variably modified '__acc_cta' at file scope + extern int __acc_cta[1-2*!((1l << (8*8 -1)) < 0)]; + ^~~~~~~~~ + +This is rightly pointed out since that index is undefined + +Signed-off-by: Khem Raj +Upstream-Status: Pending + +--- a/src/miniacc.h.orig 2016-02-10 16:09:23.247315866 +0100 ++++ a/src/miniacc.h 2016-02-10 16:12:14.973297054 +0100 +@@ -4469,12 +4469,12 @@ + #if defined(__MSDOS__) && defined(__TURBOC__) && (__TURBOC__ < 0x0150) + #elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC) + #else +- ACCCHK_ASSERT((1 << (8*SIZEOF_INT-1)) < 0) ++ ACCCHK_ASSERT((int)(1u << (8*SIZEOF_INT-1)) < 0) + #endif + ACCCHK_ASSERT((1u << (8*SIZEOF_INT-1)) > 0) + #if 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC) + #else +- ACCCHK_ASSERT((1l << (8*SIZEOF_LONG-1)) < 0) ++ ACCCHK_ASSERT((long)(1ul << (8*SIZEOF_LONG-1)) < 0) + #endif + ACCCHK_ASSERT((1ul << (8*SIZEOF_LONG-1)) > 0) + #if defined(acc_int16e_t) +@@ -4703,7 +4703,7 @@ + #elif 1 && (ACC_CC_LCC || ACC_CC_LCCWIN32) && !defined(ACCCHK_CFG_PEDANTIC) + #elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC) + #elif !(ACC_BROKEN_INTEGRAL_PROMOTION) && (SIZEOF_INT > 1) +- ACCCHK_ASSERT( (((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0) ++ ACCCHK_ASSERT( (int)((unsigned int)((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0) + #endif + #if (ACC_CC_BORLANDC && (__BORLANDC__ >= 0x0530) && (__BORLANDC__ < 0x0560)) + # pragma option pop diff --git a/meta/recipes-support/lzop/lzop_1.03.bb b/meta/recipes-support/lzop/lzop_1.03.bb index 07d6289..649e724 100644 --- a/meta/recipes-support/lzop/lzop_1.03.bb +++ b/meta/recipes-support/lzop/lzop_1.03.bb @@ -15,15 +15,15 @@ SRC_URI = "http://www.lzop.org/download/${BP}.tar.gz \ file://acinclude.m4 \ file://x32_abi_miniacc_h.patch \ file://0001-use-static-inlines-as-the-external-inline-definition.patch \ + file://lzop-1.03-gcc6.patch \ " SRC_URI[md5sum] = "006c5e27fb78cdd14a628fdfa5aa1905" SRC_URI[sha256sum] = "c1425b8c77d49f5a679d5a126c90ea6ad99585a55e335a613cae59e909dbb2c9" inherit autotools -do_configure () { - ln -sf ../acinclude.m4 ${S}/acinclude.m4 - autotools_do_configure +do_configure_prepend () { + install -Dm 0644 ${WORKDIR}/acinclude.m4 ${S}/acinclude.m4 } BBCLASSEXTEND += "native nativesdk"