From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9673 invoked by alias); 31 Jul 2008 11:00:07 -0000 Received: (qmail 9654 invoked by uid 22791); 31 Jul 2008 11:00:05 -0000 X-Spam-Check-By: sourceware.org Received: from col0-omc2-s16.col0.hotmail.com (HELO col0-omc2-s16.col0.hotmail.com) (65.55.34.90) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 31 Jul 2008 10:59:44 +0000 Received: from COL101-W53 ([65.55.34.71]) by col0-omc2-s16.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 31 Jul 2008 03:59:43 -0700 Message-ID: From: Jay To: Andrew Pinski CC: Subject: RE: configuring in-tree gmp/mpfr with "none"? Date: Thu, 31 Jul 2008 11:45:00 -0000 In-Reply-To: References: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2008-07/txt/msg00665.txt.bz2 Andrew, Can you explain more why? Why I'm asking again now: I have found another "problem" because of this (besides the reduced ability to share config.cache files). This exacerbates what looks like a minor bug in gmp's configure. Sometimes, depending on build/host/target, gmp's configure sets M4=3Dm4-not-needed. Setting the processor to "none" is a good way to get it down the "not neede= d" path. Though there might be other ways there, granted. And then gmp/configure runs flex. And then sometimes?always flex tries to run getenv("M4") || "m4". Flex fails, sometimes creating lex.yy.c, sometimes not. I haven't tracked down this "sometimes". When I run build under Python, no lex.yy.c, outside of Python, ok. I still have to dig in further to find out why. When lex.yy.c is not created, configure fails. It is looking for what file = is the output. gmp/configure probably should not be setting M4, at least not when it runs = flex. But gcc using processor=3Dnone doesn't help. I'll follow up with gmp folks. Thanks, - Jay > Date: Wed, 18 Jun 2008 06:53:35 -0400 > From: pinskia@gmail.com > To: jayk123@hotmail.com > Subject: Re: configuring in-tree gmp/mpfr with "none"? > CC: gcc@gcc.gnu.org > > On Wed, Jun 18, 2008 at 12:40 AM, Jay wrote: >> Ah, I didn't realize any C or C++ code could be configured for other tha= n a >> specific processor but I guess that makes sense -- it is Makefile, confi= g.h, >> and such that are being modified, not the .o files, and they might be the >> same across many configurations, like if the compiler command lines and >> #defines can be the same, like if there is no need to know the size of a >> pointer or the endianness, etc.. I guess more code should work this way = if >> possible. Thanks Andrew. > > Well gmp/mpfr are special in that they try to do the same thing as > -mcpu=3Dnative with their configure script and they have some assembly > files. > > Thanks, > Andrew Pinski