From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web12.2911.1609902455294719845 for ; Tue, 05 Jan 2021 19:07:35 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=VCJviCe0; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: bob.c.feng@intel.com) IronPort-SDR: OoaNTwwdIVyZaTzCi+8Wi/nudnbi64IClPZbHoXfEb3JokmVVeSy4jm/A1TjfT7yqxfLzaff1Q l9frzT/VuXtg== X-IronPort-AV: E=McAfee;i="6000,8403,9855"; a="173711238" X-IronPort-AV: E=Sophos;i="5.78,478,1599548400"; d="scan'208";a="173711238" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2021 19:07:34 -0800 IronPort-SDR: EsgNvdxAmgP1zV0bd5sDhsnZG+L4RDuyivmt7LpTwXGMI2m9JDfPlt+HH5dN1SfSOUmpDg0G/N XA4kqvasQd/g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,478,1599548400"; d="scan'208";a="398068278" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by fmsmga002.fm.intel.com with ESMTP; 05 Jan 2021 19:07:34 -0800 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 5 Jan 2021 19:07:33 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 5 Jan 2021 19:07:33 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Tue, 5 Jan 2021 19:07:32 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g6C9kKC0hpMAKN0dCovrFFxA0Irb+yywQz7SS7j/7S3H8ob4LNN+gnN6dAE/2gIXdKJmguxZvuDDuH0sy9FV/Z+FZnZ6CHEZfunwfoDHsZtFB0YgbY0LhK5I3HnrVs1hh3rGDiXmC94BtsW5+W2BIYHeKg3c9aQdpjI+QjLUa6+wxgjuJf2I7uflKl1wsKQ6FjmmoS12ifqGv4jFOTytYupDapzAtTnkV0l9vK00MOyVwk6nqAwTMbCkPvBOYV9Cam1FSqPhDp5XeiPILlLf5AfHkGfkRmdMfe+PqSY0y5Z7SVELlcsn33esPHwA6pfQ0yMcnkxJLeBY6EJDnMTzQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6rFJa3CVF7K8n4145jL5zK6yfXAAq8ca9RMpUSiE/GM=; b=XhdTt21GcIDPqc6rrE4czBxnpTybYiolxlV18LM8mmd7j/rRWtWMfS2KaAbPsQLfDJ2XyGEsAjasVHa2+Dx9H/bKWw/SDOVXMWXXY/2vveclTky2/t/GBq8JaYF7bIYpqPAzzC9epXLFKXW8wpLr8gH5JwopAqsZhWV0edzXGaMd05mU1/n34YQsuaCg3CjaktLVYkxafi2M8tQnIZCgEtvFFfez0WWzXKYhwfow0dpRfIDS20QQHOOVhY+idwi9v77/xbA2DerMh2CKdr/CC+MnZWpccTSHPuU4q+mhHt+dhaPvwpgLNqeIYDiSDt6PvMnq9WHSs6BJkP2wwhe+vA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6rFJa3CVF7K8n4145jL5zK6yfXAAq8ca9RMpUSiE/GM=; b=VCJviCe0C3YOwY2GuohCquqH5IELQaeSmJ2+DKpd/1hfTn5FtJwDJGLOVHB5IqfUHL6Nt7oGZPMn0TwrVLHayoF2nmoJ+drp2AlW5cVnGcYxN9kVoEsT3e/Kj1i9q1veKVko92HCSc4I1rXQbMxChGqFTplSzNhhWKV33kTVPH8= Received: from DM6PR11MB4073.namprd11.prod.outlook.com (2603:10b6:5:19f::22) by DM6PR11MB4155.namprd11.prod.outlook.com (2603:10b6:5:19a::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.21; Wed, 6 Jan 2021 03:07:32 +0000 Received: from DM6PR11MB4073.namprd11.prod.outlook.com ([fe80::5c3c:da40:5046:5413]) by DM6PR11MB4073.namprd11.prod.outlook.com ([fe80::5c3c:da40:5046:5413%7]) with mapi id 15.20.3721.024; Wed, 6 Jan 2021 03:07:31 +0000 From: "Bob Feng" To: "devel@edk2.groups.io" , "Feng, Bob C" , Enze Zhu CC: Liming Gao , "Chen, Christine" Subject: Re: [edk2-devel] [PATCH] BaseTools/CommonLib.h: Build failed due to MAX_LONG_FILE_PATH Thread-Topic: [edk2-devel] [PATCH] BaseTools/CommonLib.h: Build failed due to MAX_LONG_FILE_PATH Thread-Index: AQHW1BsxK5Zu8Z88l0+flH4QGH4vBqn8tC9wgB1VrGA= Date: Wed, 6 Jan 2021 03:07:31 +0000 Message-ID: References: <20201217021952.1937-1-zhuenze@byosoft.com.cn> <1651CB07AB6014B1.25767@groups.io> In-Reply-To: <1651CB07AB6014B1.25767@groups.io> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.46.36] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4db82ac9-825f-4441-a042-08d8b1f03565 x-ms-traffictypediagnostic: DM6PR11MB4155: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:519; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: KTq5GQZPCam4FCBsBeTq7Nb+IoAnk98g5TI4G5nWKvPD+81ilGp6A5wp1ysleaY8kRj9jCnHODLW4AHPdXtPfgaUhmYBbnNWibRlAAWlrcGE3nNuzlrCwyW8rR1SpK4Mz/LiZw7lf8iypmXZKjbQS5mvxhBWuN/YoLWzgXtiVC97D9XitXm0JmrZ8EBtlK8JywmQa4tkiE3jd1KRl3gwaZ2FAapkwV3+iVC7ddS3chXsU5TZMTIibzc2PsVx/DdmARMI0fDtCCv8Xra/szHZk5KoUrE/D1jZIJABDUcOOfudvK5pVjpoXysQ1BB8W3QifG13m2u3A+w9qEC5nll6qW/llLZlHTbjImIv/CjPsTAbLH6vu8q+uNtn1G0HowoWVmsbnvSCR4nhvhypNwHybDe6Ja0rxgSDgW9seoTy1XtIR3cIetC2OP409VC/ogjYWpbTPJnNRm7ec8LIXEtt/Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB4073.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(39860400002)(396003)(136003)(366004)(346002)(33656002)(54906003)(83380400001)(8676002)(316002)(4326008)(53546011)(6506007)(186003)(26005)(76116006)(86362001)(71200400001)(110136005)(7696005)(66946007)(107886003)(9686003)(66476007)(55016002)(966005)(66556008)(66446008)(64756008)(2906002)(8936002)(52536014)(5660300002)(478600001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?ERjz87Cplsf3MKEBHMu0DL1yjiNilBAghUDTRMSkkof63Ch2EdHRTFvHupa3?= =?us-ascii?Q?o6xfCg8agZVIXiWoRDRh6nCRYuIPVGOh15f1P3XNCsshNEjQArWT389fKpa4?= =?us-ascii?Q?1xVEFySS6xXe1OGUQxAxI2SidVrrhHXai+jLo8dTxQinXDbSBr3WjI/CZ28o?= =?us-ascii?Q?dUAXxafHYrt4EsZO7HeAJG8qjs66sTcnyMpuyi9kbECqilJUKKhcC04iUQes?= =?us-ascii?Q?lcEY8KBOgbMljhSTC3ZvRPLXNGfH+fAnaPVgl+aiDEG3BYtdzHSCK4QNTX26?= =?us-ascii?Q?QLDdAdyPaFDIqMp+kgAwvi/+EUCmQvnbg3E1FB2evLFGsh8upXCs7dZYGb+y?= =?us-ascii?Q?zZ+w+MUpx/fEfDhcKhCLFhkqkkZvVajSdPY8sGKFArT4KVV5GyWYih8/DcKG?= =?us-ascii?Q?4VncrFCJ9kXHe9FYwzLdjOx0lak1Vqfncqfy/GqAwwzgtNfxNyNfOd5meQY2?= =?us-ascii?Q?WqCD4AHQM0GfSALLpdCTIJKF8G8fONUWFtdPzhhacnj+HwzNFQvw+l26WM+6?= =?us-ascii?Q?GgadlHzfuh6eh9bDrQTvcf/czCLoyBcaUCiijCSL8gzztwg3ayQoLBP+Anis?= =?us-ascii?Q?8q+ERcT4JvB9U0nbCXYaQdFMpNJfGthcfaSIWO5YmPHQr08LQfuoX5MVoPmX?= =?us-ascii?Q?DUXnK3w8JSXPyWfKjTZoG5LxL6ZiNZsQ6s8fH8xtTIHmP5oS5Ka64yWhO9Nk?= =?us-ascii?Q?vhJ1Ru9ftj59EexhZ6zW000gZieLxJprvOR17lpcwoht/XV2Hvwt1U7ecWg3?= =?us-ascii?Q?CfgBK70KjUuj63+9i1WESt4NbY5MmEOTLcsKirDGfMXJKTZMxtJAvSY7BLki?= =?us-ascii?Q?VE8uX+pkchBio17wFxaa1WhkZq+H1o7NkULYj9alu5VCLulvH5g/lePvk1qT?= =?us-ascii?Q?xNhe7wPElDYL57ymr2nEd7mvwEdZuFjVO+tiyBSpObx6qMOcY9DPFTJT/ak5?= =?us-ascii?Q?j8wRCn3Dajmz45G0l75zbPcucLix1WX7eceitJKI7b4=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4073.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4db82ac9-825f-4441-a042-08d8b1f03565 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jan 2021 03:07:31.8135 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: AgAaglRzoNmjnisRq1xtpA/EhcT0GGfwC3/lMmUaxdnKBQUT5ZXL4oj5iaYiryDEAPAWfyXvm0xRdiE1zagdLw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4155 Return-Path: bob.c.feng@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Created a PR: https://github.com/tianocore/edk2/pull/1299=20 -----Original Message----- From: devel@edk2.groups.io On Behalf Of Bob Feng Sent: Friday, December 18, 2020 7:10 PM To: Enze Zhu ; devel@edk2.groups.io Cc: Liming Gao ; Chen, Christine Subject: Re: [edk2-devel] [PATCH] BaseTools/CommonLib.h: Build failed due = to MAX_LONG_FILE_PATH Reviewed-by: Bob Feng -----Original Message----- From: Enze Zhu =20 Sent: Thursday, December 17, 2020 10:20 AM To: devel@edk2.groups.io Cc: Feng, Bob C ; Liming Gao ; Chen, Christine Subject: [PATCH] BaseTools/CommonLib.h: Build failed due to MAX_LONG_FILE_= PATH REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3032 We had a build fail due to the hard coded MAX_LONG_FILE_PATH value. We should use PATH_MAX if it is available. Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Signed-off-by: Enze Zhu --- BaseTools/Source/C/Common/CommonLib.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BaseTools/Source/C/Common/CommonLib.h b/BaseTools/Source/C/Co= mmon/CommonLib.h index e1cce985f7..0f05d88db2 100644 --- a/BaseTools/Source/C/Common/CommonLib.h +++ b/BaseTools/Source/C/Common/CommonLib.h @@ -12,9 +12,17 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include = #include #include +#ifndef _WIN32 +#include +#endif + #define PRINTED_GUID_BUFFER_SIZE 37 // including null-termination =20 +#ifdef PATH_MAX +#define MAX_LONG_FILE_PATH PATH_MAX +#else #define MAX_LONG_FILE_PATH 500 +#endif =20 #define MAX_UINT64 ((UINT64)0xFFFFFFFFFFFFFFFFULL) #define MAX_UINT32 ((= UINT32)0xFFFFFFFF) -- 2.27.0.windows.1