public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* MdeModulePkg fails to build with latest clang 14
@ 2022-02-21 16:28 Ross Burton
  2022-02-22  1:55 ` 回复: [edk2-devel] " gaoliming
  0 siblings, 1 reply; 3+ messages in thread
From: Ross Burton @ 2022-02-21 16:28 UTC (permalink / raw)
  To: devel

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:47: 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:47: 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* 回复: [edk2-devel] MdeModulePkg fails to build with latest clang 14
  2022-02-21 16:28 MdeModulePkg fails to build with latest clang 14 Ross Burton
@ 2022-02-22  1:55 ` gaoliming
  2022-02-22 10:15   ` Ross Burton
  0 siblings, 1 reply; 3+ messages in thread
From: gaoliming @ 2022-02-22  1:55 UTC (permalink / raw)
  To: devel, ross

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [edk2-devel] MdeModulePkg fails to build with latest clang 14
  2022-02-22  1:55 ` 回复: [edk2-devel] " gaoliming
@ 2022-02-22 10:15   ` Ross Burton
  0 siblings, 0 replies; 3+ messages in thread
From: Ross Burton @ 2022-02-22 10:15 UTC (permalink / raw)
  To: gaoliming; +Cc: devel

On Tue, 22 Feb 2022 at 01:55, gaoliming <gaoliming@byosoft.com.cn> wrote:
>   Do you use which tool chain? CLANG38 or CLANGPDB? I think the solution should disable this warning in tool chain configuration.

We use CLANG38.

Cheers,
Ross

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-22 10:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-21 16:28 MdeModulePkg fails to build with latest clang 14 Ross Burton
2022-02-22  1:55 ` 回复: [edk2-devel] " gaoliming
2022-02-22 10:15   ` Ross Burton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox