* [PATCH v2 1/1] Basetools: fix gcc workaround @ 2022-03-29 8:37 Gerd Hoffmann 2022-03-31 0:51 ` Yuwei Chen [not found] ` <16E150E28AFDD2A7.22795@groups.io> 0 siblings, 2 replies; 5+ messages in thread From: Gerd Hoffmann @ 2022-03-29 8:37 UTC (permalink / raw) To: devel Cc: Bob Feng, Rebecca Cran, Pawel Polawski, Oliver Steffen, Yuwei Chen, Liming Gao, Gerd Hoffmann 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 <rebecca@bsdio.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> --- 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 = DevicePath.o UefiDevicePathLib.o DevicePathFromText.o DevicePathUtili include $(MAKEROOT)/Makefiles/app.makefile +ifneq ($(CXX), llvm) # gcc 12 trips over device path handling BUILD_CFLAGS += -Wno-error=stringop-overflow +endif LIBS = -lCommon ifeq ($(CYGWIN), CYGWIN) -- 2.35.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/1] Basetools: fix gcc workaround 2022-03-29 8:37 [PATCH v2 1/1] Basetools: fix gcc workaround Gerd Hoffmann @ 2022-03-31 0:51 ` Yuwei Chen [not found] ` <16E150E28AFDD2A7.22795@groups.io> 1 sibling, 0 replies; 5+ messages in thread From: Yuwei Chen @ 2022-03-31 0:51 UTC (permalink / raw) To: Gerd Hoffmann, devel@edk2.groups.io Cc: Feng, Bob C, Rebecca Cran, Pawel Polawski, Oliver Steffen, Gao, Liming 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 <kraxel@redhat.com> > Sent: Tuesday, March 29, 2022 4:38 PM > To: devel@edk2.groups.io > Cc: Feng, Bob C <bob.c.feng@intel.com>; Rebecca Cran > <rebecca@bsdio.com>; Pawel Polawski <ppolawsk@redhat.com>; Oliver > Steffen <osteffen@redhat.com>; Chen, Christine <yuwei.chen@intel.com>; > Gao, Liming <gaoliming@byosoft.com.cn>; Gerd Hoffmann > <kraxel@redhat.com> > 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 <rebecca@bsdio.com> > Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> > --- > 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 = DevicePath.o UefiDevicePathLib.o > DevicePathFromText.o DevicePathUtili > > include $(MAKEROOT)/Makefiles/app.makefile > > +ifneq ($(CXX), llvm) > # gcc 12 trips over device path handling BUILD_CFLAGS += -Wno- > error=stringop-overflow > +endif > > LIBS = -lCommon > ifeq ($(CYGWIN), CYGWIN) > -- > 2.35.1 ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <16E150E28AFDD2A7.22795@groups.io>]
* Re: [edk2-devel] [PATCH v2 1/1] Basetools: fix gcc workaround [not found] ` <16E150E28AFDD2A7.22795@groups.io> @ 2022-03-31 2:46 ` Yuwei Chen 2022-03-31 5:33 ` 回复: " gaoliming 0 siblings, 1 reply; 5+ messages in thread From: Yuwei Chen @ 2022-03-31 2:46 UTC (permalink / raw) To: devel@edk2.groups.io, Chen, Christine, Gerd Hoffmann, Kinney, Michael D, Sean Brogan, Gao, Liming, Shi, Steven, Feng, Bob C Cc: Rebecca Cran, Pawel Polawski, Oliver Steffen 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=stringop-overflow" is an unrecognized command line option which is available in gcc12. Thanks, Christine (Yuwei) > -----Original Message----- > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Yuwei > Chen > Sent: Thursday, March 31, 2022 8:51 AM > To: Gerd Hoffmann <kraxel@redhat.com>; devel@edk2.groups.io > Cc: Feng, Bob C <bob.c.feng@intel.com>; Rebecca Cran > <rebecca@bsdio.com>; Pawel Polawski <ppolawsk@redhat.com>; Oliver > Steffen <osteffen@redhat.com>; Gao, Liming <gaoliming@byosoft.com.cn> > 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 <kraxel@redhat.com> > > Sent: Tuesday, March 29, 2022 4:38 PM > > To: devel@edk2.groups.io > > Cc: Feng, Bob C <bob.c.feng@intel.com>; Rebecca Cran > > <rebecca@bsdio.com>; Pawel Polawski <ppolawsk@redhat.com>; Oliver > > Steffen <osteffen@redhat.com>; Chen, Christine > <yuwei.chen@intel.com>; > > Gao, Liming <gaoliming@byosoft.com.cn>; Gerd Hoffmann > > <kraxel@redhat.com> > > 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 <rebecca@bsdio.com> > > Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> > > --- > > 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 = DevicePath.o UefiDevicePathLib.o > > DevicePathFromText.o DevicePathUtili > > > > include $(MAKEROOT)/Makefiles/app.makefile > > > > +ifneq ($(CXX), llvm) > > # gcc 12 trips over device path handling BUILD_CFLAGS += -Wno- > > error=stringop-overflow > > +endif > > > > LIBS = -lCommon > > ifeq ($(CYGWIN), CYGWIN) > > -- > > 2.35.1 > > > > > ^ permalink raw reply [flat|nested] 5+ messages in thread
* 回复: [edk2-devel] [PATCH v2 1/1] Basetools: fix gcc workaround 2022-03-31 2:46 ` [edk2-devel] " Yuwei Chen @ 2022-03-31 5:33 ` gaoliming 2022-04-02 5:56 ` Yuwei Chen 0 siblings, 1 reply; 5+ messages in thread From: gaoliming @ 2022-03-31 5:33 UTC (permalink / raw) To: 'Chen, Christine', devel, 'Gerd Hoffmann', 'Kinney, Michael D', 'Sean Brogan', 'Shi, Steven', 'Feng, Bob C' Cc: 'Rebecca Cran', 'Pawel Polawski', 'Oliver Steffen' Christine: Can you try the option -Wno-unknown-warning to see whether it disables the warning about an unrecognized command line option? Thanks Liming > -----邮件原件----- > 发件人: Chen, Christine <yuwei.chen@intel.com> > 发送时间: 2022年3月31日 10:47 > 收件人: devel@edk2.groups.io; Chen, Christine <yuwei.chen@intel.com>; > Gerd Hoffmann <kraxel@redhat.com>; Kinney, Michael D > <michael.d.kinney@intel.com>; Sean Brogan <sean.brogan@microsoft.com>; > Gao, Liming <gaoliming@byosoft.com.cn>; Shi, Steven > <steven.shi@intel.com>; Feng, Bob C <bob.c.feng@intel.com> > 抄送: Rebecca Cran <rebecca@bsdio.com>; Pawel Polawski > <ppolawsk@redhat.com>; Oliver Steffen <osteffen@redhat.com> > 主题: RE: [edk2-devel] [PATCH v2 1/1] Basetools: fix gcc workaround > > 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=stringop-overflow" > is an unrecognized command line option which is available in gcc12. > > Thanks, > Christine (Yuwei) > > -----Original Message----- > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Yuwei > > Chen > > Sent: Thursday, March 31, 2022 8:51 AM > > To: Gerd Hoffmann <kraxel@redhat.com>; devel@edk2.groups.io > > Cc: Feng, Bob C <bob.c.feng@intel.com>; Rebecca Cran > > <rebecca@bsdio.com>; Pawel Polawski <ppolawsk@redhat.com>; Oliver > > Steffen <osteffen@redhat.com>; Gao, Liming <gaoliming@byosoft.com.cn> > > 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 <kraxel@redhat.com> > > > Sent: Tuesday, March 29, 2022 4:38 PM > > > To: devel@edk2.groups.io > > > Cc: Feng, Bob C <bob.c.feng@intel.com>; Rebecca Cran > > > <rebecca@bsdio.com>; Pawel Polawski <ppolawsk@redhat.com>; Oliver > > > Steffen <osteffen@redhat.com>; Chen, Christine > > <yuwei.chen@intel.com>; > > > Gao, Liming <gaoliming@byosoft.com.cn>; Gerd Hoffmann > > > <kraxel@redhat.com> > > > 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 <rebecca@bsdio.com> > > > Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> > > > --- > > > 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 = DevicePath.o UefiDevicePathLib.o > > > DevicePathFromText.o DevicePathUtili > > > > > > include $(MAKEROOT)/Makefiles/app.makefile > > > > > > +ifneq ($(CXX), llvm) > > > # gcc 12 trips over device path handling BUILD_CFLAGS += -Wno- > > > error=stringop-overflow > > > +endif > > > > > > LIBS = -lCommon > > > ifeq ($(CYGWIN), CYGWIN) > > > -- > > > 2.35.1 > > > > > > > > > > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [edk2-devel] [PATCH v2 1/1] Basetools: fix gcc workaround 2022-03-31 5:33 ` 回复: " gaoliming @ 2022-04-02 5:56 ` Yuwei Chen 0 siblings, 0 replies; 5+ messages in thread From: Yuwei Chen @ 2022-04-02 5:56 UTC (permalink / raw) To: devel@edk2.groups.io, Gao, Liming, 'Gerd Hoffmann', Kinney, Michael D, 'Sean Brogan', Shi, Steven, Feng, Bob C Cc: 'Rebecca Cran', 'Pawel Polawski', 'Oliver Steffen' Hi Liming, Have tried this option, still not works. Thanks, Christine (Yuwei) > -----Original Message----- > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of > gaoliming > Sent: Thursday, March 31, 2022 1:33 PM > To: Chen, Christine <yuwei.chen@intel.com>; devel@edk2.groups.io; 'Gerd > Hoffmann' <kraxel@redhat.com>; Kinney, Michael D > <michael.d.kinney@intel.com>; 'Sean Brogan' > <sean.brogan@microsoft.com>; Shi, Steven <steven.shi@intel.com>; Feng, > Bob C <bob.c.feng@intel.com> > Cc: 'Rebecca Cran' <rebecca@bsdio.com>; 'Pawel Polawski' > <ppolawsk@redhat.com>; 'Oliver Steffen' <osteffen@redhat.com> > Subject: 回复: [edk2-devel] [PATCH v2 1/1] Basetools: fix gcc workaround > > Christine: > Can you try the option -Wno-unknown-warning to see whether it disables > the warning about an unrecognized command line option? > > Thanks > Liming > > -----邮件原件----- > > 发件人: Chen, Christine <yuwei.chen@intel.com> > > 发送时间: 2022年3月31日 10:47 > > 收件人: devel@edk2.groups.io; Chen, Christine <yuwei.chen@intel.com>; > > Gerd Hoffmann <kraxel@redhat.com>; Kinney, Michael D > > <michael.d.kinney@intel.com>; Sean Brogan > <sean.brogan@microsoft.com>; > > Gao, Liming <gaoliming@byosoft.com.cn>; Shi, Steven > > <steven.shi@intel.com>; Feng, Bob C <bob.c.feng@intel.com> > > 抄送: Rebecca Cran <rebecca@bsdio.com>; Pawel Polawski > > <ppolawsk@redhat.com>; Oliver Steffen <osteffen@redhat.com> > > 主题: RE: [edk2-devel] [PATCH v2 1/1] Basetools: fix gcc workaround > > > > 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=stringop-overflow" > > is an unrecognized command line option which is available in gcc12. > > > > Thanks, > > Christine (Yuwei) > > > -----Original Message----- > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of > Yuwei > > > Chen > > > Sent: Thursday, March 31, 2022 8:51 AM > > > To: Gerd Hoffmann <kraxel@redhat.com>; devel@edk2.groups.io > > > Cc: Feng, Bob C <bob.c.feng@intel.com>; Rebecca Cran > > > <rebecca@bsdio.com>; Pawel Polawski <ppolawsk@redhat.com>; Oliver > > > Steffen <osteffen@redhat.com>; Gao, Liming > > > <gaoliming@byosoft.com.cn> > > > 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 <kraxel@redhat.com> > > > > Sent: Tuesday, March 29, 2022 4:38 PM > > > > To: devel@edk2.groups.io > > > > Cc: Feng, Bob C <bob.c.feng@intel.com>; Rebecca Cran > > > > <rebecca@bsdio.com>; Pawel Polawski <ppolawsk@redhat.com>; > Oliver > > > > Steffen <osteffen@redhat.com>; Chen, Christine > > > <yuwei.chen@intel.com>; > > > > Gao, Liming <gaoliming@byosoft.com.cn>; Gerd Hoffmann > > > > <kraxel@redhat.com> > > > > 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 <rebecca@bsdio.com> > > > > Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> > > > > --- > > > > 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 = DevicePath.o UefiDevicePathLib.o > > > > DevicePathFromText.o DevicePathUtili > > > > > > > > include $(MAKEROOT)/Makefiles/app.makefile > > > > > > > > +ifneq ($(CXX), llvm) > > > > # gcc 12 trips over device path handling BUILD_CFLAGS += -Wno- > > > > error=stringop-overflow > > > > +endif > > > > > > > > LIBS = -lCommon > > > > ifeq ($(CYGWIN), CYGWIN) > > > > -- > > > > 2.35.1 > > > > > > > > > > > > > > > > > > > > > > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-04-02 5:56 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-03-29 8:37 [PATCH v2 1/1] Basetools: fix gcc workaround Gerd Hoffmann 2022-03-31 0:51 ` Yuwei Chen [not found] ` <16E150E28AFDD2A7.22795@groups.io> 2022-03-31 2:46 ` [edk2-devel] " Yuwei Chen 2022-03-31 5:33 ` 回复: " gaoliming 2022-04-02 5:56 ` Yuwei Chen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox