All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/duma: fix build with gcc 11
@ 2021-07-31 21:32 Fabrice Fontaine
  2021-07-31 22:07 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-07-31 21:32 UTC (permalink / raw
  To: buildroot; +Cc: Fabrice Fontaine

Fix the following build failure with gcc 11:

In file included from dumapp.cpp:39:
dumapp.h:88:49: error: ISO C++17 does not allow dynamic exception specifications
   88 |     void * DUMA_CDECL operator new(DUMA_SIZE_T) throw(std::bad_alloc);
      |                                                 ^~~~~

While at it, also drop DUMA_CPP which does not seem to be set since the
addition of the package back in 2013 in commit
bda69bf4e4b642ab199ffa13c7356709885f129d

Fixes:
 - http://autobuild.buildroot.org/results/ed838a55f09841a643b05e5a7a7ca0a9d2882acd

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/duma/duma.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/duma/duma.mk b/package/duma/duma.mk
index 0e8a623bde..906db872d5 100644
--- a/package/duma/duma.mk
+++ b/package/duma/duma.mk
@@ -21,7 +21,7 @@ define DUMA_BUILD_CMDS
 	$(TARGET_MAKE_ENV) $(MAKE1) $(TARGET_CONFIGURE_OPTS) \
 		OS=linux \
 		DUMA_OPTIONS="$(DUMA_OPTIONS)" \
-		$(DUMA_CPP) -C $(@D)
+		CPPFLAGS="$(TARGET_CXXFLAGS) -std=c++11" -C $(@D)
 endef
 
 define DUMA_INSTALL_STAGING_CMDS
-- 
2.30.2

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/duma: fix build with gcc 11
  2021-07-31 21:32 [Buildroot] [PATCH 1/1] package/duma: fix build with gcc 11 Fabrice Fontaine
@ 2021-07-31 22:07 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-07-31 22:07 UTC (permalink / raw
  To: Fabrice Fontaine; +Cc: buildroot

On Sat, 31 Jul 2021 23:32:47 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fix the following build failure with gcc 11:
> 
> In file included from dumapp.cpp:39:
> dumapp.h:88:49: error: ISO C++17 does not allow dynamic exception specifications
>    88 |     void * DUMA_CDECL operator new(DUMA_SIZE_T) throw(std::bad_alloc);
>       |                                                 ^~~~~
> 
> While at it, also drop DUMA_CPP which does not seem to be set since the
> addition of the package back in 2013 in commit
> bda69bf4e4b642ab199ffa13c7356709885f129d
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/ed838a55f09841a643b05e5a7a7ca0a9d2882acd
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/duma/duma.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-31 22:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-31 21:32 [Buildroot] [PATCH 1/1] package/duma: fix build with gcc 11 Fabrice Fontaine
2021-07-31 22:07 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.