From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) by sourceware.org (Postfix) with ESMTPS id 9439338381E7 for ; Fri, 25 Nov 2022 20:26:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9439338381E7 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-oa1-x34.google.com with SMTP id 586e51a60fabf-1432a5f6468so6319223fac.12 for ; Fri, 25 Nov 2022 12:26:50 -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=AxtYXdfAkBRQzWVm60VnZEXuL9GxDfyhWaZuyIqhX3M=; b=Et9tc3ags7e/vTTDLpRzI/4lFHEwGTt++U4xFQ9sJnEVkekOTXVXP/eStaTFyYhY4Z mXf3oEpnR284D+ONfhipe3Z27SWYymlN6bPJGdJKPwRu2iczLZdw82HvEgtLQjW5/l0M 0vyvQSvcknXor4jNAVohwYPeTkFSLeuEOmTSok4se7HJ6umMTPqcVA9M2Q3n6n0gaPbP MYooqurG6+Mt7284cOeyvFvpp8GjH1JRX4Q9/SBIlD+AZyF8wp6obt8fqtKs2d0/rOzQ 9NAkWohSYVFhDIf1h64CjWvHspaxj/F+LA30wgG/mM/54qfCaxo2+cYeURuh/eek7RWD 4PVw== 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=AxtYXdfAkBRQzWVm60VnZEXuL9GxDfyhWaZuyIqhX3M=; b=5ykNcta7IUP6ZqyDmjU4izA9hfAWJbe7mskx/CnBBP5Dq2lBLIwGJJOIKfFBblhgCR P3PhyT6AQcGBbNEhcrRRrs4R3HK11cOUQMPgn/t0k9Pb2sDYejmgfKsngKsfu6a7eLDr LKi5opaH57Dq/LKneGqNwnOwofwabx72qRkEB5d1kv/El7ip/VIocrzQUHUbvu2ETAri CW6HuAUWuKJ4sKticu8Wcn9q7c5NjRwAr4wYSx0686fUz6XHCoIp9uk/LxPB23t7a/sl pfQt9x6vczSmSUABUZeAHi4KD6WCVApDqFCR5zeasWE4kbDLq3hy8ffPFvO0x5WSujOk gkHQ== X-Gm-Message-State: ANoB5plNv0OjmSRVzPoHorWJOB/HFkwNM/9zcJll5KvLCObD8vjr/tCh tzd5tFkxxl1TpZL6F0tfZV2NWx/tPhfzXHM5jUM= X-Google-Smtp-Source: AA0mqf6ja0MBfVPQqQjIVgPc+hHW3PSgV/AmXbAhxSSa/x6nGwT/J7bsVj2B4n6Vvzf7W4hh+d9A/iE0MCSJQpb5RGE= X-Received: by 2002:a05:6870:9e83:b0:143:5fe6:3701 with SMTP id pu3-20020a0568709e8300b001435fe63701mr4614227oab.112.1669408009955; Fri, 25 Nov 2022 12:26:49 -0800 (PST) MIME-Version: 1.0 References: <2840BB68-0E3A-4848-AA39-32E9B822A4F0@comcast.net> In-Reply-To: From: NightStrike Date: Fri, 25 Nov 2022 15:26:38 -0500 Message-ID: Subject: Re: Can't build Ada To: Paul Koning Cc: Andrew Pinski , GCC Development Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.4 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 3:09 PM Paul Koning via Gcc wrote: > 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. Generally speaking, the reason is that with a normal compiler build, where build = host = target, gcc can build itself and then run the newly built self to build the language runtimes. So if you're using gcc 5 to build gcc 12, you're actually not using gcc 5 for all that much. The new gcc 12 is used to build for instance libX. With a cross compiler, it's possible that the build != host, and so you can't use the newly built GCC in your build environment to build the language runtimes. For instance, say your cross compiler is hosted on Windows, but you are building it on Linux. You can't run the newly built gcc 12, so you have to use the original gcc 5 instead. That's why you have to start with a new native compiler, and then use that to build the cross compiler.