From: "Daniel P. Berrangé" <berrange@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Alex Bennée" <alex.bennee@linaro.org>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Kyle Evans" <kevans@freebsd.org>, "Warner Losh" <imp@bsdimp.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Pierrick Bouvier" <pierrick.bouvier@oss.qualcomm.com>
Subject: [PATCH v2 5/5] meson: bump min GCC to 12.0
Date: Tue, 15 Sep 2026 09:52:13 +0100 [thread overview]
Message-ID: <20260915085213.139944-6-berrange@redhat.com> (raw)
In-Reply-To: <20260915085213.139944-1-berrange@redhat.com>
This is a slight violation of our platform support policy since
current NetBSD only has GCC 10.4 as its system compiler. It
does, however, have new enough CLang and newer GCC versions can
be opted-in.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
meson.build | 4 ++--
tests/vm/netbsd | 6 +++++-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/meson.build b/meson.build
index fc1bb685ab..9845317b73 100644
--- a/meson.build
+++ b/meson.build
@@ -326,7 +326,7 @@ endif
foreach lang : all_languages
compiler = meson.get_compiler(lang)
- if compiler.get_id() == 'gcc' and compiler.version().version_compare('>=10.4')
+ if compiler.get_id() == 'gcc' and compiler.version().version_compare('>=12.0')
# ok
elif compiler.get_id() == 'clang' and compiler.compiles('''
#ifdef __apple_build_version__
@@ -342,7 +342,7 @@ foreach lang : all_languages
elif compiler.get_id() == 'emscripten'
# ok
else
- error('You either need GCC v10.4 or Clang v17.0 (or XCode Clang v17.0) to compile QEMU')
+ error('You either need GCC v12.0 or Clang v17.0 (or XCode Clang v17.0) to compile QEMU')
endif
endforeach
diff --git a/tests/vm/netbsd b/tests/vm/netbsd
index a9879f6146..749116d3dc 100755
--- a/tests/vm/netbsd
+++ b/tests/vm/netbsd
@@ -61,6 +61,9 @@ class NetBSDVM(basevm.BaseVM):
# libs: networking
"libslirp",
+
+ # Until system GCC is updated to >= 12.0
+ "clang",
]
BUILD_SCRIPT = """
@@ -72,7 +75,8 @@ class NetBSDVM(basevm.BaseVM):
tar -xf /dev/rld1a
cd ../build
../src/configure --disable-opengl --extra-ldflags=-L/usr/pkg/lib \
- --extra-cflags=-I/usr/pkg/include {configure_opts}
+ --extra-cflags=-I/usr/pkg/include {configure_opts} \
+ --cc=clang
gmake --output-sync -j{jobs} {target} {verbose}
"""
poweroff = "/sbin/poweroff"
--
2.55.0
next prev parent reply other threads:[~2026-09-15 8:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-15 8:52 [PATCH v2 0/5] Bump min compiler versions again Daniel P. Berrangé
2026-09-15 8:52 ` [PATCH v2 1/5] tests/vm: drop redundant '; ' at end of each shell command Daniel P. Berrangé via qemu development
2026-09-15 8:52 ` [PATCH v2 2/5] meson: simplify clang version checks Daniel P. Berrangé
2026-09-15 8:52 ` [PATCH v2 3/5] meson: bump min XCode CLang to 17.0 Daniel P. Berrangé
2026-09-15 8:52 ` [PATCH v2 4/5] meson: bump min upstream " Daniel P. Berrangé
2026-09-15 8:52 ` Daniel P. Berrangé [this message]
2026-09-15 14:53 ` [PATCH v2 0/5] Bump min compiler versions again Richard Henderson
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=20260915085213.139944-6-berrange@redhat.com \
--to=berrange@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=imp@bsdimp.com \
--cc=kevans@freebsd.org \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=pierrick.bouvier@oss.qualcomm.com \
--cc=qemu-devel@nongnu.org \
/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.