kbuild: require gcc-8 and binutils-2.30
authorArnd Bergmann <arnd@arndb.de>
Fri, 28 Mar 2025 17:21:44 +0000 (18:21 +0100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 30 Apr 2025 19:53:35 +0000 (21:53 +0200)
commit118c40b7b50340bf7ff7e0adee8e3bab6e552c82
treea35a88a635a850a0984a0838b2d7637a6bb3ff30
parentb4432656b36e5cc1d50a1f2dc15357543add530e
kbuild: require gcc-8 and binutils-2.30

Commit a3e8fe814ad1 ("x86/build: Raise the minimum GCC version to 8.1")
raised the minimum compiler version as enforced by Kbuild to gcc-8.1
and clang-15 for x86.

This is actually the same gcc version that has been discussed as the
minimum for all architectures several times in the past, with little
objection. A previous concern was the kernel for SLE15-SP7 needing to
be built with gcc-7. As this ended up still using linux-6.4 and there
is no plan for an SP8, this is no longer a problem.

Change it for all architectures and adjust the documentation accordingly.
A few version checks can be removed in the process.  The binutils
version 2.30 is the lowest version used in combination with gcc-8 on
common distros, so use that as the corresponding minimum.

Link: https://lore.kernel.org/lkml/20240925150059.3955569-32-ardb+git@google.com/
Link: https://lore.kernel.org/lkml/871q7yxrgv.wl-tiwai@suse.de/
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
12 files changed:
Documentation/admin-guide/README.rst
Documentation/kbuild/makefiles.rst
Documentation/process/changes.rst
Documentation/translations/it_IT/process/changes.rst
Documentation/translations/zh_CN/admin-guide/README.rst
arch/um/Makefile
include/linux/unroll.h
kernel/gcov/gcc_4_7.c
lib/test_fortify/Makefile
scripts/Makefile.compiler
scripts/gcc-plugins/gcc-common.h
scripts/min-tool-version.sh