From nobody Sun Feb 8 01:34:14 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 848BD32D7EE; Thu, 16 Oct 2025 12:44:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760618668; cv=none; b=IgTWxTBpM2a0s4n5BO5QkL8VNMwbxUCd3Nd5dZFmxihouQHa8SUf4RBKYQa7DZNpuKNtrmIisidcHSvh33KDZG8oPcq4xbh8qtDC4Sfv8B1G0eqkrrNU8z6/eo5nEIaiz5r9hpz0Krc/xV7UtO6kxofyZfugz0VNdcNwnSB3OCo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760618668; c=relaxed/simple; bh=wRfqpzikK0uqrGv9z1MjAp+CKuVXDPwHBy6XbDt08o0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=StfjYMnmaqe9BCdZW3xkI7N0KeaPeKIIp0azzX3VeGvdF1Qh08X3NcLY7MBVq7rBX0qoi6Bu0ySD5cc9pQ22dDUanmhuc4OODaVgwmP1KRR+z+qf8j8k1qJx6UasTNe4re/Eh59MEISjWMReN2otOXJLplQs65iUiagMy8bxGzY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03B34C116B1; Thu, 16 Oct 2025 12:44:24 +0000 (UTC) From: Geert Uytterhoeven To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/2] perf build: Fix confusing "No python interpreter needed" message Date: Thu, 16 Oct 2025 14:44:11 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" When python is not installed, the error message sounds like python is not a dependency, while it is. Reword to make this clear. Signed-off-by: Geert Uytterhoeven --- tools/perf/Makefile.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 5700516aa84aec2c..a6448a804ee53a36 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -915,7 +915,7 @@ endif ifneq ($(NO_JEVENTS),1) NO_JEVENTS :=3D 0 ifndef PYTHON - $(error ERROR: No python interpreter needed for jevents generation. In= stall python or build with NO_JEVENTS=3D1.) + $(error ERROR: No python interpreter found for jevents generation. Ins= tall python or build with NO_JEVENTS=3D1.) else # jevents.py uses f-strings present in Python 3.6 released in Dec. 201= 6. JEVENTS_PYTHON_GOOD :=3D $(shell $(PYTHON) -c 'import sys;print("1" if= (sys.version_info.major >=3D 3 and sys.version_info.minor >=3D 6) else "0")= ' 2> /dev/null) --=20 2.43.0 From nobody Sun Feb 8 01:34:14 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 555DD32D7EE; Thu, 16 Oct 2025 12:44:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760618670; cv=none; b=FfnU5eKdySNQyKuJgHzC7RWqDqxzc2/V71qoxTTTH47+5hm7KBOi4PRmsOoIMZSb+DMMJ727GDD8CDW0YjItA88Lg1cgvxfBuDl/7T3iiqc8cqOrGNygGSaF+PZLryTCwusA5JrQ89HjiTAhGiEzcZwbR30Mwqeyx51n7qvkf2A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760618670; c=relaxed/simple; bh=pko+Sz+zbn4N9c1pHJpcRm2vsnOhT9/f5CoxdPS8PEY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JOzul0aVjlcGeH1XgFv1DfHuen0nOLgqhwmHyQ1T2vHW5ifbvc3HINv3oAOHKWZhvCaewB1OCZRHxjZmzj2++FdeT5jMgw9k6CLedwb+GjgRyU9DphXZ/lCOmenBFbmXeXXdA+9IKyJunLqe8EnNwYeh/DJTfkRvukb98vEZglc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFED7C113D0; Thu, 16 Oct 2025 12:44:27 +0000 (UTC) From: Geert Uytterhoeven To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/2] perf build: Add Debian/Ubuntu python-is-python3 Date: Thu, 16 Oct 2025 14:44:12 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The build looks for "python" and "python-config", while modern distributions provide only "python3" and "python3-config" by default. Suggest installing "python-is-python3" and "python-dev-is-python3", as available on Debian 11 (bullseye) and Ubuntu 20.04 LTS (focal) and later. Signed-off-by: Geert Uytterhoeven --- tools/perf/Makefile.config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index a6448a804ee53a36..b37149afdb1d27ba 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -872,7 +872,7 @@ ifdef NO_LIBPYTHON else =20 ifndef PYTHON - $(call disable-python,No python interpreter was found: disables Python= support - please install python-devel/python-dev) + $(call disable-python,No python interpreter was found: disables Python= support - please install python-devel/python-dev/python-dev-is-python3) else PYTHON_WORD :=3D $(call shell-wordify,$(PYTHON)) =20 @@ -915,7 +915,7 @@ endif ifneq ($(NO_JEVENTS),1) NO_JEVENTS :=3D 0 ifndef PYTHON - $(error ERROR: No python interpreter found for jevents generation. Ins= tall python or build with NO_JEVENTS=3D1.) + $(error ERROR: No python interpreter found for jevents generation. Ins= tall python/python-is-python3 or build with NO_JEVENTS=3D1.) else # jevents.py uses f-strings present in Python 3.6 released in Dec. 201= 6. JEVENTS_PYTHON_GOOD :=3D $(shell $(PYTHON) -c 'import sys;print("1" if= (sys.version_info.major >=3D 3 and sys.version_info.minor >=3D 6) else "0")= ' 2> /dev/null) --=20 2.43.0