From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752019Ab3JITQh (ORCPT ); Wed, 9 Oct 2013 15:16:37 -0400 Received: from mail-vc0-f175.google.com ([209.85.220.175]:56345 "EHLO mail-vc0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751055Ab3JITQg (ORCPT ); Wed, 9 Oct 2013 15:16:36 -0400 Date: Wed, 9 Oct 2013 16:16:26 -0300 From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , David Ahern , Jiri Olsa , Namhyung Kim Subject: Re: [GIT PULL] tools/perf/build: Speed up the perf build system Message-ID: <20131009191626.GD28369@ghostprotocols.net> References: <20131009070149.GA32023@gmail.com> <20131009143830.GA28369@ghostprotocols.net> <20131009145157.GA27139@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131009145157.GA27139@gmail.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org So while merging what I have in my perf/core branch I got to Vitillo's, as peterz called it, "inlining" of addr2line, i.e. using libbfd to do that work, it will look if lbfd is in EXTLIBS and if so, use it, otherwise we continue exec'in the addr2line tool. Since this appears when doing the feature check: ... libbfd: [ on ] I wanted to build just one object file that is related to this: [acme@sandy linux]$ ls -la /tmp/build/perf/util/util/srcline.o ls: cannot access /tmp/build/perf/util/util/srcline.o: No such file or directory [acme@sandy linux]$ ls -la tools/perf/util/srcline.c -rw-rw-r--. 1 acme acme 1777 Oct 9 16:06 tools/perf/util/srcline.c [acme@sandy linux]$ ls -la tools/perf/util/srcline.* -rw-rw-r--. 1 acme acme 1777 Oct 9 16:06 tools/perf/util/srcline.c [acme@sandy linux]$ make V=1 O=/tmp/build/perf -C tools/perf/ util/srcline.o make: Entering directory `/home/acme/git/linux/tools/perf' BUILD: Doing 'make -j8' parallel build # Redirected target util/srcline.o => /tmp/build/perf/util/util/srcline.o make: Leaving directory `/home/acme/git/linux/tools/perf' [acme@sandy linux]$ [acme@sandy linux]$ ls -la /tmp/build/perf/util/util/srcline.o ls: cannot access /tmp/build/perf/util/util/srcline.o: No such file or directory [acme@sandy linux]$ make V=1 O=/tmp/build/perf -C tools/perf/ /tmp/build/perf/util/util/srcline.o make: Entering directory `/home/acme/git/linux/tools/perf' BUILD: Doing 'make -j8' parallel build make[1]: *** No rule to make target `/tmp/build/perf/util/util/srcline.o'. Stop. make: *** [/tmp/build/perf/util/util/srcline.o] Error 2 make: Leaving directory `/home/acme/git/linux/tools/perf' [acme@sandy linux]$ ls -la tools/perf/util/srcline.* -rw-rw-r--. 1 acme acme 1777 Oct 9 16:06 tools/perf/util/srcline.c [acme@sandy linux]$ What am I doing wrong here while trying to build just one .o file? Back to checking why it is not using the 'inline' addr2line... - Arnaldo