All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <yi1.lai@intel.com>
To: Ian Rogers <irogers@google.com>
Cc: oe-lkp@lists.linux.dev, lkp@intel.com,
	Arnaldo Carvalho de Melo <acme@redhat.com>,
	linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org,
	yi1.lai@intel.com
Subject: [linux-next:master] [perf tests]  1572ba36fb: perf-sanity-tests.perf.make.fail
Date: Fri, 18 Sep 2026 11:27:22 +0800	[thread overview]
Message-ID: <202609180536.c80fabf6-lkp@intel.com> (raw)


Hello,

kernel test robot noticed "perf-sanity-tests.perf.make.fail" on:

commit: 1572ba36fbca95835dc17b35a70c4524301205c6 ("perf tests: Improvements to build-test performance") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master

[test failed on linux-next/master 0d9d0dbf2fddcff5859d623e90ca73c4054276e1]

in testcase: perf-sanity-tests
with following parameters:

	perf_compiler: clang
	group: group-00

config: x86_64-rhel-9.4-bpf
compiler: gcc-14
test machine: 10 threads 1 sockets Intel(R) Core Ultra Series 3 @ 3.20GHz (Panther Lake) with 32G memory

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <yi1.lai@intel.com>
| Closes: https://lore.kernel.org/oe-lkp/202609180536.c80fabf6-lkp@intel.com


make PERF failed:
Makefile.config:1046: No babeltrace2 found, disables 'perf data' CTF format support, please install libbabeltrace2-dev[el]
Makefile.config:1136: Rust is not found. Test workloads with rust are disabled.
  PERF_VERSION = 7.3.0-rc2
util/demangle-cxx.cpp:5:10: fatal error: linux/compiler.h: No such file or directory
    5 | #include <linux/compiler.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [/usr/src/perf_selftests-x86_64-rhel-9.4-bpf-1572ba36fbca95835dc17b35a70c4524301205c6/tools/build/Makefile.build:100: util/demangle-cxx.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [/usr/src/perf_selftests-x86_64-rhel-9.4-bpf-1572ba36fbca95835dc17b35a70c4524301205c6/tools/build/Makefile.build:158: util] Error 2
make[2]: *** [Makefile.perf:574: perf-util-in.o] Error 2
make[1]: *** [Makefile.perf:286: sub-make] Error 2
make: *** [Makefile:82: all] Error 2

Root cause analysis assisted by LLM:

Commit 1572ba36fbca ("perf tests: Improvements to build-test
performance") made tools/perf/Makefile and tools/perf/tests/make skip
computing PARALLEL_OPT/-j$(JOBS) entirely whenever MAKEFLAGS contains
the substrings "-j" or "jobserver", on the assumption that this means
a live GNU Make jobserver is available and should be trusted.

This assumption doesn't always hold: MAKEFLAGS can be set as a plain
environment variable by outer packaging tooling (rpmbuild/mock's
%make_build, %_smp_mflags, etc.) without a live jobserver pipe backing
it. When that happens, PARALLEL_OPT is silently left unset, and worse,
the documented 'make JOBS=1' override -- which the comment explicitly
promises still works -- is ignored too, because the JOBS handling is
nested *inside* the same detection gate. This can result in mismatched
parallelism between nested sub-makes and build failures such as:

  util/demangle-cxx.cpp:5:10: fatal error: linux/compiler.h: No such file or directory

The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20260918/202609180536.c80fabf6-lkp@intel.com

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


                 reply	other threads:[~2026-09-18  3:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202609180536.c80fabf6-lkp@intel.com \
    --to=yi1.lai@intel.com \
    --cc=acme@redhat.com \
    --cc=irogers@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=oe-lkp@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.