Opened 96 minutes ago

Last modified 75 minutes ago

#5857 new defect

grub-2.14: "grub-install --target=i396-pc /dev/sda" fails

Reported by: pierre Owned by: lfs-book
Priority: normal Milestone: 13.0
Component: Book Version: git
Severity: normal Keywords:
Cc:

Description

The error I see is `/usr/lib/grub/i386-pc/kernel.img' is miscompiled: its start address is 0x9074 instead of 0x9000: ld.gold bug?

According to arch, it is due to this commit: https://cgit.git.savannah.gnu.org/cgit/grub.git/commit/?id=1a5417f39a0ccefcdd5440f2a67f84d2d2e26960

They revert this commit, but then they have to regenerate configure, which in turn requires the gnulib package.

I've found that adding ax_cv_check_ldflags___Wl___image_base_0x400000=no to the configure command cures the error (it disables the use of --image-base).

Before fixing the book, I'd like to know whether I am the only one to see this. Needs a computer with legacy BIOS (or a VM).

Change History (2)

comment:1 by Xi Ruoyao, 76 minutes ago

I don't have a latest LFS VM but the kernel.img produced during my manual build (on my EFI-based laptop) is also at 0x9074. I guess it won't work if I use grub-install for i386-pc (BIOS).

comment:2 by Xi Ruoyao, 75 minutes ago

Apparently other guys have also seen it so the upstream is reviewing a fix: https://lists.gnu.org/archive/html/grub-devel/2026-01/msg00055.html.

Note: See TracTickets for help on using tickets.