Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Nov 2018 12:39:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 232961] sysutils/grub2 fails to build with GCC 8 nor clang (and is a six year old version)
Message-ID:  <bug-232961-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232961

            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@FreeBSD.org
          Reporter: gerald@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

=3D=3D=3D=3D snip =3D=3D=3D=3D
:
else \
  gcc8 -DHAVE_CONFIG_H  -I../grub-core/efiemu/runtime
-DGRUB_FILE=3D\"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=3Dpacked-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=3Dpacked-not-align=
ed]
   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=3Dpacked-not-aligned]
 } __attribute__ ((packed));
 ^
=3D=3D=3D=3D snap =3D=3D=3D=3D

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=3D231590
[Bug 231590] [exp-run] Update GCC_DEFAULT from 7 to 8
--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232961-7788>