public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Rebecca Cran" <quic_rcran@quicinc.com>
To: <devel@edk2.groups.io>,
	Michael D Kinney <michael.d.kinney@intel.com>,
	Liming Gao <gaoliming@byosoft.com.cn>,
	Zhiguang Liu <zhiguang.liu@intel.com>
Subject: Error building MdeModulePkg.dsc with CLANG38 (clang 11.0.1)
Date: Tue, 6 Sep 2022 17:46:41 -0600	[thread overview]
Message-ID: <972d7dbd-4bff-e237-29a6-3dd0fa439d5b@quicinc.com> (raw)

I noticed that MdeModulePkg/MdeModulePkg.dsc doesn't build with clang 11: I get an error in CapsuleApp:


build -p MdeModulePkg/MdeModulePkg.dsc -a X64 -t CLANG38 -b DEBUG

...

MdeModulePkg/Application/CapsuleApp/CapsuleDump.c:797:5: error: cast 
between incompatible calling conventions 'cdecl' and 'ms_abi'; calls 
through this pointer may abort at runtime 
[-Werror,-Wcast-calling-convention]

     (SORT_COMPARE)CompareFileNameInAlphabet

     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

MdeModulePkg/Application/CapsuleApp/CapsuleDump.c:635:1: note: consider 
defining 'CompareFileNameInAlphabet' with the 'ms_abi' calling convention

CompareFileNameInAlphabet (

^

EFIAPI

1 error generated.

make: *** [GNUmakefile:361: 
Build/MdeModule/DEBUG_CLANG38/X64/MdeModulePkg/Application/CapsuleApp/CapsuleApp/OUTPUT/CapsuleDump.obj] 
Error 1

-- 

Rebecca Cran


             reply	other threads:[~2022-09-06 23:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-06 23:46 Rebecca Cran [this message]
2022-09-07  3:00 ` [edk2-devel] Error building MdeModulePkg.dsc with CLANG38 (clang 11.0.1) Andrew Fish

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=972d7dbd-4bff-e237-29a6-3dd0fa439d5b@quicinc.com \
    --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