From: Fabiano Rosas <farosas@suse.de>
To: Thomas Huth <thuth@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
qemu-devel@nongnu.org
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Nia Alarie" <nia@netbsd.org>, "Thomas Huth" <thuth@redhat.com>
Subject: Re: [PATCH] meson.build: Bump the minimum GCC version to v10.4
Date: Tue, 10 Mar 2026 15:08:15 -0300 [thread overview]
Message-ID: <8734271rsg.fsf@suse.de> (raw)
In-Reply-To: <20260310155331.320066-1-thuth@redhat.com>
Thomas Huth <thuth@redhat.com> writes:
> From: Thomas Huth <thuth@redhat.com>
>
> 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.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> meson.build | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meson.build b/meson.build
> index f45885f05a1..6ccca2325a7 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -325,7 +325,7 @@ endif
>
> foreach lang : all_languages
> compiler = meson.get_compiler(lang)
> - if compiler.get_id() == 'gcc' and compiler.version().version_compare('>=7.4')
> + if compiler.get_id() == 'gcc' and compiler.version().version_compare('>=10.4')
> # ok
> elif compiler.get_id() == 'clang' and compiler.compiles('''
> #ifdef __apple_build_version__
> @@ -341,7 +341,7 @@ foreach lang : all_languages
> elif compiler.get_id() == 'emscripten'
> # ok
> else
> - error('You either need GCC v7.4 or Clang v10.0 (or XCode Clang v15.0) to compile QEMU')
> + error('You either need GCC v10.4 or Clang v10.0 (or XCode Clang v15.0) to compile QEMU')
> endif
> endforeach
Acked-by: Fabiano Rosas <farosas@suse.de>
next prev parent reply other threads:[~2026-03-10 18:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-10 15:53 [PATCH] meson.build: Bump the minimum GCC version to v10.4 Thomas Huth
2026-03-10 18:08 ` Fabiano Rosas [this message]
2026-03-11 9:41 ` Daniel P. Berrangé
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=8734271rsg.fsf@suse.de \
--to=farosas@suse.de \
--cc=berrange@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=nia@netbsd.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
/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.