From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by sourceware.org (Postfix) with ESMTPS id 0C3623839DBB for ; Fri, 25 Nov 2022 20:17:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0C3623839DBB 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-x32b.google.com with SMTP id v7so4269057wmn.0 for ; Fri, 25 Nov 2022 12:17:55 -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=w6fsQzBcdzrOBtAIVnt4EAqvWWesQkuUsncYXVTdQAU=; b=nfKXE1giEWYGz7E2R6sB/dFfFTjCvDyOpYvXpTwLNWwD8Xjxw+dwWp6t6FN8YS+FmK bGOm7ZxrQU7PKX4iFuX/YgfgiJPXDgKo/YHeKZlw7x0xCNQ7NN3dtWk6VbXIdidoN0YL IXpfsB+bj2iZxbWxuWobCkVgtKuPLha7eS91DJpBstvUbD5S8CLzAFvPANNYaJHUslkr TXJOBg+yVUatGVumgJjuGKRUXOcwBA/zUIL+lpXENhUIG1v897VP3GpFPeI/j0qQCG/a QCZeDOkRVrMHusxTaVgpXJefEJKz+T282qdOsAgE4kcnXlBB//74utdYWslraRhBjMXa 6S9g== 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=w6fsQzBcdzrOBtAIVnt4EAqvWWesQkuUsncYXVTdQAU=; b=TVQjAuZ8zGt7ccpXy5nJOj/jkgZK/NE+ENR+UftMZ5jWmsLMa1JUp12IHDa3gqmSfM BEAMiVhlJx0w7u6GnJwRObnhCDOxrSnc5IoukIZrg3Qq+M9CX3ye8XBq8cxkrB5wKeK7 +ynzJl/tOncRIYBa5DQ0fdeBSvWBh3DMPVXXIk/b2JzxKMQ3utIJaFeC2sMzHLfvJplo pyiICg7iLdOSQFxISv7ro3s0i5IC9Pxg9aRSSNo8L5IktkLM92UdSR2tzocHRMp4tlZb KgR1/Qb06aO1OsmLCqsnbg857jS0k8dK8kPEfI+CGu7/jGFAniu3DTs0+cpMEyVraygO k4oA== X-Gm-Message-State: ANoB5pl2htBipzlVcu0UdYITKRj6GmIukwgRJH+MEx776233FWUsNf9z HvwsNh2/zU+0Rig9OSI+N6o= X-Google-Smtp-Source: AA0mqf6pLuweNxyy+Q5Nt0ESQnGqmM4LaX/wDGoxNMZULS0aF8kkxDTo6nKjYqm+7/+Yfb3jPYJ/yw== X-Received: by 2002:a05:600c:35c4:b0:3cf:9668:e8f8 with SMTP id r4-20020a05600c35c400b003cf9668e8f8mr20581388wmq.195.1669407473813; Fri, 25 Nov 2022 12:17:53 -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 k15-20020a05600c1c8f00b003b47b80cec3sm12275751wms.42.2022.11.25.12.17.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Nov 2022 12:17:53 -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: Date: Fri, 25 Nov 2022 20:17:52 +0000 Cc: Andrew Pinski , GCC Development Content-Transfer-Encoding: quoted-printable Message-Id: <47E1EABC-C5CB-4A4E-AB00-C06D74500313@googlemail.com> References: <2840BB68-0E3A-4848-AA39-32E9B822A4F0@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,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: Hi Paul, > On 25 Nov 2022, at 20:08, Paul Koning via Gcc 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. you are building a cross then. > But in any case, how does that relate to the error messages I got? = They don't seem to have anything to do with missing compilers, but = rather with the use of language features too new for the available = (downloadable) Gnat. Building a cross GNAT requires that the build compiler is from the same = sources as the cross - so, as Andrew says, you need to bootstrap the = current sources on x86_64 and then use that compiler to build the cross = to aarch64. I=E2=80=99m not sure exactly where this constraint is = mentioned .. but, nevertheless, it is a constraint. FWIW: I have not done this for a few weeks (using my arm64 prototype = branch) but it was working fine then. Iain