Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1258537

Re: tools/build: fixdep versus tools/lib/bpf

From "Wangnan (F)" <wangnan0@huawei.com>
Newsgroups linux.kernel
Subject Re: tools/build: fixdep versus tools/lib/bpf
Date 2015-10-29 03:40 +0100
Message-ID <qoLi9-2Ei-1@gated-at.bofh.it> (permalink)
References <qoBVv-51M-1@gated-at.bofh.it> <qoFmq-7nd-3@gated-at.bofh.it> <qoFFN-7u4-25@gated-at.bofh.it> <qoFPs-7xx-9@gated-at.bofh.it> <qoG8O-7Um-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 2015/10/29 5:01, Arnaldo Carvalho de Melo wrote:
> 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.

Never see this message before. Tried make build-test, unable to reproduce
in my environment. Maybe my machine is not fast enough?

>>>> 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 <kernelsrc> tools/perf
> - make -C <kernelsrc>/tools perf
>
> Almost there :-)

So the problem is gone? Thanks to Jiri, and I'll add this to my local tree,
as a separated patch first.

Thank you.

> - Arnaldo


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

tools/build: fixdep versus tools/lib/bpf Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-10-28 17:40 +0100
  Re: tools/build: fixdep versus tools/lib/bpf Jiri Olsa <jolsa@redhat.com> - 2015-10-28 21:20 +0100
    Re: tools/build: fixdep versus tools/lib/bpf Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-10-28 21:40 +0100
      Re: tools/build: fixdep versus tools/lib/bpf Jiri Olsa <jolsa@redhat.com> - 2015-10-28 21:50 +0100
        Re: tools/build: fixdep versus tools/lib/bpf Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-10-28 22:10 +0100
          Re: tools/build: fixdep versus tools/lib/bpf "Wangnan (F)" <wangnan0@huawei.com> - 2015-10-29 03:40 +0100
        [tip:perf/core] perf tools:   Make sure fixdep is built before libbpf tip-bot for Jiri Olsa <tipbot@zytor.com> - 2015-10-30 10:20 +0100

csiph-web