From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web12.3737.1648704814968775946 for ; Wed, 30 Mar 2022 22:33:35 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([101.224.116.119]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Thu, 31 Mar 2022 13:33:17 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 101.224.116.119 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: "'Chen, Christine'" , , "'Gerd Hoffmann'" , "'Kinney, Michael D'" , "'Sean Brogan'" , "'Shi, Steven'" , "'Feng, Bob C'" Cc: "'Rebecca Cran'" , "'Pawel Polawski'" , "'Oliver Steffen'" References: <20220329083747.182448-1-kraxel@redhat.com> <16E150E28AFDD2A7.22795@groups.io> In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIIHYyIDEvMV0gQmFzZXRvb2xzOiBmaXggZ2NjIHdvcmthcm91bmQ=?= Date: Thu, 31 Mar 2022 13:33:20 +0800 Message-ID: <007901d844c0$d50cdff0$7f269fd0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKBx/L57xxUfSHcvJMm81dHeonAjgLGn2u8Ac4VlPOrYUrksA== Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Christine: Can you try the option -Wno-unknown-warning to see whether it disables th= e warning about an unrecognized command line option? Thanks Liming > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Chen, Christine > =B7=A2=CB=CD=CA=B1=BC=E4: 2022=C4=EA3=D4=C231=C8=D5 10:47 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io; Chen, Christine ; > Gerd Hoffmann ; Kinney, Michael D > ; Sean Brogan ; > Gao, Liming ; Shi, Steven > ; Feng, Bob C > =B3=AD=CB=CD: Rebecca Cran ; Pawel Polawski > ; Oliver Steffen > =D6=F7=CC=E2: RE: [edk2-devel] [PATCH v2 1/1] Basetools: fix gcc workarou= nd >=20 > Since the gcc12 has the incompatible change from GCC5.4, I'd also suggest we > could create a new TOOL CHAIN for gcc12. > The error reports I collected show in gcc5.4 , "-Wno-error=3Dstringop-overflow" > is an unrecognized command line option which is available in gcc12. >=20 > Thanks, > Christine (Yuwei) > > -----Original Message----- > > From: devel@edk2.groups.io On Behalf Of Yuwei > > Chen > > Sent: Thursday, March 31, 2022 8:51 AM > > To: Gerd Hoffmann ; devel@edk2.groups.io > > Cc: Feng, Bob C ; Rebecca Cran > > ; Pawel Polawski ; Oliver > > Steffen ; Gao, Liming > > Subject: Re: [edk2-devel] [PATCH v2 1/1] Basetools: fix gcc workaround > > > > Hi Hoffmann, > > > > I received some reports that some platforms are using gcc5.4. With this > patch, > > these platform builds are still broken. > > Would you like to revert the original commits? > > > > Thanks, > > Christine (Yuwei) > > > > > -----Original Message----- > > > From: Gerd Hoffmann > > > Sent: Tuesday, March 29, 2022 4:38 PM > > > To: devel@edk2.groups.io > > > Cc: Feng, Bob C ; Rebecca Cran > > > ; Pawel Polawski ; Oliver > > > Steffen ; Chen, Christine > > ; > > > Gao, Liming ; Gerd Hoffmann > > > > > > Subject: [PATCH v2 1/1] Basetools: fix gcc workaround > > > > > > Apply the workaround only in case the compiler is gcc. > > > Fixes builds with clang. > > > > > > Fixes: 22130dcd98b4 ("Basetools: turn off gcc12 warning") > > > Reported-by: Rebecca Cran > > > Signed-off-by: Gerd Hoffmann > > > --- > > > BaseTools/Source/C/DevicePath/GNUmakefile | 2 ++ > > > 1 file changed, 2 insertions(+) > > > > > > diff --git a/BaseTools/Source/C/DevicePath/GNUmakefile > > > b/BaseTools/Source/C/DevicePath/GNUmakefile > > > index b05d2bddfa68..6323e7355cc8 100644 > > > --- a/BaseTools/Source/C/DevicePath/GNUmakefile > > > +++ b/BaseTools/Source/C/DevicePath/GNUmakefile > > > @@ -13,8 +13,10 @@ OBJECTS =3D DevicePath.o UefiDevicePathLib.o > > > DevicePathFromText.o DevicePathUtili > > > > > > include $(MAKEROOT)/Makefiles/app.makefile > > > > > > +ifneq ($(CXX), llvm) > > > # gcc 12 trips over device path handling BUILD_CFLAGS +=3D -Wno- > > > error=3Dstringop-overflow > > > +endif > > > > > > LIBS =3D -lCommon > > > ifeq ($(CYGWIN), CYGWIN) > > > -- > > > 2.35.1 > > > > > > > >=20 > >