From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giulio Benetti Date: Tue, 31 Dec 2019 16:04:31 +0100 Subject: [Buildroot] [PATCH] package/apitrace: fix build failure due to gcc bug 68485 and 85180 In-Reply-To: <20191231153307.5ff83635@windsurf> References: <20191227180020.22933-1-giulio.benetti@benettiengineering.com> <20191231153307.5ff83635@windsurf> Message-ID: <1bbd3516-035c-d0c9-ff67-f7077aceff4f@benettiengineering.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Thomas, On 12/31/19 3:33 PM, Thomas Petazzoni wrote: > On Fri, 27 Dec 2019 19:00:20 +0100 > Giulio Benetti wrote: > >> +APITRACE_CFLAGS = $(TARGET_CFLAGS) >> + >> +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y) >> +APITRACE_CFLAGS += -O0 >> +endif >> + >> +APITRACE_CONF_OPTS += -DCMAKE_C_FLAGS="$(APITRACE_CFLAGS)" >> + >> +APITRACE_CXXFLAGS = $(TARGET_CXXFLAGS) >> + >> +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y) >> +APITRACE_CXXFLAGS += -O0 >> +endif >> + >> +APITRACE_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(APITRACE_CXXFLAGS)" > > I'm a bit confused as to why the bug 68485 is worked-around through > CFLAGS and bug 85180 is worked-around through CXXFLAGS. Could you > explain this ? Sure, gcc bug 68485 is due to (included 3rd party) brotli, and it manifests compiling C files, while gcc bug 85180 manifests on apitrace while compiling C++ files. Best regards -- Giulio Benetti Benetti Engineering sas > > Thanks, > > Thomas >