Re: [tip:perf/urgent] perf tools: Fix build errors with O andDESTDIR make vars set

From: Robert Richter
Date: Fri Jul 12 2013 - 05:39:23 EST


On 12.07.13 01:49:40, tip-bot for Robert Richter wrote:
> Commit-ID: 107de3724eff5a6fa6474a4d2aa5460b63749ebf
> Gitweb: http://git.kernel.org/tip/107de3724eff5a6fa6474a4d2aa5460b63749ebf
> Author: Robert Richter <robert.richter@xxxxxxxxxx>
> AuthorDate: Tue, 11 Jun 2013 17:22:38 +0200
> Committer: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
> CommitDate: Mon, 8 Jul 2013 17:34:00 -0300
>
> perf tools: Fix build errors with O and DESTDIR make vars set
>
> Fixing build errors with O and DESTDIR make vars set:
>
> $ make prefix=/usr/local O=$builddir DESTDIR=$destdir -C tools/ perf
> ...
> make[1]: Entering directory `.../.source/perf/tools/perf'
> CC .../.build/perf/perf/util/parse-events.o
> util/parse-events.c:14:32: fatal error: parse-events-bison.h: No such file or directory
> compilation terminated.
> make[1]: *** [.../.build/perf/perf/util/parse-events.o] Error 1
> ...

Boris just raised another variant of building perf tools, which
unfortunately is broken now:

$ make tools/perf
LINK /home/robert/cx/linux/tools/perf/perf
gcc: error: ../linux/tools/lib/lk/liblk.a: No such file or directory

There is also

$ make -C tools perf
$ make -C tools/perf

Plus variants with O= and DESTDIR set.

Looking how to fix this...

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