Created attachment 739277 [details] emerge-info.txt Emerging sys-boot/grub-2.06-r1 fails for me with make -l 8 -j 10 CDPATH="${ZSH_VERSION+.}:" && cd /var/tmp/portage/sys-boot/grub-2.06-r1/work/grub-2.06 && /bin/sh /var/tmp/portage/sys-boot/grub-2.06-r1/work/grub-2.06/build-aux/missing aclocal-1.15 -I m4 /var/tmp/portage/sys-boot/grub-2.06-r1/work/grub-2.06/build-aux/missing: line 81: aclocal-1.15: command not found WARNING: 'aclocal-1.15' is missing on your system. You should only need it if you modified 'acinclude.m4' or 'configure.ac' or m4 files included by 'configure.ac'. The 'aclocal' program is part of the GNU Automake package: <http://www.gnu.org/software/automake> It also requires GNU Autoconf, GNU m4 and Perl in order to run: <http://www.gnu.org/software/autoconf> <http://www.gnu.org/software/m4/> <http://www.perl.org/> make: *** [Makefile:3408: /var/tmp/portage/sys-boot/grub-2.06-r1/work/grub-2.06/aclocal.m4] Error 127 * ERROR: sys-boot/grub-2.06-r1::gentoo failed (compile phase): This appears to be within the grub build stage where the xen-pvh variant is build. See also the attached build.log. Emerging automake:1.15 fixes the issue. # emerge -pqv '=sys-boot/grub-2.06-r1::gentoo' [ebuild R ] sys-boot/grub-2.06-r1 USE="device-mapper nls -doc -efiemu -fonts -libzfs -mount -sdl (-test) -themes -truetype" GRUB_PLATFORMS="efi-64 xen xen-pvh -coreboot -efi-32 -emu -ieee1275 -loongson -multiboot -pc -qemu -qemu-mips -uboot -xen-32"
Created attachment 739279 [details] build.log
Looking at grub 2.06 source it appears the ebuild should set "WANT_AUTOMAKE=1.15", as aclocal.m4 and configure contain am__api_version='1.15'.
It looks like you are applying a user patch: 0001-Fix-build-error-in-binutils-2.36.patch I assume this is the patch from opensuse, which has not yet been sent to grub upstream. https://build.opensuse.org/package/view_file/home:michael-chang:grub:2.06/grub2/0001-Fix-build-error-in-binutils-2.36.patch?expand=0 This patch modifies configure.ac which forces an autoreconf. If you want to continue applying this patch, you should set GRUB_AUTORECONF=1 in make.conf or package.env.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bd87a8adfebcc22f55823568418f7cb4365a245 commit 3bd87a8adfebcc22f55823568418f7cb4365a245 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2021-09-14 14:00:46 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2021-09-14 14:01:57 +0000 sys-boot/grub: document global variables Bug: https://bugs.gentoo.org/813037 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-boot/grub/grub-2.06-r1.ebuild | 13 +++++++++++++ sys-boot/grub/grub-9999.ebuild | 13 +++++++++++++ 2 files changed, 26 insertions(+)