[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
./include/grub/gpt_partition.h:79:1: error: alignment 1 of ‘struct grub_
From: |
Paul Menzel |
Subject: |
./include/grub/gpt_partition.h:79:1: error: alignment 1 of ‘struct grub_gpt_partentry’ is less than 8 [-Werror=packed-not-aligned] |
Date: |
Wed, 21 Mar 2018 08:31:48 +0100 |
Dear GRUB folks,
Building GRUB’s master branch with GCC 8 shows the error below.
```
$ gcc-8 --version | head -1
gcc-8 (Debian 8-20180320-1) 8.0.1 20180320 (experimental) [trunk revision
258670]
$ git log --oneline -1
e2faabacf ieee1275: split up grub_machine_get_bootlocation
$ ./autogen.sh
$ ./configure --with-platform=coreboot --enable-boot-time CC=gcc-8
$ make
[…]
gcc-8 -DHAVE_CONFIG_H -I. -Wall -W -DGRUB_UTIL=1 -D_FILE_OFFSET_BITS=64
-I./include -DGRUB_FILE=\"grub-core/disk/ldm.c\" -I. -I. -I. -I. -I./include
-I./include -I./grub-core/lib/libgcrypt-grub/src/ -I./grub-core/gnulib
-I./grub-core/gnulib -D_FILE_OFFSET_BITS=64 -Wall -W -Wshadow -Wpointer-arith
-Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations
-Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args
-Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration
-Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar
-Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch
-Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label
-Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings
-Wnested-externs -Wstrict-prototypes -Wcast-align -Wextra -Wattributes
-Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch
-Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast
-Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign
-Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2
-Werror -Wno-undef -Wno-sign-compare -Wno-unused -Wno-unused-parameter
-Wno-redundant-decls -Wno-unreachable-code -Wno-conversion -MT
grub-core/disk/libgrubkern_a-ldm.o -MD -MP -MF
grub-core/disk/.deps-util/libgrubkern_a-ldm.Tpo -c -o
grub-core/disk/libgrubkern_a-ldm.o `test -f 'grub-core/disk/ldm.c' || echo
'./'`grub-core/disk/ldm.c
In file included from grub-core/disk/ldm.c:26:
./include/grub/gpt_partition.h:79:1: error: alignment 1 of ‘struct
grub_gpt_partentry’ is less than 8 [-Werror=packed-not-aligned]
} GRUB_PACKED;
^
```
Thanks,
Paul
signature.asc
Description: This is a digitally signed message part
- ./include/grub/gpt_partition.h:79:1: error: alignment 1 of ‘struct grub_gpt_partentry’ is less than 8 [-Werror=packed-not-aligned],
Paul Menzel <=