风火轮用户19291 发表于 2021-11-26 23:22:21

uboot 编译失败(unaligned pointer value)

**************************************************************************
disk/part_efi.c: In function ‘gpt_verify_partitions’:
disk/part_efi.c:889:49: error: taking address of packed member of ‘struct _gpt_entry’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
889 |   gpt_convert_efi_name_to_char(efi_str, gpt_e.partition_name,
****************************************************************************
出现以上错误的解决方法:
编译前添加以下环境变量
export KCFLAGS="-Wno-error=address-of-packed-member"

页: [1]
查看完整版本: uboot 编译失败(unaligned pointer value)