Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757709AbcDHGfv (ORCPT ); Fri, 8 Apr 2016 02:35:51 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:18881 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750937AbcDHGft (ORCPT ); Fri, 8 Apr 2016 02:35:49 -0400 From: Wang Nan To: CC: , , , , Adrian Hunter , David Ahern , Jiri Olsa , Namhyung Kim Subject: [PATCH] perf build: Fix syscall table dependency error Date: Fri, 8 Apr 2016 06:35:25 +0000 Message-ID: <1460097325-94911-1-git-send-email-wangnan0@huawei.com> X-Mailer: git-send-email 1.8.3.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.193.248] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.57075139.0109,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 7928590f84769b72b51a13a787e94b7f Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1772 Lines: 50 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. 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