From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web10.7737.1645494959283835842 for ; Mon, 21 Feb 2022 17:56:00 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Tue, 22 Feb 2022 09:55:30 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , References: In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gTWRlTW9kdWxlUGtnIGZhaWxzIHRvIGJ1aWxkIHdpdGggbGF0ZXN0IGNsYW5nIDE0?= Date: Tue, 22 Feb 2022 09:55:31 +0800 Message-ID: <003a01d8278f$4653c010$d2fb4030$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJJGLinMxH5J2VDPknuKGXtTzFY6qu87LKQ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Ross: Do you use which tool chain? CLANG38 or CLANGPDB? I think the solution sh= ould disable this warning in tool chain configuration.=20 Thanks Liming > -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- > =E5=8F=91=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io = =E4=BB=A3=E8=A1=A8 Ross Burton > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2022=E5=B9=B42=E6=9C=8822=E6=97=A5 = 0:28 > =E6=94=B6=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io > =E4=B8=BB=E9=A2=98: [edk2-devel] MdeModulePkg fails to build with latest = clang 14 >=20 > When building edk2 202111 with clang 14 I get the following errors: >=20 > 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; > ^ >=20 > Has this been fixed in master? >=20 > Ross >=20 >=20 >=20 >=20