Skip to contentSkip to conversation

package/ibrcommon: fix build with gcc 11

PATCH Applied Fabrice Fontaine 3 participants 3 messages Jul 31, 2021 – Aug 7, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ibrcommon: fix build with gcc 11

Fix the following build failure with gcc 11:

In file included from ../../ibrcommon/data/BLOB.h:25,

                 from BLOB.cpp:22:

../../ibrcommon/thread/Mutex.h:43:40: error: ISO C++17 does not allow dynamic exception specifications
43 | virtual void trylock() throw (MutexException) = 0;
| ^~~~~

Fixes:
- http://autobuild.buildroot.org/results/7a9a4319916efe8cd7e04b8686a9ae0b233b017a

---
 package/ibrcommon/ibrcommon.mk | 1 +
 1 file changed, 1 insertion(+)
package/ibrcommon/ibrcommon.mk +1 -0
index 4d2d351c88..d9e843ebc2 100644
@@ -10,6 +10,7 @@ IBRCOMMON_INSTALL_STAGING = YES
 IBRCOMMON_LICENSE = Apache-2.0
 IBRCOMMON_LICENSE_FILES = COPYING README
 IBRCOMMON_DEPENDENCIES = host-pkgconf
+IBRCOMMON_CONF_ENV = CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
 
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 IBRCOMMON_DEPENDENCIES += openssl
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot
#1 lore raw
Quoted 8 lines · On Sat, 31 Jul 2021 18:07:01 +0200 Fabrice Fontaine…

Fix the following build failure with gcc 11:

In file included from ../../ibrcommon/data/BLOB.h:25,

                 from BLOB.cpp:22:

../../ibrcommon/thread/Mutex.h:43:40: error: ISO C++17 does not allow dynamic exception specifications
43 | virtual void trylock() throw (MutexException) = 0;
| ^~~~~

Quoted 7 lines

Fixes:
- http://autobuild.buildroot.org/results/7a9a4319916efe8cd7e04b8686a9ae0b233b017a

---
 package/ibrcommon/ibrcommon.mk | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot
#2 lore raw
In reply to Fabrice Fontaine
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Fix the following build failure with gcc 11:
In file included from ../../ibrcommon/data/BLOB.h:25,

                 from BLOB.cpp:22:
Quoted 8 lines

../../ibrcommon/thread/Mutex.h:43:40: error: ISO C++17 does not allow dynamic exception specifications
43 | virtual void trylock() throw (MutexException) = 0;
| ^~~~~

Fixes:
- http://autobuild.buildroot.org/results/7a9a4319916efe8cd7e04b8686a9ae0b233b017a

Committed to 2021.02.x and 2021.05.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot