From nobody Fri May 17 06:54:22 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+88386+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+88386+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649043998; cv=none; d=zohomail.com; s=zohoarc; b=XrghBp4kjdzy8UXo6d5iN0C+TRawo1Rbmofkc0El35iQI49c2KXhJzCO7pt+3JM03PwKTUAJQYGm1fzYFjh2qs3eXBiDIPLiPkjgWueNGO7R4VvoGxpo/pKcEfCw5dcObUC9BcRRqKdx2mH51oc0HzPUbKP+hT3CQmnIdyCom6s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649043998; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=wOwbmX6c525OU47oJWZRZGMaaXUmD7hwknR6rNaremw=; b=Qh2PiEZuHHUJAyo8FmWbkZDW2CS8Q6optu41A8CBtqhpMMUO0gxbcqyLAB72KJ64iXp6XYrquEjtQ69wxGJ7aYGPPmea8xNQyE11InQBICBY2WSsVa4T7ve+1cns9L0y0+gar6sc9gqrsks26fbQN59gMge+9bhE+pfTiHKaT58= 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+88386+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 1649043998467599.6195155067119; Sun, 3 Apr 2022 20:46:38 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id nKw5YY1788612xPh8GbGB9p2; Sun, 03 Apr 2022 20:46:38 -0700 X-Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web08.31034.1649043997149860174 for ; Sun, 03 Apr 2022 20:46:37 -0700 X-IronPort-AV: E=McAfee;i="6200,9189,10306"; a="258013765" X-IronPort-AV: E=Sophos;i="5.90,233,1643702400"; d="scan'208";a="258013765" X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2022 20:46:36 -0700 X-IronPort-AV: E=Sophos;i="5.90,233,1643702400"; d="scan'208";a="569217008" X-Received: from bfeng1-mobl1.ccr.corp.intel.com ([10.249.169.141]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2022 20:46:34 -0700 From: "Bob Feng" To: devel@edk2.groups.io Cc: "Feng, Bob C" , Rebecca Cran , Yuwei Chen , Gerd Hoffmann , Liming Gao Subject: [edk2-devel] [Patch V2] BaseTools: Fix DevicePath tool build failure issue Date: Mon, 4 Apr 2022 11:46:21 +0800 Message-Id: <20220404034621.167-1-bob.c.feng@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,bob.c.feng@intel.com X-Gm-Message-State: dPAy10UMVxQXI6ozh1XjAeSYx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649043998; bh=OReEBUpATF1MMaQgadieGAhFEDAdDJ8UMdld9N+kFl0=; h=Cc:Date:From:Reply-To:Subject:To; b=iTjWXvB58Aw2Nkf+2W7wqDE/I//VaryjbGQ9EWV8QKcYVM3xRzZYMIDUGmsYdguDoAC pcGQyd8CTRtF5ATEdaMKZoKY/UyCZvk+KOuQ6G0w3sRQ0RUPUYcwu3LyF+QNS85L/J3VG uwd7qODyXSEJnatgSMLvmabNq0ZLSZRIitM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649043999760100001 Content-Type: text/plain; charset="utf-8" From: "Feng, Bob C" Fix the DevicePath tool build failure that was introduced by the fixes: 22130dcd98b4 ("Basetools: turn off gcc12 warning"). Failure cases are: 1. clang 13.1.6 on macOS 2. gcc5.4 Reported-by: Rebecca Cran Reported-by: Yuwei Chen Signed-off-by: Gerd Hoffmann Signed-off-by: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Cc: Rebecca Cran Reviewed-by: Yuwei Chen --- V2 update the method to get gcc version BaseTools/Source/C/DevicePath/GNUmakefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BaseTools/Source/C/DevicePath/GNUmakefile b/BaseTools/Source/C= /DevicePath/GNUmakefile index b05d2bddfa..c217674345 100644 --- a/BaseTools/Source/C/DevicePath/GNUmakefile +++ b/BaseTools/Source/C/DevicePath/GNUmakefile @@ -11,12 +11,17 @@ APPNAME =3D DevicePath =20 OBJECTS =3D DevicePath.o UefiDevicePathLib.o DevicePathFromText.o DeviceP= athUtilities.o =20 include $(MAKEROOT)/Makefiles/app.makefile =20 +GCCVERSION =3D $(shell gcc -dumpversion | awk -F'.' '{print $$1}') +ifneq ("$(GCCVERSION)", "5") +ifneq ($(CXX), llvm) # gcc 12 trips over device path handling BUILD_CFLAGS +=3D -Wno-error=3Dstringop-overflow +endif +endif =20 LIBS =3D -lCommon ifeq ($(CYGWIN), CYGWIN) LIBS +=3D -L/lib/e2fsprogs -luuid endif --=20 2.29.1.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 (#88386): https://edk2.groups.io/g/devel/message/88386 Mute This Topic: https://groups.io/mt/90234472/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-