From patchwork Wed Feb 13 17:31:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 158238 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp328860jaa; Wed, 13 Feb 2019 09:31:29 -0800 (PST) X-Google-Smtp-Source: AHgI3IYqRadfzK3Nf4AQV9okr1nwKjItdLKwNZh+btHX09Czm+8Ju/n8QdD8skch2UoRIUB09TyO X-Received: by 2002:a17:902:e18c:: with SMTP id cd12mr1479616plb.279.1550079089925; Wed, 13 Feb 2019 09:31:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550079089; cv=none; d=google.com; s=arc-20160816; b=YsXbYUrKEMtNnmyr1N28HLJt6Fik3VsXxoJdOPc9Gkgva6JgnuGJiwNQeLzafiiOF5 rrnySL+TOUgUS+2reC/qjBLpkPmTlnczz+EdrwJz6BxOFieVPBCqdr5LXVvkJvHNzsDg TgpqqnQK4LnzfJlcAdY39qTekhVv1jc3Mr/FRM7A7HzAbPlMv5r9gAVpkZTlMa5GyG2w 1bORGacLthg0Ig//56fQ6MeHUXX2OlKDNVD1+p+hSJ6HTHtR0voxzWxNTpUvpO3UI53A gprPSc6XIZYT/x3vgnPITWQxLtFwTHMRgvrad9ZxJCdPaiayarAG/SvzarcieerhUrt0 jaRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=jrB9+j8irEwrRQ3iYMUbd5PiRS8Yot28vT20Kbpss2I=; b=WrJfzomu/ny+9Om/FKoZasVFNk9A7HQGjsl/3pSrCvE9N6F0tmr4amZNrjIv+eDw9Z b+c8FCmZOyoBpK3PRjq9TTj5iech2QZoo6H0we72Wj2OMBRnZEKziiqBqUjXLSXv47CK l+bxWYlvKyFJH9TmvKvi3vrun07FUSBhlzPbI+tVQT1Eu88pZa+7Y98eZ4oJu0BHwb/C IPL91A1uyiuSE9LYuvot3gEYvvSh4rtHUgsPCGJVUFNqmaZ3vY9EQ9qdhvoCIpHoH+04 Mm+gIQXuCfG1LRxTU5+9qem3NqxeLl8PJiMwlcYJZINReZiXovb9sUyZaKV94+wwkS3D igyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=YcOuAuRn; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id s123si15565167pgs.93.2019.02.13.09.31.29; Wed, 13 Feb 2019 09:31:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=YcOuAuRn; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 71D0C7BF9D; Wed, 13 Feb 2019 17:31:26 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mail.openembedded.org (Postfix) with ESMTP id 48B416BCA9 for ; Wed, 13 Feb 2019 17:31:25 +0000 (UTC) Received: by mail-pl1-f178.google.com with SMTP id e5so1494880plb.5 for ; Wed, 13 Feb 2019 09:31:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ogx74y939QU+nJxNPOCM7KYjhWYoswUeFYxFGBNjr9U=; b=YcOuAuRnkBZmfSFN95x1igyS5OOiBbU4+yMa0RsZpc9Rp1PmLklFvrW552OxBaYp15 m8Ei0v40YwlvAKLnG1a6cn7kompgNqXfZO8ym4ZXwIkuivIoqZ1fDGewGooJNpcsvQ57 Ff2XXGAW7UIIcUNEloffqYLsbrf076DP4m4M2DNDw9TZYiYpo7uqWsjZHRwWX6WnVIeR 7KBFAgLcnyaEZQf5rBeYUyxWbK85DL4QDsI0JPZgDKp4Dfe+igyyUlNrg4rOvhNFDvUR P11bL/8VYx6Dtq50YB9+CnDl9/E7PgIuWSvIGZz7dWHSflOtPpzCCDCQJ+9kZS0keQgE 92LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ogx74y939QU+nJxNPOCM7KYjhWYoswUeFYxFGBNjr9U=; b=EXs4Bo/JPdRIZwEcWLpajkvtq9Vh8d45l1M1J9mmhoRReSEptWtHzRT9bjNukRMqhW 4AxtY7MTPRSdYhsvRvz8ehChO5czPt9YgCX6nugRbG80q+QOZqi5Fn8avyH8dCl2yat5 6tVbuR+T7fGP2HAAowuQE7dOSdb+whpho0O10lyP1xOHr3GZ82WRL5rOu7Gu31NBg3sN XYClhzegVcFarfpr7ZIUdMIsIZ+LGFHMTt7aCbM7GG9mCS6YgakNPttS5KtPDz33tdhP /Jd/FRIcw+4briz2Fq/hNAhwaA5sww6QVl7Mk+SIFgnhmHTXCV+tuMn8cnnd98tXpvYq CaHw== X-Gm-Message-State: AHQUAub0Rem78I6xHWR6T3BAQw0iUM781a8VfH3SmueXYZqBEPEV/2eR ObbAhTFdtFDP14TQqm9afrGLJooC X-Received: by 2002:a17:902:145:: with SMTP id 63mr1595010plb.256.1550079085426; Wed, 13 Feb 2019 09:31:25 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::dc44]) by smtp.gmail.com with ESMTPSA id h15sm21528945pgl.43.2019.02.13.09.31.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 09:31:24 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 13 Feb 2019 09:31:13 -0800 Message-Id: <20190213173118.44597-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [oe] [meta-multimedia][PATCH 1/6] liboil: Fix build with clang X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...onvert-fldmia-fstmia-instructions-to.patch | 257 ++++++++++++++++++ .../recipes-support/liboil/liboil_0.3.17.bb | 3 +- 2 files changed, 259 insertions(+), 1 deletion(-) create mode 100644 meta-multimedia/recipes-support/liboil/liboil-0.3.17/0001-math_vfp_asm.S-Convert-fldmia-fstmia-instructions-to.patch -- 2.20.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-multimedia/recipes-support/liboil/liboil-0.3.17/0001-math_vfp_asm.S-Convert-fldmia-fstmia-instructions-to.patch b/meta-multimedia/recipes-support/liboil/liboil-0.3.17/0001-math_vfp_asm.S-Convert-fldmia-fstmia-instructions-to.patch new file mode 100644 index 0000000000..05903807e0 --- /dev/null +++ b/meta-multimedia/recipes-support/liboil/liboil-0.3.17/0001-math_vfp_asm.S-Convert-fldmia-fstmia-instructions-to.patch @@ -0,0 +1,257 @@ +From 02a138f0b247fb08b799f32c49b35912b2921321 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 12 Feb 2019 11:38:46 -0800 +Subject: [PATCH] math_vfp_asm.S: Convert fldmia/fstmia instructions to UAL + syntax for clang + +This is flagged with clang internal assembler, since it does not allow +non UAL syntax + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + liboil/arm/math_vfp_asm.S | 94 +++++++++++++++++++-------------------- + 1 file changed, 47 insertions(+), 47 deletions(-) + +diff --git a/liboil/arm/math_vfp_asm.S b/liboil/arm/math_vfp_asm.S +index ae5c803..3dd14d9 100644 +--- a/liboil/arm/math_vfp_asm.S ++++ b/liboil/arm/math_vfp_asm.S +@@ -25,7 +25,7 @@ + */ + + #if defined(__VFP_FP__) && !defined(__SOFTFP__) +-/* ++/* + ** compile with -mcpu=arm1136j-s -mfpu=vfp -mfloat-abi=softfp + ** + ** void vfp_add_f32 (float *d, const float *s1, const float *s2, int n); +@@ -48,10 +48,10 @@ + ands ip, r3, #7; /* ip = n % 8 */ \ + beq vfp_ ## fname ## _unroll; /* if ip == 0 goto prep_loop2 */ \ + vfp_ ## fname ## _loop1: \ +- fldmias r1!, {s0}; \ +- fldmias r2!, {s1}; \ ++ vldmia.f32 r1!, {s0}; \ ++ vldmia.f32 r2!, {s1}; \ + ## finst ##s s2, s0, s1; \ +- fstmias r0!, {s2}; \ ++ vstmia.f32 r0!, {s2}; \ + subs ip, ip, #1; \ + bne vfp_ ## fname ## _loop1; \ + vfp_ ## fname ## _unroll: /* unroll by 8 */ \ +@@ -62,15 +62,15 @@ + orr fp, lr, fp, lsl #16; /* set vector lenght to 8 */ \ + fmxr fpscr, fp; \ + vfp_ ## fname ## _loop2: \ +- fldmias r1!, {s8, s9, s10, s11, s12, s13, s14, s15}; \ +- fldmias r2!, {s16, s17, s18, s19, s20, s21, s22, s23}; \ ++ vldmia.f32 r1!, {s8, s9, s10, s11, s12, s13, s14, s15}; \ ++ vldmia.f32 r2!, {s16, s17, s18, s19, s20, s21, s22, s23}; \ + ## finst ##s s24, s8, s16; \ +- fstmias r0!, {s24, s25, s26, s27, s28, s29, s30, s31}; \ ++ vstmia.f32 r0!, {s24, s25, s26, s27, s28, s29, s30, s31}; \ + subs ip, ip, #1; \ + bne vfp_ ## fname ## _loop2; \ + fmxr fpscr, lr; /* restore original fpscr */ \ + vfp_ ## fname ## _end: \ +- ldmia sp!, {fp, pc}; /* recovering from stack and return */ ++ ldmia sp!, {fp, pc}; /* recovering from stack and return */ + + #define UNROLL_F64_TEMPLATE(fname,finst) \ + .global vfp_ ## fname ## ; \ +@@ -79,10 +79,10 @@ + ands ip, r3, #3; /* ip = n % 3 */ \ + beq vfp_ ## fname ## _unroll; /* if ip == 0 goto prep_loop2 */ \ + vfp_ ## fname ## _loop1: \ +- fldmiad r1!, {d0}; \ +- fldmiad r2!, {d1}; \ ++ vldmia.f64 r1!, {d0}; \ ++ vldmia.f64 r2!, {d1}; \ + ## finst ##d d2, d0, d1; \ +- fstmiad r0!, {d2}; \ ++ vstmia.f64 r0!, {d2}; \ + subs ip, ip, #1; \ + bne vfp_ ## fname ## _loop1; \ + vfp_ ## fname ## _unroll: /* unroll by 4 */ \ +@@ -93,15 +93,15 @@ + orr fp, lr, fp, lsl #16; /* set vector lenght to 8 */ \ + fmxr fpscr, fp; \ + vfp_ ## fname ## _loop2: \ +- fldmiad r1!, {d4, d5, d6, d7}; \ +- fldmiad r2!, {d8, d9, d10, d11}; \ ++ vldmia.f64 r1!, {d4, d5, d6, d7}; \ ++ vldmia.f64 r2!, {d8, d9, d10, d11}; \ + ## finst ##d d12, d4, d8; \ +- fstmiad r0!, {d12, d13, d14, d15}; \ ++ vstmia.f64 r0!, {d12, d13, d14, d15}; \ + subs ip, ip, #1; \ + bne vfp_ ## fname ## _loop2; \ + fmxr fpscr, lr; /* restore original fpscr */ \ + vfp_ ## fname ## _end: \ +- ldmia sp!, {fp, pc}; /* recovering from stack and return */ ++ ldmia sp!, {fp, pc}; /* recovering from stack and return */ + + .align 2 + UNROLL_F32_TEMPLATE(add_f32,fadd); +@@ -119,7 +119,7 @@ UNROLL_F64_TEMPLATE(subtract_f64,fsub); + #undef UNROLL_F32_TEMPLATE + #undef UNROLL_F64_TEMPLATE + +-/* ++/* + ** + ** void vfp_scalaradd_f32_ns (float *d, const float *s1, const float *s2_1, int n); + ** void vfp_scalaradd_f64_ns (double *d, const double *s1, const double *s2_1, int n); +@@ -133,13 +133,13 @@ UNROLL_F64_TEMPLATE(subtract_f64,fsub); + .global vfp_ ## fname ## ; \ + vfp_ ## fname ## : \ + stmdb sp!, {fp, lr}; /* save registers to stack */ \ +- fldmias r2, {s1}; /* load scalar value */ \ ++ vldmia.f32 r2, {s1}; /* load scalar value */ \ + ands ip, r3, #7; /* ip = n % 8 */ \ + beq vfp_ ## fname ## _unroll; /* if ip == 0 goto prep_loop2 */ \ + vfp_ ## fname ## _loop1: \ +- fldmias r1!, {s0}; \ ++ vldmia.f32 r1!, {s0}; \ + ## finst ##s s2, s0, s1; \ +- fstmias r0!, {s2}; \ ++ vstmia.f32 r0!, {s2}; \ + subs ip, ip, #1; \ + bne vfp_ ## fname ## _loop1; \ + vfp_ ## fname ## _unroll: /* unroll by 8 */ \ +@@ -150,26 +150,26 @@ UNROLL_F64_TEMPLATE(subtract_f64,fsub); + orr fp, lr, fp, lsl #16; /* set vector lenght to 8 */ \ + fmxr fpscr, fp; \ + vfp_ ## fname ## _loop2: \ +- fldmias r1!, {s8, s9, s10, s11, s12, s13, s14, s15}; \ ++ vldmia.f32 r1!, {s8, s9, s10, s11, s12, s13, s14, s15}; \ + ## finst ##s s24, s8, s1; \ +- fstmias r0!, {s24, s25, s26, s27, s28, s29, s30, s31}; \ ++ vstmia.f32 r0!, {s24, s25, s26, s27, s28, s29, s30, s31}; \ + subs ip, ip, #1; \ + bne vfp_ ## fname ## _loop2; \ + fmxr fpscr, lr; /* restore original fpscr */ \ + vfp_ ## fname ## _end: \ +- ldmia sp!, {fp, pc}; /* recovering from stack and return */ ++ ldmia sp!, {fp, pc}; /* recovering from stack and return */ + + #define UNROLL_F64_TEMPLATE(fname,finst) \ + .global vfp_ ## fname ## ; \ + vfp_ ## fname ## : \ + stmdb sp!, {fp, lr}; /* save registers to stack */ \ +- fldmiad r2, {d1}; /* load scalar value */ \ ++ vldmia.f64 r2, {d1}; /* load scalar value */ \ + ands ip, r3, #3; /* ip = n % 3 */ \ + beq vfp_ ## fname ## _unroll; /* if ip == 0 goto prep_loop2 */ \ + vfp_ ## fname ## _loop1: \ +- fldmiad r1!, {d0}; \ ++ vldmia.f64 r1!, {d0}; \ + ## finst ##d d2, d0, d1; \ +- fstmiad r0!, {d2}; \ ++ vstmia.f64 r0!, {d2}; \ + subs ip, ip, #1; \ + bne vfp_ ## fname ## _loop1; \ + vfp_ ## fname ## _unroll: /* unroll by 4 */ \ +@@ -180,14 +180,14 @@ UNROLL_F64_TEMPLATE(subtract_f64,fsub); + orr fp, lr, fp, lsl #16; /* set vector lenght to 4 */ \ + fmxr fpscr, fp; \ + vfp_ ## fname ## _loop2: \ +- fldmiad r1!, {d4, d5, d6, d7}; \ ++ vldmia.f64 r1!, {d4, d5, d6, d7}; \ + ## finst ##d d12, d4, d1; \ +- fstmiad r0!, {d12, d13, d14, d15}; \ ++ vstmia.f64 r0!, {d12, d13, d14, d15}; \ + subs ip, ip, #1; \ + bne vfp_ ## fname ## _loop2; \ + fmxr fpscr, lr; /* restore original fpscr */ \ + vfp_ ## fname ## _end: \ +- ldmia sp!, {fp, pc}; /* recovering from stack and return */ ++ ldmia sp!, {fp, pc}; /* recovering from stack and return */ + + UNROLL_F32_TEMPLATE(scalaradd_f32_ns,fadd); + UNROLL_F64_TEMPLATE(scalaradd_f64_ns,fadd); +@@ -198,7 +198,7 @@ UNROLL_F64_TEMPLATE(scalarmultiply_f64_ns,fmul); + #undef UNROLL_F32_TEMPLATE + #undef UNROLL_F64_TEMPLATE + +-/* ++/* + ** + ** void vfp_abs_f32_f32_ns(float *d, const float *s, int n); + ** void vfp_abs_f64_f64_ns(double *d, const double *s, int n); +@@ -215,9 +215,9 @@ UNROLL_F64_TEMPLATE(scalarmultiply_f64_ns,fmul); + ands ip, r2, #7; /* ip = n % 8 */ \ + beq vfp_ ## fname ## _unroll; /* if ip == 0 goto prep_loop2 */ \ + vfp_ ## fname ## _loop1: \ +- fldmias r1!, {s0}; \ +- ## finst ##s s2, s0; \ +- fstmias r0!, {s2}; \ ++ vldmia.f32 r1!, {s0}; \ ++ ## finst ##.f32 s2, s0; \ ++ vstmia.f32 r0!, {s2}; \ + subs ip, ip, #1; \ + bne vfp_ ## fname ## _loop1; \ + vfp_ ## fname ## _unroll: /* unroll by 8 */ \ +@@ -228,14 +228,14 @@ UNROLL_F64_TEMPLATE(scalarmultiply_f64_ns,fmul); + orr fp, lr, fp, lsl #16; /* set vector lenght to 8 */ \ + fmxr fpscr, fp; \ + vfp_ ## fname ## _loop2: \ +- fldmias r1!, {s8, s9, s10, s11, s12, s13, s14, s15}; \ +- ## finst ##s s24, s8; \ +- fstmias r0!, {s24, s25, s26, s27, s28, s29, s30, s31}; \ ++ vldmia.f32 r1!, {s8, s9, s10, s11, s12, s13, s14, s15}; \ ++ ## finst ##.f32 s24, s8; \ ++ vstmia.f32 r0!, {s24, s25, s26, s27, s28, s29, s30, s31}; \ + subs ip, ip, #1; \ + bne vfp_ ## fname ## _loop2; \ + fmxr fpscr, lr; /* restore original fpscr */ \ + vfp_ ## fname ## _end: \ +- ldmia sp!, {fp, pc}; /* recovering from stack and return */ ++ ldmia sp!, {fp, pc}; /* recovering from stack and return */ + + #define UNROLL_F64_TEMPLATE(fname,finst) \ + .global vfp_ ## fname ## ; \ +@@ -244,9 +244,9 @@ UNROLL_F64_TEMPLATE(scalarmultiply_f64_ns,fmul); + ands ip, r2, #3; /* ip = n % 3 */ \ + beq vfp_ ## fname ## _unroll; /* if ip == 0 goto prep_loop2 */ \ + vfp_ ## fname ## _loop1: \ +- fldmiad r1!, {d0}; \ +- ## finst ##d d2, d0; \ +- fstmiad r0!, {d2}; \ ++ vldmia.f64 r1!, {d0}; \ ++ ## finst ##.f64 d2, d0; \ ++ vstmia.f64 r0!, {d2}; \ + subs ip, ip, #1; \ + bne vfp_ ## fname ## _loop1; \ + vfp_ ## fname ## _unroll: /* unroll by 4 */ \ +@@ -257,20 +257,20 @@ UNROLL_F64_TEMPLATE(scalarmultiply_f64_ns,fmul); + orr fp, lr, fp, lsl #16; /* set vector lenght to 4 */ \ + fmxr fpscr, fp; \ + vfp_ ## fname ## _loop2: \ +- fldmiad r1!, {d4, d5, d6, d7}; \ +- ## finst ##d d12, d4; \ +- fstmiad r0!, {d12, d13, d14, d15}; \ ++ vldmia.f64 r1!, {d4, d5, d6, d7}; \ ++ ## finst ##.f64 d12, d4; \ ++ vstmia.f64 r0!, {d12, d13, d14, d15}; \ + subs ip, ip, #1; \ + bne vfp_ ## fname ## _loop2; \ + fmxr fpscr, lr; /* restore original fpscr */ \ + vfp_ ## fname ## _end: \ +- ldmia sp!, {fp, pc}; /* recovering from stack and return */ ++ ldmia sp!, {fp, pc}; /* recovering from stack and return */ + +-UNROLL_F32_TEMPLATE(abs_f32_f32_ns,fabs); +-UNROLL_F64_TEMPLATE(abs_f64_f64_ns,fabs); ++UNROLL_F32_TEMPLATE(abs_f32_f32_ns,vabs); ++UNROLL_F64_TEMPLATE(abs_f64_f64_ns,vabs); + +-UNROLL_F32_TEMPLATE(negative_f32,fneg); +-UNROLL_F64_TEMPLATE(negative_f64,fneg); ++UNROLL_F32_TEMPLATE(negative_f32,vneg); ++UNROLL_F64_TEMPLATE(negative_f64,vneg); + + #undef UNROLL_F32_TEMPLATE + #undef UNROLL_F64_TEMPLATE diff --git a/meta-multimedia/recipes-support/liboil/liboil_0.3.17.bb b/meta-multimedia/recipes-support/liboil/liboil_0.3.17.bb index 03b7785215..7e8aa1572a 100644 --- a/meta-multimedia/recipes-support/liboil/liboil_0.3.17.bb +++ b/meta-multimedia/recipes-support/liboil/liboil_0.3.17.bb @@ -17,7 +17,8 @@ SRC_URI = "http://liboil.freedesktop.org/download/${BPN}-${PV}.tar.gz \ file://fix-unaligned-whitelist.patch \ file://0001-Fix-enable-vfp-flag.patch \ file://liboil_fix_for_x32.patch \ - " + file://0001-math_vfp_asm.S-Convert-fldmia-fstmia-instructions-to.patch \ + " SRC_URI[md5sum] = "47dc734f82faeb2964d97771cfd2e701" SRC_URI[sha256sum] = "105f02079b0b50034c759db34b473ecb5704ffa20a5486b60a8b7698128bfc69" From patchwork Wed Feb 13 17:31:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 158239 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp329100jaa; Wed, 13 Feb 2019 09:31:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IYOprx6sif70uaRuztbTywSoepdj818NOHoEsRjTHMewJmVH2LH/jq2njbFfjllabkpUt8g X-Received: by 2002:a63:7909:: with SMTP id u9mr1433726pgc.243.1550079102038; Wed, 13 Feb 2019 09:31:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550079102; cv=none; d=google.com; s=arc-20160816; b=GDbhZqKXYv1l8G/8ZFM3z6NoGDK1tlP85+hPRoNfJG7VnDvryQDhw16FdOr9ohBcEC bjCacU3IZHU9PT+r0Mw1EUXEEp1L3+rrmt+yNhyKcjtJaO+q9JsuwRGUYyq4v0dWPi7L ydu1HiHJoEWaUbNQnEcDfBjHrMSEyzcMOCyYIdqov6weSXZgROfanFLDXRtx23cu2oXr MwuARW/GR88cy8QuYQ7HQ3jODUipBTjcIYotgfOffv6ccQyTy86QV3kpvKdlYuMTO00u cFUkWfsxIZyUgCWe7iwQOVHmxL1G0xFBGMry+FXqjNOCDbRxtrNm4QHExs7+loSzT245 Zv2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=TsjrvKTA7/wVNS0qpcSn+z6cFCTFuNStIDAJBrhPfVA=; b=mW5rokWtCXAMjSt8zQXQ0iqsXU47s/hum0b6HcHcTl2wblR+o5QFwWUOnTmmqMz1o/ wdht506LJmto81PN4TxnzzKdTPhAqDtx+uoy/OR8yJeH/AVcGPucBE70qEh5PGyRhRct 9OwcRnq2QETo24owEhjo4Vj82tnTlMxyD5q7d5W6grhJsKMaC/oS6YnvYiypEkz08Lxe JqRnk1NKqWaEQP+Y/EIegADRDdTuU1BiegZn7R3YCCpb9wdggEpJf/tgVHmuvZcrNYbB AahIKTnyKH7ixtGNddcloU2i/LiHnZNf2oHhf+Ue29lyBNb8HZSE+yCzodQ4PKLHq1B+ XTqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=s2nTWP0A; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id h35si6727584pgm.536.2019.02.13.09.31.41; Wed, 13 Feb 2019 09:31:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=s2nTWP0A; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 7CEB47C36A; Wed, 13 Feb 2019 17:31:38 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mail.openembedded.org (Postfix) with ESMTP id 8D0D56BCA9 for ; Wed, 13 Feb 2019 17:31:25 +0000 (UTC) Received: by mail-pl1-f173.google.com with SMTP id p4so1480933plq.11 for ; Wed, 13 Feb 2019 09:31:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=i41+8O1NHcKN8t9vqZBh5QvBWlJ4eftOK41i3bhQkxw=; b=s2nTWP0ATah6x+AqHKbJJg7NOCMEm88+FG7ncLtyH9iQ+OOsvkvJ0l2m1AzXHwCn1m XpM69AAEel+fPC/f0ihdf8OSFFQzoto5QpwUWrrmIBkGAYEzM2EZ/bOsQaZiMexeInZe yB85syWTTH4kVlMOzRS4qUP6pM3IeSYyLLTam+1P8DiyZh55ohLQaEF0QONB8tag8IQZ TW95EIn0jVDjDhmtEl8FGnVI1q9u9bSK331o0zhIIhrx2CMzthpi5oxPPzyL3dis13qn sOwLK2IsNHjAUmC5jqKzP8J+Ob/ECt0hhxHX+KqeKSrVfElbUeVGYcu9sDcnnDr4/zu3 z32A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=i41+8O1NHcKN8t9vqZBh5QvBWlJ4eftOK41i3bhQkxw=; b=nYtJnw19Jjyrxq9SesyACzMrXbifd6u3eR1ec4hvkzBDLj6czrPRowp/LaijfN4Ff0 ABuPlGnbma9WCqnREXmSoxiCrtbVGU3J/XkGaJBW4fAeIEUh/JKC/K2VeUwXVcNPfw9d 7mKdXE02qocswJvEZkhu13oaT3SrPTCGMtFFeCqqIPag7wOaQPMboHB300Ma9JP9neEf a8nF2HuDLm/sNrHh5Xo3nkZxJfqIRsEZqZc3+muA2GjkbvFcBzfkmJaoQlRmMvPLesP+ 6vpbMEnzGCLS0hAo7SdxYQPyJyrqVl3PGWNgB3AA0GulhQod+O+ZS6z2EP0UumN+4GeK mzxQ== X-Gm-Message-State: AHQUAuabW7LK8TWBv+Qk73X1LvZRE8sDgVxOq1AA92NNGbv9tzdVB9Lb FiZ4ZQ++KDnMULW8T6jrBFRdN/oI X-Received: by 2002:a17:902:a50e:: with SMTP id s14mr1569742plq.311.1550079086172; Wed, 13 Feb 2019 09:31:26 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::dc44]) by smtp.gmail.com with ESMTPSA id h15sm21528945pgl.43.2019.02.13.09.31.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 09:31:25 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 13 Feb 2019 09:31:14 -0800 Message-Id: <20190213173118.44597-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213173118.44597-1-raj.khem@gmail.com> References: <20190213173118.44597-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 2/6] gperftools: Use ARM ISA when using clang X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org It seemingly needs to be fixed in application, chromium also force ARM ISA for internal gperftools also see https://bugs.llvm.org/show_bug.cgi?id=31058 Fixes errors like below | ../git/src/base/atomicops-internals-arm-v6plus.h:228:8: error: instruction requires: arm-mode | "ldrexd %1, [%3]\n" | ^ Signed-off-by: Khem Raj --- meta-oe/recipes-support/gperftools/gperftools_2.7.bb | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/gperftools/gperftools_2.7.bb b/meta-oe/recipes-support/gperftools/gperftools_2.7.bb index e9fcc4cc98..c8b91278da 100644 --- a/meta-oe/recipes-support/gperftools/gperftools_2.7.bb +++ b/meta-oe/recipes-support/gperftools/gperftools_2.7.bb @@ -26,4 +26,5 @@ COMPATIBLE_HOST_mipsarch_libc-glibc = "null" # {standard input}:434: Error: lo register required -- `ldr pc,[sp]' # Makefile:4538: recipe for target 'src/base/libtcmalloc_la-linuxthreads.lo' failed ARM_INSTRUCTION_SET_armv5 = "arm" +ARM_INSTRUCTION_SET_toolchain-clang_arm = "arm" From patchwork Wed Feb 13 17:31:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 158240 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp329251jaa; Wed, 13 Feb 2019 09:31:50 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib59CnJQoL9batVKyFP+iPVuu3I862+YIwgWA5AXOP06QbVWhC/73AF3K7tyXWocCL3X3qy X-Received: by 2002:a63:1321:: with SMTP id i33mr1472351pgl.380.1550079110672; Wed, 13 Feb 2019 09:31:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550079110; cv=none; d=google.com; s=arc-20160816; b=QXudoI6hwhi2zLpvOEsdZAvXUHYkC4YciGpOYSdSISIjQ0qn9PbqBcC0Xq4o+2WK+H V5JiNUYF0R8a25eJrR3QhW3zlVrdK2C8oxzdHJ12jDRlJrjpEJKlBavXDp5Nydlo5klF yFeyHJaXKk8tB8bxoAtlVW9bENUCPf8NdexevAQVBv3fTPimoeQPpN2qBitHe99q/sE7 gGWZCE3/112ObjtGq1d8vWhXFnAAADyHKk6KvRScdT7wUZztz56+JBE8CWES/cohpUUN JgY1lvEfDeqXI0PYdWCJZoRDEfhVVt0p3yHjiiH/8jIC41fwmC1V4JXJkbsMig68uJ1p t+cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=zwML/1cBxWOCiSTCZIktRW9QRQJQKBU3evvtbzwE2IY=; b=EuL+RUTjnngFAhL0v14GsT5ZKL8RB0iV1hSA9iNz2sEBc90j2M2+4GHeSpnwGCD8O2 n7C6/OAMhAMYMlXbVO16xZUiFRaiCTnsgy0CotBqGkG2xtRfbK2Pryhiia5rvceQekm0 PJKeeoFXgfUbStDOWifIvavtbM5pI8bSkuMdzTx+yuxXa30OV6Xmy+WwrJaML7ZmoqOc siqzC4JsfndIKj71+0mkEMgE2o9fdybNiG7WYv8u5bE//E29FJU3SAbPDCD9E4x4HJnt wyP30DnUmR2cl/10jxvh1jGEZCTw9ir939ShumXkUA3Tu10qPV7AcRGamNSBJ6YrPHHI hfcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Akwho43e; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id e67si19305336pfh.212.2019.02.13.09.31.50; Wed, 13 Feb 2019 09:31:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Akwho43e; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id E20567C419; Wed, 13 Feb 2019 17:31:42 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mail.openembedded.org (Postfix) with ESMTP id 0DD0E6BCA9 for ; Wed, 13 Feb 2019 17:31:26 +0000 (UTC) Received: by mail-pl1-f181.google.com with SMTP id k15so1487347pls.8 for ; Wed, 13 Feb 2019 09:31:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6/Li278Bnvf94h+R2XUvZXibzGgIW28oxCAwAzpCu3Y=; b=Akwho43eZjZGcY2+5Ce3ut0byDNw48LGJuOl66AKDfJdM3ylT19IQnYacqiERv3/x/ UzNv91VDwRQmwYPxvK7v/uVi0uInGOhJdzbgp/ICiffvNDlqyxW28WVpG0JBpL/i4Rj7 aCoKks74jIjIKhcafM/8+TK0wEc1m0z9vRYKYJxetFrlvrf1azgx+dTyMN3kfFTuTRC0 rQTr0YblwaeEiRTUDDxPk3wNuG874ctv571I8wgn7BFMtqhAf7H4vTI3Jr+fB9s4H4jH Qfwk29YBL/GRkF9IvsSOrWyq3fYqOI1zhw7uR2bw55xi4xpz9cLgtSrEPQEZvtZHGHii 3YAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6/Li278Bnvf94h+R2XUvZXibzGgIW28oxCAwAzpCu3Y=; b=hJTjKYHcHVdTRV7v7Q757KbTDo0BZo2fnNkNAMjZn0FFbS7dtAalQORXJYX3HrDUfl LMMET5GGr3NFnKIi2oDdsAqzbHxUJfRsek/7SkYLNYb1LDCT9Wt04AjQu2nVGzbKLyZ7 JZUpx6jtJZ2pGJPxD2gZQ3O4nlJQ52MdcGPlHsUISwNir0vUrjqUfK1I4PUVfO4vCJcZ wQn7RoaPIx2JoLl0OrkZo6Jk2cMxhsSrawDEm2z8rOJR4Bg1WG7i2bXAklownxU2VCj9 XPPn5vJAfFVEJb3wEstlH89bhM4fTMvJ7bn2/gCjJhjFIeCrAIK6nfMzDd1Lip5fzAmx HbNA== X-Gm-Message-State: AHQUAuZQ6AO0uFTjepYro0Psom5XmEway57KL0wvwgLDmjbYvvSPH7fe /l+TUiq1tK3gRDRITmfcc8fPvzyw X-Received: by 2002:a17:902:724c:: with SMTP id c12mr1556499pll.144.1550079087452; Wed, 13 Feb 2019 09:31:27 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::dc44]) by smtp.gmail.com with ESMTPSA id h15sm21528945pgl.43.2019.02.13.09.31.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 09:31:26 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 13 Feb 2019 09:31:15 -0800 Message-Id: <20190213173118.44597-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213173118.44597-1-raj.khem@gmail.com> References: <20190213173118.44597-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 3/6] oprofile: Fix build with clang X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- meta-oe/recipes-kernel/oprofile/oprofile.inc | 1 + ...ace-sym_iterator-0-with-sym_iterator.patch | 131 ++++++++++++++++++ 2 files changed, 132 insertions(+) create mode 100644 meta-oe/recipes-kernel/oprofile/oprofile/0001-replace-sym_iterator-0-with-sym_iterator.patch -- 2.20.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-kernel/oprofile/oprofile.inc b/meta-oe/recipes-kernel/oprofile/oprofile.inc index 349e2bf543..515ea8faf7 100644 --- a/meta-oe/recipes-kernel/oprofile/oprofile.inc +++ b/meta-oe/recipes-kernel/oprofile/oprofile.inc @@ -25,6 +25,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ file://run-ptest \ file://root-home-dir.patch \ file://0001-Add-rmb-definition-for-NIOS2-architecture.patch \ + file://0001-replace-sym_iterator-0-with-sym_iterator.patch \ " UPSTREAM_CHECK_REGEX = "oprofile-(?P\d+(\.\d+)+)/" UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/oprofile/" diff --git a/meta-oe/recipes-kernel/oprofile/oprofile/0001-replace-sym_iterator-0-with-sym_iterator.patch b/meta-oe/recipes-kernel/oprofile/oprofile/0001-replace-sym_iterator-0-with-sym_iterator.patch new file mode 100644 index 0000000000..5fd23f809a --- /dev/null +++ b/meta-oe/recipes-kernel/oprofile/oprofile/0001-replace-sym_iterator-0-with-sym_iterator.patch @@ -0,0 +1,131 @@ +From b7c1a2e2b0f4657fe291324ca409224f3321c9ff Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 12 Feb 2019 11:58:34 -0800 +Subject: [PATCH] replace (sym_iterator)0 with sym_iterator() + +clang/libc++ find this error + +libpp/xml_utils.cpp:409:43: error: calling a private constructor of class 'std::__1::__wrap_iter' +| { lo = hi = 0; name = ""; begin = end = (sym_iterator)0;} +| ^ +| + +default constructed iterator isn't supposed to be used for anything + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + libpp/xml_utils.cpp | 26 +++++++++++++------------- + 1 file changed, 13 insertions(+), 13 deletions(-) + +diff --git a/libpp/xml_utils.cpp b/libpp/xml_utils.cpp +index 3de41e5..f45d3ae 100644 +--- a/libpp/xml_utils.cpp ++++ b/libpp/xml_utils.cpp +@@ -73,7 +73,7 @@ void dump_symbol(string const & prefix, sym_iterator it, bool want_nl = true) + + void dump_symbols(string const & prefix, sym_iterator b, sym_iterator e) + { +- if (b == (sym_iterator)0) ++ if (b == sym_iterator()) + return; + + for (sym_iterator it = b; it != e; ++it) +@@ -167,7 +167,7 @@ string xml_utils::get_profile_header(string cpu_name, double const speed) + } + + str << init_attr(CPU_NAME, cpu_type) << endl; +- if (processor.size() > 0) ++ if (processor.size() > 0) + str << init_attr(PROCESSOR, string(processor)) << endl; + if (nr_cpus > 1) str << init_attr(SEPARATED_CPUS, nr_cpus) << endl; + str << init_attr(MHZ, speed) << endl; +@@ -320,11 +320,11 @@ void xml_utils::build_subclasses(ostream & out) + (*sc_ptr)[new_index].subclass_name = subclass_name; + out << open_element(CLASS, true); + out << init_attr(NAME, subclass_name); +- if (nr_cpus > 1) ++ if (nr_cpus > 1) + out << init_attr(CPU_NUM, pclass.ptemplate.cpu); +- if (nr_events > 1) ++ if (nr_events > 1) + out << init_attr(EVENT_NUM, event); +- if (has_nonzero_masks) ++ if (has_nonzero_masks) + out << init_attr(EVENT_MASK, pclass.ptemplate.unitmask); + out << close_element(); + } +@@ -406,7 +406,7 @@ xml_utils::output_summary_data(ostream & out, count_array_t const & summary, siz + class module_info { + public: + module_info() +- { lo = hi = 0; name = ""; begin = end = (sym_iterator)0;} ++ { lo = hi = 0; name = ""; begin = end = sym_iterator();} + void dump(); + void build_module(string const & n, sym_iterator it, + size_t l, size_t h); +@@ -540,21 +540,21 @@ void module_info::add_to_summary(count_array_t const & counts) + + void module_info::set_begin(sym_iterator b) + { +- if (begin == (sym_iterator)0) ++ if (begin == sym_iterator()) + begin = b; + } + + + void module_info::set_end(sym_iterator e) + { +- if (end == (sym_iterator)0) ++ if (end == sym_iterator()) + end = e; + } + + + bool module_info::is_closed(string const & n) + { +- return (name == n) && end != (sym_iterator)0; ++ return (name == n) && end != sym_iterator(); + } + + +@@ -585,7 +585,7 @@ void module_info::output_summary(ostream & out) + + void module_info::output_symbols(ostream & out, bool is_module) + { +- if (begin == (sym_iterator)0) ++ if (begin == sym_iterator()) + return; + + for (sym_iterator it = begin; it != end; ++it) +@@ -606,7 +606,7 @@ void binary_info::close_binary(sym_iterator it) + void binary_info::dump() + { + cverb << vxml << "app_name=" << name << endl; +- if (begin != (sym_iterator)0) ++ if (begin != sym_iterator()) + dump_symbols(" ", begin, end); + + for (size_t i = 0; i < nr_modules; ++i) +@@ -648,7 +648,7 @@ add_module_symbol(string const & module, string const & app, + // mark end of enclosing binary symbols if there have been any + // NOTE: it is possible for the binary's symbols to follow its + // module symbols +- if (begin != (sym_iterator)0 && end == (sym_iterator)0) ++ if (begin != sym_iterator() && end == sym_iterator()) + set_end(it); + + // build the new module +@@ -718,7 +718,7 @@ summarize_processes(extra_images const & extra_found_images) + { + // add modules to the appropriate threads in the process hierarchy + for (sym_iterator it = symbols_begin ; it != symbols_end; ++it) { +- string binary = get_image_name((*it)->app_name, ++ string binary = get_image_name((*it)->app_name, + image_name_storage::int_filename, extra_found_images); + string module = get_image_name((*it)->image_name, + image_name_storage::int_filename, extra_found_images); +-- +2.20.1 + From patchwork Wed Feb 13 17:31:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 158241 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp329384jaa; Wed, 13 Feb 2019 09:31:58 -0800 (PST) X-Google-Smtp-Source: AHgI3IaXrhk17s5j8gRvjFJEwgfsgF6zjh0s90b1jJk0jlh3wCCB7+NXjhX63i5QO9Fc1+Y7MnMb X-Received: by 2002:a17:902:282a:: with SMTP id e39mr1643963plb.26.1550079118743; Wed, 13 Feb 2019 09:31:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550079118; cv=none; d=google.com; s=arc-20160816; b=EAJmdhbNWbvyUF49+63F7Yx3onw4DzuChnvXkU5tcqvvf044KdtH930sMu88SRcFwj Rc7+NbHCLfh9M9MED2Kj/mpEvM7KnRXKMR4vV639XMjAqY6GXE1sPAqnRowCJoGE4HJL 4GOXogEEGOrkUzIoz8CfIx9BxnQGUsol5uNPTtdXYToXLOEuDIUXlwNgPZ09PVtYRi1E pJcaSJP6XSnp2exDLmiWagIF+IonvtypiskVWEGF007ur6V2nMAnjFsNG02nDxU6wrsB oZiQBuh8jDfJYZNzvlxc6sHW0jy8coDu5bOzEVzTyxp5PjgjHaEMacW6qGNXYdbXb0EB 3epQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=REk3aVPzlYYnR/BPSSZwNHxIhB7QtSvS4uoRCZbO4Y0=; b=DqnECggv3KGyXPbgBi8sreHhuGFPmpuJPhlwBaAJKnviA4x/+YfWEdqftGBflAm7IB Ehn8e0hHvX6hAeNQV2emq55YDuEDNJvMiaoRqfH9yd4Kmgl0pttm7xSya1hcxymaKjvs e6qJsIRsJUlN+OtHE/9dFO4Ln0MyiFqFHXqF93Jkzx6/GJjB6dRZV6wiH555LNjB0FI+ XZFyew1iFK/OVVijtb+3UuEWhIEEiZARgePG0XN0+5kZmLdtHvj8i0V/XT6mQu4ow6LU mqOZgXQjHPSYm631gVUmWGhC2pxZYck0Pi8VjBsfynu0ycGUXXPUKslCLzQfycnQjTya //0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Ocaki3Or; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id v9si9185157pgj.182.2019.02.13.09.31.58; Wed, 13 Feb 2019 09:31:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Ocaki3Or; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3A1F97C4A6; Wed, 13 Feb 2019 17:31:44 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mail.openembedded.org (Postfix) with ESMTP id 88C756BCA9 for ; Wed, 13 Feb 2019 17:31:27 +0000 (UTC) Received: by mail-pl1-f180.google.com with SMTP id w4so1501399plz.1 for ; Wed, 13 Feb 2019 09:31:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9HD+zDbmnGYMzprkSE/Hn6VO1KHREY5RSjb2dePQO6U=; b=Ocaki3Or2nSA4PIMqoObnvn6wTBLt8CmeAMFJDxstlrbwls6w/4cbusVDtGmZaTmcz vMafqwCe7ajiMHVsZ5jpuDhmGpCifyifhH47BYxv1X6clqoMnXNHCS1OCgDKacQMYRKg LdwjnGa2xcJ95nnbFSFZS34XY4mWCjJ7n2G461MBhsR5i/9Ah1pLsWQToQW/S0dqGjJQ h2KEb6dRuGqy778nlMQVqGIbEsq0o/CcXAmAUadVk+/Ut6aFvPV2MIRv0KHwjhWM8vai d1pdVy16UifRu8odEW7qOgrZHcyO2NlUjwAw/4SZOMTNv51C3LnMYvGUroM00oEsaNA3 FMWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9HD+zDbmnGYMzprkSE/Hn6VO1KHREY5RSjb2dePQO6U=; b=kBDp+cLORcu5Q0Wi2/l6QsXh+4UUn01WqEetb+43HObcghvU/29yk8HZSCABXdVa+d GlCJ4r/b6b7VOyofSeQucgP2SXGajQRbI91sM9SQscME0PtSHbYc311dfoeFl0U9y+FK bT9SgTPPDjFps/Vb/URXmWtuMwt9qWyqv7QFlvcRPEXGfe0+ubXYiIGOVSOhEeKd/B2j P81Wz108/JZF3w2Fymfash+eZpi3IOKqqbIcMAUpYCsyiIF/4REGksg+PHNNWMRlBymh VAwk8d2UnnhaOZPvaXkngWl6svUkbGSIxCiktJMEjpTWKPqtEpKWj+E7PqrGKa5sAEDx 9SlA== X-Gm-Message-State: AHQUAuZpaaCWJSQKqMVt25wq4jfdKY1WoBHskx31KYcayPG/re+efg3w CsvaIMOOdQ4KtjZ9eAlXdv2vzUxb X-Received: by 2002:a17:902:bc88:: with SMTP id bb8mr1648292plb.12.1550079088263; Wed, 13 Feb 2019 09:31:28 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::dc44]) by smtp.gmail.com with ESMTPSA id h15sm21528945pgl.43.2019.02.13.09.31.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 09:31:27 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 13 Feb 2019 09:31:16 -0800 Message-Id: <20190213173118.44597-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213173118.44597-1-raj.khem@gmail.com> References: <20190213173118.44597-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 4/6] catch2: Upgrade to 2.6.1 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Fix build with clang Signed-off-by: Khem Raj --- .../{catch2_2.6.0.bb => catch2_2.6.1.bb} | 5 +-- ...-Wdefaulted-function-deleted-warning.patch | 35 +++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) rename meta-oe/recipes-test/catch2/{catch2_2.6.0.bb => catch2_2.6.1.bb} (83%) create mode 100644 meta-oe/recipes-test/catch2/files/0001-Fix-Wdefaulted-function-deleted-warning.patch -- 2.20.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-test/catch2/catch2_2.6.0.bb b/meta-oe/recipes-test/catch2/catch2_2.6.1.bb similarity index 83% rename from meta-oe/recipes-test/catch2/catch2_2.6.0.bb rename to meta-oe/recipes-test/catch2/catch2_2.6.1.bb index 13beb9e8b5..08d6616401 100644 --- a/meta-oe/recipes-test/catch2/catch2_2.6.0.bb +++ b/meta-oe/recipes-test/catch2/catch2_2.6.1.bb @@ -6,9 +6,10 @@ LICENSE = "BSL-1.0" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e4224ccaecb14d942c71d31bef20d78c" SRC_URI = "git://github.com/catchorg/Catch2.git \ + file://0001-Fix-Wdefaulted-function-deleted-warning.patch \ " -# v2.6.0 -SRCREV = "d75e9b3c0f24fe42553131873459611ed155e297" +# v2.6.1 +SRCREV = "dbbab8727c342733f75045483048cdcb52421e32" S = "${WORKDIR}/git" diff --git a/meta-oe/recipes-test/catch2/files/0001-Fix-Wdefaulted-function-deleted-warning.patch b/meta-oe/recipes-test/catch2/files/0001-Fix-Wdefaulted-function-deleted-warning.patch new file mode 100644 index 0000000000..555c71ad22 --- /dev/null +++ b/meta-oe/recipes-test/catch2/files/0001-Fix-Wdefaulted-function-deleted-warning.patch @@ -0,0 +1,35 @@ +From a39e0eaa8318335260967ffd1d16388eb5a1d6d8 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 12 Feb 2019 12:57:00 -0800 +Subject: [PATCH] Fix -Wdefaulted-function-deleted warning + +Clang8 warns + +catch_interfaces_reporter.h:84:25: error: explicitly defaulted move assignment operator is implicitly deleted [-Werror,-Wdefaulted-function-deleted] +| AssertionStats& operator = ( AssertionStats && ) = default; +| ^ + +Upstream-Status: Submitted [https://github.com/catchorg/Catch2/pull/1537] +Signed-off-by: Khem Raj +--- + include/internal/catch_interfaces_reporter.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/internal/catch_interfaces_reporter.h b/include/internal/catch_interfaces_reporter.h +index 9d99c981..e5fbf8bb 100644 +--- a/include/internal/catch_interfaces_reporter.h ++++ b/include/internal/catch_interfaces_reporter.h +@@ -80,8 +80,8 @@ namespace Catch { + + AssertionStats( AssertionStats const& ) = default; + AssertionStats( AssertionStats && ) = default; +- AssertionStats& operator = ( AssertionStats const& ) = default; +- AssertionStats& operator = ( AssertionStats && ) = default; ++ AssertionStats& operator = ( AssertionStats const& ) = delete; ++ AssertionStats& operator = ( AssertionStats && ) = delete; + virtual ~AssertionStats(); + + AssertionResult assertionResult; +-- +2.20.1 + From patchwork Wed Feb 13 17:31:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 158242 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp329552jaa; Wed, 13 Feb 2019 09:32:08 -0800 (PST) X-Google-Smtp-Source: AHgI3IYdyFRGwHt5IE/RkAT2xzZhiIdBFX8YIUekJ7fW+5MjFqYo0JDYipUlot8lZ7UyBDZDUh83 X-Received: by 2002:a63:c948:: with SMTP id y8mr1445342pgg.263.1550079127967; Wed, 13 Feb 2019 09:32:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550079127; cv=none; d=google.com; s=arc-20160816; b=ZpFgB37TVusHNjjZ4gbWU8jQVQ51luG4t0lWS1s50eLeJgbbDEnvz8KvHCI+M2rVQT t+5OFnS66B72Jcrr5IRyqPSNE7Zt/buDsPZI6NAeOZ9d5dY+PSZMC7s5i2h3KWz0SCqe fET/nJg/dcLqyKxvIkqDOUb0jlD+9fxDqdw0SgdwFSqAct/E4G0hmfjE5Hv6l4gjmk0Z /Gz/n0h54gLhRfze3CZe2pIUS52jYhZX5M3h9vQBv8odC5Hds420K93kwyy0zDAF0AyU n2abeIOIqgxMwygphjCWYzv8UHU/B4m3Ks+zKTBUyAIGZWDb3PWUw6PLN16eA65ADCwU 0bsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=Mi1cZSnZd9QFee/1EKL4H8oBzhcVuwq4yfTjljJFmB4=; b=ahLlh32IXxyYLO2mKI5Z1/0RDSxZ9amJzG99lqR+TUb9LmHmsjfjPpa7yxDvrABYgg EtTwQMJ5LQ0SVqhy566Ug+Y8HIKQyApDJ5ntdtbCEEDQKaU1sRQgbdVwtrefswQiurny L+QwEf81lh9+HBKI3lX3/JyNzpUFTaIzAQsERZDEIOvszwy2gA6+EQIEdKm6qFEEkr+G +gEd/Qtcedyqdw35jKvKIAf3+w8t0kH/lmxs2xo4uSIYSCNoOexIuWfjikzPIvVxMgAV aMXW7IPyDL1J7i8tiXigHdjgHfQu4BmXYhUc2PjJ9y2KvnPqIMbhi9LOA925G3x1byzq gQiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=fKDBcjDs; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id w21si11088947pgk.122.2019.02.13.09.32.07; Wed, 13 Feb 2019 09:32:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=fKDBcjDs; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 64D937C4BF; Wed, 13 Feb 2019 17:31:45 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by mail.openembedded.org (Postfix) with ESMTP id EF9117BD97 for ; Wed, 13 Feb 2019 17:31:28 +0000 (UTC) Received: by mail-pl1-f193.google.com with SMTP id e5so1494945plb.5 for ; Wed, 13 Feb 2019 09:31:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QOB3YfI0Q8s3aT3FufQrd1gxRITWgz781stltFHz7U4=; b=fKDBcjDsKXilgqGMiV8s14N+GxaOxQIUcnYx9ObN57qL5srZ09VI6gl30NxWeL7Urf 8/501lMrN8DLMJD8zaqDNB8kxrVi1C+3jEOraQb06u0poXkSl0r3UAW5Me/VKb/HHNSd ugcuCPK2ih9EA2A/bAUhVXp3GhuxUfBzX37y1twn0FcEqI46QMpYZ5iGWePAF75622L9 U3TQhhv4DqU7VhLieBQIjPd/jrnE58bNaR11wJN+U8LJMcx5IR0iQ8FHTwjir4qGP6bb o0lirSsdFFqhJT2ixO3uq2G+iJVxz0fMU7hmwdYMU5PrYrB6rM5qS8P2GmMPs8I8larf yDUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QOB3YfI0Q8s3aT3FufQrd1gxRITWgz781stltFHz7U4=; b=EoUy9M5eNT6uOmxzWMcJRzADhh6HrVWtbnjLuwkIicxMGSOekzHaE1Cph+fwHNZDOu 7Sco8N+t1/fpVQJURjz1bR6lsutEN6Gu36Qe+wabXHtMUj0hLNR+1NQOVD96LWEcl2PT yBpH7+KF2FK+kQdbF2j6XwC8i4sOP8SiWoqcu2kXBBV2gdSpEQmj6F2bxMQGIYPvO/qp Zaeo1pkMZbzE4uH4qVksgA6qpBO3wT2ZkwY+A5yaNxcMcrzOCAWqfXibzwFK4R75Vgqr TAFGmnnnxrs+bUL4aeRvFzi4iPWeGXDbdoOpPuUIebXmFwGjoijsditMaOI+BYCcI69+ yncg== X-Gm-Message-State: AHQUAua29vzKqFxnuBXZbQNLphs2URtvGBoyFY8TrGAZQ1dmYZNl8Rx8 P6zrp3PVwb0Ae3n7xL1dozKsdkFv X-Received: by 2002:a17:902:bcc2:: with SMTP id o2mr1517261pls.69.1550079089545; Wed, 13 Feb 2019 09:31:29 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::dc44]) by smtp.gmail.com with ESMTPSA id h15sm21528945pgl.43.2019.02.13.09.31.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 09:31:28 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 13 Feb 2019 09:31:17 -0800 Message-Id: <20190213173118.44597-5-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213173118.44597-1-raj.khem@gmail.com> References: <20190213173118.44597-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 5/6] cli11: Add knob to Enable/Disable clang-tidy explicity X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org When building with clang otherwise this gets enabled and we have problems with headers especially due to OEs multilibbing effort on arm where headers like bits/wordsize.h are hijacked and some wrappers are translanted, these transplants have additional requirements/constraints e.g. compiler internal arch defines e.g. __arm__ etc. which may not be passed by tools like clang-tidy which are arch independent. Ideally we should not require to disable clang-tidy here but we make a compromise, since OEs headers are the way as explained above Signed-off-by: Khem Raj --- meta-oe/recipes-support/cli11/cli11_1.6.2.bb | 5 +++- .../files/0001-Add-CLANG_TIDY-check.patch | 27 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-support/cli11/files/0001-Add-CLANG_TIDY-check.patch -- 2.20.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/cli11/cli11_1.6.2.bb b/meta-oe/recipes-support/cli11/cli11_1.6.2.bb index 6899b1264b..e62c1d3d13 100644 --- a/meta-oe/recipes-support/cli11/cli11_1.6.2.bb +++ b/meta-oe/recipes-support/cli11/cli11_1.6.2.bb @@ -6,11 +6,14 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c271fee3ae28e11b24b97284d9f82887" SRCREV = "bd4dc911847d0cde7a6b41dfa626a85aab213baf" PV .= "+git${SRCPV}" -SRC_URI += "gitsm://github.com/CLIUtils/CLI11" +SRC_URI += "gitsm://github.com/CLIUtils/CLI11 \ + file://0001-Add-CLANG_TIDY-check.patch \ + " S = "${WORKDIR}/git" inherit cmake inherit ptest +EXTRA_OECMAKE += "-DCLANG_TIDY=OFF" DEPENDS += "boost" diff --git a/meta-oe/recipes-support/cli11/files/0001-Add-CLANG_TIDY-check.patch b/meta-oe/recipes-support/cli11/files/0001-Add-CLANG_TIDY-check.patch new file mode 100644 index 0000000000..bef3548a29 --- /dev/null +++ b/meta-oe/recipes-support/cli11/files/0001-Add-CLANG_TIDY-check.patch @@ -0,0 +1,27 @@ +From ef6310bc726a53ff6b45071633fa7b37224cae96 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 12 Feb 2019 13:22:21 -0800 +Subject: [PATCH] Add CLANG_TIDY check + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 79404b8..f68217d 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -39,7 +39,7 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) + add_definitions(-Wall -Wextra -pedantic) + endif() + +- if(CMAKE_VERSION VERSION_GREATER 3.6) ++ if(CMAKE_VERSION VERSION_GREATER 3.6 AND CLANG_TIDY) + # Add clang-tidy if available + option(CLANG_TIDY_FIX "Perform fixes for Clang-Tidy" OFF) + find_program( +-- +2.20.1 + From patchwork Wed Feb 13 17:31:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 158243 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp329719jaa; Wed, 13 Feb 2019 09:32:17 -0800 (PST) X-Google-Smtp-Source: AHgI3IbXfLPhIpm1KD21kszuoO1Sm+ec30FUkoFY7WTysWSJstSvDY+kVSmbNev3TpWozjKGupZm X-Received: by 2002:a63:ef4c:: with SMTP id c12mr1403672pgk.84.1550079137560; Wed, 13 Feb 2019 09:32:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550079137; cv=none; d=google.com; s=arc-20160816; b=V06aH0EBVFQsBXHLP5ZtrdXiKpwF25up4SumJtWe5aCLBH3emX9UuI6QOdef9NvH81 sCpsP6rTFXB9BggXEdBQHqgq+iHaHngt+AhD+RXxlURgHtXBHQHmGHf/vvF2lj7CHuwi tVSjNDxYB8lPxWuwyf9ETG+RVEf2C8/pNiTAjpjMfFfdDUOlCfOJEs6ZpME1ViNympU6 vNgE64xnAaPcm91OrbP5FOahAxavHFIRpX7OUMKIBCjRQS6VPqsjLhMbvhpyNpx4mjcK vJlD32bsMbycRbnGiVSQye38IOTu3m64rpNUMs3U0ekHFbzlY/6+3adeF33Cnxg8HbGX yeJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=u5SZr5kYj9IlAV2LJNuWDnoL6GMom7AR4aTj8SSQYq8=; b=qUVPlTngFIz3btCTb6guGZ32KW0bDttzdTlGxHwJ//hu+ksAU/GNuTLU4JW1hAOc8n LTFrEc3kfXJOqcOPoSOZVnM4sb6zlOL/YpsUuMiPKHOcWwhsFX5tovAuW097VDtn+3xT 0B/8dcTGyc5wpaoMf0VDXM0mjpJfUkSjxbBAI3ynB4JGBtvS4ZrefZKZK6DiFqqBZfNm 8BXQiqYlyPiLxg6bFxMbk3t3rF5OXUWxIrM/dEuZoYnwt3s2DBFUk+LI97WU4r7ZKOcL ++sGfbsjL4inNU+nMSjzYRWAPkEecqcPBJ6CWdAjYq0TXNWqUUl1lZ1qW5q0FNEx7B8O cUyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=nAwAqZ1b; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id j123si15380960pgc.16.2019.02.13.09.32.17; Wed, 13 Feb 2019 09:32:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=nAwAqZ1b; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 942667C525; Wed, 13 Feb 2019 17:31:46 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) by mail.openembedded.org (Postfix) with ESMTP id E43AB79D62 for ; Wed, 13 Feb 2019 17:31:29 +0000 (UTC) Received: by mail-pg1-f179.google.com with SMTP id d72so1442472pga.9 for ; Wed, 13 Feb 2019 09:31:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SwC8bEhLme/pKmXgaw2/Qan9YrmCcueq2Tjd5iU6/C4=; b=nAwAqZ1bolQcUNqzxy2K1i/z8G66u0Mc7nlkjLr+caGVIROgYHCSYQvu/IKJ1b/uBB CzIx6UOl2sjuTWC5tqVUwx+kngqv+IHkrFoIhwPL47RCDeBtTxwm0uznuK20tVl+k+DV Ad5rXrxQySLN8pBEei7zpIfzS2P1Vd/LpBp3tifaNl5mwNFL2iSVPDL28y29gBGUVnGZ sy7sDw/9v15aox6N91UO6KKjt6n+WSvbPLuG6AiqCV7y62pTt4XmIWcKBuf/fSECzY7z WR7SUNwUBSObPd+bodYQE/U8KJOWI8C2bEjyQnOpbbJDms5HEJx4o3+WPwLEI6eYp7Hm rvyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SwC8bEhLme/pKmXgaw2/Qan9YrmCcueq2Tjd5iU6/C4=; b=S5OxgcIGM4n4SOkMMyCkxO0Ax/aUIQLeN5XNaF8xO5ZQZGy+K//GJ6QH+NLhZWCo8U /0uMkaQ1bBLk66UWaLLAxzXfIix+to74d0+jEiFojEdvnDD4yMAojmKL0rl0XMpOoorH 3OAWNt+jDmZSfiErR2zSZ6tAl2l/TeKQERzAX+fAcdWs+cO5Ab+MKvw4zud5w0TxIYpS f31SkA601k41Pp76KS6k+MmyiJyf4SUmRgOPaYJa8htQEMUgzPHxP2YRf+6P4n29sPtb +gBsXSLvML7Y0pRr4abaUqel2Iw4I1EHr7ezVmPza/iFeB3i9qDGEaOS0fVxhelg59va hKXA== X-Gm-Message-State: AHQUAuZlnN4JzyXP678tuOB9M58Dk0muqrdXZ5PJLlaRJ7Urue3+/xr4 cZPtKhvCm8PRioxPOypJnKbmEdU9 X-Received: by 2002:a63:1321:: with SMTP id i33mr1470952pgl.380.1550079090621; Wed, 13 Feb 2019 09:31:30 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::dc44]) by smtp.gmail.com with ESMTPSA id h15sm21528945pgl.43.2019.02.13.09.31.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 09:31:29 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 13 Feb 2019 09:31:18 -0800 Message-Id: <20190213173118.44597-6-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213173118.44597-1-raj.khem@gmail.com> References: <20190213173118.44597-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 6/6] rocksdb: Fix build with clang X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...and-do-not-mark-default-copy-constru.patch | 57 +++++++++++++++++++ meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb | 1 + 2 files changed, 58 insertions(+) create mode 100644 meta-oe/recipes-dbs/rocksdb/files/0001-Disable-Wshadow-and-do-not-mark-default-copy-constru.patch -- 2.20.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-dbs/rocksdb/files/0001-Disable-Wshadow-and-do-not-mark-default-copy-constru.patch b/meta-oe/recipes-dbs/rocksdb/files/0001-Disable-Wshadow-and-do-not-mark-default-copy-constru.patch new file mode 100644 index 0000000000..eccaa3a37a --- /dev/null +++ b/meta-oe/recipes-dbs/rocksdb/files/0001-Disable-Wshadow-and-do-not-mark-default-copy-constru.patch @@ -0,0 +1,57 @@ +From ee728434124b9b7d17abbd060a62aac79a9b79c0 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 12 Feb 2019 14:31:24 -0800 +Subject: [PATCH] Disable -Wshadow and do not mark default copy constructors + +Signed-off-by: Khem Raj +--- + CMakeLists.txt | 2 +- + utilities/persistent_cache/block_cache_tier.h | 4 ++-- + utilities/persistent_cache/block_cache_tier_file.h | 2 +- + 3 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 98e2e1973..3a24a075b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -254,7 +254,7 @@ if(FAIL_ON_WARNINGS) + if(MSVC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX") + else() # assume GCC +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-error=shadow") + endif() + endif() + +diff --git a/utilities/persistent_cache/block_cache_tier.h b/utilities/persistent_cache/block_cache_tier.h +index 2b2c0ef4f..96d0540a4 100644 +--- a/utilities/persistent_cache/block_cache_tier.h ++++ b/utilities/persistent_cache/block_cache_tier.h +@@ -91,9 +91,9 @@ class BlockCacheTier : public PersistentCacheTier { + : key_(std::move(key)), data_(data) {} + ~InsertOp() {} + +- InsertOp() = delete; ++ InsertOp() = default; + InsertOp(InsertOp&& /*rhs*/) = default; +- InsertOp& operator=(InsertOp&& rhs) = default; ++ InsertOp& operator=(InsertOp&& rhs) = delete; + + // used for estimating size by bounded queue + size_t Size() { return data_.size() + key_.size(); } +diff --git a/utilities/persistent_cache/block_cache_tier_file.h b/utilities/persistent_cache/block_cache_tier_file.h +index e38b6c9a1..d9b89a4f7 100644 +--- a/utilities/persistent_cache/block_cache_tier_file.h ++++ b/utilities/persistent_cache/block_cache_tier_file.h +@@ -262,7 +262,7 @@ class ThreadedWriter : public Writer { + : file_(file), buf_(buf), file_off_(file_off), callback_(callback) {} + + IO(const IO&) = default; +- IO& operator=(const IO&) = default; ++ IO& operator=(const IO&) = delete; + size_t Size() const { return sizeof(IO); } + + WritableFile* file_ = nullptr; // File to write to +-- +2.20.1 + diff --git a/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb b/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb index ebe50a58ec..78520f99b0 100644 --- a/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb +++ b/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb @@ -11,6 +11,7 @@ SRCBRANCH = "5.18.fb" PV = "5.18.2" SRC_URI = "git://github.com/facebook/${BPN}.git;branch=${SRCBRANCH} \ + file://0001-Disable-Wshadow-and-do-not-mark-default-copy-constru.patch \ " S = "${WORKDIR}/git"