From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by sourceware.org (Postfix) with ESMTPS id 498193839D98 for ; Fri, 25 Nov 2022 20:13:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 498193839D98 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-pg1-x533.google.com with SMTP id r18so4727302pgr.12 for ; Fri, 25 Nov 2022 12:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OpUpYo0aNzYUzVBh9ejGNMsV8EZrk0AMtzk2XSK9jtc=; b=fzGan3IWH6EIlVQ7FGM+I+3GYHlKLkA6/A6z3Rcfn+u0UkHxvvLLCLY1NICpkb/Wwb ndFMKcFzD6hFJGPBQhbE9gwCKHdphISxhAl5I0T4cv6pdUjbIMN65W8xUOabu41jlnN0 Jh6wPZARrrjPJ1AWFi+O7a/2+BhuorozQ8yJQ+xpYfzJmJGQSVQfiQ6NLhNoJTz28B0r WrsfT1U/un2Eh1o2x0UB4+PMIe+L1y3pl4IQCUBULxg+J+BcPkuV5Smqio3zikZmEuat A4MBTBIs5rl/VSn9IhaHjGlaQyySnh8T7htA5MTyhoMmyq4gFFPXi93qgks0ZVjGp403 g3uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=OpUpYo0aNzYUzVBh9ejGNMsV8EZrk0AMtzk2XSK9jtc=; b=MaRxj8gZ2vxXgrIatevxTCaYrbr64CygkTii0fDM+8zRg9TSBjVBEGWuSdmzFg0Dy/ hkMmulZJ+ohfiz7NeugEPBtN/V1J63C3ewbQ4npcVFeDIQKvoTcij2X4MWheVToPg2CJ DD4x71sQpiBHSfb9Rq7ydHWeNvN9cerk29qWn5yCsGM+oyPS510i3hzfG4euI1+8c6u/ BDtV0PzD7q+lA6tBf1NNBxp386Y1Btxto1q2aR6nXvnLFJfV+lfaSIXYNgS3ClueWxG8 uAGJtqW4ahFj4liqQU+V6xb12iVwugEYexF4ZuQ9tjSIYJ0KcCTvIlL6EfGF/cCKr0Ks 5ydw== X-Gm-Message-State: ANoB5plRsI/4X8ybMpjJOeia3wiDsxLO5KQlAmfWstMjG4zb/b6WtCFo Mp7dXs15kywRrJnvGzeFm1DIyIMtIBjmbs5fRmY= X-Google-Smtp-Source: AA0mqf6/ay6ikzxEyvGH6uTJFykl0zg/dFGkFmCvjeUDdqEcLMsRiMXKGukpSACizHMZsLQWhiGRNMl57OZPw94f6Ww= X-Received: by 2002:a05:6a00:450b:b0:574:c544:3b5e with SMTP id cw11-20020a056a00450b00b00574c5443b5emr3669681pfb.66.1669407222939; Fri, 25 Nov 2022 12:13:42 -0800 (PST) MIME-Version: 1.0 References: <2840BB68-0E3A-4848-AA39-32E9B822A4F0@comcast.net> In-Reply-To: From: Andrew Pinski Date: Fri, 25 Nov 2022 12:13:31 -0800 Message-ID: Subject: Re: Can't build Ada To: Paul Koning Cc: GCC Development Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 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 Fri, Nov 25, 2022 at 12:08 PM Paul Koning wrote: > > > > > On Nov 25, 2022, at 3:03 PM, Andrew Pinski wrote: > > > > On Fri, Nov 25, 2022 at 11:59 AM Paul Koning via Gcc wrote: > >> > >> 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. > > I'm not sure. The installed Gnat is x86_64-darwin; I want to build aarch64-darwin. You have to build a x86_64-darwin compiler first with the same sources as you are building for aarch64-darwin. > > 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. >From https://gcc.gnu.org/install/prerequisites.html: "In order to build a cross compiler, it is strongly recommended to install the new compiler as native first, and then use it to build the cross compiler. Other native compiler versions may work but this is not guaranteed and *****will typically fail with hard to understand compilation errors during the build.****" I added the emphasis but yes this is all documented correctly. Thanks, Andrew Pinski > > paul > >