From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78570 invoked by alias); 4 Sep 2019 13:55:33 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 78562 invoked by uid 89); 4 Sep 2019 13:55:33 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HTo:U*macro, H*Ad:U*charlet, HX-Languages-Length:1378 X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 04 Sep 2019 13:55:31 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 3F13381392; Wed, 4 Sep 2019 15:55:29 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GYgKjUZ44RjE; Wed, 4 Sep 2019 15:55:29 +0200 (CEST) Received: from chelles.act-europe.fr (chelles.act-europe.fr [10.10.0.160]) by smtp.eu.adacore.com (Postfix) with ESMTP id 05C91812E6; Wed, 4 Sep 2019 15:55:29 +0200 (CEST) Received: by chelles.act-europe.fr (Postfix, from userid 525) id F41181EA1719; Wed, 4 Sep 2019 15:55:28 +0200 (CEST) Date: Wed, 04 Sep 2019 13:55:00 -0000 From: Arnaud Charlet To: "Maciej W. Rozycki" Cc: Pierre-Marie de Rodat , gcc-patches@gcc.gnu.org, Arnaud Charlet Subject: Re: r272976 - in /trunk/gcc/ada: ChangeLog ali.adb ... Message-ID: <20190904135528.GE13039@adacore.com> References: <20190703081457.62952.qmail@sourceware.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2019-09/txt/msg00192.txt.bz2 Maciej, > This change (not posted to `gcc-patches' for some reason) has caused a > regression in the form of a build failure with the `riscv-linux-gnu' > target (and for the record the `x86_64-linux-gnu' build/host running GCC > 8.3.0): > > ali.adb:34:28: warning: use clause for package "GNAT" has no effect > ali.adb:35:28: warning: use clause for package "Dynamic_HTables" has no effect > ali.adb:155:52: "Bucket_Range_Type" is undefined (more references follow) > ali.adb:158:27: "Dynamic_Hash_Tables" is undefined > ali.adb:173:30: "Sig_Map" is undefined (more references follow) > gnatmake: ".../gcc/ada/ali.adb" compilation error > make[3]: *** [../gcc-interface/Makefile:469: gnatmake-re] Error 4 > make[3]: Leaving directory '.../gcc/ada/tools' > make[2]: *** [Makefile:216: gnattools-cross] Error 2 > make[2]: Leaving directory '.../gnattools' > make[1]: *** [Makefile:11224: all-gnattools] Error 2 > > -- that has persisted ever since. As documented in https://gcc.gnu.org/install/build.html you need a matching native GNAT compiler to build a GNAT cross compiler. If I understood properly, you are using a GCC 8.3.0 as the host compiler to build a GNAT cross compiler, which indeed won't work: you need to first build a native matching compiler and then use this matching compiler to build the cross. Arno