[PATCH 01/10] kbuild: Bump minimum version of LLVM for building the kernel to 15.0.0

Nathan Chancellor posted 10 patches 1 month, 2 weeks ago
There is a newer version of this series
[PATCH 01/10] kbuild: Bump minimum version of LLVM for building the kernel to 15.0.0
Posted by Nathan Chancellor 1 month, 2 weeks ago
s390 and x86 have required LLVM 15 since

  30d17fac6aae ("scripts/min-tool-version.sh: raise minimum clang version to 15.0.0 for s390")
  7861640aac52 ("x86/build: Raise the minimum LLVM version to 15.0.0")

respectively but most other architectures allow LLVM 13.0.1 or newer. In
accordance with the recent minimum supported version of GCC bump that
happened in

  118c40b7b503 ("kbuild: require gcc-8 and binutils-2.30")

do the same for LLVM to 15.0.0.

Of the supported releases of Arch Linux, Debian, Fedora, and OpenSUSE
surveyed in evaluating this bump, this only leaves behind Debian
Bookworm (14.0.6) and Ubuntu Jammy (14.0.0). Debian Trixie has 19.1.7
and Ubuntu Noble has 18.1.3 (so there are viable upgrade paths) or users
can use apt.llvm.org, which provides even newer packages for those
distributions.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
---
Cc: linux-kbuild@vger.kernel.org
---
 Documentation/process/changes.rst | 2 +-
 scripts/min-tool-version.sh       | 6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/Documentation/process/changes.rst b/Documentation/process/changes.rst
index bccfa19b45df..b38622b0d525 100644
--- a/Documentation/process/changes.rst
+++ b/Documentation/process/changes.rst
@@ -30,7 +30,7 @@ you probably needn't concern yourself with pcmciautils.
         Program        Minimal version       Command to check the version
 ====================== ===============  ========================================
 GNU C                  8.1              gcc --version
-Clang/LLVM (optional)  13.0.1           clang --version
+Clang/LLVM (optional)  15.0.0           clang --version
 Rust (optional)        1.78.0           rustc --version
 bindgen (optional)     0.65.1           bindgen --version
 GNU make               4.0              make --version
diff --git a/scripts/min-tool-version.sh b/scripts/min-tool-version.sh
index 0d223b4a9445..99b5575c1ef7 100755
--- a/scripts/min-tool-version.sh
+++ b/scripts/min-tool-version.sh
@@ -24,12 +24,10 @@ gcc)
 	fi
 	;;
 llvm)
-	if [ "$SRCARCH" = s390 -o "$SRCARCH" = x86 ]; then
-		echo 15.0.0
-	elif [ "$SRCARCH" = loongarch ]; then
+	if [ "$SRCARCH" = loongarch ]; then
 		echo 18.0.0
 	else
-		echo 13.0.1
+		echo 15.0.0
 	fi
 	;;
 rustc)

-- 
2.50.1
Re: [PATCH 01/10] kbuild: Bump minimum version of LLVM for building the kernel to 15.0.0
Posted by Arnd Bergmann 1 month, 1 week ago
On Mon, Aug 18, 2025, at 20:57, Nathan Chancellor wrote:
> s390 and x86 have required LLVM 15 since
>
>   30d17fac6aae ("scripts/min-tool-version.sh: raise minimum clang 
> version to 15.0.0 for s390")
>   7861640aac52 ("x86/build: Raise the minimum LLVM version to 15.0.0")
>
> respectively but most other architectures allow LLVM 13.0.1 or newer. In
> accordance with the recent minimum supported version of GCC bump that
> happened in
>
>   118c40b7b503 ("kbuild: require gcc-8 and binutils-2.30")
>
> do the same for LLVM to 15.0.0.
>
> Of the supported releases of Arch Linux, Debian, Fedora, and OpenSUSE
> surveyed in evaluating this bump, this only leaves behind Debian
> Bookworm (14.0.6) and Ubuntu Jammy (14.0.0). Debian Trixie has 19.1.7
> and Ubuntu Noble has 18.1.3 (so there are viable upgrade paths) or users
> can use apt.llvm.org, which provides even newer packages for those
> distributions.
>
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
> ---

Acked-by: Arnd Bergmann <arnd@arndb.de>
Re: [PATCH 01/10] kbuild: Bump minimum version of LLVM for building the kernel to 15.0.0
Posted by Nicolas Schier 1 month, 1 week ago
On Mon, Aug 18, 2025 at 11:57:17AM -0700, Nathan Chancellor wrote:
> s390 and x86 have required LLVM 15 since
> 
>   30d17fac6aae ("scripts/min-tool-version.sh: raise minimum clang version to 15.0.0 for s390")
>   7861640aac52 ("x86/build: Raise the minimum LLVM version to 15.0.0")
> 
> respectively but most other architectures allow LLVM 13.0.1 or newer. In
> accordance with the recent minimum supported version of GCC bump that
> happened in
> 
>   118c40b7b503 ("kbuild: require gcc-8 and binutils-2.30")
> 
> do the same for LLVM to 15.0.0.
> 
> Of the supported releases of Arch Linux, Debian, Fedora, and OpenSUSE
> surveyed in evaluating this bump, this only leaves behind Debian
> Bookworm (14.0.6) and Ubuntu Jammy (14.0.0). Debian Trixie has 19.1.7
> and Ubuntu Noble has 18.1.3 (so there are viable upgrade paths) or users
> can use apt.llvm.org, which provides even newer packages for those
> distributions.
> 
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
> ---
> Cc: linux-kbuild@vger.kernel.org
> ---
>  Documentation/process/changes.rst | 2 +-
>  scripts/min-tool-version.sh       | 6 ++----
>  2 files changed, 3 insertions(+), 5 deletions(-)
> 

Acked-by: Nicolas Schier <nsc@kernel.org>