Created attachment 541678 [details] build log xz-compressed Trying to compile sys-boot/grub-2.02-r2 with gcc-8.2.0 fails with /var/tmp/portage/sys-boot/grub-2.02-r2/work/grub-2.02/include/grub/efiemu/runtime.h:36:1: error: alignment 1 of 'struct efi_variable' is less than 8 [-Werror=packed-not-aligned]
Created attachment 541692 [details] emerge --info (xz-compressed)
Here is a fix add the following sed command to src_prepare() sed -i -e '/} GRUB_PACKED;/s/GRUB_PACKED/__attribute__ ((aligned(8))) GRUB_PACKED/' \ include/grub/efiemu/runtime.h
The same patch is needed for grub-2.02-r3
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bab479f78d08aaab25917e51f90b85e0ca5f42b4 commit bab479f78d08aaab25917e51f90b85e0ca5f42b4 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2018-09-06 03:38:26 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2018-09-06 03:38:26 +0000 sys-boot/grub: fix build with gcc8 Closes: https://bugs.gentoo.org/662408 Package-Manager: Portage-2.3.49_p2, Repoman-2.3.10_p48 sys-boot/grub/files/2.02-gcc8.patch | 72 +++++++++++++++++++++++++++++++++++++ sys-boot/grub/grub-2.02-r3.ebuild | 1 + 2 files changed, 73 insertions(+)