Ross:
  Do you use which tool chain? CLANG38 or CLANGPDB? I think the solution should 
disable this warning in tool chain configuration. 

Thanks
Liming
> -----邮件原件-----
> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Ross Burton
> 发送时间: 2022年2月22日 0:28
> 收件人: devel@edk2.groups.io
> 主题: [edk2-devel] MdeModulePkg fails to build with latest clang 14
> 
> When building edk2 202111 with clang 14 I get the following errors:
> 
> edk2/MdeModulePkg/Include/Guid/ExtendedFirmwarePerformance.h:78:47:
> error: field Guid within 'FPDT_GUID_EVENT_RECORD' is less aligned than
> 'EFI_GUID' (aka 'GUID') and is usually due to 'FPDT_GUID_EVENT_RECORD'
> being packed, which can lead to unaligned accesses
> [-Werror,-Wunaligned-access]
>   EFI_GUID                                    Guid;
>                                               ^
> edk2/MdeModulePkg/Include/Guid/ExtendedFirmwarePerformance.h:173:4
> 7: error: field Guid within 'FPDT_GUID_QWORD_EVENT_RECORD' is less
> aligned than 'EFI_GUID' (aka 'GUID') and is usually due to
> 'FPDT_GUID_QWORD_EVENT_RECORD' being packed, which can lead to
> unaligned accesses [-Werror,-Wunaligned-access]
>   EFI_GUID                                    Guid;
>                                               ^
> edk2/MdeModulePkg/Include/Guid/ExtendedFirmwarePerformance.h:105:4
> 7: error: field Guid within 'FPDT_DYNAMIC_STRING_EVENT_RECORD' is less
> aligned than 'EFI_GUID' (aka 'GUID') and is usually due to
> 'FPDT_DYNAMIC_STRING_EVENT_RECORD' being packed, which can lead to
> unaligned accesses [-Werror,-Wunaligned-access]
>   EFI_GUID                                    Guid;
>                                               ^
> 
> Has this been fixed in master?
> 
> Ross
> 
> 
> 
> 





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#86839): https://edk2.groups.io/g/devel/message/86839
Mute This Topic: https://groups.io/mt/89308817/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to