Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 665066 - sys-boot/grub-2.02-r2: error: relocation 0x4 is not implemented yet
Summary: sys-boot/grub-2.02-r2: error: relocation 0x4 is not implemented yet
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-01 21:06 UTC by Nick Sarnie
Modified: 2018-09-01 22:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Sarnie gentoo-dev 2018-09-01 21:06:14 UTC
Hi all,

When using grub-install with binutils 2.31, the following error will occur:
grub-install: error: relocation 0x4 is not implemented yet.

It looks like this is caused by a change in binutils 2.31, as per below:

https://git.savannah.gnu.org/cgit/grub.git/commit/util?id=842c390469e2c2e10b5aa36700324cd3bde25875

I originally found the patch from the below discussion:
https://patchwork.openembedded.org/patch/152725/

I am using ~amd64.

The above grub patch fixed the issue for me and allowed grub-install to complete successfully. Is it possible to backport the patch so others don't run into this issue?

Thanks!
Sarnex
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2018-09-01 21:56:26 UTC
Confirmed, thanks for the report.
Comment 2 Larry the Git Cow gentoo-dev 2018-09-01 22:07:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a9f20b6a3b8d98097de02d997defcbda65edc50

commit 3a9f20b6a3b8d98097de02d997defcbda65edc50
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2018-09-01 22:06:36 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2018-09-01 22:06:51 +0000

    sys-boot/grub: treat R_X86_64_PLT32 as R_X86_64_PC32
    
    Closes: https://bugs.gentoo.org/665066
    Package-Manager: Portage-2.3.48, Repoman-2.3.10
    RepoMan-Options: --force

 sys-boot/grub/files/2.02-X86_64_PLT32.patch |  75 +++++++
 sys-boot/grub/grub-2.02-r3.ebuild           | 313 ++++++++++++++++++++++++++++
 2 files changed, 388 insertions(+)