From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2383 invoked by alias); 14 Jan 2014 09:14:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 2053 invoked by uid 48); 14 Jan 2014 09:14:13 -0000 From: "yselkowitz at users dot sourceforge.net" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/57795] Fail Canadian cross building Ada Date: Tue, 14 Jan 2014 09:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yselkowitz at users dot sourceforge.net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg01439.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57795 Yaakov (Cygwin Ports) changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yselkowitz at users dot sourceforg | |e.net --- Comment #1 from Yaakov (Cygwin Ports) --- I also ran into this when cross-compiling a native gcc with Ada (i686-pc-cygwin/x86_64-pc-cygwin/x86_64-pc-cygwin) in the process of porting GNAT to a new platform. In fact, I believe this would happen any time $build != $host (regardless of $target), but NOT with the typical cross-compiler ($build == $host, $host != $target). The root of the problem is RTS_DIR override (immediately prior to gnattools-cross rule) in gnattools/Makefile.in, which calls gnatls (for $build) where IIUC it should be something like $(GNATMAKE:gnatmake=gnatls) (for $host). There is another problem in this situation: in gcc/ada/gcc-interface/Make-lang.in, the xgnatugn rule (part of building doc/projects.texi and doc/gnat_ugn.texi) calls $(GNATMAKE), resulting in a xgnatugn which runs on $host instead of $build; this probably needs to be just gnatmake instead.