Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Compiling grub on x86_64
@ 2012-06-25  7:51 Arnout Vandecappelle
  2012-06-25  8:04 ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Arnout Vandecappelle @ 2012-06-25  7:51 UTC (permalink / raw)
  To: buildroot

  Hoi all,

  I have an x86 project using and internal toolchain and grub as the boot loader.  We recently switched to x86_64 (for 
syscall performance reasons).  Unfortunately, grub fails to even configure: the compiler can't generate executables.  
It's missing -lgcc_s.  I guess this is because the toolchain is built without multilib support and grub uses the -m32 
switch.

  I'm unusually stumped at this point.  Building a toolchain with multilib support seems the easy way out, but that's a 
bit heavy just to be able to compile grub.  A 64-bit build of grub will probably not work because BIOSes don't 
understand 64-bit.  So the best thing I can come up with is to have a separate buildroot config just to build grub.  
Does anyone have better ideas?

  With this in mind, it's probably best to remove the BR2_x86_64 option from the grub config, or at least limit it to 
external toolchains that may work (i.e. Sourcery).  BTW, Thomas & Peter, am I correct in assuming that grub is not 
included in the autobuilds?

  Regards,
  Arnout

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-06-28 13:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-25  7:51 [Buildroot] Compiling grub on x86_64 Arnout Vandecappelle
2012-06-25  8:04 ` Thomas Petazzoni
2012-06-28  8:09   ` Arnout Vandecappelle
2012-06-28  9:46     ` Thomas Petazzoni
2012-06-28  9:56       ` Thomas Petazzoni
2012-06-28 12:44         ` Arnout Vandecappelle
2012-06-28 13:06           ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox