From patchwork Tue Jul 11 21:56:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107421 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp12362qge; Tue, 11 Jul 2017 14:56:43 -0700 (PDT) X-Received: by 10.101.88.67 with SMTP id s3mr557564pgr.224.1499810203774; Tue, 11 Jul 2017 14:56:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499810203; cv=none; d=google.com; s=arc-20160816; b=F9VHN5ZE5mwl5wZlR6F7nHoEUBGGOwCtp+1CgPReI3YnrHGjpQp93dnMstuf6dNhJb KFlTMCvDZIH2njQoKtT8McBD3DpGGj9M7P16yvbXaLuGh+nz7kXXzzzRvGUuhMYG92Mu 6vCblr1EXjSj4hhIYI/AXZlWmNB41V5nWCiM6yjPOVW6OMIXiU1gEna8Fpw2kvS5RFes nbInXQ/Cv8ZPwxLPjtVNBiohTV+UdLwCpQ53vilMOuTPJ1kw5s/Z/RxcHxDemCFvrSxp KanszjQlb0lEK0DTrgt0MXu966sCitUKg95PiYQCd3+IopBHcHMMV1b1RCivgwUeSVf8 yjOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=ssZ7nO1s1GddJdDnrdzIJOzMTrEoXsCHUJL9rSJrCCY=; b=DfauPkflB7QiPO5AsZn2pN+dJhag7GuFgPeEkY8grhiBej7VYp61CgT4Ru4IXr8UNX 3ya/lF7slFx8PBkn0eznWG3yZP7WIy3MXrf+nr+dAsdGZFjFUc8F8SBOeQ3X5peGJmEA aX+NxiwPLpqAM6AFj7ctBNqpSjDg9K9vw699WL2Vd4OIqXnU5UW7gkNywa93U2CZGEHx B6eh7fdke1RntXLUKwqrk/IM6kDYwuzLMkAAFLMoydQp973gdGTMHZy8T5HefqG3JFUO doD5H+jRBPcEEO7hJsxKmfSe7yqB0hz0Kl/Ucr+/hROcJxEhxhfy+3aW3weER8pBeIyN 3Ghw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.b=V77LXPtw; 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 Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id d5si349129pgf.367.2017.07.11.14.56.43; Tue, 11 Jul 2017 14:56:43 -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=@intel-com.20150623.gappssmtp.com header.b=V77LXPtw; 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 review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 0D8C5780F6; Tue, 11 Jul 2017 21:56:35 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr0-f179.google.com (mail-wr0-f179.google.com [209.85.128.179]) by mail.openembedded.org (Postfix) with ESMTP id 2C32E780E4 for ; Tue, 11 Jul 2017 21:56:33 +0000 (UTC) Received: by mail-wr0-f179.google.com with SMTP id r103so7666308wrb.0 for ; Tue, 11 Jul 2017 14:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=veNUgYSynHV+TDVCvgQVv+RZvfPxXtO4GO+8rpUSPrc=; b=V77LXPtwUybgtYAjf5G8dFPqATXyQZGLBgZRuzQiRoUlV1h8h7m/SJRgak29FFw2sb l/1Gml8VQNXBd+/2wyo96KmiFS6t4fwDwdYERvTB/hjPv6m1eawrWjEJMjaW7uSVs8Ex /IvD+mp9W0FLxxK1dHHg5tqiFhizEIvpzpeV0yWEyknSfTvhD8t2rtJ4+rMGYYYLWx51 yuUhv0NOoYe3WLys2LqCa1Q19OPNaZkhceZ0EKu/ByOqPt92PhhRJxgNgG6oJgMe0cWD qZU+N6obJJS5xdWeyEC0vP/XMHqgSBLICIXnIaaP4bXj7/c7F/AOumSDe7WkKs/I4NF0 Agqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=veNUgYSynHV+TDVCvgQVv+RZvfPxXtO4GO+8rpUSPrc=; b=PT+AQ0XED9jecZQ2elcBR4DmFcfbxzgOdagmchIyp2MqZunkCRpNafqUl5OlrckGhf hQkjMurDXJVNMGL5udWvc5ghRTNbfBe9rhdsN2PY4/WBxBEK71a+HsRCeKVm9oO+4t6X PLhdaPTbZPnAw+RprYw5/EYFeQXN8fI82QtO3jorGfF/Le+qJBrK/umaxbVmEEC+8BAj S/Qsk79FhXBbSLWQmzWkTpjljcxjnkG/LR20MoYZs/VFABZVN8x+CMtOxfK1+xdTGzVi gHAD1LkKNam7sdm2avw/ptHjkyMDr0ya4qYC+I4HUekwNRf/YFbGKv2PBnC2oh4P+dDm JHJQ== X-Gm-Message-State: AIVw110P1owI6RMqqMyuQWZ/dom4sE3rhf5638+zBZYVFpuhTWNDC8Dr SickqaZeQ4tt5clwucw= X-Received: by 10.223.143.77 with SMTP id p71mr1005027wrb.3.1499810194565; Tue, 11 Jul 2017 14:56:34 -0700 (PDT) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id 82sm502454wmt.17.2017.07.11.14.56.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jul 2017 14:56:33 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Tue, 11 Jul 2017 22:56:31 +0100 Message-Id: <20170711215631.1527-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] valgrind: fix link failure with gold 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 Signed-off-by: Ross Burton --- .../valgrind/valgrind/link-gz-tests.patch | 25 ++++++++++++++++++++++ meta/recipes-devtools/valgrind/valgrind_3.12.0.bb | 1 + 2 files changed, 26 insertions(+) create mode 100644 meta/recipes-devtools/valgrind/valgrind/link-gz-tests.patch -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/valgrind/valgrind/link-gz-tests.patch b/meta/recipes-devtools/valgrind/valgrind/link-gz-tests.patch new file mode 100644 index 00000000000..b55c9043cd5 --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind/link-gz-tests.patch @@ -0,0 +1,25 @@ +When checking if the compiler supports compressed debug sections we need to actually link instead of just compile. Otherwise the compiler thinks that they are supported, but gold does not support -gz=zlib. + +Upstream-Status: Submitted (https://bugs.kde.org/show_bug.cgi?id=382256) +Signed-off-by: Ross Burton + +--- a/configure.ac~ 2017-07-11 11:53:16.000000000 +0100 ++++ b/configure.ac 2017-07-11 18:16:13.674130483 +0100 +@@ -2119,7 +2119,7 @@ + safe_CFLAGS=$CFLAGS + CFLAGS="-g -gz=zlib" + +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]], [[ ++AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[ + return 0; + ]])], [ + ac_have_gz_zlib=yes +@@ -2139,7 +2139,7 @@ + safe_CFLAGS=$CFLAGS + CFLAGS="-g -gz=zlib-gnu" + +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]], [[ ++AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[ + return 0; + ]])], [ + ac_have_gz_zlib_gnu=yes diff --git a/meta/recipes-devtools/valgrind/valgrind_3.12.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.12.0.bb index b63d27861d5..0cc5eefc88e 100644 --- a/meta/recipes-devtools/valgrind/valgrind_3.12.0.bb +++ b/meta/recipes-devtools/valgrind/valgrind_3.12.0.bb @@ -35,6 +35,7 @@ SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \ file://0001-memcheck-arm64-Define-__THROW-if-not-already-defined.patch \ file://0002-memcheck-x86-Define-__THROW-if-not-defined.patch \ file://0003-tests-seg_override-Replace-__modify_ldt-with-syscall.patch \ + file://link-gz-tests.patch \ " SRC_URI_append_libc-musl = "\ file://0001-fix-build-for-musl-targets.patch \