Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ROCyr-0004LR-4V for mharc-grub-devel@gnu.org; Wed, 09 Nov 2011 13:34:37 -0500 Received: from eggs.gnu.org ([140.186.70.92]:55133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROCyp-0004LL-4n for grub-devel@gnu.org; Wed, 09 Nov 2011 13:34:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROCyn-0003Op-Q2 for grub-devel@gnu.org; Wed, 09 Nov 2011 13:34:35 -0500 Received: from acsinet15.oracle.com ([141.146.126.227]:31538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROCyn-0003OX-Fb for grub-devel@gnu.org; Wed, 09 Nov 2011 13:34:33 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pA9IYTVu023194 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 9 Nov 2011 18:34:30 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pA9IYTcr001172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 9 Nov 2011 18:34:29 GMT Received: from abhmt108.oracle.com (abhmt108.oracle.com [141.146.116.60]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pA9IYN4q027992 for ; Wed, 9 Nov 2011 12:34:23 -0600 Received: from bergsoft (/10.132.136.136) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 09 Nov 2011 10:34:23 -0800 Date: Wed, 9 Nov 2011 10:33:02 -0800 (PST) From: Seth Goldberg X-X-Sender: sethg@bergsoft To: The development of GNU GRUB Subject: Re: 64-bit UEFI build is broken In-Reply-To: <4EBA4331.3000706@gmail.com> Message-ID: References: <4EBA4331.3000706@gmail.com> User-Agent: Alpine 2.00 (GSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-808637718-1320863583=:9801" X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.4EBAC7B6.00FC,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 141.146.126.227 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 18:34:35 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-808637718-1320863583=:9801 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Hi, Quoting Vladimir '=CF=86-coder/phcoder' Serbinenko, who wrote the following= on...: > On 09.11.2011 07:17, Seth Goldberg wrote: >> Hi, >> >> Just a followup -- it appears that the root cause is a missing >> "-m64" -- since the compilation for this platform should be done with >> -m64, the preprocessing done for .lst generation should also be done >> with that cflag, otherwise (at least in this case), the library gets >> confused. >> >> Adding 'TARGET_CPPFLAGS=3D-m64" to the configure line allowed the build >> to finish without errors (though I'm not sure if that's the proper fix). > Please try following patch: > =3D=3D=3D modified file 'configure.ac' > --- configure.ac 2011-11-08 11:38:30 +0000 > +++ configure.ac 2011-11-09 09:08:28 +0000 > @@ -464,6 +464,7 @@ > # Force 32-bit mode. > TARGET_CFLAGS=3D"$TARGET_CFLAGS -m32" > TARGET_CCASFLAGS=3D"$TARGET_CCASFLAGS -m32" > + TARGET_CPPFLAGS=3D"$TARGET_CPPFLAGS -m32" > TARGET_LDFLAGS=3D"$TARGET_LDFLAGS -m32" > TARGET_MODULE_FORMAT=3D"elf32" > fi > @@ -472,6 +473,7 @@ > # Force 64-bit mode. > TARGET_CFLAGS=3D"$TARGET_CFLAGS -m64" > TARGET_CCASFLAGS=3D"$TARGET_CCASFLAGS -m64" > + TARGET_CPPFLAGS=3D"$TARGET_CPPFLAGS -m64" > TARGET_LDFLAGS=3D"$TARGET_LDFLAGS -m64" > TARGET_MODULE_FORMAT=3D"elf64" > fi That fixed the error. I vote for a commit :). Thanks, --S ---559023410-808637718-1320863583=:9801--