From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) by sourceware.org (Postfix) with ESMTPS id 0A6F138582B8 for ; Mon, 27 Jun 2022 21:46:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0A6F138582B8 Received: from linux-libre.fsfla.org ([209.51.188.54]:37066 helo=free.home) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5wZ9-0008Pv-LH; Mon, 27 Jun 2022 17:46:44 -0400 Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 25RLkUZr900849 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Jun 2022 18:46:30 -0300 From: Alexandre Oliva To: Jan-Benedict Glaw Cc: Pierre-Marie de Rodat , Yannick Moy , gcc-patches@gcc.gnu.org Subject: Re: [Ada] Remove useless pragma Warnings Off from runtime units Organization: Free thinker, not speaking for the GNU Project References: <20220512124009.GA781082@adacore.com> <20220627185825.ed6rcjbjo5p2hqzp@lug-owl.de> Errors-To: aoliva@lxoliva.fsfla.org Date: Mon, 27 Jun 2022 18:46:30 -0300 In-Reply-To: <20220627185825.ed6rcjbjo5p2hqzp@lug-owl.de> (Jan-Benedict Glaw's message of "Mon, 27 Jun 2022 20:58:26 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2022 21:46:47 -0000 Hello, Jan-Benedict, On Jun 27, 2022, Jan-Benedict Glaw wrote: > For me, this patch broke building a basic cross compiler using Debian > sid's "gcc-snapshot" package as the build/host compiler Thanks for reporting the problem you've encountered, and for your interest. AFAIK the general recommendation for building GCC is to either bootstrap it, using a native compiler that meets the build documented requirements, or use the same precompiled version of the compiler that you wish to cross-build. IIRC, this latter requirement is particularly important for canadian crosses, but it applies as a general recommendation, and GNAT often takes advantage of that to use features that will be disregarded by stage1 (no optimization, no fatal warnings, limited runtime, etc), but that must be available in later stages and in cross builds, which is easy to satisfy by using the same compiler version, and which is a given when bootstrapping. Of course it isn't always the case that you will run into problems when deviating from these recommendations, so it's perfectly possible that you get lucky building it all using compilers that don't meet the recommendations to get started, but that's counting on luck, not on a reliable procedure. See note Prerequisites in the GCC Installation manual for more details. I hope this helps, -- Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/ Free Software Activist GNU Toolchain Engineer Disinformation flourishes because many people care deeply about injustice but very few check the facts. Ask me about