From nobody Sat Sep 26 20:50:47 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1788431809; cv=none; d=zohomail.com; s=zohoarc; b=KopgVJVy2xS79TZpyar+9bBTKeZjEhIEfZJz3rQRH4mYrohQe8qGfV9yCqubk6tyth9ju1TpaCn6he593rfaUUuy9mSI+n8tEi8XrV9UKgWQg5KBNofhxgk1CFABXYrKlQZlUnCIi849KcdgVZp6ZGNkQvDnVFZr9EMXHCZm9HE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788431809; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=BRGJ2vqqkf3viAKpto/r69jGJv41BlqBCl8yQloZJ34=; b=KWIFh1bcJTIvv+12csNxtLg4HccoxQHevhD9M7oxObgpIxBMenUyMbk3GPY/JXkesb26XQ6y223+H89AOaglyiX9aUhbxN+3lZy9s1qyTbJw+yYZzpj+XyH4Q5ytE14WYVI3RMI9h/rfWqxA3lsgzD9SDz4FSxYzM3LJ/2zy8fI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788431809435575.2085896294043; Thu, 3 Sep 2026 03:36:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x24nd-0002XV-1b; Thu, 03 Sep 2026 06:36:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x24nY-0002We-Mb for qemu-devel@nongnu.org; Thu, 03 Sep 2026 06:36:01 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x24nX-0005Sf-7Q for qemu-devel@nongnu.org; Thu, 03 Sep 2026 06:36:00 -0400 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-678-Q1yVqh3RMlqfGgX9MaxFpw-1; Thu, 03 Sep 2026 06:35:55 -0400 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0519B1955D7A; Thu, 3 Sep 2026 10:35:54 +0000 (UTC) Received: from berrange.csb (headnet03.pony-001.prod.iad2.dc.redhat.com [10.2.32.114]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 3952E18005AD; Thu, 3 Sep 2026 10:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788431758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BRGJ2vqqkf3viAKpto/r69jGJv41BlqBCl8yQloZJ34=; b=KEpV5Ql2unnnt2fuL4W2+5JaWo6w4shsq16HM0bFLtLUNyJAz+lE0BTF/XS+HFSX17uMdF sBUFZLuZhMEQpkGbfZQkl/nUjYHqToy0xo6MDGoQQkdQWvZ5C9/U/+YHhCbZDIzkJDIEo9 KPte6COuTptE422FhN8F2pehND2Ee7U= X-MC-Unique: Q1yVqh3RMlqfGgX9MaxFpw-1 X-Mimecast-MFC-AGG-ID: Q1yVqh3RMlqfGgX9MaxFpw_1788431754 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Pierrick Bouvier , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH 1/4] meson: simplify clang version checks Date: Thu, 3 Sep 2026 11:35:45 +0100 Message-ID: <20260903103548.2142568-2-berrange@redhat.com> In-Reply-To: <20260903103548.2142568-1-berrange@redhat.com> References: <20260903103548.2142568-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1788431811327158500 The checks for the clang minor versions are currently redundant since there can never be a minor version less than zero. Going forward it is likely sufficient to always pick a NN.0.0 release as the min CLang version, so drop the minor version checks. Signed-off-by: Daniel P. Berrang=C3=A9 Acked-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Pierrick Bouvier --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 5c9de307b0..70e2755149 100644 --- a/meson.build +++ b/meson.build @@ -330,11 +330,11 @@ foreach lang : all_languages # ok elif compiler.get_id() =3D=3D 'clang' and compiler.compiles(''' #ifdef __apple_build_version__ - # if __clang_major__ < 15 || (__clang_major__ =3D=3D 15 && __clang_m= inor__ < 0) + # if __clang_major__ < 15 # error You need at least XCode Clang v15.0 to compile QEMU # endif #else - # if __clang_major__ < 10 || (__clang_major__ =3D=3D 10 && __clang_m= inor__ < 0) + # if __clang_major__ < 10 # error You need at least Clang v10.0 to compile QEMU # endif #endif''') --=20 2.55.0 From nobody Sat Sep 26 20:50:47 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1788431810; cv=none; d=zohomail.com; s=zohoarc; b=VFlnKO5NZwHzy8kB8/uR82utc9km38ZG/Xl3owxetYppCD8FEYVw3hQkDZrkO80Xqz4LG1poyENju2dAg0VmrEb60pXg1/Bzs5JRDwUDJLe2S5R0slBn/FdnBZL05OND0Q7KGfEMim9HmPke74TqOCV8s1P2QNA1elAZsrMDGp8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788431809; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=r0ZJZz6nbVmbWsxVoto8xEswVIifX0ib/coJwNdot8I=; b=COwZW1fDwoUGlZLP/BLm7EL++SXOhUHcQ16V6c1mVtBVjGbZ1lT3axVVbt5jmiBb+k11XvO867/uahBDf/yYheIC8rfKjVV8lXJ4ySZ2flw9w6FB1WuNuaPnj2OjB7KhDeYPdYyXpufUBj57NK2HIDK1EFKN320mGpSL6W5jBmI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788431809993300.99402073717135; Thu, 3 Sep 2026 03:36:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x24nd-0002Xn-G1; Thu, 03 Sep 2026 06:36:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x24nZ-0002Wg-3n for qemu-devel@nongnu.org; Thu, 03 Sep 2026 06:36:03 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x24nX-0005Sg-Jn for qemu-devel@nongnu.org; Thu, 03 Sep 2026 06:36:00 -0400 Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-647-P-FLny9wN8eh1Zpol4bFtw-1; Thu, 03 Sep 2026 06:35:57 -0400 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 41AE91829E23; Thu, 3 Sep 2026 10:35:56 +0000 (UTC) Received: from berrange.csb (headnet03.pony-001.prod.iad2.dc.redhat.com [10.2.32.114]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 81A69180049F; Thu, 3 Sep 2026 10:35:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788431758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r0ZJZz6nbVmbWsxVoto8xEswVIifX0ib/coJwNdot8I=; b=KoyI68HOyTwttKn1euAFGH8F0ec6q5iAoex5HLTrQEUuQ/NA8oMtBDx7T/jDgY6XOvv4Pl kLt4I/vL7UyK0LB4694ugHjxVSm4k1Hqv+OFxH+VenpSIWgjk5x7FwnymU9F3PuYxNr/a4 BipRl7Uv6NwYB4nK+bFNQyGAcZLSCY0= X-MC-Unique: P-FLny9wN8eh1Zpol4bFtw-1 X-Mimecast-MFC-AGG-ID: P-FLny9wN8eh1Zpol4bFtw_1788431756 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Pierrick Bouvier , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH 2/4] meson: bump min XCode CLang to 17.0 Date: Thu, 3 Sep 2026 11:35:46 +0100 Message-ID: <20260903103548.2142568-3-berrange@redhat.com> In-Reply-To: <20260903103548.2142568-1-berrange@redhat.com> References: <20260903103548.2142568-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1788431811356158500 The current two latest macOS releases (Tahoe and Sequoia) support XCode 17.x, XCode 26.x and XCode 27.x is in Beta. XCode 17.x reported CLang 17.0.0, and this continued with XCode 26.0 stream until XCode 26.4 switched to reporting CLang 21.0.0. A min XCode CLang of 17.0.0 looks appropriate and matches our current CI job matrix. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 70e2755149..388423e4fd 100644 --- a/meson.build +++ b/meson.build @@ -330,8 +330,8 @@ foreach lang : all_languages # ok elif compiler.get_id() =3D=3D 'clang' and compiler.compiles(''' #ifdef __apple_build_version__ - # if __clang_major__ < 15 - # error You need at least XCode Clang v15.0 to compile QEMU + # if __clang_major__ < 17 + # error You need at least XCode Clang v17.0 to compile QEMU # endif #else # if __clang_major__ < 10 @@ -342,7 +342,7 @@ foreach lang : all_languages elif compiler.get_id() =3D=3D 'emscripten' # ok else - error('You either need GCC v10.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 v17.0)= to compile QEMU') endif endforeach =20 --=20 2.55.0 From nobody Sat Sep 26 20:50:47 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1788431795; cv=none; d=zohomail.com; s=zohoarc; b=MvVPnh0l0JdqR0x2YAfm9bIc/hC4xaHNNR2BOZ5Bauya5NuMDNXmkXQLzc9jb3fk5+YNIQh1/sYa8agN9Q83A/gx/HJmaZKLigbt9PxOujj6MogzlPsoWbvA9TSNwK0s1ZdsNzXo+Z7TuT/uR3T6Tt2xIQ+MFRnxXUpggbrlnbs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788431795; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=MTSeKz3bH10ww5tHF4tpTAgRxvbSPzSxo6AKaHPUOnQ=; b=RvgUj96K4npGZW2eOniVLv62Cr0n3GfCJw+LilUyR3cZtITu+vaDQU4E+DoUA/lyDjnAjiwxFtKCARsm69SGvUy01xPyb17avy2NsaDCodUnzAyCGVMVS5nazRD8J+nI/ws7uAldLft7Ew09/LYG6AeZH6yQDduIP5ggSsTfGHM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788431795968316.1963589203501; Thu, 3 Sep 2026 03:36:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x24ne-0002Xs-MW; Thu, 03 Sep 2026 06:36:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x24nc-0002XR-R6 for qemu-devel@nongnu.org; Thu, 03 Sep 2026 06:36:04 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x24nb-0005Xt-A9 for qemu-devel@nongnu.org; Thu, 03 Sep 2026 06:36:04 -0400 Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-480-uNXzDaAVNNOIaaQHK96Ewg-1; Thu, 03 Sep 2026 06:35:59 -0400 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1A251180B5E9; Thu, 3 Sep 2026 10:35:58 +0000 (UTC) Received: from berrange.csb (headnet03.pony-001.prod.iad2.dc.redhat.com [10.2.32.114]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 923E118005AD; Thu, 3 Sep 2026 10:35:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788431762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MTSeKz3bH10ww5tHF4tpTAgRxvbSPzSxo6AKaHPUOnQ=; b=ASh+XaA5cAystqTc/ejkP2n+1INipCa+Saj1B2/MO903kD6L4TdrRPBvD5HIERrSueH+7p rPOHj8DWDISmFlrugPNYONAXhEPX+VugghsAT9+lXeYvDwHH6b5tpEmmzjW16FxNzDJJvj 6X9rJI18ZXIyMyQwZ7XRJXsgjxGF5AQ= X-MC-Unique: uNXzDaAVNNOIaaQHK96Ewg-1 X-Mimecast-MFC-AGG-ID: uNXzDaAVNNOIaaQHK96Ewg_1788431758 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Pierrick Bouvier , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH 3/4] meson: bump min upstream CLang to 17.0 Date: Thu, 3 Sep 2026 11:35:47 +0100 Message-ID: <20260903103548.2142568-4-berrange@redhat.com> In-Reply-To: <20260903103548.2142568-1-berrange@redhat.com> References: <20260903103548.2142568-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1788431799238158500 Per our supported platform policy, oldest distros we target have the following CLang available: Fedora 43: 21.1.2 CentOS Stream 9: 22.1.8 Debian 13: 17.0.6 Ubuntu 24.04: 20.1.2 OpenBSD: 22.1.8 FreeBSD: 23.1.0 NetBSD: 21.1.8 OpenSUSE Leap 16.0: 19.1.7 Thus Debian is our prime constraint and we can move from 10.0 to 17.0 as our min version. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Pierrick Bouvier --- meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 388423e4fd..5315420a41 100644 --- a/meson.build +++ b/meson.build @@ -334,15 +334,15 @@ foreach lang : all_languages # error You need at least XCode Clang v17.0 to compile QEMU # endif #else - # if __clang_major__ < 10 - # error You need at least Clang v10.0 to compile QEMU + # if __clang_major__ < 17 + # error You need at least Clang v17.0 to compile QEMU # endif #endif''') # ok elif compiler.get_id() =3D=3D 'emscripten' # ok else - error('You either need GCC v10.4 or Clang v10.0 (or XCode Clang v17.0)= to compile QEMU') + error('You either need GCC v10.4 or Clang v17.0 (or XCode Clang v17.0)= to compile QEMU') endif endforeach =20 --=20 2.55.0 From nobody Sat Sep 26 20:50:47 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1788431784; cv=none; d=zohomail.com; s=zohoarc; b=lgj4337CWznHtgN6LRjfyCOSNSStj+asgVoKIUPjex/ujn/ctQ6BQglwWSwgv0f4ZmFMb0JjC/E3vZZS/jfpSXOQI6eRFn5s2vno+fKA89BPRMIblj15pXfw9/o6FARetJEQvPBBBNYE/su8OVklmjO70osyofWQTR/HLYAPxUo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788431784; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=oPy1ksp6gtD+A3ruB6FcDpFfwWSnhJP9CWRyvWvFk3Q=; b=jVUk+EQUZTMHNJOHiWkVz0rBfOkKZbNCVQmLRSdxeH76G8phdIxOJe0bmfkvSTdtR5/e2L4RLPvJGVcUonqbl2ZVy4zuOhqAurIVmURGjmA4iQtCb2wDrpa/jg/K0Y+egc0/Trar1fRPqNKqUH3fpylRHIH7nV/q3LgC+T2NTPI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1788431784121555.0878861712382; Thu, 3 Sep 2026 03:36:24 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x24nh-0002Yh-3z; Thu, 03 Sep 2026 06:36:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x24nf-0002YX-S9 for qemu-devel@nongnu.org; Thu, 03 Sep 2026 06:36:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x24ne-0005YE-EB for qemu-devel@nongnu.org; Thu, 03 Sep 2026 06:36:07 -0400 Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-18-V95pGhkdPHaOEgXUJh_Fig-1; Thu, 03 Sep 2026 06:36:01 -0400 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 439F4195608E; Thu, 3 Sep 2026 10:36:00 +0000 (UTC) Received: from berrange.csb (headnet03.pony-001.prod.iad2.dc.redhat.com [10.2.32.114]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id AB41C18005B8; Thu, 3 Sep 2026 10:35:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1788431765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oPy1ksp6gtD+A3ruB6FcDpFfwWSnhJP9CWRyvWvFk3Q=; b=EUA9f7diekeYg3O2MtIxGu0EQXjb6gl9+3TfReQhMEAVBKoVIWWRBEuj6l0LspPEM5xoa0 UgV3fvS+I+uNSIMCPXFfFl+68tthR/+U1dTSgLDGJhlXls1bM7FxGWf8Ny/Hl7uxmEiTPT 0TMDWL4iIi+9P3BiMswUSBVx9eVKCTk= X-MC-Unique: V95pGhkdPHaOEgXUJh_Fig-1 X-Mimecast-MFC-AGG-ID: V95pGhkdPHaOEgXUJh_Fig_1788431760 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Pierrick Bouvier , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH 4/4] meson: warn on GCC < 12.0 due to lack of -ftrivial-auto-var-init=zero Date: Thu, 3 Sep 2026 11:35:48 +0100 Message-ID: <20260903103548.2142568-5-berrange@redhat.com> In-Reply-To: <20260903103548.2142568-1-berrange@redhat.com> References: <20260903103548.2142568-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1788431789491158500 The security policy for assigning CVEs has an assumption that all stack variables are zero initialized. Our CLang min version gives us -ftrivial-auto-var-init=3Dzero, but that is only available in GCC 12 onwards. Our min GCC is 10.4 but only NetBSD has such an old version. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Pierrick Bouvier --- meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meson.build b/meson.build index 5315420a41..eeca8d074a 100644 --- a/meson.build +++ b/meson.build @@ -327,6 +327,12 @@ endif foreach lang : all_languages compiler =3D meson.get_compiler(lang) if compiler.get_id() =3D=3D 'gcc' and compiler.version().version_compare= ('>=3D10.4') + if not compiler.version().version_compare('>=3D12.0') + warning('GCC < 12.0 does not support -ftrivial-auto-var-init=3Dz= ero.') + warning('This compiler will not satisfy the QEMU security policy= ') + warning('for assigning CVE which is predicated on zero-initializ= ation ') + warning('of stack variables. Update to GCC 12.0 or use CLang >= =3D 17.0 ') + endif # ok elif compiler.get_id() =3D=3D 'clang' and compiler.compiles(''' #ifdef __apple_build_version__ --=20 2.55.0