From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756242AbbJ1VBb (ORCPT ); Wed, 28 Oct 2015 17:01:31 -0400 Received: from mail.kernel.org ([198.145.29.136]:39958 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755731AbbJ1VBa (ORCPT ); Wed, 28 Oct 2015 17:01:30 -0400 Date: Wed, 28 Oct 2015 18:01:25 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Jiri Olsa , Wang Nan , Linux Kernel Mailing List Subject: Re: tools/build: fixdep versus tools/lib/bpf Message-ID: <20151028210125.GE19695@kernel.org> References: <20151028163040.GA19695@kernel.org> <20151028201352.GA14076@krava.brq.redhat.com> <20151028203752.GD19695@kernel.org> <20151028204450.GA25553@krava.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151028204450.GA25553@krava.redhat.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Oct 28, 2015 at 09:44:50PM +0100, Jiri Olsa escreveu: > On Wed, Oct 28, 2015 at 05:37:52PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Wed, Oct 28, 2015 at 09:13:52PM +0100, Jiri Olsa escreveu: > > > On Wed, Oct 28, 2015 at 01:30:40PM -0300, Arnaldo Carvalho de Melo wrote: > > > > Hi Jiri, Wang, > > > > > > > > I'm getting these while doing 'make -C tools/perf build-test': > > > > > > > > LD fixdep-in.o > > > > LINK fixdep > > > > /bin/sh: /home/acme/git/linux/tools/build/fixdep: Permission denied > > > > make[6]: *** [bpf.o] Error 1 > > > > make[5]: *** [libbpf-in.o] Error 2 > > > > make[4]: *** [/home/acme/git/linux/tools/lib/bpf/libbpf.a] Error 2 > > > > make[4]: *** Waiting for unfinished jobs.... > > > > > > > > > > > > It happens at different tests, i.e. seems like a race somewhere in the > > > > build system, can you take a look? It happens with my perf/ebpf branch. > > > > > > could not reproduce, but looks like attached patch should help > > > > I'll test this now, i.e. make it go thru a 'make -C tools/perf > > build-test'. > > > > In the interest of speeding up things, please provide an explanation of > > why this should be applied, so that I can add it to the changeset log. > > > > Thanks a bunch! > > > > The fixdep tool needs to be built as the first binary. > Libraries are built in paralel, so each of them needs > to depend on fixdep target. I really need a faster machine, you provided the answer at this point: - make_tags_O: cd . && make -f Makefile O=/tmp/tmp.xfRz6THR6o DESTDIR=/tmp/tmp.y0nuN0Fr9n tags - make_cscope_O: cd . && make -f Makefile O=/tmp/tmp.O6phQXHU4z DESTDIR=/tmp/tmp.5mdMeF1pH2 cscope - tarpkg: ./tests/perf-targz-src-pkg . - make -C tools/perf - make -C /tools perf Almost there :-) - Arnaldo