[Bug 232961] sysutils/grub2 fails to build with GCC 8 nor clang (and is a six year old version)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Nov 4 12:39:26 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232961
Bug ID: 232961
Summary: sysutils/grub2 fails to build with GCC 8 nor clang
(and is a six year old version)
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: gerald at FreeBSD.org
Blocks: 231590
This ports fails to build with modern compilers such as GCC 8 or the
FreeBSD system compiler (clang).
Cf.
http://package22.nyi.freebsd.org/data/112amd64-default-PR231590/2018-10-29_06h48m05s/logs/errors/grub2-2.00_12.log
==== snip ====
:
else \
gcc8 -DHAVE_CONFIG_H -I../grub-core/efiemu/runtime
-DGRUB_FILE=\"efiemu/runtime/efiemu.c\" -I. -I. -I.. -I.. -I../include
-I../include -DELF32 -m32 -Wall -Werror -nostdlib -O2 -c -o efiemu32.o
efiemu/runtime/efiemu.c || exit 1; \
if test ! -z ""; then efiemu32.o || (rm -f efiemu32.o; exit 1); fi; \
fi
In file included from efiemu/runtime/efiemu.c:32:
../include/grub/efi/api.h:472:1: error: alignment 1 of 'struct
grub_efi_vendor_device_path' is less than 8 [-Werror=packed-not-aligned]
} __attribute__ ((packed));
^
../include/grub/efi/api.h:470:19: error: 'vendor_guid' offset 4 in 'struct
grub_efi_vendor_device_path' isn't aligned to 8 [-Werror=packed-not-aligned]
grub_efi_guid_t vendor_guid;
^~~~~~~~~~~
../include/grub/efi/api.h:666:1: error: alignment 1 of 'struct
grub_efi_vendor_messaging_device_path' is less than 8
[-Werror=packed-not-aligned]
} __attribute__ ((packed));
^
==== snap ====
This would break if we proceed with the update of the default version of
GCC in the Ports Collection from GCC 7 to GCC 8.
Also, this GRUB 2.00 was released in 2012, and a newer version GRUB 2.02
more than 18 months ago.
Referenced Bugs:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231590
[Bug 231590] [exp-run] Update GCC_DEFAULT from 7 to 8
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list