Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KJVFp-0007V6-Lr for mharc-grub-devel@gnu.org; Thu, 17 Jul 2008 11:18:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJVFn-0007U0-T1 for grub-devel@gnu.org; Thu, 17 Jul 2008 11:18:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJVFm-0007Ta-EO for grub-devel@gnu.org; Thu, 17 Jul 2008 11:18:47 -0400 Received: from [199.232.76.173] (port=38113 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJVFm-0007TQ-5v for grub-devel@gnu.org; Thu, 17 Jul 2008 11:18:46 -0400 Received: from ti-out-0910.google.com ([209.85.142.188]:37648) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJVFl-0004K5-F5 for grub-devel@gnu.org; Thu, 17 Jul 2008 11:18:46 -0400 Received: by ti-out-0910.google.com with SMTP id u5so3051146tia.10 for ; Thu, 17 Jul 2008 08:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=i8V6Q2PBY2Pat+5sp5SiTA2K00U0OkGDqal3oy1EvjI=; b=mgk13KxWRTr5ZmIKQtjo6QKKdAPYHeIrr7s5gPRJi5yzAoP0+sfVbPovRg7G32Pdt5 pvwm+EnwNNTNb8n83efhyIbUlAA+szk80HXI1N3l0+c26yVEONsAbnXPbfovcgjOP/n4 XDeSA/12mGdHgTm2WKlPh/Dgk2VbjQIlIctMs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=WZY4rW/Cvk89NufE4KhBl14EbKV4Zmbi5P3rXJyOBVhzHRM5LHyUnjVlBHXe4heznt WDffyCPWvCHMpq9iZ1z2u1OcVH8WVmn9wB5dbHIKL/xSjY1BFujdYUlMas5DEtzzZt7l nLZanaB0HzANbXrZ+ymTLpOZC5lAmVD7+kN/U= Received: by 10.110.46.14 with SMTP id t14mr1329917tit.22.1216307923462; Thu, 17 Jul 2008 08:18:43 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Thu, 17 Jul 2008 08:18:43 -0700 (PDT) Message-ID: Date: Thu, 17 Jul 2008 23:18:43 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <1216306949.21767.20.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <487392C9.40208@isaac.cedarswampstudios.org> <20080712144131.GE25455@thorin> <20080712171052.GA29804@thorin> <1216306949.21767.20.camel@localhost> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:18:48 -0000 On Thu, Jul 17, 2008 at 11:02 PM, Javier Mart=EDn wr= ote: > El jue, 17-07-2008 a las 17:50 +0800, Bean escribi=F3: >> 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=3D/bin/bash /bin/bash ../src/configure > --prefix=3D/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 > > 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. 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 was able to correctly recompile if I reconfigured GRUB with > --target=3Di386-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. Hi, To compile 32-bit efi: ./configure --platform=3Defi --target=3Di386 To compile 64-bit efi: ./configure --platform=3Defi --target=3Dx86_64 This works in i386 and x86_64 host. If you don't use --target, it will build native image. --=20 Bean