From nobody Fri May 17 04:49:48 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+88377+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+88377+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1648959653; cv=none; d=zohomail.com; s=zohoarc; b=B+Lmdj2CGitAihTZZNhcQubNhVMRFvp0rg/j9mWWyfjS/ZSRWe+aWXNcsANbrkLCs63Ur2MIp/r5zaMeDia1yqkJTA28Des1/6cEV4fJOv+n2j7qrg+GaMdENxYi/7yVqJF9t+gyVPk5HtW2Ar6yp8piLfOgPKJDaUjsGrekNMw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1648959653; 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=tQnJh+OplFwwxKmvmk7SuIN/WSbxq0EItTEPRImz85U=; b=cAuIAMZgOF4dzZB8ZrehKB/YYovKKXIytbXN/DfP7EERVp3TiA+I1CNZpaMAtl7AR9zM8628bF1ohfSDEYo2hqwdJUzsRTElUge4q97Et4q55S2MxNnsfKR/lcRn5LvsAippZj7DR4+Nr0pECBCo293OKZ+MSgnrNiarqEgRXNQ= 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+88377+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 1648959653197441.3128077990847; Sat, 2 Apr 2022 21:20:53 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 5kETYY1788612xVsPQJxMz0N; Sat, 02 Apr 2022 21:20:52 -0700 X-Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web11.19713.1648959650999152155 for ; Sat, 02 Apr 2022 21:20:51 -0700 X-IronPort-AV: E=McAfee;i="6200,9189,10305"; a="260052945" X-IronPort-AV: E=Sophos;i="5.90,231,1643702400"; d="scan'208";a="260052945" X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2022 21:20:50 -0700 X-IronPort-AV: E=Sophos;i="5.90,231,1643702400"; d="scan'208";a="568683312" X-Received: from bfeng1-mobl1.ccr.corp.intel.com ([10.249.172.162]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2022 21:20:48 -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] BaseTools: Fix DevicePath tool build failure issue Date: Sun, 3 Apr 2022 12:20:17 +0800 Message-Id: <20220403042017.2177-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: jeqjfhusDYwgTFugQq99iveSx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1648959652; bh=OD3AIucfhLgjRIqgdixGpx/+/bvxepK4D91QfqCUv3I=; h=Cc:Date:From:Reply-To:Subject:To; b=LCalG5AxVH64bT+9CntzX6R2gBF142/u0YgZgT3UtcoBvMgUrChGI8P2bYIbe34TZ3s 2hGtT+SDWf+VZyWEWBoG6Spys86SevqvbEj3rnfzTBy2/Ue8rJ0vx8RJA5R9FQSN2cFRh ogvwOOsNhcHHF4X0ZXFED16j730gQJcM/aQ= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1648959655329100001 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 --- 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..7ef4c620e3 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 --version | grep ^gcc | sed 's/^.* //g' | 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 (#88377): https://edk2.groups.io/g/devel/message/88377 Mute This Topic: https://groups.io/mt/90214266/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-