Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 911985

Summary: sys-boot/grub-2.06-r7: fails to build with Clang/lld? (error: disk: unsupported relocation 0x108.)
Product: Gentoo Linux Reporter: Stuart Meya <stuartmeya>
Component: Current packagesAssignee: Mike Gilbert <floppym>
Status: UNCONFIRMED ---    
Severity: normal CC: base-system, hugegameartgd, skunk, stuartmeya, zerdox.cool4
Priority: Normal    
Version: unspecified   
Hardware: ARM64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info '=sys-boot/grub-2.06-r7::gentoo'
emerge -pqv '=sys-boot/grub-2.06-r7::gentoo'
/var/tmp/portage/sys-boot/grub-2.06-r7/temp/build.log
emerge --info '=sys-boot/grub-2.12-r1::gentoo'
emerge -pqv '=sys-boot/grub-2.12-r1::gentoo'
/var/tmp/portage/sys-boot/grub-2.12-r1/temp/build.log

Description Stuart Meya 2023-08-09 19:13:24 UTC
Hi,

I've been receiving this error for a few days now and tried to find a fix myself, but I'm hitting a wall here. I hope you'll might be abled to help me out here and help others in the future.

Setup:
- LLVM systemd stage3 running in a qemu VM on aarch64/arm64 (Apple Silicon M2 Pro)

Thanks!

Greeting,

Stuart
Comment 1 Stuart Meya 2023-08-09 19:13:46 UTC
Created attachment 867521 [details]
emerge --info '=sys-boot/grub-2.06-r7::gentoo'
Comment 2 Stuart Meya 2023-08-09 19:14:06 UTC
Created attachment 867522 [details]
emerge -pqv '=sys-boot/grub-2.06-r7::gentoo'
Comment 3 Stuart Meya 2023-08-09 19:16:16 UTC
Created attachment 867523 [details]
/var/tmp/portage/sys-boot/grub-2.06-r7/temp/build.log
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-09 19:17:34 UTC
(Saw a report of this the other day on IRC too, didn't get to bottom of it though. Not sure why this is only showing up now.)
Comment 5 hugegameartgd 2024-01-05 16:55:22 UTC
I get a similar error "unsupported relocation 0xa" upgrading grub on amd64 clang/musl with lld/mold

(also "make[3]: Entering directory '/var/tmp/portage/sys-boot/grub-2.12-r1/work/grub-2.12-efi-32/grub-core'" is compiled with gcc 14.0.0 instead of CC=clang)
Comment 6 hugegameartgd 2024-01-05 16:55:28 UTC
Created attachment 881510 [details]
emerge --info '=sys-boot/grub-2.12-r1::gentoo'

emerge --info '=sys-boot/grub-2.12-r1::gentoo'
Comment 7 hugegameartgd 2024-01-05 16:55:35 UTC
Created attachment 881511 [details]
emerge -pqv '=sys-boot/grub-2.12-r1::gentoo'

emerge -pqv '=sys-boot/grub-2.12-r1::gentoo'
Comment 8 hugegameartgd 2024-01-05 16:55:38 UTC
Created attachment 881512 [details]
/var/tmp/portage/sys-boot/grub-2.12-r1/temp/build.log

/var/tmp/portage/sys-boot/grub-2.12-r1/temp/build.log