LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Jiri Olsa <jolsa@redhat.com>
To: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>,
	linux-kernel@vger.kernel.org,
	Alexis Berlemont <alexis.berlemont@gmail.com>,
	Arnaldo Carvalho de Melo <acme@redhat.com>,
	Borislav Petkov <bp@alien8.de>,
	Corey Ashford <cjashfor@linux.vnet.ibm.com>,
	Frederic Weisbecker <fweisbec@gmail.com>,
	Ingo Molnar <mingo@kernel.org>,
	Namhyung Kim <namhyung@kernel.org>,
	Paul Mackerras <paulus@samba.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Stephane Eranian <eranian@google.com>
Subject: Re: [PATCH 08/36] perf build: Add builtin objects building
Date: Wed, 21 Jan 2015 20:12:23 +0100	[thread overview]
Message-ID: <20150121191223.GF6835@krava.brq.redhat.com> (raw)
In-Reply-To: <54BFF557.1070809@gmail.com>

On Wed, Jan 21, 2015 at 11:52:07AM -0700, David Ahern wrote:
> On 1/20/15 9:39 AM, Jiri Olsa wrote:
> >Move the rest of builtin objects (bench and test are
> >already in) building under build framework.
> >
> >Signed-off-by: Jiri Olsa <jolsa@kernel.org>
> >Cc: Alexis Berlemont <alexis.berlemont@gmail.com>
> >Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
> >Cc: Borislav Petkov <bp@alien8.de>
> >Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
> >Cc: David Ahern <dsahern@gmail.com>
> >Cc: Frederic Weisbecker <fweisbec@gmail.com>
> >Cc: Ingo Molnar <mingo@kernel.org>
> >Cc: Namhyung Kim <namhyung@kernel.org>
> >Cc: Paul Mackerras <paulus@samba.org>
> >Cc: Peter Zijlstra <peterz@infradead.org>
> >Cc: Stephane Eranian <eranian@google.com>
> >---
> >  tools/perf/Build           | 29 +++++++++++++++++++++++++++++
> >  tools/perf/Makefile.perf   | 35 -----------------------------------
> >  tools/perf/config/Makefile |  4 ++++
> >  3 files changed, 33 insertions(+), 35 deletions(-)
> 
> This one fails to build:
> 
> $ git --no-pager log --oneline -1
> cd2a9b144028 perf build: Add builtin objects building
> 
> $ make O=/tmp/junk
> ...
> builtin-help.c:10:25: fatal error: common-cmds.h: No such file or directory
> compilation terminated.
>   CC       /tmp/junk/fs/fs.o
>   CC       /tmp/junk/builtin-script.o
>   CC       /tmp/junk/builtin-kmem.o
>   CC       /tmp/junk/perf-read-vdso32
>   CC       /tmp/junk/ui/gtk/browser.o
>   CC       /tmp/junk/fd/array.o
>   CC       /tmp/junk/ui/gtk/hists.o
>   CC       /tmp/junk/builtin-lock.o
> make[2]: *** [/tmp/junk/builtin-help.o] Error 1
> make[2]: *** Waiting for unfinished jobs....

hum I can't reproduce, but I can see why

on the commit you mentioned there're foolowing dependencies:

	$(PERF_IN): FORCE
		@$(MAKE) $(build)=perf

	$(OUTPUT)perf.o: perf.c $(OUTPUT)common-cmds.h $(OUTPUT)PERF-CFLAGS
		$(QUIET_CC)$(CC) -include $(OUTPUT)PERF-VERSION-FILE \
			'-DPERF_HTML_PATH="$(htmldir_SQ)"' \
			$(CFLAGS) -c $(filter %.c,$^) -o $@

	$(OUTPUT)perf: $(OUTPUT)perf.o $(BUILTIN_OBJS) $(PERFLIBS) $(PERF_IN)
		$(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $(OUTPUT)perf.o \
		       $(BUILTIN_OBJS) $(PERF_IN) $(LIBS) -o $@


so $(OUTPUT)common-cmds.h gets build only for perf.o, while
it's needed before we dive in to $(PERF_IN) target..

this get's fixed later on within commit:
  a07488a79e78 perf build: Add perf.o object building

where we have:
	$(PERF_IN): $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)common-cmds.h FORCE
		$(Q)$(MAKE) $(build)=perf


I'll propagate the $(OUTPUT)common-cmds.h dependency to commit
  cd2a9b144028 perf build: Add builtin objects building

like attached change

thanks for testing,
jirka


---
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index b0df3ec91104..061289d25fa8 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -550,7 +550,7 @@ PERF_IN := $(OUTPUT)perf-in.o
 export srctree OUTPUT RM CC LD AR CFLAGS V
 build := -f $(srctree)/tools/build/Makefile.build dir=. obj
 
-$(PERF_IN): FORCE
+$(PERF_IN): FORCE $(OUTPUT)common-cmds.h
 	@$(MAKE) $(build)=perf
 
 $(OUTPUT)perf.o: perf.c $(OUTPUT)common-cmds.h $(OUTPUT)PERF-CFLAGS

  reply	other threads:[~2015-01-21 19:13 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-20 16:38 [PATCHv3 00/36] perf tools: New build framework Jiri Olsa
2015-01-20 16:38 ` [PATCH 01/36] tools build: Add new build support Jiri Olsa
2015-01-20 16:38 ` [PATCH 02/36] tools build: Add detected config support Jiri Olsa
2015-01-20 16:39 ` [PATCH 03/36] tools build: Add subdir support Jiri Olsa
2015-01-20 16:39 ` [PATCH 04/36] perf tools: Remove api fs object from python build Jiri Olsa
2015-01-20 16:39 ` [PATCH 05/36] perf build: Disable make's built-in rules Jiri Olsa
2015-01-20 16:39 ` [PATCH 06/36] perf build: Add bench objects building Jiri Olsa
2015-01-20 16:39 ` [PATCH 07/36] perf build: Add tests " Jiri Olsa
2015-01-20 16:39 ` [PATCH 08/36] perf build: Add builtin " Jiri Olsa
2015-01-21 18:52   ` David Ahern
2015-01-21 19:12     ` Jiri Olsa [this message]
2015-01-21 19:18       ` David Ahern
2015-01-21 19:22         ` Jiri Olsa
2015-01-20 16:39 ` [PATCH 09/36] perf build: Add libperf " Jiri Olsa
2015-01-20 16:39 ` [PATCH 10/36] perf build: Add probe " Jiri Olsa
2015-01-20 16:39 ` [PATCH 11/36] perf build: Add dwarf " Jiri Olsa
2015-01-20 16:39 ` [PATCH 12/36] perf build: Add dwarf unwind " Jiri Olsa
2015-01-20 16:39 ` [PATCH 13/36] perf build: Add ui " Jiri Olsa
2015-01-20 16:39 ` [PATCH 14/36] perf build: Add slang " Jiri Olsa
2015-01-20 16:39 ` [PATCH 15/36] perf build: Add gtk " Jiri Olsa
2015-01-20 16:39 ` [PATCH 16/36] perf build: Add scripts " Jiri Olsa
2015-01-20 16:39 ` [PATCH 17/36] perf build: Add perf regs " Jiri Olsa
2015-01-20 16:39 ` [PATCH 18/36] perf build: Add zlib " Jiri Olsa
2015-01-20 16:39 ` [PATCH 19/36] perf build: Add perf.o object building Jiri Olsa
2015-01-20 16:39 ` [PATCH 20/36] perf build: Add arch x86 objects building Jiri Olsa
2015-01-21 21:17   ` David Ahern
2015-01-21 21:31     ` Jiri Olsa
2015-01-21 21:45       ` David Ahern
2015-01-22 11:32         ` Jiri Olsa
2015-01-20 16:39 ` [PATCH 21/36] perf build: Add arch arm " Jiri Olsa
2015-01-20 16:39 ` [PATCH 22/36] perf build: Add arch arm64 " Jiri Olsa
2015-01-20 16:39 ` [PATCH 23/36] perf build: Add arch powerpc " Jiri Olsa
2015-01-20 16:39 ` [PATCH 24/36] perf build: Add arch s390 " Jiri Olsa
2015-01-20 16:39 ` [PATCH 25/36] perf build: Add arch sh " Jiri Olsa
2015-01-20 16:39 ` [PATCH 26/36] perf build: Add arch sparc " Jiri Olsa
2015-01-20 16:39 ` [PATCH 27/36] perf build: Add single target build framework support Jiri Olsa
2015-01-20 16:39 ` [PATCH 28/36] perf build: Remove directory dependency rules Jiri Olsa
2015-01-20 16:39 ` [PATCH 29/36] perf build: Remove uneeded variables Jiri Olsa
2015-01-20 16:39 ` [PATCH 30/36] perf build: Remove PERF-CFLAGS file Jiri Olsa
2015-01-20 16:39 ` [PATCH 31/36] perf build: Add build documentation Jiri Olsa
2015-01-20 16:39 ` [PATCH 32/36] tools lib api: Use tools build framework Jiri Olsa
2015-01-20 16:39 ` [PATCH 33/36] tools lib api: Rename libapikfs.a to libapi.a Jiri Olsa
2015-01-20 16:39 ` [PATCH 34/36] tools lib traceevent: Use tools build framework Jiri Olsa
2015-01-20 16:39 ` [PATCH 35/36] tools lib lockdep: " Jiri Olsa
2015-01-20 16:39 ` [PATCH 36/36] perf build: Display make commands on V=1 Jiri Olsa
2015-01-20 23:02 ` [PATCHv3 00/36] perf tools: New build framework David Ahern
2015-01-21  6:14   ` Ingo Molnar
2015-01-21 12:03     ` Jiri Olsa
2015-01-21  6:13 ` Ingo Molnar
2015-01-21 12:01   ` Jiri Olsa
2015-01-21 17:25 ` Will Deacon
2015-01-26  9:21   ` Jiri Olsa
2015-01-21 23:30 ` Sukadev Bhattiprolu
2015-01-26  9:20   ` Jiri Olsa
  -- strict thread matches above, loose matches on Subject: below --
2015-01-26 10:12 [PATCHv4 " Jiri Olsa
2015-01-26 10:12 ` [PATCH 08/36] perf build: Add builtin objects building Jiri Olsa
2015-01-15 12:54 [PATCHv2 00/36] perf tools: New build framework Jiri Olsa
2015-01-15 12:55 ` [PATCH 08/36] perf build: Add builtin objects building Jiri Olsa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150121191223.GF6835@krava.brq.redhat.com \
    --to=jolsa@redhat.com \
    --cc=acme@redhat.com \
    --cc=alexis.berlemont@gmail.com \
    --cc=bp@alien8.de \
    --cc=cjashfor@linux.vnet.ibm.com \
    --cc=dsahern@gmail.com \
    --cc=eranian@google.com \
    --cc=fweisbec@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=namhyung@kernel.org \
    --cc=paulus@samba.org \
    --cc=peterz@infradead.org \
    --subject='Re: [PATCH 08/36] perf build: Add builtin objects building' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).