On Thu, Jul 17, 2008 at 11:02 PM, Javier Martín <[EMAIL PROTECTED]> 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 > > 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=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.
Hi, To compile 32-bit efi: ./configure --platform=efi --target=i386 To compile 64-bit efi: ./configure --platform=efi --target=x86_64 This works in i386 and x86_64 host. If you don't use --target, it will build native image. -- Bean _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel