Rohde-Schwarz / TrustedGRUB2

DEPRECATED TPM enabled GRUB2 Bootloader
GNU General Public License v3.0
193 stars 77 forks source link

Fixed alignment errors with gcc 8 #76

Closed Marcel-Lambacher closed 3 years ago

Marcel-Lambacher commented 6 years ago

Description

If I try to compile TrustedGRUB2 using make and gcc, I'll run into build errors.

Current Behaviour

If I execute make, I'll get the following build error:

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;
 ^

Expected Behaviour

I'm able to compile TrustedGRUB2 using make without any problems.

System Informations

# gcc -v

Using built-in specs.
COLLECT_GCC=gcc
Thread model: posix
gcc version 8.1.1 20180712 (Red Hat 8.1.1-5) (GCC)
Cypih commented 4 years ago

I agree - this commit fixed building errors with gcc8 for me.

securitykernel commented 3 years ago

Thanks for your contribution! Unfortunately, we decided to deprecate and no longer maintain this project. I will be closing this issue.