Bug 5024

Summary: grub fails to build for x86_64 target architecture
Product: buildroot Reporter: Zoltan Kelemen <zkdigisec>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: artur.votteler, buildroot
Priority: P5    
Version: 2012.02   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: grub autoconf log file

Description Zoltan Kelemen 2012-04-04 09:15:07 UTC
Created attachment 4232 [details]
grub autoconf log file

When buildroot is configured for x86_64 as the target architecture, grub configuration fails with the following error message:

checking for x86_64-linux-gcc... (cached) /home/user/Downloads/buildroot-2012.02/output/host/usr/bin/x86_64-unknown-linux-uclibc-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** [/home/user/Downloads/buildroot-2012.02/output/build/grub-0.97/.stamp_configured] Error 77

The problem seems to be that the 32-bit libraries are not available (or used) in the 64-bit cross-compiler toolchain.
Comment 1 Thomas Petazzoni 2013-11-14 00:22:14 UTC
I've posted a series of patches at http://lists.busybox.net/pipermail/buildroot/2013-November/082351.html that fix this problem.
Comment 2 Thomas Petazzoni 2013-12-04 20:40:44 UTC
The patch series has been committed now.