From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KJVJJ-0001N1-5J for mharc-grub-devel@gnu.org; Thu, 17 Jul 2008 11:22:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJVJH-0001LU-Gs for grub-devel@gnu.org; Thu, 17 Jul 2008 11:22:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJVJG-0001Kb-GS for grub-devel@gnu.org; Thu, 17 Jul 2008 11:22:23 -0400 Received: from [199.232.76.173] (port=43224 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJVJG-0001KR-Bp for grub-devel@gnu.org; Thu, 17 Jul 2008 11:22:22 -0400 Received: from c60.cesmail.net ([216.154.195.49]:53337) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1KJVJF-0005ma-W3 for grub-devel@gnu.org; Thu, 17 Jul 2008 11:22:22 -0400 Received: from unknown (HELO relay.cesmail.net) ([192.168.1.81]) by c60.cesmail.net with ESMTP; 17 Jul 2008 11:22:20 -0400 Received: from [192.168.0.21] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by relay.cesmail.net (Postfix) with ESMTP id 8AEC64F1869 for ; Thu, 17 Jul 2008 11:22:20 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <1216306949.21767.20.camel@localhost> References: <486FFD84.5000607@isaac.cedarswampstudios.org> <487392C9.40208@isaac.cedarswampstudios.org> <20080712144131.GE25455@thorin> <1216306949.21767.20.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1 Date: Thu, 17 Jul 2008 11:22:15 -0400 Message-Id: <1216308135.16120.5.camel@dv> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 8bit X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] New x86_64 EFI patch 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: Thu, 17 Jul 2008 15:22:24 -0000 On Thu, 2008-07-17 at 17:02 +0200, Javier Martín wrote: > El jue, 17-07-2008 a las 17:50 +0800, Bean escribió: > > Committed. > > > Seemingly, the fact that there is now separate recognition for "x86_64" > machine types has borked the current build system in amd64 PCs: > > $ make > ./config.status --recheck > running CONFIG_SHELL=/bin/bash /bin/bash ../src/configure > --prefix=/home/javier/Proyectos/grub/build/out/ --no-create > --no-recursion > checking build system type... x86_64-unknown-linux-gnu > checking host system type... x86_64-unknown-linux-gnu > checking target system type... x86_64-unknown-linux-gnu > configure: error: unsupported machine type > make: *** [config.status] Error 1 I've just noticed that. I think x86_64 should default to "i386-pc" platform. I'll have a look how to do it nicely. > The current system would build bootloader files as i386-pc (with the > -m32 switch in gcc, which itself created the infamous "cannot find start > or _start" problem when a multilib version of gcc was not installed) and > helper files like grub-setup as amd64. I was trying add an extra check there, but ran into more interesting stuff. Basically, the target checks should be better separated from the rest. I'll take another look. > This caused problems of its own, > like grub-emu (built as amd64) being unable to load any grub modules > (built as i386), but at least worked OOtB. I didn't know grub-emu could load modules! Live and learn :-) > I was able to correctly recompile if I reconfigured GRUB with > --target=i386-pc-linux-gnu (i386-pc alone was not recognized). Is this > the current way to go? I feel it should not be so, because it multiboot2 > comes out with amd64 support, there should be an x86_64-pc grub2. Perhaps we'll have it eventually. But I agree, the default should be restored for now. -- Regards, Pavel Roskin