From owner-freebsd-ports-bugs@freebsd.org Sun Nov 4 12:39:25 2018 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC8461100002 for ; Sun, 4 Nov 2018 12:39:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 28E2C6BADD for ; Sun, 4 Nov 2018 12:39:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id E1E981100001; Sun, 4 Nov 2018 12:39:24 +0000 (UTC) Delivered-To: ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C00CE1100000 for ; Sun, 4 Nov 2018 12:39:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2EED56BAD5 for ; Sun, 4 Nov 2018 12:39:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 5560D12ACB for ; Sun, 4 Nov 2018 12:39:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id wA4CdN51019785 for ; Sun, 4 Nov 2018 12:39:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id wA4CdNqP019777 for ports-bugs@FreeBSD.org; Sun, 4 Nov 2018 12:39:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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) Date: Sun, 04 Nov 2018 12:39:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: gerald@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter blocked Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: 28E2C6BADD X-Spamd-Result: default: False [-3.09 / 200.00]; ARC_NA(0.00)[]; FORGED_RECIPIENTS_FORWARDING(0.00)[]; FORWARDED(0.00)[ports-bugs@mailman.ysv.freebsd.org]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; RCPT_COUNT_ONE(0.00)[1]; XAW_SERVICE_ACCT(1.00)[]; DMARC_NA(0.00)[freebsd.org]; RCVD_IN_DNSWL_MED(-0.20)[5.0.0.0.0.5.0.0.0.0.0.0.0.0.0.0.a.6.0.2.4.5.2.2.0.0.9.1.1.0.0.2.list.dnswl.org : 127.0.9.2]; MX_GOOD(-0.01)[cached: mx66.freebsd.org]; FROM_NO_DN(0.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.976,0]; SPF_FAIL_FORWARDING(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; IP_SCORE(-2.90)[ip: (-9.23), ipnet: 2001:1900:2254::/48(-3.04), asn: 10310(-2.17), country: US(-0.06)]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US]; FORGED_RECIPIENTS(0.00)[ports-bugs@FreeBSD.org,freebsd-ports-bugs@freebsd.org]; RCVD_COUNT_SEVEN(0.00)[7]; TO_DOM_EQ_FROM_DOM(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Nov 2018 12:39:26 -0000 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.=