[edk2-devel] MdeModulePkg fails to build with latest clang 14

Ross Burton ross at burtonini.com
Mon Feb 21 16:28:01 UTC 2022


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


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#86838): https://edk2.groups.io/g/devel/message/86838
Mute This Topic: https://groups.io/mt/89297449/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list