Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MrJPf-0006Kh-T9 for mharc-grub-devel@gnu.org; Fri, 25 Sep 2009 18:37:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MrJPe-0006KX-12 for grub-devel@gnu.org; Fri, 25 Sep 2009 18:37:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MrJPY-0006KL-KL for grub-devel@gnu.org; Fri, 25 Sep 2009 18:37:12 -0400 Received: from [199.232.76.173] (port=56713 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MrJPY-0006KI-ET for grub-devel@gnu.org; Fri, 25 Sep 2009 18:37:08 -0400 Received: from smarthost03.mail.zen.net.uk ([212.23.3.142]:41604) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MrJPY-0007SB-3M for grub-devel@gnu.org; Fri, 25 Sep 2009 18:37:08 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost03.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1MrJPW-0001Ka-Pq for grub-devel@gnu.org; Fri, 25 Sep 2009 22:37:06 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1MrJPW-0007qo-00; Fri, 25 Sep 2009 23:37:06 +0100 Date: Fri, 25 Sep 2009 23:37:06 +0100 From: Colin Watson To: The development of GRUB 2 Message-ID: <20090925223705.GT13423@riva.ucam.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost03-IP: [82.69.40.219] X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: configure does not honor CC when testing for -mcmodel=large X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2009 22:37:14 -0000 On Fri, Sep 25, 2009 at 03:29:47PM -0700, Seth Goldberg wrote: > Setting $CC to another gcc (not in the path) fails when attempting to > configure for 64-bit EFI if the installed gcc cannot handle > -mcmodel=large. configure.in should be changed to honor $CC. I'm > horrible at m4 / autoconf, so I'm not sure what needs to be changed > (otherwise, I'd provide a patch :)). > > From config.log after running ( setenv CC gcc-4.3.2; ./configure --with-platform=efi --target=x86_64): > > configure:6612: result: no > configure:6617: WARNING: -mcmodel=large not supported. You won't be able to use the memory over 4GiB. Upgrade your gcc > configure:6624: checking whether option -mno-red-zone works > configure:6652: gcc -c -Os -m64 -DMCMODEL_SMALL=1 -m64 -mno-red-zone conftest.c >&5 > conftest.c:1: sorry, unimplemented: 64-bit mode not compiled in Don't you need to set TARGET_CC for that? If the host and target are different, then CC is only used for the host compiler. -- Colin Watson [cjwatson@ubuntu.com]