From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by sourceware.org (Postfix) with ESMTPS id 543633839D98 for ; Fri, 25 Nov 2022 20:03:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 543633839D98 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x102b.google.com with SMTP id b11so4458280pjp.2 for ; Fri, 25 Nov 2022 12:03:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0r9JSffmgyZsrTHfiRDzMLGHvDjsBSWaHGBju+ZZ4fs=; b=a0oQLgSouiS+ebl4vLjmnvUJN7wJ+fGXFAxsLnaMkET2BHzyMsrmQoKUF+MEBFmezu wCqEHUa9LUlPQaCQZHuimZ7/DjSNiw2CO9DyDL9bPcopGvytP+7JC6bOLZvSLZV50ZiA Vruuga4eDG90nUjAe/9JS4cHdSjbv0i1PP63DwBQpTF+GkEMYyu/v39P5b4D39C0/p9s 8rJGhmsPbV3MrmKKRLmz2cgkPmKUPphzm0RdroHyRHNm4J1cKgI+/k+RLX5gbC411FbI RK5a8xfsJq/PfnKEoO7sV4P1X+DTunDesfNMwBGUVgMAgjRJPLweyZ6uoRZ+bw+E8Ify cxIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0r9JSffmgyZsrTHfiRDzMLGHvDjsBSWaHGBju+ZZ4fs=; b=w6Rrq/bAdRATGi+LStAT5pt6+lF5/MJlb651k6jcR2N47z91/04vchzIyObj3l6ykh 4Usz1XpB1lOZvnGXTzJ9vP+2I7PydkKxhlhizuQfPNwozfeme7knsHk3Srp2P2EY+fNv oJHbOFpM4lUGwRBWh9N/sC2XJyza/7Muzah4Fkb78trL/tKSdPz+mVyxLtRlrrPPihJ5 tR5uqHo/oW1P4ZLVsR/LghRJd83A2zEUszBFI82azhwLIG2oKeskqJgExmDDofQPRPGA 1HTWv+zo8ZFbPEJjLrjdPhI61kwRwmZB3kBompYwj4jcJIUnVRXPTd2AYJ8Tt0W7dotd g49g== X-Gm-Message-State: ANoB5pmV/rHvnnNs5a/Ej1NqfEuvjgeZPmg59qruPwcwEEnsntLQQVpj oK2+wfKObdEycNO9eFfFlg4f2rC5574N80hsq+s= X-Google-Smtp-Source: AA0mqf7fmp7fHgpi2+Vg2+8eSA+1vhyECGF93LKZ0AQVpd562JEuNM2Q8KPuExe6O1md4iaaVZGGzv//JVrmuBSNyXg= X-Received: by 2002:a17:903:2407:b0:17f:5778:888b with SMTP id e7-20020a170903240700b0017f5778888bmr20217336plo.119.1669406635189; Fri, 25 Nov 2022 12:03:55 -0800 (PST) MIME-Version: 1.0 References: <2840BB68-0E3A-4848-AA39-32E9B822A4F0@comcast.net> In-Reply-To: <2840BB68-0E3A-4848-AA39-32E9B822A4F0@comcast.net> From: Andrew Pinski Date: Fri, 25 Nov 2022 12:03:42 -0800 Message-ID: Subject: Re: Can't build Ada To: Paul Koning Cc: GCC Development Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 Fri, Nov 25, 2022 at 11:59 AM Paul Koning via Gcc wrot= e: > > 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. Are you building a cross compiler or a native compiler? If you are building a cross, you need to bootstrap a native compiler first. Thanks, Andrew Pinski > > It fails for several reasons. One is that two source files use [ ] for a= rray initializer brackets when ( ) is apparently supposed to be used instea= d. Once I fix that, I get a pile of messages I don't know what to do about= : > > s-imagei.ads:95:11: declare_expression is an Ada 2020 feature > s-valueu.ads:152:09: declare_expression is an Ada 2020 feature > s-valueu.ads:160:09: declare_expression is an Ada 2020 feature > s-valueu.ads:184:06: "Subprogram_Variant" is not a valid aspect identifie= r > s-valuei.ads:80:11: declare_expression is an Ada 2020 feature > s-valuei.ads:95:08: declare_expression is an Ada 2020 feature > s-valuei.ads:141:06: "Subprogram_Variant" is not a valid aspect identifie= r > s-widthu.ads:84:09: declare_expression is an Ada 2020 feature > s-widthu.ads:93:11: run-time library configuration error > s-widthu.ads:93:11: file s-imgint.ads had parser errors > s-widthu.ads:93:11: entity "System.Img_Int.Image_Integer" not available > compilation abandoned > make[2]: *** [ada/contracts.o] Error 1 > > Given that the current open source Gnat is from 2020, so (apparently) it = doesn't support Ada 2020 features, how is someone supposed to build the cur= rent GCC? I looked in the prerequisites listing on the webpage, but it say= s that the Gnat that is built on GCC 5.1 is sufficient. That seems to be w= rong; the GCC in Gnat 2020 is 8.4.1 and it is apparently too old to work. > > paul >