error in bootstrap when building amd64

Matthias Lange mlange at sec.t-labs.tu-berlin.de
Tue Oct 1 15:41:07 CEST 2013


On Tue, Oct 01, 2013 at 02:50:42PM +0200, Joel Nider wrote:
> Hi,
> 
> >> ? ==> Linking bootstrap32.elf
> >> /usr/bin/ld: skipping incompatible
> >> /usr/lib/gcc/x86_64-linux-gnu/4.6/libgcc.a when searching for -lgcc
> >> /usr/bin/ld: cannot find -lgcc
> >> collect2: ld returned 1 exit status
> >> make[4]: *** [bootstrap32.elf] Error 1
> >> > Any ideas how to fix it?
> >
> >I guess a 32bit version of libgcc might be missing on your system.
> 
> It is not clear to me why I need a 32-bit bootstrap image when I am
> trying to build a 64-bit kernel.  Is it possible for me to
> disable/skip this particular file? Everything else seems to build
> fine.

Because there are not so many MBI compliant 64bit boot managers around. Grub
starts bootstrap in 32bit mode which will then enable long mode before
starting the kernel.

Best,
Matthias.




More information about the l4-hackers mailing list