From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RLyEP-0004GE-Jh for mharc-grub-devel@gnu.org; Thu, 03 Nov 2011 10:25:25 -0400 Received: from eggs.gnu.org ([140.186.70.92]:48685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLyED-0004Cu-Vl for grub-devel@gnu.org; Thu, 03 Nov 2011 10:25:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLyE9-0000Zm-HV for grub-devel@gnu.org; Thu, 03 Nov 2011 10:25:13 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:40298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLyE9-0000Z3-7g for grub-devel@gnu.org; Thu, 03 Nov 2011 10:25:09 -0400 Received: by wwe3 with SMTP id 3so1474683wwe.30 for ; Thu, 03 Nov 2011 07:25:08 -0700 (PDT) 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=XDU9ziMhmWoKCsLcJBz/b2glGc1QeojUR0ISAfR+ABQ=; b=wVav5rPynq+HOP9kd2bDvXBaJ2rwV3QyGv0y4gRalsRz/jP8hr8ZT2GDxC6ar/TPQp 9VmZXNUR+H2pdTQtyGicbM5S9e0dG3cIDz5AhPKgsjNTCH2AS4d1VqwwxXN/yrJayexk COhQBES9XnxVq0tNDaZGfqA4DF5E2oyQf0R7s= Received: by 10.216.221.215 with SMTP id r65mr3033725wep.23.1320330307978; Thu, 03 Nov 2011 07:25:07 -0700 (PDT) Received: from debian.x201.phnet (gprs45.swisscom-mobile.ch. [193.247.250.45]) by mx.google.com with ESMTPS id y38sm10498676wbm.2.2011.11.03.07.25.06 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Nov 2011 07:25:07 -0700 (PDT) Message-ID: <4EB2A440.3060204@gmail.com> Date: Thu, 03 Nov 2011 15:25:04 +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: Can't compile efi-amd64 on x86 References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig40BAFC193C1B09B34E7E323B" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 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: Thu, 03 Nov 2011 14:25:23 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig40BAFC193C1B09B34E7E323B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 28.10.2011 11:39, Lukas Anzinger wrote: > Hi, > > I branched the latest revision from the Bazaar repository and wanted > to compile it for EFI-amd64: > > ### > $ ./configure --prefix=3D/usr --includedir=3D\${prefix}/include > --mandir=3D\${prefix}/share/man --infodir=3D\${prefix}/share/info > --sysconfdir=3D/etc --localstatedir=3D/var > --libexecdir=3D\${prefix}/lib/grub2 --disable-maintainer-mode > --disable-dependency-tracking --enable-grub-mkfont --with-platform=3Def= i > --target=3Damd64-pe Target is wrong. It should be x86_64 or x86_64-elf. GRUB is compiled to ELF and only mkimage translates it to PE. > $ make > [...] > In file included from ./lib/minilzo/lzoconf.h:75:0, > from ./lib/minilzo/minilzo.h:60, > from fs/btrfs.c:29: > ./lib/minilzo/lzodefs.h:849:6: error: #error "this should not happen" > ### > > The line 849 from lzodefs.h: > > ### > 841 #if (LZO_ARCH_I386) > 842 # if (UINT_MAX !=3D LZO_0xffffL) && defined(__i386_int16__) > 843 # error "this should not happen" > 844 # endif > 845 # if (UINT_MAX !=3D LZO_0xffffffffL) && !defined(__i386_int16__) > 846 # error "this should not happen" > 847 # endif > 848 # if (ULONG_MAX !=3D LZO_0xffffffffL) > 849 # error "this should not happen" > 850 # endif > 851 #endif > ### > > So it looks like LZO_ARCH_I386 is defined although it shouldn't be > since I want to compile an efi-amd64 version. The configure command > works with the latest official release 1.99 (as well as ~rc2): > everything compiles correctly. I think it's due to the change of the > LZO library. > > I can also reproduce the problem if I want to compile the file "manuall= y": > > ### > lukas@vm:~/grub/grub-core# 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_ARGS= __)' > '-Dgrub_term_register_output(...)=3DOUTPUT_TERMINAL_LIST_MARKER(__VA_AR= GS__)' > '-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.. -Wall -W -I../include -I../include > -DGRUB_MACHINE_EFI=3D1 -DGRUB_MACHINE=3DX86_64_EFI -nostdinc -isystem > /usr/lib/gcc/i486-linux-gnu/4.6/include -DGRUB_FILE=3D\"fs/btrfs.c\" -I= =2E > -I. -I.. -I.. -I../include -I../include -I./lib/posix_wrap > -I./lib/minilzo -DMINILZO_HAVE_CONFIG_H fs/btrfs.c lib/crc.c >> /dev/null > In file included from ./lib/minilzo/lzoconf.h:75:0, > from ./lib/minilzo/minilzo.h:60, > from fs/btrfs.c:29: > ./lib/minilzo/lzodefs.h:849:6: error: #error "this should not happen" > ### > > If I add "-m64" to the gcc call, it compiles correctly. This looks > like an error in the build system to me, however, I don't have any > experience with GNU autotools. > > Maybe somebody can take a look at it. > > Regards, > > Lukas > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig40BAFC193C1B09B34E7E323B 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/ iF4EAREKAAYFAk6ypEAACgkQNak7dOguQgl3GgD/dBQp6H+Uk32dM/HuagstOu+X n/zmdHCBH50cE0sn07ABAJbcbeQJE2yJil2CUAlKjClldFbW3i8nihuflULLU4Cy =9a8Y -----END PGP SIGNATURE----- --------------enig40BAFC193C1B09B34E7E323B--