From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RO49s-0007mL-Pb for mharc-grub-devel@gnu.org; Wed, 09 Nov 2011 04:09:24 -0500 Received: from eggs.gnu.org ([140.186.70.92]:44435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO49l-0007h7-00 for grub-devel@gnu.org; Wed, 09 Nov 2011 04:09:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RO49j-0001NA-CT for grub-devel@gnu.org; Wed, 09 Nov 2011 04:09:16 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:33076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO49j-0001Ms-5Q for grub-devel@gnu.org; Wed, 09 Nov 2011 04:09:15 -0500 Received: by faaq16 with SMTP id q16so1832104faa.0 for ; Wed, 09 Nov 2011 01:09:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=XO5hnjU8Vb1v+2GAEpXM0luDzANXlTGE/f/f2pdBGE4=; b=jxdqtXr1vQFaQUPBcVgcOvP6wb/nJ6VY3ohVxhYdqyWYSHQHeUEcN6vpn7XUruJals 5786O+K77nJFg9Jnb8jG6c9TG+CJn79MN9qG92MROTILCswc2W7yyZU+0A+oDC3aIkcf ARoF78G/8VeHvyTGVK4Lkr5+7E3Eby0K330qk= Received: by 10.223.30.149 with SMTP id u21mr3590163fac.18.1320829754335; Wed, 09 Nov 2011 01:09:14 -0800 (PST) Received: from debian.x201.phnet (gprs07.swisscom-mobile.ch. [193.247.250.7]) by mx.google.com with ESMTPS id n25sm5871636fah.15.2011.11.09.01.09.12 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 09 Nov 2011 01:09:13 -0800 (PST) Message-ID: <4EBA4331.3000706@gmail.com> Date: Wed, 09 Nov 2011 10:09:05 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20111010 Iceowl/1.0b2 Icedove/3.1.15 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: 64-bit UEFI build is broken References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig57203E59CCD6C7AA44E98A4D" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 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 09:09:21 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig57203E59CCD6C7AA44E98A4D Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 buil= d > to finish without errors (though I'm not sure if that's the proper fix)= =2E 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 > > --S > > Quoting Seth Goldberg, who wrote the following on Tue, 8 Nov 2011: > >> >> Latest trunk (Linux host, configured with "--target=3Dx86_64 >> --with-platform=3Defi") stops while building btrfs: >> >> gcc -E -DGRUB_LST_GENERATOR -Dgrub_fs_register=3DFS_LIST_MARKER >> -Dgrub_video_register=3DVIDEO_LIST_MARKER >> -Dgrub_parttool_register=3DPARTTOOL_LIST_MARKER >> -Dgrub_partition_map_register=3DPARTMAP_LIST_MARKER >> '-Dgrub_term_register_input(...)=3DINPUT_TERMINAL_LIST_MARKER(__VA_ARG= S__)' >> '-Dgrub_term_register_output(...)=3DOUTPUT_TERMINAL_LIST_MARKER(__VA_A= RGS__)' >> '-Dgrub_register_command(...)=3DCOMMAND_LIST_MARKER(__VA_ARGS__)' >> '-Dgrub_register_extcmd(...)=3DEXTCOMMAND_LIST_MARKER(__VA_ARGS__)' >> '-Dgrub_register_command_p1(...)=3DP1COMMAND_LIST_MARKER(__VA_ARGS__)'= >> -DHAVE_CONFIG_H -I. -I../../grub-core -I.. -Wall -W -I../../include >> -I../include -DGRUB_MACHINE_EFI=3D1 -DGRUB_MACHINE=3DX86_64_EFI >> -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/4.6.1/include >> -DGRUB_FILE=3D\"fs/btrfs.c\" -I. -I../../grub-core -I.. -I../.. >> -I../../include -I../include -I../../grub-core/lib/posix_wrap >> -I../../grub-core/lib/minilzo -DMINILZO_HAVE_CONFIG_H =20 >> ../../grub-core/fs/btrfs.c ../../grub-core/lib/crc.c >>> btrfs.marker.new || (rm -f btrfs.marker; exit 1) >> In file included from ../../grub-core/lib/minilzo/lzoconf.h:75:0, >> from ../../grub-core/lib/minilzo/minilzo.h:60, >> from ../../grub-core/fs/btrfs.c:29: >> ../../grub-core/lib/minilzo/lzodefs.h:849:6: error: #error "this >> should not happen" >> make[3]: *** [btrfs.marker] Error 1 >> >> >> It's not expecting sizeof(ulong_t) to exceed 32-bits. >> >> --S >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> https://lists.gnu.org/mailman/listinfo/grub-devel >> > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig57203E59CCD6C7AA44E98A4D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk66QzEACgkQNak7dOguQgmdiwD8DZhqd684M344gbdnbaHDpsYR cp0yIZxt7Q5iVNHFw2oA/21eawJmaFY7UCT9GwhD9NIK6VuqchucSuGxX5U+vdKP =zTr4 -----END PGP SIGNATURE----- --------------enig57203E59CCD6C7AA44E98A4D--