From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17367 invoked by alias); 28 Dec 2002 16:17:19 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 17350 invoked from network); 28 Dec 2002 16:17:18 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by 209.249.29.67 with SMTP; 28 Dec 2002 16:17:18 -0000 Received: from free.redhat.lsd.ic.unicamp.br (aoliva2.cipe.redhat.com [10.0.1.156]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id gBSGH1Y17827; Sat, 28 Dec 2002 11:17:01 -0500 Received: from free.redhat.lsd.ic.unicamp.br (localhost.localdomain [127.0.0.1]) by free.redhat.lsd.ic.unicamp.br (8.12.6/8.12.6) with ESMTP id gBSGH0MK020849; Sat, 28 Dec 2002 14:17:00 -0200 Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.12.6/8.12.6/Submit) id gBSGGx0h020843; Sat, 28 Dec 2002 14:16:59 -0200 To: Mark Kettenis Cc: Nathanael Nerode , gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com, binutils@sources.redhat.com, dj@redhat.com Subject: Re: (top level patch) Autoconfiscate. (Woo!) References: <20021228035943.GA3173@doctormoo> <86smwijnhi.fsf@elgar.kettenis.dyndns.org> From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Sat, 28 Dec 2002 08:24:00 -0000 In-Reply-To: <86smwijnhi.fsf@elgar.kettenis.dyndns.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-12/txt/msg00716.txt.bz2 On Dec 28, 2002, Mark Kettenis wrote: > Nathanael Nerode writes: >> This autoconfiscates the top level. Tested on i686-pc-linux-gnu, produced >> a Makefile with only trivial differences from before. > Nothing serious, but... > ...I get the following warning when configuring readline: > Configuring in readline > configure: WARNING: If you wanted to set the --build type, don't use --host. > If a cross compiler is detected then cross compile mode will be used. We can't really help warnings like this from autoconf 2.5x, unless we check each sub-package's configure to see which autoconf it's using. The problem is that, in autoconf 2.13, the build platform defaults to the host platform that is auto-detected, but in autoconf 2.5x, this was fixed such that it is host that defaults to build that is auto-detected. So, you get the warning when you specify only --host, since eventually the backward-compatible behavior in autoconf will be disabled. Worse yet, if you specify both --build and --host, you'll get a different warning, since autoconf 2.5x wants this to imply that we're doing cross-compilation. Fortunately, it checks whether the --build and --host arguments to see whether they're the same, and disables this assumption in this case. I heard talk about removing these backward-compatible features a few months ago; I hope my protest against it didn't get in too late; it would simply make it impossible to have a tree like uberbaum unless *every* *single* component in it switches to the newer version of autoconf. > Anyway, as far as I can determine, the warning doesn't hurt, but we > might want to get rid of it. Ideally, the top-level should pass down to host packages exactly the same --build, --host and --target flags that were passed to it. Currently, we attempt to do it, but we fail because buildopt is no longer set anywhere. Oops :-) This is a problem, because specifying --build no longer has any effect on host packages. I don't know whether any package actually relies on --build these days, but it should be fixed. > Note that this is probably caused by an earlier patch, and not by this > last autoconfiscate patch, but I didn't notice it before. It was probably the autoconfiscate patch that dropped the assignment of buildopt. Earlier, we used to pass both --build and --host down. > P.S. Why is Makefile.tpl not included in the src CVS tree? It is > included in the gcc CVS tree. It should be there too. Probably just a pilot error. -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist Professional serial bug killer