Bug 10316 - Building grub fails on debian stretch
Summary: Building grub fails on debian stretch
Status: RESOLVED WONTFIX
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2017.08
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-14 11:32 UTC by dde
Modified: 2018-01-10 22:09 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dde 2017-09-14 11:32:24 UTC
Debian stretch comes with binutils 2.28 but with this version of binutils, the grub build fails in the configure stage, stating that objcopy can't be used due to incompatible binutils.

There is already a debian patch objcopy-absolute.patch for this issue, contained here:
http://cdn-fastly.deb.debian.org/debian/pool/main/g/grub/grub_0.97-72.debian.tar.xz

If this patch is included, the build should work again.

I found this info here: https://patchwork.ozlabs.org/patch/783135/

Greetings,
Daniel
Comment 1 Thomas Petazzoni 2017-09-15 00:10:03 UTC
We now grub is broken, and Yann E. Morin has sent some patches to remove grub from Buildroot (of course we would keep grub2). What is your use case for using grub instead of grub2 ?
Comment 2 dde 2017-09-15 05:45:17 UTC
I never played with grub2.
We build a buildroot ova image with qemu from a binary image where I use an automated process which builds the partition table along with stage1/1.5 of grub.

In the end, if you're going to remove grub, I can still either use already built grub files and copy them manually or I need to figure out how to move to grub2.

Greetings,
Daniel
Comment 3 Thomas Petazzoni 2018-01-10 22:09:09 UTC
We removed grub legacy from Buildroot, so this problem no longer exists.