make CROSS_COMPILE=aarch64-none-linux-gnu- evb-rk3328_defconfig all
disk/part_efi.c: In function 'gpt_verify_partitions':
disk/part_efi.c:863:49: error: taking address of packed member of 'struct _gpt_entry' may result in an unaligned pointer value [-Werror=address-of-packed-member]
863 | gpt_convert_efi_name_to_char(efi_str, gpt_e[i].partition_name,
| ~~~~~~~~^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
lib/uuid.c:239:2: error: converting a packed ‘struct uuid’ pointer (alignment 1) to a ‘unsigned int’ pointer (alignment 4) may result in an unaligned pointer value [-Werror=address-of-packed-member]
239 | unsigned int *ptr = (unsigned int *)&uuid;
| ^~~~~~~~
In file included from include/part.h:12,
from include/common.h:37,
from lib/uuid.c:7:
include/uuid.h:11:8: note: defined here
11 | struct uuid {
| ^~~~
etc.
They're easy fixes using the pattern of assigning it to a void, then using the void. It builds when I use this pattern to fix all the build breaks. Seems odd I would see this.
make CROSS_COMPILE=aarch64-none-linux-gnu- evb-rk3328_defconfig all
etc.
They're easy fixes using the pattern of assigning it to a void, then using the void. It builds when I use this pattern to fix all the build breaks. Seems odd I would see this.