public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "gaoliming" <gaoliming@byosoft.com.cn>
To: <devel@edk2.groups.io>, <ross@burtonini.com>
Subject: 回复: [edk2-devel] MdeModulePkg fails to build with latest clang 14
Date: Tue, 22 Feb 2022 09:55:31 +0800	[thread overview]
Message-ID: <003a01d8278f$4653c010$d2fb4030$@byosoft.com.cn> (raw)
In-Reply-To: <cZU0.1645460881414234925.6Xte@groups.io>

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




  reply	other threads:[~2022-02-22  1:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-21 16:28 MdeModulePkg fails to build with latest clang 14 Ross Burton
2022-02-22  1:55 ` gaoliming [this message]
2022-02-22 10:15   ` [edk2-devel] " Ross Burton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='003a01d8278f$4653c010$d2fb4030$@byosoft.com.cn' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox