Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DF26DD3B7C1 for ; Tue, 26 Nov 2024 09:24:22 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFrnl-00007v-NB; Tue, 26 Nov 2024 04:24:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFrng-00007B-AG for qemu-devel@nongnu.org; Tue, 26 Nov 2024 04:24:04 -0500 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 1tFrne-0001BI-G3 for qemu-devel@nongnu.org; Tue, 26 Nov 2024 04:24:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1732613041; h=from:from:reply-to: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=nWDnt6huFVCn9JAKZvLEf6AXmdOdVc/03WwJVkSyVZo=; b=I1/BbW8QU6nrOb7n78RXvEkHp58IkcbTDF5ag6HGq04N2XuROV7IkM4CM618sujDeHCAcW gPqX4y51ZSycPNh/XF6WfkpcBVvv1ZoctG2wt1EkaQ4hTwCAJHq8fTtvR+sXQUsGPho4HH VkE7pscvxSBHUs1lS1HFq5Zx3A1swnk= 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-364-kIZVlXZXNwq63JXpuu2THQ-1; Tue, 26 Nov 2024 04:23:56 -0500 X-MC-Unique: kIZVlXZXNwq63JXpuu2THQ-1 X-Mimecast-MFC-AGG-ID: kIZVlXZXNwq63JXpuu2THQ Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (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 790731955BD2; Tue, 26 Nov 2024 09:23:54 +0000 (UTC) Received: from redhat.com (unknown [10.42.28.147]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 853EF1956054; Tue, 26 Nov 2024 09:23:52 +0000 (UTC) Date: Tue, 26 Nov 2024 09:23:49 +0000 From: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= To: Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Cc: Thomas Huth , qemu-devel@nongnu.org, Paolo Bonzini , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , Peter Maydell Subject: Re: [PATCH] meson.build: Refuse XCode versions < v15.0 Message-ID: References: <20241126081054.244365-1-thuth@redhat.com> <6f883a0f-3fdb-4326-8262-c0482e30ea32@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6f883a0f-3fdb-4326-8262-c0482e30ea32@linaro.org> User-Agent: Mutt/2.2.12 (2023-09-09) X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 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: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_SBL_A=0.1 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On Tue, Nov 26, 2024 at 09:57:15AM +0100, Philippe Mathieu-Daudé wrote: > On 26/11/24 09:10, Thomas Huth wrote: > > According to our support policy, we only support the two latest > > major versions of macOS, and we already removed compatibility code > > for older versions. However, it's still possible that people install > > an older version of XCode on a recent version of macOS - which won't > > be able to compile QEMU anymore, see for example the ticket here: > > > > https://gitlab.com/qemu-project/qemu/-/issues/2694 > > Wondering about this issue, it is possible to install concurrent > XCode versions, which is useful i.e. when you build an application > targeting multiple (and older) App Store releases. See: > https://xcodereleases.com/ That's true of any platform. You can get many GCC versions for Debian and Fedora too. > Maybe we need to clarify our support policy that we only support > the XCode released with the 2 latest major macOS versions? We implicitly support the XCode versions that are the "default" with the latest 2 macOS versions. > > @@ -315,8 +315,8 @@ foreach lang : all_languages > > # ok > > elif compiler.get_id() == 'clang' and compiler.compiles(''' > > #ifdef __apple_build_version__ > > - # if __clang_major__ < 12 || (__clang_major__ == 12 && __clang_minor__ < 0) > > - # error You need at least XCode Clang v12.0 to compile QEMU > > + # if __clang_major__ < 15 || (__clang_major__ == 15 && __clang_minor__ < 0) > > + # error You need at least XCode Clang v15.0 to compile QEMU > > # endif > > #else > > # if __clang_major__ < 10 || (__clang_major__ == 10 && __clang_minor__ < 0) > > @@ -325,7 +325,7 @@ foreach lang : all_languages > > #endif''') > > # ok > > else > > - error('You either need GCC v7.4 or Clang v10.0 (or XCode Clang v12.0) to compile QEMU') > > + error('You either need GCC v7.4 or Clang v10.0 (or XCode Clang v15.0) to compile QEMU') > > BTW apparently CentOS 8 (which we don't support anymore IIRC) > provides Clang 12.0.1, and also Ubuntu 22.04, Alpine 3.16. > > I wonder if the relation with XCode __apple_build_version__ is > always __clang_major__ + 3... No, it isn't. It varies all over the place - eg From xcode 11.3 to 11.4 they bump from llvm 8.0.0 to 9.0.0, while the clang version goes from 11.0.0 to 11.0.3. From xcode 15.4 to 16.0 they from llmvm 16.0.0 to 17.0.6, while the clang version goes from 15.0.0 to 16.0.0. I can just about interpret a rule they're following, but relating that to the upstream clang versions algorithmically is impossible. https://en.wikipedia.org/wiki/Xcode#Toolchain_versions With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|