Bug 5024 - grub fails to build for x86_64 target architecture
Summary: grub fails to build for x86_64 target architecture
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2012.02
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-04 09:15 UTC by Zoltan Kelemen
Modified: 2013-12-04 20:40 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments
grub autoconf log file (15.55 KB, application/octet-stream)
2012-04-04 09:15 UTC, Zoltan Kelemen
Details

Note You need to log in before you can comment on or make changes to this bug.
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.