From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8265 invoked by alias); 21 Sep 2006 03:58:02 -0000 Received: (qmail 8250 invoked by uid 48); 21 Sep 2006 03:57:55 -0000 Date: Thu, 21 Sep 2006 03:58:00 -0000 Message-ID: <20060921035755.8249.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug ada/29157] gnattools fail on cross compilation - Makefile bug? In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "belandor at web dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-09/txt/msg02001.txt.bz2 List-Id: ------- Comment #2 from belandor at web dot de 2006-09-21 03:57 ------- it seems, that my RTS_DIR variable is wrong. the Makefile ($BUILDDIR/gnattools/Makefile) extracts or adapts the directory using RTS_DIR:=$(strip $(subst \,/,$(shell gnatls -v | grep adalib ))) right before the rule for gnattools-cross: (line 229) However, "gnatls -v | grep adalib" on my machine returns 3 paths, which somehow end up unprocessed in RTS_DIR. /usr/lib/gnat-gcc/i686-pc-linux-gnu/4.1/adalib/ /usr/lib/ada/i686-pc-linux-gnu-gnat-gcc-4.1/gtkada/adalib/ /home/ap/crossGNAT/gcc-4.1.1/install/lib/gcc/i686-pc-linux-gnu/4.1.1/adalib/ I just replaced the RTS_DIR := by the fixed value of /home/ap/... - This allowed compilation to finish. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29157