Rohde-Schwarz / TrustedGRUB2

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

Can't compile TrustedGRUB2 with GCC 8 #77

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)

Fix

I already created a pull request to fix this issue: #76

securitykernel commented 3 years ago

Unfortunately, this project is deprecated and no longer maintained. I will be closing this issue.