Re: [PATCH] perf build: Override OUTPUT when building internal libraries
From: Dmitry Safonov
Date: Wed Nov 04 2026 - 19:31:46 EST
On Wed, 4 Nov 2026 at 20:44, Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> wrote:
>
> On Tue, Nov 03, 2026 at 04:55:21PM +0000, Dmitry Safonov via B4 Relay wrote:
> > From: Dmitry Safonov <dima@xxxxxxxxxx>
> >
> > After commit 1572ba36fbca ("perf tests: Improvements to build-test
> > performance"), building perf with OUTPUT on the command line fails:
> > make -C tools/perf OUTPUT=/tmp/linux/bld/perf/ ARCH=x86_64 LC_ALL=C CC=gcc HOSTCC=gcc LD=ld
>
> That '/bld/' is not reflected in the next line, copy'n'paste mistake?
It is, yes. The path in the build system is quite much longer, so I
decided to cut the noise and cut it in commit. But my eyes have
failed, and I should have re-checked it on the short path and copied
the output, really. Heh.
> > ...
> > make[3]: *** No rule to make target '/tmp/linux/perf/libsubcmd/libsubcmd.a'. Stop.
>
> ⬢ [acme@toolbx perf-tools]$ mkdir -p /tmp/linux/perf
> ⬢ [acme@toolbx perf-tools]$ make -C tools/perf OUTPUT=/tmp/linux/perf/ ARCH=x86_64 LC_ALL=C CC=gcc HOSTCC=gcc LD=ld
> make: Entering directory '/home/acme/git/perf-tools/tools/perf'
> BUILD: Doing 'make -j32' parallel build
> <SNIP>
> TEST /tmp/linux/perf/tests/shell/base_probe/test_line_semantics.sh.shellcheck_log
> GEN /tmp/linux/perf/arch/arm64/include/generated/asm/sysreg-defs.h
> make[3]: *** No rule to make target '/tmp/linux/perf/libsubcmd/libsubcmd.a'. Stop.
> make[2]: *** [Makefile.perf:827: /tmp/linux/perf/libsubcmd/libsubcmd.a] Error 2
> make[2]: *** Waiting for unfinished jobs....
> MKDIR /tmp/linux/perf/tests/shell/lib/
> TEST /tmp/linux/perf/tests/shell/lib/perf_metric_validation.py.mypy_log
> TEST /tmp/linux/perf/tests/shell/lib/perf_json_output_lint.py.mypy_log
> PERF_VERSION = 7.4.rc1.g45e09a6dbb2d
> make[3]: *** No rule to make target '/tmp/linux/perf/libsymbol/libsymbol.a'. Stop.
> make[3]: *** No rule to make target '/tmp/linux/perf/libperf/libperf.a'. Stop.
>
> Minor stuff, I'll fix it up and apply to perf-tools to send for 7.4-rc1,
Thanks!