Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758794AbcLBItQ (ORCPT ); Fri, 2 Dec 2016 03:49:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46262 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758471AbcLBItN (ORCPT ); Fri, 2 Dec 2016 03:49:13 -0500 Date: Fri, 2 Dec 2016 09:49:10 +0100 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Peter Foley , LKML , wangnan0@huawei.com Subject: Re: [PATCHv3] tools build: Make fixdep parsing wait for last target Message-ID: <20161202084910.GA21304@krava> References: <20161128165859.GC30148@krava> <20161128194046.GB2361@redhat.com> <20161129142808.GA10972@krava> <20161129143314.GC2361@redhat.com> <20161129143935.GA22691@krava> <20161129144904.GD2361@redhat.com> <20161201130025.GA16430@krava> <20161201185323.GB4953@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161201185323.GB4953@redhat.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 02 Dec 2016 08:49:12 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1312 Lines: 37 On Thu, Dec 01, 2016 at 04:53:23PM -0200, Arnaldo Carvalho de Melo wrote: SNIP > [acme@jouet linux]$ m > make: Entering directory '/home/acme/git/linux/tools/perf' > BUILD: Doing 'make -j4' parallel build > CC /tmp/build/perf/jvmti/libjvmti.o > CC /tmp/build/perf/jvmti/jvmti_agent.o > HOSTCC /tmp/build/perf/pmu-events/json.o > HOSTCC /tmp/build/perf/fixdep.o > HOSTCC /tmp/build/perf/pmu-events/jsmn.o > HOSTLD /tmp/build/perf/fixdep-in.o > LINK /tmp/build/perf/fixdep > /bin/sh: /tmp/build/perf//fixdep: Permission denied > /home/acme/git/linux/tools/build/Makefile.build:91: recipe for target '/tmp/build/perf/pmu-events/jsmn.o' failed I think this is unrelated.. I think we're missing jevents fixdep dependency I'll test patch below and send it separately jirka --- diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 3cb1df43ad3e..5d968af132e2 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -465,7 +465,7 @@ $(PERF_IN): prepare FORCE || echo "Warning: tools/include/uapi/linux/mman.h differs from kernel" >&2 )) || true $(Q)$(MAKE) $(build)=perf -$(JEVENTS_IN): FORCE +$(JEVENTS_IN): fixdep FORCE $(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=pmu-events obj=jevents $(JEVENTS): $(JEVENTS_IN)