Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1739901imm; Thu, 12 Jul 2018 07:06:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcI0TGhryvEhnxH2UiUYjhOJVqHRQolFewrzPDVvAllGx8mzn7AYbkwBgQvJhGdRg29C4os X-Received: by 2002:a17:902:722:: with SMTP id 31-v6mr2396409pli.3.1531404412207; Thu, 12 Jul 2018 07:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531404412; cv=none; d=google.com; s=arc-20160816; b=K1dDznrxnMcPuRTdW9hzUbV/2tD8rnmSJlcKrI2igsyxz7m6LJ1s2x8gUbdjXQoSmB 2RRH+qp4VwchFdSi90uq6FY3Mu/C1e5i5I5y3XxpfiYnuC9Upv8NU0ODbDh+hcSUyMat BWywealyKG4vo5+40dq4Cuj9MBckk5Ash7Pm33VJwPSzRdjGfRvSdTrKsavnY4PmoYTc HKMSLHJVIR/y584/rBx9ZBal0P0tQqVkBZXhkGS7xOUFT1XWvfq5HGqr/gImQoUtOuMR MzYVAHCGiftU0QL1PMK/nvOyb8TFYximS6q4VdEnGWmA0M4Li/lphNurF2mOctQpviAO ZIQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=+YjZjDdsb9h7Q+z1ba3zm+d9DXPjDVvq00xiO/PpQEA=; b=lmg3WVB5ZdvoUjZmkq29oujnLITzWiXenXeRV8E2Rs5Cqy2LjtTAv88aUrrJglZDdi tAqflChdMLHsGY/P0dfJiLnctWi09e/Y7/yxaZnqsm/a0ryMdwkV3+JTZFWNbk+2did8 H2okbtKRGQj/mftH+dDxrHgoSrPmQh0bDOqe5v5xHkFKPC1NcloyEEMpeQmNI/88XZpa uc0QyRQMQ7iDdeZPdHEZMmA0WozW/lQb5lLeYwSsYJCOBfKvWT09hjXKEtU+BYCn38aD e5sXIkAbBTn5MT3wu5Gl6gLM7HP2gtBbtOfycvcO585y/IANlVg08V3ziCmU0ClZigR+ LjHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v16-v6si21599753plo.186.2018.07.12.07.06.30; Thu, 12 Jul 2018 07:06:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732458AbeGLOOh (ORCPT + 99 others); Thu, 12 Jul 2018 10:14:37 -0400 Received: from terminus.zytor.com ([198.137.202.136]:33495 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726762AbeGLOOh (ORCPT ); Thu, 12 Jul 2018 10:14:37 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w6CE4Y3a3936712 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 12 Jul 2018 07:04:34 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w6CE4Xmu3936709; Thu, 12 Jul 2018 07:04:33 -0700 Date: Thu, 12 Jul 2018 07:04:33 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Jeremy Cline Message-ID: Cc: tglx@linutronix.de, mingo@kernel.org, jcline@redhat.com, hpa@zytor.com, alexander.shishkin@linux.intel.com, acme@redhat.com, namhyung@kernel.org, jolsa@redhat.com, linux-kernel@vger.kernel.org, peterz@infradead.org Reply-To: mingo@kernel.org, tglx@linutronix.de, jcline@redhat.com, namhyung@kernel.org, jolsa@redhat.com, hpa@zytor.com, alexander.shishkin@linux.intel.com, acme@redhat.com, peterz@infradead.org, linux-kernel@vger.kernel.org In-Reply-To: <20180710154612.6285-1-jcline@redhat.com> References: <20180710154612.6285-1-jcline@redhat.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf tools: Use python-config --includes rather than --cflags Git-Commit-ID: 32aa928a7b817140c84987b726d5014911808fa4 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 32aa928a7b817140c84987b726d5014911808fa4 Gitweb: https://git.kernel.org/tip/32aa928a7b817140c84987b726d5014911808fa4 Author: Jeremy Cline AuthorDate: Tue, 10 Jul 2018 11:46:12 -0400 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 11 Jul 2018 09:48:31 -0400 perf tools: Use python-config --includes rather than --cflags Builds started failing in Fedora on Python 3.7 with: `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of util/scripting-engines/trace-event-python.o: defined in discarded section In Fedora, Python 3.7 added -flto to the list of --cflags and since it was only applied to util/scripting-engines/trace-event-python.c and scripts/python/Perf-Trace-Util/Context.c, linking failed. It's not the first time the addition of flags has broken builds: commit c6707fdef7e2 ("perf tools: Fix up build in hardnened environments") appears to have fixed a similar problem. "python-config --includes" provides the proper -I flags and doesn't introduce additional CFLAGS. Signed-off-by: Jeremy Cline Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180710154612.6285-1-jcline@redhat.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Makefile.config | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index b5ac356ba323..f5a3b402589e 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -207,8 +207,7 @@ ifdef PYTHON_CONFIG PYTHON_EMBED_LDOPTS := $(shell $(PYTHON_CONFIG_SQ) --ldflags 2>/dev/null) PYTHON_EMBED_LDFLAGS := $(call strip-libs,$(PYTHON_EMBED_LDOPTS)) PYTHON_EMBED_LIBADD := $(call grep-libs,$(PYTHON_EMBED_LDOPTS)) -lutil - PYTHON_EMBED_CCOPTS := $(shell $(PYTHON_CONFIG_SQ) --cflags 2>/dev/null) - PYTHON_EMBED_CCOPTS := $(filter-out -specs=%,$(PYTHON_EMBED_CCOPTS)) + PYTHON_EMBED_CCOPTS := $(shell $(PYTHON_CONFIG_SQ) --includes 2>/dev/null) FLAGS_PYTHON_EMBED := $(PYTHON_EMBED_CCOPTS) $(PYTHON_EMBED_LDOPTS) endif