From patchwork Sun Sep 8 23:23:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 173355 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp3647432ilq; Sun, 8 Sep 2019 16:23:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwCfJN35wQ2T1OWopGxcyfjfCFo36HgsgzClU+9iW37RhfBAul3ZJvD4OrV626rRQezr0Fi X-Received: by 2002:a65:57ca:: with SMTP id q10mr9569532pgr.52.1567985029701; Sun, 08 Sep 2019 16:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567985029; cv=none; d=google.com; s=arc-20160816; b=b97y4JiSjpoPF5PslKWnWypKeeSU7vwMewLVEa1sHz64ex1OX0fCdrJKC6jzIVhw16 1vNKwA2tmzb3TVOP6NUWZMViRwyXk/2gRsO7Gad+bM5tsPdbyb8Qtue7QydWOxT4kS3o 7uRbnvL7cqL1fnPwARPwmh5dNEmykbgiVV6lkj9GPyk08gacfEl8eDbMmJuW+ic3EdVf dwKFqHmvxQ3xRiXpRO3V3mAKncf/djf1XVVskaKjMb3/6t6OYoy74yIVNcd6ez0lM7Mf ffgXAwG4isJ9WAlsU97oqJU+TgL6kpMO+XyR2z6Av9c9zeg2K8/xwTY0XhLRTXjWa3AY wJFg== 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=6yCYzxxk8oKc+BHp2Ljtsq2NSTuwO8Z/GEXb8sg/kDY=; b=H5LvArnnUulhgOaN14EbhBvsO93+yqFoiBX2/Ec9eOdutbx3Wgfqzy+UeoszrkcU8z 2jVhVzuR0mCV42ouFR9QjhlXM3kofQMJbra7i8/go18HVubqsQsjpeZ0HIa6hwKaz4GD 6bAhBADJvumMxEp/hnEpHuGfLbS9KAxfJ7i2yetzOsMtFtmjaV/h1Q3NZFLKqrAbtgI1 3K+WNgzkhucGB/wqIdEz40shtob6x6XjzXo0QcJxqpBzxLT0KkvbB2o3CHEMEDydNmGB QV0aJRcw+Zk8aCfZMTkAzpyC1lIaKw72LnC9RKCA/pl4KhUDmkWlrezRqo/D99bBRlKR dPiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=smMzfQ8b; 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; 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 k73si10458636pge.353.2019.09.08.16.23.48; Sun, 08 Sep 2019 16:23:49 -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; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=smMzfQ8b; 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; 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 682D57F393; Sun, 8 Sep 2019 23:23:41 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mail.openembedded.org (Postfix) with ESMTP id 201887E08D for ; Sun, 8 Sep 2019 23:23:38 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id x127so7983451pfb.7 for ; Sun, 08 Sep 2019 16:23:40 -0700 (PDT) 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=4/Q9dDwZdr2/MAVVDxToMfAQ8KOpv+pr7eqF/HQl5O8=; b=smMzfQ8bHCIM8NPMmtdvhIrdXHCk/O/HIyJdUKtirFn2sqAU2QnbWgnoNsgZZyKAgS ACMEaMv8F960/JzeqpPli8NK4k5KkjODVCU5KKGu/k//SBUfyFAtoX3vHO+apwpV4qrB raMh5TAgGWba2etFtJrEtKfPFxUd9Y7jMPXDcTx9Lne3MnqFR+fVrxiPCVRYNxfdYyxy dAlr/dutdGOYQ5hdKQOAPGCi8rwNNA7Qby4m30dhch3NZ0hGZKGmAlX5C0DOvxmSaqEy wskYi5Q1t02g3uPGT0FE7+FmCb1BJ5Wy4Gp0ay2Vh1a8TTLGQxjzbCQzmYuwxxO05gS8 dy1g== 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=4/Q9dDwZdr2/MAVVDxToMfAQ8KOpv+pr7eqF/HQl5O8=; b=f2OMQABY+vNyY/qc4UoSMDbDuxqBHTwdoVK3rKz1Z1FFgyEOweHpMZ+ZZSq4sGDCsd Q4bX9r9/+2piJV5SrEaWJyRHkzoJFSGdtkGeJqGWwcHYfPky6iKnA8F4lKPr8yeIR79O tOF6yOb5y1QM4KNb6BZBCFInU2V4wQVxPsRNpa6QQedp7+IOR+41gkDyZiS8u102umow tN1hWCRpeqJM/IXXEZ336VME8KTrrfUeCYmylcTnH343rQtAp+FY6+R8wFhJC0ybfAeo 0Yu+ubndXUynFu9+67F/2EfzcQWCYGLnrDw/f5ALJklbvcVDqJi3490mFNO9+x5h8c7g a3VA== X-Gm-Message-State: APjAAAUyLKPV0bxQ95RcpEfIx1Omwn7x6ZzAJExWss8jiibQNmKzOI0t YaABezBtu44nevRZvkQM7Q3FHnB70X4= X-Received: by 2002:a63:4042:: with SMTP id n63mr18346306pga.75.1567985019481; Sun, 08 Sep 2019 16:23:39 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id d10sm14414153pfh.8.2019.09.08.16.23.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2019 16:23:38 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sun, 8 Sep 2019 16:23:31 -0700 Message-Id: <20190908232331.2295-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH] elfutils: Fix build on ppc/musl 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org musl relies on the pt_regs definitions from kernel ptrace headers Signed-off-by: Khem Raj --- .../elfutils/elfutils_0.176.bb | 1 + ...cliude-asm-ptrace.h-for-pt_regs-defi.patch | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 meta/recipes-devtools/elfutils/files/0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch -- 2.23.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/elfutils/elfutils_0.176.bb b/meta/recipes-devtools/elfutils/elfutils_0.176.bb index d98457e3f9..fe810282bc 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.176.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.176.bb @@ -29,6 +29,7 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \ file://debian/disable_werror.patch \ file://debian/testsuite-ignore-elflint.diff \ file://0001-skip-the-test-when-gcc-not-deployed.patch \ + file://0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch \ file://run-ptest \ file://ptest.patch \ " diff --git a/meta/recipes-devtools/elfutils/files/0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch b/meta/recipes-devtools/elfutils/files/0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch new file mode 100644 index 0000000000..3303333c45 --- /dev/null +++ b/meta/recipes-devtools/elfutils/files/0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch @@ -0,0 +1,32 @@ +From 2e2232d0935bf8ef6e66ebffba3be68a73b5b3e5 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 8 Sep 2019 15:57:59 -0700 +Subject: [PATCH] ppc_initreg.c: Incliude asm/ptrace.h for pt_regs definition + +Fixes +| ../../elfutils-0.176/backends/ppc_initreg.c:79:22: error: field 'r' has incomplete type +| struct pt_regs r; +| ^ + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + backends/ppc_initreg.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/backends/ppc_initreg.c b/backends/ppc_initreg.c +index 0e0d359..e5cca7e 100644 +--- a/backends/ppc_initreg.c ++++ b/backends/ppc_initreg.c +@@ -33,6 +33,7 @@ + #include + #if defined(__powerpc__) && defined(__linux__) + # include ++# include + # include + #endif + +-- +2.23.0 +