From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from rn-mailsvcp-ppex-lapp15.apple.com (rn-mailsvcp-ppex-lapp15.apple.com [17.179.253.34]) by mx.groups.io with SMTP id smtpd.web08.3439.1662519656625453312 for ; Tue, 06 Sep 2022 20:00:56 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=N+AyNkLy; spf=pass (domain: apple.com, ip: 17.179.253.34, mailfrom: afish@apple.com) Received: from pps.filterd (rn-mailsvcp-ppex-lapp15.rno.apple.com [127.0.0.1]) by rn-mailsvcp-ppex-lapp15.rno.apple.com (8.16.1.2/8.16.1.2) with SMTP id 28730llo032115; Tue, 6 Sep 2022 20:00:48 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=content-type : content-transfer-encoding : from : mime-version : subject : date : message-id : references : cc : in-reply-to : to; s=20180706; bh=mO33uYs1yxi/bYOjUL0L3wA0BX9EqOnzR4AUXYvs5iY=; b=N+AyNkLy13/LKSTEEZk6wIosmWiNt5XaLTZ5FFOK1KcDkh6SjMgAqCcw96lJJt5VsYhD ygeop7i8rognC7AMRXJ779afuLsUaJGTCwRy16nk+AOhcBIapftMtNtoNETOcRHdOYKv zJBs2OyYBkTwxqVefI53td8Nrqp6ux8CxMsRHtGJRiZKv5TObtOQfShyVgyJatbH4ONe 1g+jzUv33qCMsN1IpiFFcRvj+RBX4YNnyl+3UegAuM9B9Ikym82CsWDbtVhR4Gbmc30E iJYwMrVvPObUroZrP+2fXAfNk1yIVEj/m0Zl/JZAxWHwz0LOV0FHDD4hYwkPK9cw1fKN Eg== Received: from rn-mailsvcp-mta-lapp04.rno.apple.com (rn-mailsvcp-mta-lapp04.rno.apple.com [10.225.203.152]) by rn-mailsvcp-ppex-lapp15.rno.apple.com with ESMTP id 3jc4gbyk9e-6 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 06 Sep 2022 20:00:48 -0700 Received: from rn-mailsvcp-mmp-lapp02.rno.apple.com (rn-mailsvcp-mmp-lapp02.rno.apple.com [17.179.253.15]) by rn-mailsvcp-mta-lapp04.rno.apple.com (Oracle Communications Messaging Server 8.1.0.19.20220711 64bit (built Jul 11 2022)) with ESMTPS id <0RHT00K15KD94X00@rn-mailsvcp-mta-lapp04.rno.apple.com>; Tue, 06 Sep 2022 20:00:45 -0700 (PDT) Received: from process_milters-daemon.rn-mailsvcp-mmp-lapp02.rno.apple.com by rn-mailsvcp-mmp-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.19.20220711 64bit (built Jul 11 2022)) id <0RHT00Z00KC5NS00@rn-mailsvcp-mmp-lapp02.rno.apple.com>; Tue, 06 Sep 2022 20:00:45 -0700 (PDT) X-Va-A: X-Va-T-CD: 934eb4426ee8da9c69d7781819503c1d X-Va-E-CD: 6b07cf40c93c356aa7078c4fb0949479 X-Va-R-CD: 5c5ac0942840ea116347c28228433117 X-Va-CD: 0 X-Va-ID: e7a53b8b-6630-48b8-8fce-3ca047dba028 X-V-A: X-V-T-CD: 934eb4426ee8da9c69d7781819503c1d X-V-E-CD: 6b07cf40c93c356aa7078c4fb0949479 X-V-R-CD: 5c5ac0942840ea116347c28228433117 X-V-CD: 0 X-V-ID: 2595fc12-40f1-4761-9bb8-c26cf8075304 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.528,18.0.895 definitions=2022-09-07_01:2022-09-06,2022-09-07 signatures=0 Received: from smtpclient.apple (unknown [17.234.96.6]) by rn-mailsvcp-mmp-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.19.20220711 64bit (built Jul 11 2022)) with ESMTPSA id <0RHT00LAXKD8GZ00@rn-mailsvcp-mmp-lapp02.rno.apple.com>; Tue, 06 Sep 2022 20:00:45 -0700 (PDT) From: "Andrew Fish" MIME-version: 1.0 (1.0) Subject: Re: [edk2-devel] Error building MdeModulePkg.dsc with CLANG38 (clang 11.0.1) Date: Tue, 06 Sep 2022 20:00:44 -0700 Message-id: References: <972d7dbd-4bff-e237-29a6-3dd0fa439d5b@quicinc.com> Cc: Michael D Kinney , Liming Gao , Zhiguang Liu In-reply-to: <972d7dbd-4bff-e237-29a6-3dd0fa439d5b@quicinc.com> To: devel@edk2.groups.io, quic_rcran@quicinc.com X-Mailer: iPhone Mail (19G82) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.528,18.0.895 definitions=2022-09-07_01:2022-09-06,2022-09-07 signatures=0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: quoted-printable That is a missing EFIAPI. > On Sep 6, 2022, at 4:46 PM, Rebecca Cran wrote: >=20 > =EF=BB=BFI noticed that MdeModulePkg/MdeModulePkg.dsc doesn't build with = clang 11: I get an error in CapsuleApp: >=20 >=20 > build -p MdeModulePkg/MdeModulePkg.dsc -a X64 -t CLANG38 -b DEBUG >=20 > ... >=20 > MdeModulePkg/Application/CapsuleApp/CapsuleDump.c:797:5: error: cast betw= een incompatible calling conventions 'cdecl' and 'ms_abi'; calls through th= is pointer may abort at runtime [-Werror,-Wcast-calling-convention] >=20 > (SORT_COMPARE)CompareFileNameInAlphabet >=20 > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >=20 > MdeModulePkg/Application/CapsuleApp/CapsuleDump.c:635:1: note: consider d= efining 'CompareFileNameInAlphabet' with the 'ms_abi' calling convention >=20 > CompareFileNameInAlphabet ( >=20 > ^ >=20 > EFIAPI >=20 > 1 error generated. >=20 > make: *** [GNUmakefile:361: Build/MdeModule/DEBUG_CLANG38/X64/MdeModulePk= g/Application/CapsuleApp/CapsuleApp/OUTPUT/CapsuleDump.obj] Error 1 >=20 > --=20 >=20 > Rebecca Cran >=20 >=20 >=20 >=20 >=20 >=20