From nobody Tue May 7 13:37:37 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+80030+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+80030+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1630446585; cv=none; d=zohomail.com; s=zohoarc; b=BondrceoNHnr9RtbOwXUFa8wZvDsGcrXapG/hTjJtfi3DBC0wglgD5y1ddzsZeHe9thXrRwPDafWfOUT2Em/y3oMilQ1f+Iqa9hozoc8T/tDmErVFqGxTTpc0I7ffq4hjKv9fzSw1oRs6efpqYS++LWQ/RX0ZLTpuKDW+XZljOA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1630446585; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=K+4h9+Dib74jFur+7/eXj2G7mn5y1gU3he6eNBiR7HY=; b=TwXX5evcO12Ssdh4ocnmcm+99Athvq3c4y2WBy3SNWH70rDIV/C0SCEK/pjM/TRZIEGzh9heKOScPzV8NbpHuZ3T8GcpWgG7WYhIJpgq33euyP1dPppxnPsSAbw6LZNW5M/g2WKWA+Z/XQukS3n90eOD8RpucaT2qEx2JXpNnPI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+80030+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1630446585465114.36387745379591; Tue, 31 Aug 2021 14:49:45 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 4Nt1YY1788612xlZKWdd9IAR; Tue, 31 Aug 2021 14:49:45 -0700 X-Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.153.1630446583496633509 for ; Tue, 31 Aug 2021 14:49:44 -0700 X-IronPort-AV: E=McAfee;i="6200,9189,10093"; a="304148908" X-IronPort-AV: E=Sophos;i="5.84,367,1620716400"; d="scan'208";a="304148908" X-Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2021 14:49:43 -0700 X-IronPort-AV: E=Sophos;i="5.84,367,1620716400"; d="scan'208";a="541198545" X-Received: from mdkinney-mobl2.amr.corp.intel.com ([10.251.12.118]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2021 14:49:42 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Rebecca Cran , Sivaraman Subject: [edk2-devel] [edk2-libc Patch 1/2] AppPkg/Applications/Enquire: Resolve CLANGPDB build issues Date: Tue, 31 Aug 2021 14:49:30 -0700 Message-Id: <20210831214931.1562-2-michael.d.kinney@intel.com> In-Reply-To: <20210831214931.1562-1-michael.d.kinney@intel.com> References: <20210831214931.1562-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,michael.d.kinney@intel.com X-Gm-Message-State: IIyvb7gmiogdU7635oht3DiMx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1630446585; bh=nq8amTe+IlMWbNVM0KwGwmaxRc3yZk0PyE5biEyTPBA=; h=Cc:Date:From:Reply-To:Subject:To; b=SS4KgklINQVLosyYsxTPHoplGsE9KKeuce40YxU2m6lJc0oC8nYgs+vAUkGYGO0EURL kMxjrx7r5vXqAb1AdX2CVJb0TXPpMitpvzcbWfyfX2cQhhxepPIpMJ3EcLXc0jNu2tGv2 nh0T1KKrFgiTkIP7PuPBwlo3mh3LLaFVYi8= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1630446587399100006 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1618 Disable warnings for unused variables This application has a #include statement to include itself based on the built-in macro __FILE__. However, this macro is the full path to the file and the format of this file path generates errors from CLANGPDB. CLANGPDB provides a differnt build-in macro called __FILE_NAME__ that is a relative path instead of a full path and using this instead of __FILE__ resolves the issue. Define __FILE__ to be __FILE_NAME__ and disable the warning for redefining a build0in macro. Cc: Rebecca Cran Cc: Sivaraman Signed-off-by: Michael D Kinney Reviewed-by: Rebecca Cran --- AppPkg/Applications/Enquire/Enquire.inf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/AppPkg/Applications/Enquire/Enquire.inf b/AppPkg/Applications/= Enquire/Enquire.inf index 090eec1..7322611 100644 --- a/AppPkg/Applications/Enquire/Enquire.inf +++ b/AppPkg/Applications/Enquire/Enquire.inf @@ -48,6 +48,7 @@ LibWchar =20 [BuildOptions] - INTEL:*_*_*_CC_FLAGS =3D /Qdiag-disable:181,186 - MSFT:*_*_*_CC_FLAGS =3D /Od - GCC:*_*_*_CC_FLAGS =3D -O0 -Wno-unused-variable + INTEL:*_*_*_CC_FLAGS =3D /Qdiag-disable:181,186 + MSFT:*_*_*_CC_FLAGS =3D /Od + GCC:*_*_*_CC_FLAGS =3D -O0 -Wno-unused-variable + CLANGPDB:*_*_*_CC_FLAGS =3D -Wno-unused-variable -Wno-builtin-macro-rede= fined -D__FILE__=3D__FILE_NAME__ --=20 2.32.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#80030): https://edk2.groups.io/g/devel/message/80030 Mute This Topic: https://groups.io/mt/85287996/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Tue May 7 13:37:37 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+80031+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+80031+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1630446586; cv=none; d=zohomail.com; s=zohoarc; b=F7Fjm/FSNvVDa5Jf28qojiIfhdoPqu/z/+iAwV1H6p4UrkC78IylHTBwes9kZ4SJkfp9dMVq6J4zTz1JsEMdNM6G2vCycgHnFRl5jC+3/BV5y7+d98/AIZqcUycEUub2C4va2OEuwbgrv/VQwbRPZ+W5P+3qeAFrYshY6BZ3Ais= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1630446586; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=ENNPbgORkwJQFLIli5ckuzBkSJIK+7nBKChic3izFQE=; b=SGz/EWi7gCRpprUCnkCEUE+rLW2E/ToDT+vKHQ/VWXh5Q4ff73NBVT1wJ5wSd8RgTux5SlDGg0e1ydgUJxMqxnkufAAoQpGFYHwegbgw4Yn2/4xyIutw8JfRNNFKHERzEqirTEUIqrSCwgQdZmt1zWiXgmeuMnMqeD5iJ56t/ug= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+80031+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1630446586061654.0540661961725; Tue, 31 Aug 2021 14:49:46 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id gTuQYY1788612xyVUaybNFAD; Tue, 31 Aug 2021 14:49:45 -0700 X-Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.153.1630446583496633509 for ; Tue, 31 Aug 2021 14:49:44 -0700 X-IronPort-AV: E=McAfee;i="6200,9189,10093"; a="304148910" X-IronPort-AV: E=Sophos;i="5.84,367,1620716400"; d="scan'208";a="304148910" X-Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2021 14:49:43 -0700 X-IronPort-AV: E=Sophos;i="5.84,367,1620716400"; d="scan'208";a="541198556" X-Received: from mdkinney-mobl2.amr.corp.intel.com ([10.251.12.118]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2021 14:49:43 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Rebecca Cran , Sivaraman Subject: [edk2-devel] [edk2-libc Patch 2/2] StdLib: Resolve CLANGPDB build issues Date: Tue, 31 Aug 2021 14:49:31 -0700 Message-Id: <20210831214931.1562-3-michael.d.kinney@intel.com> In-Reply-To: <20210831214931.1562-1-michael.d.kinney@intel.com> References: <20210831214931.1562-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,michael.d.kinney@intel.com X-Gm-Message-State: UY3hiFBK1zUKX8ai29eLwmzhx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1630446585; bh=fhPYYG81uBFp03dzC8JJFTpvyO0Kz6WNX9LgArqMLFI=; h=Cc:Date:From:Reply-To:Subject:To; b=oU6dTJIwIXHDZnZPFUs7QqtsvO0oB1M9lb0siiNRTiqnjB/4XtSSInVcxXEwiM8NfSC VxXG6WhzFhKySySomShf5VyHxy9LqVrJy9kd5VZ/HrkxOKdSJEmIQVI3Y01bHIKCur0lw QbVBYB2orWpOKSoxs03SLNc+q/QBJiX6mYE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1630446587505100010 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1618 Disable warnings for unused command line arguments. This is being triggered by -nostdlibinc flag enabled by tools_def.txt. Define __warn_references() to nothing for all toolchains. CLANGPDB by default is GCC like and was pulling in .stabs directives that are not supported. Cc: Rebecca Cran Cc: Sivaraman Signed-off-by: Michael D Kinney Reviewed-by: Rebecca Cran --- StdLib/Include/sys/EfiCdefs.h | 7 +------ StdLib/StdLib.inc | 3 ++- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/StdLib/Include/sys/EfiCdefs.h b/StdLib/Include/sys/EfiCdefs.h index ed537c0..8b12a2e 100644 --- a/StdLib/Include/sys/EfiCdefs.h +++ b/StdLib/Include/sys/EfiCdefs.h @@ -86,12 +86,7 @@ #endif =20 #include -//#include -#ifdef __PE32__ -#include -#else -#include -#endif +#define __warn_references(sym,msg) =20 /* NULL is defined by the automatic inclusion of Base.h by the build tools= . */ =20 diff --git a/StdLib/StdLib.inc b/StdLib/StdLib.inc index 814bdbc..9ca8ead 100644 --- a/StdLib/StdLib.inc +++ b/StdLib/StdLib.inc @@ -122,7 +122,7 @@ GCC:*_*_IA32_CC_FLAGS =3D -O0 -DUEFI_C_SOURCE RVCT:*_*_*_CC_FLAGS =3D --library_interface=3Dnone -DUEFI_C_SOURCE= -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm XCODE:*_*_*_CC_FLAGS =3D -O0 -DUEFI_C_SOURCE -Wno-unused-const-vari= able -Wno-string-compare -Wno-sometimes-uninitialized - + CLANGPDB:*_*_*_CC_FLAGS =3D -Wno-unused-command-line-argument !else # These Build Options are used when building the Standard Libraries to b= e run # on real hardware. @@ -131,6 +131,7 @@ GCC:*_*_*_CC_FLAGS =3D -nostdinc -nostdlib -DUEFI_C_SOURCE RVCT:*_*_*_CC_FLAGS =3D --library_interface=3Dnone -DUEFI_C_SOURCE= -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm XCODE:*_*_*_CC_FLAGS =3D -nostdinc -nostdlib -DUEFI_C_SOURCE -Wno-u= nused-const-variable -Wno-string-compare -Wno-sometimes-uninitialized + CLANGPDB:*_*_*_CC_FLAGS =3D -Wno-unused-command-line-argument !endif =20 # Temporarily restrict compiler warnings to those produced by VS2012. --=20 2.32.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#80031): https://edk2.groups.io/g/devel/message/80031 Mute This Topic: https://groups.io/mt/85287997/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-