From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-a1p-077437.sys.comcast.net (resqmta-a1p-077437.sys.comcast.net [IPv6:2001:558:fd01:2bb4::8]) by sourceware.org (Postfix) with ESMTPS id 6A96F38187C8 for ; Sat, 26 Nov 2022 15:48:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6A96F38187C8 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=comcast.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=comcast.net Received: from resomta-a1p-077052.sys.comcast.net ([96.103.145.234]) by resqmta-a1p-077437.sys.comcast.net with ESMTP id yx3do7LAG90q0yxPnoM2e6; Sat, 26 Nov 2022 15:48:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1669477707; bh=0Abe+d392UhoVOZwu8+1/0LoA71y2C65FCrayh81At0=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To:Xfinity-Spam-Result; b=d3kuGwNDcPbwUeLuBiZrSl0sUbLufa0+LHS7QbP0/4Y+Yr1X7NGfwdncYWzR3aP43 lM+OrZbANJQl8G07d9JCX/L+UXzTzKrY0IAdGqRZg4nCAP+si0j0sYvbloPdR2XYe1 YCL/pkTwmdkiIDVAn/w2FtKjyJzs7yobhf4lKG4Vh+uk3YFwyvZ2IaBn5iT5ohe+Vz XPDGPyMINZOH3cqjg+djx1nPDjYv2/wRrD76073PealJTc836vK11x5hBHy47dnBB6 3dDyQXKIiSXqJQl7uN0yxD4PWzS5VqL4pqZ4weg/xDQNKodv0DIUDokNcXgN0GWyh0 fPucrUHc4MGrg== Received: from smtpclient.apple ([73.60.223.101]) by resomta-a1p-077052.sys.comcast.net with ESMTPSA id yxPkoGAANKx1FyxPloC5tr; Sat, 26 Nov 2022 15:48:27 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedvgedrieejgdekfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevohhmtggrshhtqdftvghsihdpqfgfvfdppffquffrtefokffrnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtjeenucfhrhhomheprfgruhhlucfmohhnihhnghcuoehprghulhhkohhnihhnghestghomhgtrghsthdrnhgvtheqnecuggftrfgrthhtvghrnhepleevvdfhffeludejvdeluefftedufeevhfeuffelfeejtedtudehvdekhedvvdetnecukfhppeejfedriedtrddvvdefrddutddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghlohepshhmthhptghlihgvnhhtrdgrphhplhgvpdhinhgvthepjeefrdeitddrvddvfedruddtuddpmhgrihhlfhhrohhmpehprghulhhkohhnihhnghestghomhgtrghsthdrnhgvthdpnhgspghrtghpthhtohepvddprhgtphhtthhopehiughsrghnughovgesghhoohhglhgvmhgrihhlrdgtohhmpdhrtghpthhtohepghgttgesghgttgdrghhnuhdrohhrgh X-Xfinity-VMeta: sc=-100.00;st=legit Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: Can't build Ada From: Paul Koning In-Reply-To: <1350173E-C2FA-48AB-BC59-BD516FBF15B9@googlemail.com> Date: Sat, 26 Nov 2022 10:48:24 -0500 Cc: GCC Development Content-Transfer-Encoding: quoted-printable Message-Id: <338FD630-E757-4595-8282-652A12044393@comcast.net> References: <2840BB68-0E3A-4848-AA39-32E9B822A4F0@comcast.net> <1350173E-C2FA-48AB-BC59-BD516FBF15B9@googlemail.com> To: Iain Sandoe X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > On Nov 25, 2022, at 3:46 PM, Iain Sandoe = wrote: >=20 > Hi Paul, >=20 >> On 25 Nov 2022, at 20:13, Andrew Pinski via Gcc = wrote: >>=20 >> On Fri, Nov 25, 2022 at 12:08 PM Paul Koning = wrote: >>>=20 >>>> On Nov 25, 2022, at 3:03 PM, Andrew Pinski = wrote: >>>>=20 >>>> On Fri, Nov 25, 2022 at 11:59 AM Paul Koning via Gcc = wrote: >>>>>=20 >>>>> I'm trying to use fairly recent GCC sources (the gcc-darwin branch = to be precise) to build Ada, starting with the latest (2020) release of = Gnat from Adacore. >>>>=20 >>>> Are you building a cross compiler or a native compiler? >>>> If you are building a cross, you need to bootstrap a native = compiler first. >>>=20 >>> I'm not sure. The installed Gnat is x86_64-darwin; I want to build = aarch64-darwin. >>=20 >> You have to build a x86_64-darwin compiler first with the same = sources >> as you are building for aarch64-darwin. >=20 > So ..=20 > 1/ if you are on arm64 Darwin,=20 > - the first step is to bootstrap the compiler using Rosetta 2 and the = available x86_64 gnat. >=20 > 2/ if you are on x86_64 Darwin=E2=80=A6 > - the first step is to bootstrap the compiler using the available = x86-64 gnat. Thanks all. I tried that (#1) and got the same failure. The trouble seems to be = that the current sources have Ada2020 constructs in them and the = available Gnat doesn't support that version. The commit that introduces = these (or some of them at least) is 91d68769419b from Feb 4, 2022. So I'm guessing I'll have to do this in two parts, first build a newer = but not-latest Gnat from a release that doesn't include the problematic = constructs, then follow that by using the intermediate to build the = current sources. I wonder if this incompatibility was intentional. If not it would be = good for the Ada maintainers to fix these and ensure that the current = code can still be built with the most recent public release of Gnat. = Conversely, if it is intentional, the documentation should be updated to = explain how to build the current code. paul