public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Error building MdeModulePkg.dsc with CLANG38 (clang 11.0.1)
@ 2022-09-06 23:46 Rebecca Cran
  2022-09-07  3:00 ` [edk2-devel] " Andrew Fish
  0 siblings, 1 reply; 2+ messages in thread
From: Rebecca Cran @ 2022-09-06 23:46 UTC (permalink / raw)
  To: devel, Michael D Kinney, Liming Gao, Zhiguang Liu

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [edk2-devel] Error building MdeModulePkg.dsc with CLANG38 (clang 11.0.1)
  2022-09-06 23:46 Error building MdeModulePkg.dsc with CLANG38 (clang 11.0.1) Rebecca Cran
@ 2022-09-07  3:00 ` Andrew Fish
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Fish @ 2022-09-07  3:00 UTC (permalink / raw)
  To: devel, quic_rcran; +Cc: Michael D Kinney, Liming Gao, Zhiguang Liu

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-07  3:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-06 23:46 Error building MdeModulePkg.dsc with CLANG38 (clang 11.0.1) Rebecca Cran
2022-09-07  3:00 ` [edk2-devel] " Andrew Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox