Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932906AbcDHMzV (ORCPT ); Fri, 8 Apr 2016 08:55:21 -0400 Received: from mail.kernel.org ([198.145.29.136]:58057 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932792AbcDHMzP (ORCPT ); Fri, 8 Apr 2016 08:55:15 -0400 Date: Fri, 8 Apr 2016 09:55:09 -0300 From: Arnaldo Carvalho de Melo To: Wang Nan Cc: pi3orama@163.com, linux-kernel@vger.kernel.org, lizefan@huawei.com, Adrian Hunter , David Ahern , Jiri Olsa , Namhyung Kim , Ingo Molnar Subject: Re: [PATCH] perf build: Fix syscall table dependency error Message-ID: <20160408125509.GK5945@kernel.org> References: <1460097325-94911-1-git-send-email-wangnan0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1460097325-94911-1-git-send-email-wangnan0@huawei.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2089 Lines: 56 Em Fri, Apr 08, 2016 at 06:35:25AM +0000, Wang Nan escreveu: > Commit 42abeef7e8df ("perf tools: Build syscall table .c header from > kernel's syscall_64.tbl") introduces archheaders dependency. It is > added to 'prepare', but not added directly to libperf-in.o, causes > following error: > > $ make -C ./tools/perf/ O=/tmp/xxxxx/ /tmp/xxxxx/libperf-in.o JOBS=1 > make: Entering directory `/xx/xx/tools/perf' > BUILD: Doing 'make -j1' parallel build > > Auto-detecting system features: > ... dwarf: [ on ] > ... dwarf_getlocations: [ on ] > > CC /tmp/xxxxx/util/map.o > CC /tmp/xxxxx/util/pstack.o > CC /tmp/xxxxx/util/session.o > make[3]: *** No rule to make target `/tmp/xxxxx/arch/x86/include/generated/asm/syscalls_64.c', needed by `/tmp/xxxxx/util/syscalltbl.o'. Stop. > make[2]: *** [util] Error 2 > make[1]: *** [/tmp/xxxxx/libperf-in.o] Error 2 > make: *** [/tmp/xxxxx/libperf-in.o] Error 2 > make: Leaving directory `/home/w00229757/kernel-hydrogen/tools/perf' > > In parallel building this missing dependency causes building error. > > Add 'prepare' to libperf-in's dependency. Thanks, I'll try to merge this into the offending patch so that we don't lose bisection, Ingo, if you hear me, please don't pull the latest tag. - Arnaldo > Signed-off-by: Wang Nan > Cc: Adrian Hunter > Cc: David Ahern > Cc: Jiri Olsa > Cc: Namhyung Kim > --- > tools/perf/Makefile.perf | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf > index 1469aea..bde8cba 100644 > --- a/tools/perf/Makefile.perf > +++ b/tools/perf/Makefile.perf > @@ -433,7 +433,7 @@ $(patsubst perf-%,%.o,$(PROGRAMS)): $(wildcard */*.h) > > LIBPERF_IN := $(OUTPUT)libperf-in.o > > -$(LIBPERF_IN): fixdep FORCE > +$(LIBPERF_IN): prepare fixdep FORCE > $(Q)$(MAKE) $(build)=libperf > > $(LIB_FILE): $(LIBPERF_IN) > -- > 1.8.3.4