From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id 24D493858C52 for ; Sat, 26 Nov 2022 18:15:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 24D493858C52 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=googlemail.com Received: by mail-wm1-x32d.google.com with SMTP id t4so5675122wmj.5 for ; Sat, 26 Nov 2022 10:15:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FdLrs4TOj/wO+352cw0rA6SDHTo4GLVgew6OInZZLxY=; b=KXuCHYZ4qn65sIbYOnLMQVr56QZCQ98EyoIk6xmekbgZ8dRKq9dt0PdebAdlOEHHyj BcLzMsdkI/8azNCf8dxOJDNdzHBXzUye5uoMlUrdUGrzmd6G2QSVmlZa42Vo4uNn+ESq kfawlEKIbs+F+a3EeA6dX2EFd3HhGUNONS5V+cUIwEA8wD+vrr9jUC8XS03qXYsl/nwe YhXIYEyt6JFuWCFc3Prq6vHh/TRgS7KrCLlwOnlo+zL9WIhDDqI+J+XcF7xpbqVa0iBZ SZzmAaZcYvie8b6DooVvjcJ7EYjlE9dOe2Ncxw9WK8Gz3O//I67ktRZJSNdC2lOu6TNS fGUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FdLrs4TOj/wO+352cw0rA6SDHTo4GLVgew6OInZZLxY=; b=tAE7unJfTuFuG2RDsn4vjJY+ONstWg+oZ09I2R2qjQsMCoeqAcxeccfpnsi/gvHmfr CNICml11qY5R52tT6gKRIWrC+h2bbEGIJBjUgn2mkGdq01S/ihT49ypR/tzhreOcCtey QphcyObAYyoo6p1bPSyxTLUuK6hUavXtM8LeEwt6mntU35YYsBrndffovOSeqYO+/smT 4h0RldRTjTuM7rV1U3zMcMvLt9F3NOH+JkCQVdBeO2aJ4fCJgqLFJ0GsDmSVmxZ00JGO pZTWm3KrUnWvgypNWPzVyoTa6TqT/HkS9kFKsxVoNoPJbKCb41dhWiDD9244R5ujtn6A akbQ== X-Gm-Message-State: ANoB5pkk/dy2/Fn8uNQ1VgnpshYr4cvEtQTqEkSze+Kkcv+EnZ6AWSXk dsR6swYRMzQEhhEvJQwUJww= X-Google-Smtp-Source: AA0mqf79WATnvKxT79gK+dx9+dvtwV2bjoK8U1Dq2aWIvLRCJRmbSr5tnXTxq9vvSBcGQBHXiTAZ1A== X-Received: by 2002:a7b:c454:0:b0:3b4:be28:d800 with SMTP id l20-20020a7bc454000000b003b4be28d800mr19216709wmi.170.1669486523874; Sat, 26 Nov 2022 10:15:23 -0800 (PST) Received: from smtpclient.apple (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.googlemail.com with ESMTPSA id p11-20020a05600c358b00b003cf71b1f66csm10219925wmq.0.2022.11.26.10.15.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Nov 2022 10:15:23 -0800 (PST) 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: Iain Sandoe In-Reply-To: <55D87357-3B2B-431E-BA34-0C7E997F906E@comcast.net> Date: Sat, 26 Nov 2022 18:15:22 +0000 Cc: GCC Development Content-Transfer-Encoding: quoted-printable Message-Id: <50DD8EFA-FFEE-4EB5-9BC3-B2201B3489B1@googlemail.com> References: <5396230C-83FC-495D-A221-2489C4E74CF5@comcast.net> <3D25589F-2417-49B2-BB1A-7F0E6017880F@adacore.com> <55D87357-3B2B-431E-BA34-0C7E997F906E@comcast.net> To: Paul Koning X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_SHORT,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 26 Nov 2022, at 18:06, Paul Koning wrote: >=20 >=20 >=20 >> On Nov 26, 2022, at 11:42 AM, Arnaud Charlet via Gcc = wrote: >>=20 >>=20 >>>> The current statement = (https://gcc.gnu.org/install/prerequisites.html) is: >>>>=20 >>>> GNAT >>>> In order to build GNAT, the Ada compiler, you need a working GNAT = compiler (GCC version 5.1 or later). >>>>=20 >>>> so, if 5.1 is not working, then perhaps a PR is in order. >>>=20 >>> I will do that, if the "shell in Rosetta" thing doesn't cure the = problem. >>=20 >> You won=E2=80=99t need to, the version of gnat you are using is = recent enough, you need to follow Ian=E2=80=99s instructions to the = letter. The Ada 2022 code is a red herring and is only problematic when = you build a cross with a non matching native, not when building a native = compiler. >>=20 >> Arno >=20 > All I can tell you is that I'm pretty sure I'm doing what Iain said, = using his branch (up to date), and using the compilers from the Adacore = open source release (20200818) which is GCC 8.4.1. And once again I got = that same complaint about Ada2020 constructs: >=20 > /usr/local/gnat/bin/gcc -c -g -O2 -gnatpg -gnata -W -Wall = -nostdinc -I- -I. -Iada/generated -Iada -I../../../gcc-darwin/gcc/ada = -Iada/libgnat -I../../../gcc-darwin/gcc/ada/libgnat -Iada/gcc-interface = -I../../../gcc-darwin/gcc/ada/gcc-interface = ../../../gcc-darwin/gcc/ada/contracts.adb -o ada/contracts.o > 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 = identifier > 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 = identifier > 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 1/ For the cross - you have to make sure that the newly-built =E2=80=9Cnative= " (Rosetta) compiler is found in the path first - perhaps somehow the = original bootstrap compiler is being found (unless you installed into = /usr/local .. which I tend to avoid)? 2/ To work around the Xcode =E2=80=9Cgotcha=E2=80=9D of claiming gcc and = g++ I find it is safest to be specific about CC and CXX on the command = line (so CC=3Dx86_64-apple-darwinNN-gcc, CXX=3Dx86_64-apple-darwinNN-++ = =E2=80=A6 ) otherwise, I can share my configure lines .. but probably best off-list. Iain