On Wed, Jun 15, 2022 at 12:23 AM Sedat Dilek <sedat.dilek@xxxxxxxxx> wrote: > > [ CC linux-kbuild folks ] > > Hi, > > while digging into a perf issue I see this: > > $ cd /path/to/linux.git > > $ LC_ALL=C make -C tools/ clean 2>&1 | tee ../make-log_tools-clean.txt > ... > DESCEND tracing > make[1]: Entering directory '/home/dileks/src/linux-kernel/git/tools/tracing' > DESCEND latency > make[2]: Entering directory > '/home/dileks/src/linux-kernel/git/tools/tracing/latency' > rm -f latency-collector > make[2]: Leaving directory > '/home/dileks/src/linux-kernel/git/tools/tracing/latency' > DESCEND rtla > make[2]: Entering directory > '/home/dileks/src/linux-kernel/git/tools/tracing/rtla' > make -C /home/dileks/src/linux-kernel/git/tools/tracing/rtla/../../../Documentation/tools/rtla/ > clean > make[3]: Entering directory > '/home/dileks/src/linux-kernel/git/Documentation/tools/rtla' > rm -f rtla-osnoise-hist.1 rtla-osnoise-top.1 rtla-osnoise.1 > rtla-timerlat-hist.1 rtla-timerlat-top.1 rtla-timerlat.1 rtla.1 > make[3]: Leaving directory > '/home/dileks/src/linux-kernel/git/Documentation/tools/rtla' > /bin/sh: 1: test: rtla-make[2]:: unexpected operator > rm: cannot remove '/home/dileks/src/linux-kernel/git': Is a directory > make[2]: *** [Makefile:120: clean] Error 1 > make[2]: Leaving directory > '/home/dileks/src/linux-kernel/git/tools/tracing/rtla' > make[1]: *** [Makefile:26: rtla_clean] Error 2 > make[1]: Leaving directory '/home/dileks/src/linux-kernel/git/tools/tracing' > make: *** [Makefile:170: tracing_clean] Error 2 > make: Leaving directory '/home/dileks/src/linux-kernel/git/tools' > > Please check yourself. > > Regards, > -Sedat- Friendly pting! The issue still remains with Linux v5.19-rc4: $ head -5 Makefile # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 19 SUBLEVEL = 0 EXTRAVERSION = -rc4 $ LC_ALL=C make -C tools/ clean 2>&1 | tee ../make-log_tools-clean.txt [ ... ] DESCEND rtla make[2]: Entering directory '/home/dileks/src/linux/git/tools/tracing/rtla' make -C /home/dileks/src/linux/git/tools/tracing/rtla/../../../Documentation/tools/rtla/ clean make[3]: Entering directory '/home/dileks/src/linux/git/Documentation/tools/rtla' rm -f rtla-osnoise-hist.1 rtla-osnoise-top.1 rtla-osnoise.1 rtla-timerlat-hist.1 rtla-timerlat-top.1 rtla-timerlat.1 rtla.1 make[3]: Leaving directory '/home/dileks/src/linux/git/Documentation/tools/rtla' /bin/sh: 1: test: rtla-make[2]:: unexpected operator rm: cannot remove '/home/dileks/src/linux/git': Is a directory make[2]: *** [Makefile:120: clean] Error 1 make[2]: Leaving directory '/home/dileks/src/linux/git/tools/tracing/rtla' make[1]: *** [Makefile:26: rtla_clean] Error 2 make[1]: Leaving directory '/home/dileks/src/linux/git/tools/tracing' make: *** [Makefile:170: tracing_clean] Error 2 make: Leaving directory '/home/dileks/src/linux/git/tools' -sed@-