@samitouri / QOSamiQemu / commits / ce68ca57c1

meson.build: Bump the minimum GCC version to v10.4

Our minimum supported version of GCC used to be v7.4 since we still wanted to support NetBSD 9.x in the past: https://gitlab.com/qemu-project/qemu/-/issues/614 https://gitlab.com/qemu-project/qemu/-/commit/3830df5f83b9b52d949676 However, NetBSD 10 has already been released since two years ago (see https://www.netbsd.org/releases/formal-10/NetBSD-10.0.html), so according to our support policy, starting with QEMU v11.0, we don't have to take care of the previous major release of NetBSD anymore. Looking at the various distros that we take care of (see e.g. https://repology.org/project/gcc/versions), and the NetBSD 10.0 3rd party package information: https://cvsweb.netbsd.org/bsdweb.cgi/src/doc/3RDPARTY?rev=1.1905.2.14;content-type=text%2Fplain;only_with_tag=netbsd-10-0-RELEASE ... it seems like NetBSD 10 has the lowest version of GCC again, but at least it's GCC 10.4 now. Thus bump our GCC requirement to this version now. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Acked-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-ID: <20260310155331.320066-1-thuth@redhat.com>

Thomas Huth committed Mar 10, 2026 at 16:53 UTC ce68ca57c12fe40de7d4d6239d6974b9eb723ad7
1 file changed +2 -2
meson.build
+2 -2
@@ -329,7 +329,7 @@ endif
329
330 foreach lang : all_languages
331 compiler = meson.get_compiler(lang)
332 - if compiler.get_id() == 'gcc' and compiler.version().version_compare('>=7.4')
332 + if compiler.get_id() == 'gcc' and compiler.version().version_compare('>=10.4')
333 # ok
334 elif compiler.get_id() == 'clang' and compiler.compiles('''
335 #ifdef __apple_build_version__
@@ -345,7 +345,7 @@ foreach lang : all_languages
345 elif compiler.get_id() == 'emscripten'
346 # ok
347 else
348 - error('You either need GCC v7.4 or Clang v10.0 (or XCode Clang v15.0) to compile QEMU')
348 + error('You either need GCC v10.4 or Clang v10.0 (or XCode Clang v15.0) to compile QEMU')
349 endif
350 endforeach
351