[Bug 232961] sysutils/grub2 fails to build with GCC 8 nor clang (and is a six year old version)

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 232961] sysutils/grub2 fails to build with GCC 8 nor clang (and is a six year old version)

bugzilla-noreply
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: [hidden email]
          Reporter: [hidden email]
            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.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 232961] sysutils/grub2 fails to build with GCC 8 nor clang (and is a six year old version)

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232961

--- Comment #1 from [hidden email] ---
A commit references this bug:

Author: gerald
Date: Sun Nov  4 14:00:52 UTC 2018
New revision: 484054
URL: https://svnweb.freebsd.org/changeset/ports/484054

Log:
  Lock down to use GCC 7 since it does not build with GCC 8 nor clang.

  PR:           231590, 232961

Changes:
  head/sysutils/grub2/Makefile

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 232961] sysutils/grub2 fails to build with GCC 8 nor clang (and is a six year old version)

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232961

--- Comment #2 from [hidden email] ---
A commit references this bug:

Author: gerald
Date: Sun Nov  4 20:47:14 UTC 2018
New revision: 484145
URL: https://svnweb.freebsd.org/changeset/ports/484145

Log:
  Sort various parts of this Makefile properly by pulling in ONLY_FOR_ARCHS
  earlier (and sorting its contents) as well as moving USES earlier and some
  unrelated variables later. [1]

  Also remove an obsolete conflict with Grub 0.x.

  Finally, though, mark this port for deprecation given that it's been
  without a maintainer for five-and-a-half years, not updated to Grub 2.02
  which was released one-and-a-half years ago, and fails to build with
  modern compilers such as clang and GCC 8. [2]

  PR:           232961 [2]
  Reported by:  portlint [1]

Changes:
  head/sysutils/grub2/Makefile

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 232961] sysutils/grub2 fails to build with GCC 8 nor clang (and is a six year old version)

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232961

Gerald Pfeifer <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|231590                      |


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.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 232961] sysutils/grub2 fails to build with GCC 8 nor clang (and is a six year old version)

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232961

Tobias Kortkamp <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |234508


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234508
[Bug 234508] sysutils/grub2: Update to recent snapshot, fix build with GCC 8
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 232961] sysutils/grub2 fails to build with GCC 8 nor clang (and is a six year old version)

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232961

Rene Ladan <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Closed
         Resolution|---                         |Overcome By Events
                 CC|                            |[hidden email]

--- Comment #3 from Rene Ladan <[hidden email]> ---
Closing this one, see 234508

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 232961] sysutils/grub2 fails to build with GCC 8 nor clang (and is a six year old version)

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232961

Kubilay Kocak <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|Overcome By Events          |DUPLICATE
         Depends on|234508                      |

--- Comment #4 from Kubilay Kocak <[hidden email]> ---
^Triage: Can't close/resolve with Open dependents.

Instead mark as duplicate of bug 234508 (technically the latter ought to have
been closed a duplicate of this (earlier) bug report)

*** This bug has been marked as a duplicate of bug 234508 ***


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234508
[Bug 234508] sysutils/grub2: Update to recent snapshot, fix build with GCC 8
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 232961] sysutils/grub2 fails to build with GCC 8 nor clang (and is a six year old version)

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232961

Kubilay Kocak <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|[hidden email]      |[hidden email]

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[hidden email]"