From: "Andrew Fish" <afish@apple.com>
To: devel@edk2.groups.io, quic_rcran@quicinc.com
Cc: Michael D Kinney <michael.d.kinney@intel.com>,
Liming Gao <gaoliming@byosoft.com.cn>,
Zhiguang Liu <zhiguang.liu@intel.com>
Subject: Re: [edk2-devel] Error building MdeModulePkg.dsc with CLANG38 (clang 11.0.1)
Date: Tue, 06 Sep 2022 20:00:44 -0700 [thread overview]
Message-ID: <D9F64D26-2D8E-479B-BDFB-9D0285FC4D34@apple.com> (raw)
In-Reply-To: <972d7dbd-4bff-e237-29a6-3dd0fa439d5b@quicinc.com>
That is a missing EFIAPI.
> On Sep 6, 2022, at 4:46 PM, Rebecca Cran <quic_rcran@quicinc.com> wrote:
>
> 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
>
>
>
>
>
>
prev parent reply other threads:[~2022-09-07 3:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-06 23:46 Error building MdeModulePkg.dsc with CLANG38 (clang 11.0.1) Rebecca Cran
2022-09-07 3:00 ` Andrew Fish [this message]
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=D9F64D26-2D8E-479B-BDFB-9D0285FC4D34@apple.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