From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1306 invoked by alias); 6 Nov 2013 12:57:49 -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 1294 invoked by uid 89); 6 Nov 2013 12:57:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_50,RDNS_NONE autolearn=no version=3.3.2 X-HELO: smtp.eu.adacore.com Received: from Unknown (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 06 Nov 2013 12:57:47 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id E10EE26A00D1; Wed, 6 Nov 2013 13:57:38 +0100 (CET) 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 BHjyQPMgkFp0; Wed, 6 Nov 2013 13:57:38 +0100 (CET) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id C2B8626A0018; Wed, 6 Nov 2013 13:57:38 +0100 (CET) From: Eric Botcazou To: Iain Sandoe Cc: gcc-patches@gcc.gnu.org, Arnaud Charlet Subject: Re: [Patch Ada/build] deal with some cross/native cross issues Date: Wed, 06 Nov 2013 13:13:00 -0000 Message-ID: <1757219.DocZddhPPW@polaris> User-Agent: KMail/4.7.2 (Linux/3.1.10-1.29-desktop; KDE/4.7.2; x86_64; ; ) In-Reply-To: <66B73BAF-77A5-46B4-9D81-9043E7F17BAA@codesourcery.com> References: <66B73BAF-77A5-46B4-9D81-9043E7F17BAA@codesourcery.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2013-11/txt/msg00563.txt.bz2 > I've been trying to improve the building and testing of Darwin for crosses > and native crosses. > > This has thrown up a few small glitches in the Ada build stuff (that would > seem to apply to any build-host-nativeX scenario, not just darwin). I > would imagine it would be beneficial to resolve these, since Ada requires > Ada - a native cross seems like the only realistic way onto a new target. Thanks for working on this. > 1. xgnatugn needs to be run on the build system, so needs to be built with > the build system's gnatmake. I haven't put a canonical prefix on this since > this doesn't appear to be done elsewhere. Defined as GNATMAKE_FOR_BUILD and > passed to sub-processes. Why do you need to pass it to ADA_TOOLS_FLAGS_TO_PASS though? Just replace $(GNATMAKE) with gnatmake. > 2. Some builds might need to pass LDFLAGS to the gnat* builds. Appended > LDFLAGS to GCC_LINK. Passed on in gnattools/Make. OK. > 3. In gnattools, the RTS dir must be for the host and not for the build; > This actually only showed up when I tried a cross from a 64bit pointer > machine to a 32bit pointer one (i.e it is easy for it to go unnoticed). OK, but don't you need to do the same for gnatmake/gnatbind/gnatlink here? See gcc-interface/Make-lang.in, line 171 and below, for similar code. -- Eric Botcazou