From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756662AbaD1PCF (ORCPT ); Mon, 28 Apr 2014 11:02:05 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:43235 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756370AbaD1PCA (ORCPT ); Mon, 28 Apr 2014 11:02:00 -0400 Message-ID: <535E6D65.80909@gmail.com> Date: Mon, 28 Apr 2014 09:01:57 -0600 From: David Ahern User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Jiri Olsa , linux-kernel@vger.kernel.org CC: Jiri Olsa , Arnaldo Carvalho de Melo , Corey Ashford , Frederic Weisbecker , Ingo Molnar , Namhyung Kim , Paul Mackerras , Peter Zijlstra Subject: Re: [PATCH] perf tools: Fix bfd dependency libraries detection References: <1398676935-6615-1-git-send-email-jolsa@kernel.org> In-Reply-To: <1398676935-6615-1-git-send-email-jolsa@kernel.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/28/14, 3:22 AM, Jiri Olsa wrote: > From: Jiri Olsa > > There's false assumption in the library detection code > assuming -liberty and -lz are always present once bfd > is detected. The fails on Ubuntu (14.04) as reported > by Ingo. > > Forcing the bdf dependency libraries detection any > time bfd library is detected. Have you tried static builds? I need to do those occasionally and I always have to muck around with the Makefiles to get it to succeed -- something with the -liberty and bfd checks. > > Reported-by: Ingo Molnar > Tested-by: Ingo Molnar > Cc: Arnaldo Carvalho de Melo > Cc: Corey Ashford > Cc: David Ahern > Cc: Frederic Weisbecker > Cc: Ingo Molnar > Cc: Namhyung Kim > Cc: Paul Mackerras > Cc: Peter Zijlstra > Signed-off-by: Jiri Olsa > --- > tools/perf/config/Makefile | 34 +++++++++++++++++++++++----------- > 1 file changed, 23 insertions(+), 11 deletions(-) > > diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile > index a71fb39..a57d59e 100644 > --- a/tools/perf/config/Makefile > +++ b/tools/perf/config/Makefile > @@ -194,7 +194,10 @@ VF_FEATURE_TESTS = \ > stackprotector-all \ > timerfd \ > libunwind-debug-frame \ > - bionic > + bionic \ > + liberty \ > + liberty-z \ > + cplus-demangle > > # Set FEATURE_CHECK_(C|LD)FLAGS-all for all CORE_FEATURE_TESTS features. > # If in the future we need per-feature checks/flags for features not > @@ -512,7 +515,21 @@ else > endif > > ifeq ($(feature-libbfd), 1) > - EXTLIBS += -lbfd -lz -liberty > + EXTLIBS += -lbfd > + > + # call all detections now so we get correct > + # status in VF output Are you folding the "VF" into V? David