From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MrJLP-00038a-7L for mharc-grub-devel@gnu.org; Fri, 25 Sep 2009 18:32:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MrJLN-000380-Fa for grub-devel@gnu.org; Fri, 25 Sep 2009 18:32:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MrJLI-00035X-32 for grub-devel@gnu.org; Fri, 25 Sep 2009 18:32:48 -0400 Received: from [199.232.76.173] (port=42742 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MrJLH-00035U-TL for grub-devel@gnu.org; Fri, 25 Sep 2009 18:32:43 -0400 Received: from sca-es-mail-1.sun.com ([192.18.43.132]:61704) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1MrJLH-0006q7-G2 for grub-devel@gnu.org; Fri, 25 Sep 2009 18:32:43 -0400 Received: from fe-sfbay-10.sun.com ([192.18.43.129]) by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n8PMWfH6025133 for ; Fri, 25 Sep 2009 15:32:41 -0700 (PDT) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: TEXT/PLAIN; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KQJ00G00SZ3FM00@fe-sfbay-10.sun.com> for grub-devel@gnu.org; Fri, 25 Sep 2009 15:32:41 -0700 (PDT) Received: from kasha ([unknown] [10.1.48.74]) by fe-sfbay-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KQJ00DTYTAH9520@fe-sfbay-10.sun.com> for grub-devel@gnu.org; Fri, 25 Sep 2009 15:32:41 -0700 (PDT) Date: Fri, 25 Sep 2009 15:29:47 -0700 (PDT) From: Seth Goldberg In-reply-to: Sender: Seth.Goldberg@Sun.COM X-X-Sender: sethg@"bergsoft.West.Sun.COM." To: The development of GRUB 2 Message-id: References: User-Agent: Alpine 2.00 (GSO 1167 2008-08-23) X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) Subject: 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:32:49 -0000 Hi, 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 --S