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


Groups > linux.kernel > #1258398

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

From Jiri Olsa <jolsa@redhat.com>
Newsgroups linux.kernel
Subject Re: tools/build: fixdep versus tools/lib/bpf
Date 2015-10-28 21:20 +0100
Message-ID <qoFmq-7nd-3@gated-at.bofh.it> (permalink)
References <qoBVv-51M-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

jirka


---
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index 1e2e2d1d26b7..0d19d5447d6c 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -430,7 +430,7 @@ $(LIBAPI)-clean:
 	$(call QUIET_CLEAN, libapi)
 	$(Q)$(MAKE) -C $(LIB_DIR) O=$(OUTPUT) clean >/dev/null
 
-$(LIBBPF): FORCE
+$(LIBBPF): fixdep FORCE
 	$(Q)$(MAKE) -C $(BPF_DIR) O=$(OUTPUT) $(OUTPUT)libbpf.a
 
 $(LIBBPF)-clean:
--
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 | Next — Previous 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