Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911985 - sys-boot/grub-2.06-r7: fails to build with Clang/lld? (error: disk: unsupported relocation 0x108.)
Summary: sys-boot/grub-2.06-r7: fails to build with Clang/lld? (error: disk: unsupport...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal with 2 votes (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-09 19:13 UTC by Stuart Meya
Modified: 2024-01-05 16:55 UTC (History)
5 users (show)

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


Attachments
emerge --info '=sys-boot/grub-2.06-r7::gentoo' (emerge-info.log,16.15 KB, text/plain)
2023-08-09 19:13 UTC, Stuart Meya
Details
emerge -pqv '=sys-boot/grub-2.06-r7::gentoo' (emerge-pqv.log,389 bytes, text/plain)
2023-08-09 19:14 UTC, Stuart Meya
Details
/var/tmp/portage/sys-boot/grub-2.06-r7/temp/build.log (build.log.xz,49.86 KB, application/x-xz)
2023-08-09 19:16 UTC, Stuart Meya
Details
emerge --info '=sys-boot/grub-2.12-r1::gentoo' (emerge-info.log,17.78 KB, text/x-log)
2024-01-05 16:55 UTC, hugegameartgd
Details
emerge -pqv '=sys-boot/grub-2.12-r1::gentoo' (emerge-pqv.log,279 bytes, text/x-log)
2024-01-05 16:55 UTC, hugegameartgd
Details
/var/tmp/portage/sys-boot/grub-2.12-r1/temp/build.log (build.log.gz,168.30 KB, application/gzip)
2024-01-05 16:55 UTC, hugegameartgd
Details

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